Vector Projection Calculator
Use this free vector projection calculator to project one 2D vector onto another. Get the projection vector, scalar projection, projection coefficient, and the rejection (orthogonal component) with step-by-step dot product calculations.
Enter Values
The x component of the vector being projected
The y component of the vector being projected
The x component of the vector being projected onto
The y component of the vector being projected onto
Result
Enter values above and click Calculate to see your result.
AI Assistant
Ask about this calculator
I can help you understand the vector projection calculator formula, interpret your results, and answer follow-up questions.
Try asking
Formula
How it works: Compute the dot product of a and b (a dot b = ax bx + ay by), divide by the dot product of b with itself (b dot b = bx squared + by squared), then multiply vector b by this scalar. The result is the component of a that lies along b.
Review and Methodology
This calculator runs locally in your browser. Inputs are converted into the units required by the formula, and the result is paired with supporting references so you can verify the method before using it for planning or estimates.
Worked Example
What Is Vector Projection?
Vector projection finds the component of one vector that lies along the direction of another vector. It answers the question: "How much of vector a points in the direction of vector b?" The projection is itself a vector, while the scalar projection is just the length of that component (with sign).
- The projection of a onto b gives the "shadow" of a cast along the direction of b
- The scalar projection (comp_b a = a dot b / |b|) gives the signed length of the projection
- The rejection (a minus the projection) is the component of a perpendicular to b
- Projection plus rejection always equals the original vector: a = proj + rej
- Vector projection is the foundation of orthogonal decomposition, least squares, and the Gram-Schmidt process
Vector projection appears in physics (work = force projected onto displacement), computer graphics (lighting calculations), and statistics (regression as projection onto column space). Understanding projection is key to mastering orthogonality in linear algebra.
You can also calculate changes using our Linear Transformation Calculator, Null Space Calculator or Column Space Calculator.
Frequently Asked Questions
What is the difference between vector projection and scalar projection?
Vector projection gives a vector (direction and magnitude) that represents the component of a along b. Scalar projection gives just a number: the signed length of that component. Scalar projection = a dot b divided by the magnitude of b. Vector projection = (scalar projection / |b|) times b.
Can I project onto the zero vector?
No. Projection onto the zero vector is undefined because b dot b = 0, which causes division by zero. The zero vector has no direction, so "the component along zero" is meaningless.
What is the rejection vector?
The rejection is the component of a perpendicular to b. It equals a minus the projection: rej = a - proj_b(a). The rejection is always orthogonal to b (their dot product is zero).
How is projection used in physics?
Work is defined as force projected onto displacement: W = F dot d = |F| |d| cos(theta). The projection of the force vector onto the displacement direction gives the effective force doing the work.
What is the Gram-Schmidt process?
Gram-Schmidt turns a set of linearly independent vectors into an orthogonal (or orthonormal) set by repeatedly subtracting projections. For each new vector, subtract its projections onto all previously processed vectors to get the orthogonal component.
Is projection the same as dot product?
No. The dot product is a scalar (number). Projection is a vector. They are related: the dot product a dot b appears in the projection formula, but the projection also involves dividing by b dot b and multiplying by vector b.
How can I put this Vector Projection Calculator on my blog or website?
Yes, the Vector Projection Calculator is fully embeddable. Tap "Embed" above to configure appearance and copy the code. It is free to use, works on any platform (HTML, WordPress, CMS), and adjusts to any screen size automatically. Visit calculory.com/services/embed-calculators for the complete guide.
AI Assistant
Ask about this calculator
I can help you understand the vector projection calculator formula, interpret your results, and answer follow-up questions.
Try asking
Related Calculators
More Algebra Calculators
View allAlgebra Graphing Calculator
Plot 2D functions and algebraic equations.
Inequality Graphing Calculator
Graph and shade mathematical inequalities.
Function Transformation Calculator
Visualize and calculate function transformations.
Completing the Square Calculator
Convert quadratics to vertex form step by step.
Related Articles
All articles
Types of Calculators in 2026: A Complete Guide to Choosing the Right One
Every type of calculator explained: basic, desk, scientific, graphing, printing, financial, construction (Sonic Cal style), online, app, and voice. Pick the right one in under a minute.
Read article
Best Voice Calculators in 2026: Online Tools and Mobile Apps Compared
The best voice calculators of 2026 compared: web tools, iPhone and Android apps, talking calculators, and PC options. Find the right voice activated calculator.
Read article
Seattle Sales Tax vs NYC, Chicago, LA, and SF: 2026 Guide
Seattle's sales tax is 10.25% in 2026, tied with Chicago and LA for the highest of any major US city. See how it stacks up against NYC, SF, Houston, and Portland.
Read article
Agentic ROI Blueprint: Replacing Roles in 2026
In 2026, teams are measuring total capability, not just headcount. Learn how to model the cost of replacing or augmenting full-time roles with an AI agent stack.
Read articleModern Tools for Every Need
Accurate and Reliable
All calculations run locally. Solve equations with confidence using AI-verified methods.
Verified Precision
Precise Algebraic Calculations Powered by Calculory AI