Home · Everyday · Vectors & Complex Numbers · Vector Projection Calculator

Vector Projection Calculator

The scalar and vector projection of one vector onto another — the shadow one casts on the other.

Your figures

Example result — edit the figures to make it yours

4.2426

Scalar projection of a onto b

The signed length of a's shadow on b. The vector projection is that shadow as a vector, parallel to b.

Vector projection(3, 0, 3)
Rejection (a − proj)(-1, 3, 1)

What this calculator does

The scalar and vector projection of one vector onto another — the shadow one casts on the other. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

scalar proj = (a · b) / |b|; vector proj = ((a · b) / (b · b)) b

Enter vectors as comma-separated components; both vectors must share the same dimension.

Components are combined by the standard vector rules (Euclidean geometry).

Angles are returned in degrees unless you switch the angle unit.

Worked example

With the example inputs this page opens with (a — x (projected) 2, a — y 3, a — z 4, b — x (onto) 1), the result is 4.2426 — scalar projection of a onto b. The signed length of a's shadow on b. The vector projection is that shadow as a vector, parallel to b.

Quick reference

Quick reference — varying a — x (projected)
a — x (projected)Scalar projection of a onto b
13.5355
1.63.9598
24.2426
2.54.5962
34.9497
45.6569

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Vector Projection Calculator work?

The scalar and vector projection of one vector onto another — the shadow one casts on the other. Vector a · Vector b → Projection of a on b. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Vector Projection Calculator need?

Vector a · Vector b → Projection of a on b. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Vector Projection Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.