How to Find the Angle Between 2 Vectors?

Let the vectors be **u** and **v**

Compute the dot product: **u · v**

Compute the magnitudes: **|u|** and **|v|**

Use the formula: **cos θ = (u · v) / (|u||v|)**

Find the angle: **θ = arccos((u · v) / (|u||v|))**

Ensure neither vector is the zero vector

If needed, convert the result from radians to degrees

Suggested for You

Trending Today