Vector Projection

Vector projection breaks down one vector into a component along another's direction, essential for decomposing forces in physics and engineering.

projvu=uvv2v\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|^2}\mathbf{v}

Solve a problem with Vector Projection

Type the problem. The solver will use Vector Projection where Vector Projection is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Vector Projection takes
u\mathbf{u}
v\mathbf{v}
Vector Projection
SymbolMeaning
u\mathbf{u}The vector whose projection you want to find; it is the subject or input vector being decomposed onto the reference direction.
v\mathbf{v}The reference direction vector onto which you are projecting; it defines the axis of the projection and determines the output direction.

When to use it

When you need to find how much of one vector points in the direction of another vector.

Level

Usually taught in: Calculus III

Worked examples

1. Find the projection of a 2D vector onto a coordinate axis

Problem

Find projvu\operatorname{proj}_{\mathbf{v}}\mathbf{u} where u=3,4\mathbf{u} = \langle 3, 4 \rangle and v=1,0\mathbf{v} = \langle 1, 0 \rangle.
  1. uv=(3)(1)+(4)(0)=3\mathbf{u} \cdot \mathbf{v} = (3)(1) + (4)(0) = 3

    We compute the dot product by multiplying corresponding components and summing them.

  2. v2=12+02=1|\mathbf{v}|^2 = 1^2 + 0^2 = 1

    The magnitude squared of v\mathbf{v} is the sum of the squares of its components.

  3. projvu=311,0=3,0\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{3}{1}\langle 1, 0 \rangle = \langle 3, 0 \rangle

    We divide the dot product by v2=1|\mathbf{v}|^2 = 1, then multiply by v\mathbf{v} to get the projection vector.

Answer: projvu=3,0\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \langle 3, 0 \rangle

This is a clean case because v\mathbf{v} points along the x-axis, so the projection extracts the x-component of u\mathbf{u}. Projecting onto coordinate axes is often the simplest scenario because the magnitude squared is already 1.

2. Find the projection when vectors are perpendicular

Problem

Find projvu\operatorname{proj}_{\mathbf{v}}\mathbf{u} where u=1,2\mathbf{u} = \langle -1, 2 \rangle and v=2,1\mathbf{v} = \langle 2, 1 \rangle.
  1. uv=(1)(2)+(2)(1)=2+2=0\mathbf{u} \cdot \mathbf{v} = (-1)(2) + (2)(1) = -2 + 2 = 0

    The dot product equals zero, which reveals that u\mathbf{u} and v\mathbf{v} are orthogonal (perpendicular).

  2. v2=22+12=4+1=5|\mathbf{v}|^2 = 2^2 + 1^2 = 4 + 1 = 5

    We calculate the magnitude squared of v\mathbf{v} normally, even though the dot product is zero.

  3. projvu=052,1=0,0\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{0}{5}\langle 2, 1 \rangle = \langle 0, 0 \rangle

    Since the numerator is zero, the projection is the zero vector, confirming that u\mathbf{u} has no component in the direction of v\mathbf{v}.

Answer: projvu=0,0\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \langle 0, 0 \rangle

Perpendicular vectors always project to the zero vector because they share no component in the same direction. This is a critical special case that often surprises students but makes geometric sense.

3. Find the force projection in a video game physics system

Problem

A player receives a force vector u=6,8\mathbf{u} = \langle 6, 8 \rangle (in Newtons), but only the component along the movement direction v=3,4\mathbf{v} = \langle 3, 4 \rangle contributes to damage. Find projvu\operatorname{proj}_{\mathbf{v}}\mathbf{u}.
  1. uv=(6)(3)+(8)(4)=18+32=50\mathbf{u} \cdot \mathbf{v} = (6)(3) + (8)(4) = 18 + 32 = 50

    We compute the dot product of the force and movement direction.

  2. v2=32+42=9+16=25|\mathbf{v}|^2 = 3^2 + 4^2 = 9 + 16 = 25

    The magnitude squared of the movement direction is 2525.

  3. projvu=50253,4=23,4=6,8\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{50}{25}\langle 3, 4 \rangle = 2\langle 3, 4 \rangle = \langle 6, 8 \rangle

    We compute the scalar coefficient 5025=2\frac{50}{25} = 2, then multiply by v\mathbf{v} to scale it into the projected force.

Answer: projvu=6,8\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \langle 6, 8 \rangle

The force vector equals 23,42\langle 3, 4 \rangle, so it is parallel to the movement direction. The entire force contributes to damage—there is no wasted perpendicular component. When vectors are parallel, the projection equals the original vector.

Common mistakes

