Skip to content
LoveToCalc

Definition — what does that mean?

Scalar projection

The signed length of the shadow one vector casts on the line of another.

In Swedish: Skalär projektion

Scalar projection

The relation

comp=(a₁, a₂, a₃)·(b₁, b₂, b₃)|(b₁, b₂, b₃)|

The signed length of the shadow of one vector on the line of another: the dot product divided by the length of the vector you project onto.

Solved for comp

comp=a₁b₁+a₂b₂+a₃b₃b₁²+b₂²+b₃²

comp≈0.8018

comp equals (((1 times (−2)) plus (1 times 3)) plus (2 times 1)) divided by the square root of (((−2) squared plus 3 squared) plus 1 squared), equals ((−2 plus 3) plus 2) divided by the square root of ((4 plus 9) plus 1), equals (1 plus 2) divided by the square root of (13 plus 1), equals 3 divided by the square root of (14), is approximately 3 divided by 3.7417, is approximately 0.8018

Working6 steps

Practice questions

You are given

  • a=(-3, -1, 3)
  • b=(2, 3, -4)

Round to 2 decimals.

The formula

The result is a number, not a vector. The vector with that length along b is the vector projection.

Projecting a = (1, 1, 2) onto b = (−2, 3, 1): a·b = −2 + 3 + 2 = 3 and |b| = √14, so compb a = 3/√14 ≈ 0.80.

The sign

The scalar projection is |a| cos θ in terms of the angle between the vectors: positive under 90°, 0 at a right angle and negative above 90°. Projecting (3, 4, 0) onto (1, 0, 0) gives 3, and onto (−1, 0, 0) gives −3.

Common mistakes

Common questions

Does b have to be a unit vector? No. Dividing by |b| turns it into one, which is why |b| is in the denominator.

What if b is the zero vector? It has no direction, so there is no line to project onto, and the card does not answer.

Looking for another letter? The formula solved for each one
Solved for each letter
Solve forRearrangedWith the numbersComes to
compa₁b₁+a₂b₂+a₃b₃b₁²+b₂²+b₃²1·(−2)+1·3+2·1(−2)²+3²+1²0.8018

Last reviewed October 11, 2026 ·How pages are reviewed

GeometryAll formulas

Put this formula on your site

Copy the code into your page where the formula card should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.