Parametric, Polar & Vectors · Vector Operations

Angle Between Vectors

cosθ=uvuv\cos\theta = \frac{\vec{u} \cdot \vec{v}}{|\vec{u}||\vec{v}|}

The angle between two vectors is found using the dot product divided by the product of their magnitudes.

Variables

SymbolNameUnit
u1u x-component
u2u y-component
v1v x-component
v2v y-component

Worked examples

Find the angle between ⟨1, 0⟩ and ⟨1, 1⟩.
  1. u · v = 1. |u| = 1, |v| = √2.
  2. cos θ = 1/√2 → θ = π/4 = 45°

Answer: π/4 (45°)

Find the angle between ⟨1, 2, 3⟩ and ⟨-1, 0, 1⟩.
  1. u · v = -1+0+3 = 2. |u| = √14, |v| = √2.
  2. cos θ = 2/√28 = 2/(2√7) = 1/√7
  3. θ = arccos(1/√7) ≈ 67.79°

Answer: arccos(1/√7) ≈ 67.8°

Practice this and 135 more formulas in the CalcRef workspace — quizzes, reference tables, a 16-category unit converter, and an expression evaluator.