Skip to content

Angle Between Two Vectors Calculator

Find the angle between two vectors from their components using the dot-product formula. Reads out in degrees or radians, with the dot product, magnitudes, and a step-by-step derivation. Works in 2D (leave z = 0) and 3D.

Inputs

Vector a

Vector b

Results

Enter a value to see results.

°

Details

Step-by-step derivation

\begin{aligned} \cos\theta &= \frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}|\,|\mathbf{b}|} \\ &= \frac{?}{(?)(?)} \\ &= ? \end{aligned}
\begin{aligned} \theta &= \arccos\!\left(\frac{\mathbf{a} \cdot \mathbf{b}}{|\mathbf{a}|\,|\mathbf{b}|}\right) \\ &= \arccos(?) \\ &= ? \end{aligned}

Embed this calculator

Preview

Paste this code into your page to show the calculator.

Share this calculation

Anyone who opens this link sees your values already filled in.

200+ calculators · 10 languages · 100% free

Was this calculator helpful?

No

How can we improve this calculator?