🔍

➡️ Angle Between Two Vectors Calculator

Find the angle between two vectors in 2D or 3D space using the dot product formula.

1
2
3
4
5
6

Finding the angle between two vectors

The angle between two vectors can be found from the dot product formula: cos(θ) = (A · B) / (|A| × |B|), where A · B is the dot product and |A|, |B| are the vectors’ magnitudes (lengths). Taking the inverse cosine of that ratio gives the angle between them.

How to use this calculator

Enter the x, y, and z components of each vector. Leave z at 0 for a purely 2D calculation. The calculator computes the dot product, each vector’s magnitude, and the angle between the two vectors in degrees.

If either vector has zero length, the angle is not defined and the calculator returns 0 degrees. This tool is for general math and educational use.

Last reviewed August 2026