Vector projection calculator

Project a vector onto a nonzero target vector of the same dimension.

Enter values

Start with the example below, or enter your own values.

How it works

Scale the target by the dot product divided by its squared length.

Try an example

Vector to project: 3,4; Target vector: 1,0. The form starts with these values; change them to explore your own case.

Example result: 3, 0

  1. Multiply b by (a·b)/(b·b).

Learn more in Vector geometry and coordinate calculations.

Results are calculated locally. Floating-point tools provide numerical approximations, not formal proof certificates.