Vector Projection Calculator

Project one vector onto another: get the projection vector, the scalar projection and the perpendicular part. proj_v u = ((u · v)/(v · v)) · v and the scalar projection is (u · v)/|v|. Example: with vector u 3 4, …, the result is Projection of u onto v = (2.2, 4.4).

Last updated · By · Runs in your browser, nothing is uploaded

Result

Step-by-Step Solution

Enter your values above to see the full working.

How do you use the Vector Projection Calculator?

Enter vector u and the vector v you project onto. The calculator returns the vector projection of u onto v, the scalar projection (the signed length of the shadow), the rejection (the part of u perpendicular to v) and verifies that the rejection is perpendicular.

What formula does the Vector Projection Calculator use?

proj_v u = ((u · v)/(v · v)) · v and the scalar projection is (u · v)/|v|. The rejection is u − proj_v u, and it is orthogonal to v, so u splits into a part along v and a part perpendicular to v.

Worked example: Vector u 3 4, Vector v 1 2

Projecting u = (3, 4) onto v = (1, 2): u · v = 11 and v · v = 5, so the projection is 2.2 × (1, 2) = (2.2, 4.4). The rejection is (0.8, −0.4), and its dot product with v is 0.8 − 0.8 = 0.

With the default values the calculator returns Projection of u onto v = (2.2, 4.4); Scalar projection u·v/|v| = 4.91934955; Rejection (the part of u perpendicular to v) = (0.8, -0.4); Dot product u · v = 11.

Where Is This Calculation Used?

Projections give the component of a force along a slope, the closest point on a line to a given point, Gram–Schmidt orthogonalisation and the least-squares fit of data to a direction. Physics uses them to split motion into parallel and perpendicular parts.

What are the most common mistakes with the Vector Projection Calculator?

  • Projecting onto the zero vector.
  • Dividing by |v| instead of v · v for the vector projection.
  • Mixing up which vector is projected and which is the target.

What Is the Tested Example for the Default Values?

This example is computed by the same code that powers the calculator above, so you can compare it with your own numbers or a textbook answer.

Input: Vector u3 4
Input: Vector v1 2
Projection of u onto v(2.2, 4.4)
Scalar projection u·v/|v|4.91934955
Rejection (the part of u perpendicular to v)(0.8, -0.4)
Dot product u · v11

Where Can You Verify These Formulas?

The definitions and formulas on this page follow standard references. Check them against these sources:

Built and maintained by S. Dilshan. Found a mistake? Email [email protected] with the page address.

Frequently Asked Questions

What is the projection of one vector onto another?

The component of the first vector that lies along the direction of the second.

What is the difference between scalar and vector projection?

The scalar projection is the signed length of the shadow; the vector projection is that length in the direction of v.

How do I check a projection?

The difference u − proj should be perpendicular to v, with dot product 0.