Scalar Projection of One Vector onto Another

compb⃗a⃗=a⃗⋅b⃗∣b⃗∣\text{comp}_{\vec{b}}\vec{a} = \frac{\vec{a}\cdot\vec{b}}{|\vec{b}|}

Worked example: dot = 24 onto a vector of length 6 → projection 4 — press Try an example to run it live, then adjust anything.

Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Try different units for next level excitement!

Here the solver did the work — could you?

Work is a dot product →

Grade 12Grade 12 Math

Test your skills in the Exam Room: new numbers every attempt — free lessons for students, no sign-up, just pure learning.

See your Report Card
Compete with your friends
share your results
Learning zone

Scalar Projection of One Vector onto Another explained

|b|compb a

Shine a light perpendicular to b and the shadow that a casts along it has length (a·b)/|b| — equivalently |a| cos θ. This is how a diagonal quantity gets charged to a chosen direction: the component of a ship's velocity along the intended course, the part of a rope's tension that actually lifts, the useful fraction of an angled push. A dot product of 24 against a vector b of length 6 means a reaches 4 units along b's direction, regardless of how long a itself is or how far it strays sideways.

The trap sits in the denominator. It is |b|, the vector being projected onto, never |a|. Dividing by the wrong magnitude quietly returns the cosine of the angle scaled by the wrong length, and the mistake survives dimensional analysis, so it will not announce itself. A negative result is perfectly legitimate and means a leans backwards along b — its shadow falls on the far side of the origin.

Scalar Projection of One Vector onto Another formula

compb⃗a⃗=a⃗⋅b⃗∣b⃗∣\text{comp}_{\vec{b}}\vec{a} = \frac{\vec{a}\cdot\vec{b}}{|\vec{b}|}
Where
  • compb⃗a⃗\text{comp}_{\vec{b}}\vec{a}= Scalar projection of a onto b
  • a⃗⋅b⃗\vec{a}\cdot\vec{b}= Dot product of a and b
  • ∣b⃗∣|\vec{b}|= Magnitude of b

Missing one of these? Work it out first, then come back