# Vector Projection Calculator

URL: https://speedycalculator.com/calculators/math/vector-projection/
Last updated: 2026-11-08

> 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.

## Inputs

- Number of dimensions
- a – x
- a – y
- a – z
- b – x
- b – y
- b – z

## Results

- Projection of a onto b – x
- Projection – y
- Projection – z
- Projection factor (a·b)/(b·b)
- Scalar projection (a·b)/|b|
- Rejection (perpendicular part) – x
- Rejection – y

## Formula

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

## Explanation

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

- **Number of dimensions**
- **a: x**
- **a: y**
- **a: z**
- **b: x**
- **b: y**
- **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

FieldWhat to enterNumber of dimensionsChoose one: 2D, 3Da: xA numbera: yA numbera: zA numberb: xA numberb: yA numberb: zA number

### Example values

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

a: xProjection of a onto b: x1.51.52.252.25333.753.754.54.566

## 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.

## FAQ

**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

- [OpenStax: Calculus Volume 3](https://openstax.org/details/books/calculus-volume-3)
- [Wolfram MathWorld: Vector](https://mathworld.wolfram.com/Vector.html)
