Skip to content
Calculator Trigonometri
Calculator Trigonometri

Angle Between Vectors Calculator

Calculate the angle between two vectors.

Vectors & Complex Numbers

Interactive Angle Between Vectors Calculator

Result
0.70710678

sin(45°) = 0.70710678

How Angle Between Vectors Calculator Works?

The Angle Between Vectors Calculator works by dividing the dot product by the product of the magnitudes and taking the arccos: θ = arccos((a·b)/(|a||b|)).

  1. Enter vector a. 2D or 3D components.
  2. Enter vector b. Same dimension as a.
  3. Compute a·b and the magnitudes. a·b = aₓbₓ + a_yb_y (+ a_zb_z).
  4. Apply arccos. Result in [0°, 180°].

Angle Between Vectors Calculator Formula

The angle between 2 vectors is θ = arccos((a·b)/(|a|·|b|)).

Dot product: a·b = aₓbₓ + a_yb_y + a_zb_z
Angle: θ = arccos( a·b / (|a||b|) )
Perpendicular test: a·b = 0 ⇔ θ = 90°
2D signed angle: θ = atan2(aₓb_y − a_ybₓ, a·b)

Worked Example

a = (1, 2, 2), b = (2, 1, −2). a·b = 2 + 2 − 4 = 0. θ = 90°.

Angle Between Vectors Calculator Conversion Table

The angle between vectors conversion table lists 8 vector pairs with dot product and angle.

aba·b|a||b|Angle
(1, 0)(0, 1)0190°
(1, 0)(1, 1)11.414245°
(3, 4)(4, 3)242516.26°
(1, 2)(−2, 1)0590°
(1, 0)(−1, 0)−11180°
(2, 1)(1, 3)57.071145°
(1, 1)(−1, 1)0290°
(5, 0)(3, 4)152553.13°

What is Angle Between Vectors Calculator?

An Angle Between Vectors Calculator is a tool that finds the smallest angle between 2 vectors placed tail to tail.

The dot product is positive for acute angles, zero for right angles, and negative for obtuse angles.

The ratio (a·b)/(|a||b|) is called cosine similarity in data science.

What are the uses of Angle Between Vectors Calculator?

There are 4 main uses of an Angle Between Vectors Calculator.

  • Physics: Find the angle between force and displacement for work.
  • 3D graphics: Compute lighting with the angle between surface normal and light.
  • Text search: Compare document vectors with cosine similarity.
  • Chemistry: Find bond angles from atom coordinates.

Related Vectors & Complex Numbers

View all 182 tools →