Quick answer
a · b = |a||b| cos θ, so cos θ = (a·b)/(|a||b|). The dot product is the algebraic tool; θ is the geometric readout.
Formula
- Dot → cosine → angle
- Projection uses the same dot product
Introduction
Once you trust the identity, the Angle Between Two Vectors Calculator is just automation. This page explains why the identity works and how people misuse it.
For component multiplication rules, also read dot product and vector angle explained.
Relationship in one sentence
The dot product measures how much two directions align, weighted by length. Dividing by |a||b| removes length so arccos can read an angle.
Projections, work, and cosine similarity are siblings: they reuse the same multiplication pattern with different stories.
You can move from dot to angle or from angle to dot depending on what the problem gives. Givens with θ often flow toward projections; givens with components flow toward cos θ.
Misconceptions cluster around using raw coordinates as vectors and around expecting negative angles from the standard geometric definition.
From dot to angle and projection
- cos θ = (a · b) / (|a| |b|)
- Scalar projection onto b: (a · b) / |b|
- Vector projection: ((a · b) / |b|²) b
Find θ here first when the question is purely angular. Jump to vector projection calculator when you need components along an axis.
Connecting ideas
- Compute the dot in components. Always the same sum of products. Treat missing z in 3D as an error, not as an invitation to drop a dimension silently.
- Decide whether you need θ or a projection. Angles use division by both magnitudes; projections fix an axis b and keep one direction fixed.
- Watch for misconceptions. Raw points are not vectors until you subtract. Another slip is averaging coordinates instead of building displacements.
- Relate cos θ to similarity when vectors are normalized. If |a| = |b| = 1, the dot equals cos θ, which is why search tutorials speak in similarity language.
Same numbers, two interpretations
If a·b = 6, |a| = 3, |b| = 4, then cos θ = 0.5 and θ = 60°. The scalar projection of a onto b is 6/4 = 1.5 when b is the axis.
Walk through angles first with how to find the angle step by step.
