Vector Magnitude Calculator

MATRICES & VECTORS

Find the magnitude (length) and unit vector of a vector in any dimension. Enter the components separated by commas.

Magnitude
—
Length of the vector.

Usage Tip

Dividing a vector by its magnitude gives a unit vector — useful for describing pure direction.

THE MATH
magnitude = √(sum of squared components)
unit vector = each component ÷ magnitude
A vector magnitude is its length, found by the Pythagorean theorem extended to any number of dimensions.
The unit vector points the same way with length 1.
Enter two or more components separated by commas (2D, 3D, or higher).
The unit vector and sum of squares are shown.
A zero vector has no defined direction.
Practical Notes

The magnitude of a vector is its length, found by squaring each component, adding them, and taking the square root. This is the Pythagorean theorem extended to any number of dimensions. The unit vector divides each component by that length, giving a vector of length one that points the same way.

Unit vectors are useful whenever only a direction matters, such as describing the direction of a force or a surface normal. The zero vector has no direction, so it has no unit vector. Check that all components use the same units, since mixing units gives a magnitude with no physical meaning.

Spotted an error or have a suggestion for this calculator? Let us know →
Scroll to Top

The calculators and tools on Formula Factory are provided for general guidance and informational purposes only. Results are estimates based on standard formulas and the values you enter — they do not constitute professional engineering, electrical, or architectural advice. Always verify calculations with a qualified professional before making decisions for any safety-critical, code-compliance, or commercial application. Formula Factory makes no representations or warranties as to the accuracy or completeness of any result, and accepts no liability for errors, omissions, or any outcomes arising from reliance on this information.