Vector Angle Calculator

Angle between two vectors.

FreeNo accountOn your device

Runs in your browser. How to verify

Loading tool…

About this tool

Enter the components of two vectors to get the angle between them. (1, 2, 3) and (4, 5, 6) are 12.9332° apart.

How to use

1
Step 1
Enter the x, y and z of the first vector.
2
Step 2
Enter the x, y and z of the second.
3
Step 3
Press Calculate to see the angle in degrees and radians.

How it works

The dot product gives the angle: cos θ = a·b ÷ (|a||b|). For (1, 2, 3) and (4, 5, 6), a·b = 32, |a| = 3.74166 and |b| = 8.77496, so cos θ = 0.97463 and θ = 12.9332°. A dot product of 0 means 90°.

θ = arccos( a·b ÷ (|a| |b|) )

Worked example

A 45° angle

Input
(1, 0, 0) and (1, 1, 0)
Output
45° (0.785398 rad)
Walkthrough
a·b = 1, |a| = 1, |b| = √2, so cos θ = 1 ÷ 1.41421 = 0.70711 and θ = 45°.

Limitations

  • Three components each; for 2D vectors set z to 0.
  • Neither vector can be the zero vector.

Questions

What is the angle between (1,0,0) and (1,1,0)?
45°.
What is the angle between (1,2,3) and (4,5,6)?
12.9332°, or 0.225726 radians.
What does a 90° angle mean?
The vectors are perpendicular and their dot product is 0.

Features

  • Degrees and radians
  • 3D vectors
  • Runs in your browser

Related resources

Guides and videos from around the web—opens on YouTube or the publisher’s site.

  • Area of triangles intuition

    Khan Academy

    Derives ½bh so triangle and area calculators make sense.

    Watch on YouTube
  • The Pythagorean theorem intro

    Khan Academy

    a²+b²=c² foundation for right-triangle tools.

    Watch on YouTube