Where Vector Projection usually goes wrong
Answer came out wrong
Swapping numerator and denominator: projvu=v2uvv\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{|\mathbf{v}|^2}{\mathbf{u} \cdot \mathbf{v}}\mathbf{v}.
Always place the dot product uv\mathbf{u} \cdot \mathbf{v} in the numerator and the magnitude squared v2|\mathbf{v}|^2 in the denominator.
Using v|\mathbf{v}| instead of v2|\mathbf{v}|^2 in the denominator: projvu=uvvv\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|}\mathbf{v}.
Always use v2|\mathbf{v}|^2 in the denominator; computing it as vv\mathbf{v} \cdot \mathbf{v} avoids even calculating a square root.
Computing only the scalar and forgetting to multiply by v\mathbf{v}: writing projvu=uvv2\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|^2} as the final answer.
Always multiply the scalar by v\mathbf{v} at the end to get the vector projection: projvu=uvv2v\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|^2}\mathbf{v}.
The mistakeWhy it is wrongThe fix
Swapping numerator and denominator: projvu=v2uvv\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{|\mathbf{v}|^2}{\mathbf{u} \cdot \mathbf{v}}\mathbf{v}.This reverses the formula, making the scalar factor inverted and producing nonsensical results, especially when the dot product is small.Always place the dot product uv\mathbf{u} \cdot \mathbf{v} in the numerator and the magnitude squared v2|\mathbf{v}|^2 in the denominator.
Using v|\mathbf{v}| instead of v2|\mathbf{v}|^2 in the denominator: projvu=uvvv\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|}\mathbf{v}.Forgetting to square the magnitude scales the projection incorrectly, making it too large by a factor of v|\mathbf{v}| compared to the true projection.Always use v2|\mathbf{v}|^2 in the denominator; computing it as vv\mathbf{v} \cdot \mathbf{v} avoids even calculating a square root.
Computing only the scalar and forgetting to multiply by v\mathbf{v}: writing projvu=uvv2\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|^2} as the final answer.The projection must be a vector in the direction of v\mathbf{v}, not a scalar; the scalar coefficient is only part of the answer.Always multiply the scalar by v\mathbf{v} at the end to get the vector projection: projvu=uvv2v\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|^2}\mathbf{v}.

Tips and when to use something else

  • If v\mathbf{v} is a unit vector (so v=1|\mathbf{v}| = 1), the formula simplifies to projvu=(uv)v\operatorname{proj}_{\mathbf{v}}\mathbf{u} = (\mathbf{u} \cdot \mathbf{v})\mathbf{v} because the denominator becomes 1, eliminating one computation.
  • The scalar component (the signed length of the projection along v\mathbf{v}) is compvu=uvv\operatorname{comp}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|}; use this formula if you only need the length, not the full vector.
  • To find the perpendicular component of u\mathbf{u}, subtract the projection: uprojvu\mathbf{u} - \operatorname{proj}_{\mathbf{v}}\mathbf{u} gives you the part of u\mathbf{u} orthogonal to v\mathbf{v}, which is useful for decomposition problems.
  • Always double-check your Dot Product and Magnitude calculations, since even small arithmetic errors compound and produce completely wrong answers.

Frequently asked questions

What is the difference between vector projection and scalar projection?
Vector projection gives you a vector in the direction of v\mathbf{v}: projvu=uvv2v\operatorname{proj}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|^2}\mathbf{v}. Scalar projection gives you just the signed length: compvu=uvv\operatorname{comp}_{\mathbf{v}}\mathbf{u} = \frac{\mathbf{u} \cdot \mathbf{v}}{|\mathbf{v}|}. The scalar is the coefficient you multiply v\mathbf{v} by to get the vector projection.
Why do we divide by v2|\mathbf{v}|^2 instead of just v|\mathbf{v}|?
Dividing by v2|\mathbf{v}|^2 produces the correct geometric scaling so that the projection is a true component of u\mathbf{u} in the direction of v\mathbf{v}. The formula v2=vv|\mathbf{v}|^2 = \mathbf{v} \cdot \mathbf{v} automatically normalizes the reference vector, and using v|\mathbf{v}| alone would overscale the result by a factor of v|\mathbf{v}|.
What does it mean if my dot product is negative?
A negative dot product means the angle between the vectors is greater than 90°, so they point in somewhat opposite directions. The projection will still be correct but will point backward along v\mathbf{v} (opposite to v\mathbf{v}'s direction). A negative projection is valid and simply means u\mathbf{u} has a component pointing against v\mathbf{v}.
How is vector projection used in real applications?
Vector projection appears everywhere in physics and engineering: finding the component of a force along a surface, decomposing velocity into radial and tangential components for circular motion, computing work done by a force, analyzing shadows in graphics, and many other scenarios. Anytime you ask "how much of this vector points in that direction," you reach for projection.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18