Vector calculator

Enter each vector’s components separated by spaces or commas (2 or 3 components).

Your answer

Dot product a · b-15
Cross product a × b(-16, 11, 14)
Angle between122.073 °
|a|6.164414
|b|4.582576
a + b(4, 2, 3)

Worked out in your browser. Nothing you type is sent to a server.

How we worked it out

Updated as you change the numbers.

  1. a · b = Σ aᵢbᵢ. a × b = (a₂b₃ − a₃b₂, a₃b₁ − a₁b₃, a₁b₂ − a₂b₁). Angle = arccos(a · b ÷ (|a||b|)).

Method and assumptions

2D vectors are treated as 3D with z = 0, so their cross product points along z.

Questions

What is the dot product of (3, −2, 5) and (1, 4, −2)?

−15; the vectors are about 122.1° apart.

Sources

Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.

Embed this calculator on your site

Free to use. Paste this where you want the calculator; it runs in your visitors’ browsers, sets no cookies and sends nothing to us.

Related calculators