Angle Between Vectors Calculator

Math, Vectors, Geometry, Calculator

Find the angle between two vectors

Vector A and Vector B

No image selected

Intro: Use this calculator to find the angle between two vectors from their components in 2D or 3D. It shows the dot product, both magnitudes, the cosine value, and the final angle in degrees and radians. Exact/decimal; returns degrees and radians.

Worked example

FAQs

Zero vector?

The angle is undefined if either vector is the zero vector (division by zero in the formula).


Units?

We report degrees and radians. You can request only one if you prefer.


Higher dimensions?

The same dot-product formula works in any dimension as long as the vectors have equal length.


What is the formula for the angle between two vectors?

Use $$\theta=\cos^{-1}\!\left(\frac{\mathbf{a}\cdot\mathbf{b}}{|\mathbf{a}||\mathbf{b}|}\right)$$ for nonzero vectors.


Can this calculator handle 2D and 3D vectors?

Yes. It accepts either two components for 2D or three components for 3D, as long as both vectors have the same dimension.


What does a negative dot product mean?

A negative dot product means the angle is obtuse, so the vectors point more in opposite than in the same direction.


Why is the zero vector invalid?

Because its magnitude is 0, the denominator in the angle formula becomes zero, so the angle is undefined.


Why use this angle between vectors calculator?

How to Find the Angle between Vectors

Related