Vector Projection Calculator
Enter two 2D or 3D vectors and instantly get the scalar projection, vector projection, and full step-by-step working.
Vector Inputs
Quick Examples
Enter vectors and click Calculate to see the projection.
Scalar Projection
—
compB(A) = A · B̂
|A| magnitude
—
Length of vector A
Vector Projection
—
projB(A) = (A·B / |B|²) × B
Perpendicular Component
—
A − projB(A)
Step-by-Step Solution
Summary
Enter two 2D or 3D vectors and instantly get the scalar projection, vector projection, and full step-by-step working.
How it works
- Choose 2D or 3D mode and enter the components of vector A and vector B.
- The tool computes the dot product A · B.
- It then finds the magnitude of B: |B| = sqrt(Bx² + By² [+ Bz²]).
- The scalar projection is computed as: comp = (A · B) / |B|.
- The unit vector of B is found: B̂ = B / |B|.
- The vector projection is computed as: proj = (A · B / |B|²) × B, shown component by component.
Use cases
- Find how much of one vector lies in the direction of another in physics problems.
- Compute the component of force along an inclined plane.
- Solve linear algebra homework requiring orthogonal decomposition.
- Verify manual projection calculations step by step.
- Calculate shadow length (projection) of one vector onto an axis.
- Decompose velocity into parallel and perpendicular components.
Frequently Asked Questions
Last updated: 2026-06-09 ·
Reviewed by Nham Vu