Vector Projection Calculator

Quick answer

The vector projection calculator projects vector a onto vector b, giving the projection vector, the projection factor, the scalar projection and the perpendicular (rejection) component.

Projection of a onto b – x
3
Projection – y
0
Projection factor (a·b)/(b·b)
0.6
Scalar projection (a·b)/|b|
3
Rejection (perpendicular part) – x
0
Rejection – y
4

The projection of a onto b is the “shadow” of a along b. It splits a force into the part along a ramp and the part pressing into it, and it is the core step of the Gram–Schmidt process.

How to use the Vector Projection Calculator

  1. Number of dimensions
  2. a: x
  3. a: y
  4. a: z
  5. b: x
  6. b: y
  7. b: z

Results update as you type, and everything is calculated in your browser.

How it works

The projection factor is the dot product divided by |b|². Multiplying b by it gives the projection; subtracting that from a leaves the component perpendicular to b.

Inputs explained

Field What to enter
Number of dimensions Choose one: 2D, 3D
a: x A number
a: y A number
a: z A number
b: x A number
b: y A number
b: z A number

Example values

How the main result changes when a: x changes and everything else stays at the example values above:

a: x Projection of a onto b: x
1.5 1.5
2.25 2.25
3 3
3.75 3.75
4.5 4.5
6 6

Formula

proj_b a = (a · b / b · b) · b, scalar projection = a · b / |b|

Worked example

Inputs: Number of dimensions: 2D; a – x: 3; a – y: 4; b – x: 5; b – y: 0.
Results: Projection of a onto b – x = 3; Projection – y = 0; Projection factor (a·b)/(b·b) = 0.6; Scalar projection (a·b)/|b| = 3; Rejection (perpendicular part) – x = 0; Rejection – y = 4.

Key terms

Projection
The component of one vector along another.

Frequently asked questions

What is the projection of (3, 4) onto (5, 0)?

(3, 0).

What is the difference between vector and scalar projection?

The scalar projection is the signed length; the vector projection also has b's direction.

When is the projection zero?

When a and b are perpendicular.

What is the rejection?

a minus its projection, the part of a perpendicular to b.

Sources

  1. OpenStax: Calculus Volume 3
  2. Wolfram MathWorld: Vector

Cite this calculator

Speedy Calculator. (2026). Vector Projection Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/vector-projection/