Math Lab

Angle Between Two Vectors

Vector Algebra · Class XII

Use the dot-product formula cos θ = (a·b)/(|a||b|) and report θ in degrees.

1
type a value
-55
0
type a value
-55
1
type a value
-55
1
type a value
-55
Live values
  • cos θ0.7071
  • θ (rad)0.7854
  • θ (deg)45
xy
  • cos θ as b_x varies

Formulas in this lab

  • cos θ
    abab\dfrac{a\cdot b}{|a||b|}
  • θ (rad)
    arccos()\arccos(\ldots)
  • θ (deg)
    θ180/π\theta \cdot 180/\pi
Tip: cos θ saturates at ±1 for very large |b_x| and passes through 0 at perpendicularity.

Frequently asked questions

How do I find the angle between two vectors?

Use $\cos\theta = \dfrac{\vec a\cdot\vec b}{|\vec a||\vec b|}$, then $\theta = \cos^{-1}(\ldots)$. For $\vec a = (1, 0)$ and $\vec b = (1, 1)$, $\cos\theta = 1/\sqrt 2$, so $\theta = 45^\circ$.

How do I use the angle-between-vectors lab?

Enter components of $\vec a$ and $\vec b$. The lab returns the dot product, magnitudes and the angle in radians and degrees. The principal value lies in $[0, \pi]$. Try $\vec a = (1, 0, 0)$, $\vec b = (0, 1, 0)$ for $\theta = 90^\circ$.

Cross product versus dot product: when to use which for angles?

Dot product gives $\cos\theta$ — fast for orthogonality and angle magnitude. Cross product gives $|\vec a\times\vec b| = |\vec a||\vec b|\sin\theta$ — useful when you also need a perpendicular vector. Both yield $\theta$, but dot is simpler when only angle matters.

Where does the angle between vectors show up in real life?

Solar panel tilt: power generation is proportional to $\cos\theta$ between sunlight direction and panel normal. Wind turbines, antennas pointing at satellites, and even cricket bat-ball collision angles can be analysed this way. The dot product is your angle-meter.