Vector Magnitude Calculator

Calculate the magnitude of a 2D or 3D vector with squared magnitude, unit vector, and direction angles.

Share this calculator

Vector magnitude calculator Compute the magnitude (length) of a 2D or 3D vector, plus the squared magnitude, unit vector, and direction angles.

Dimension

What is vector magnitude?

The magnitude of a vector is its length in Euclidean space, calculated as the square root of the sum of its squared components.

Unit vectors

A unit vector points in the same direction but has a magnitude of exactly 1. It is found by dividing each component by the magnitude.

Result

5

The magnitude of vector [3, 4] is 5.

Magnitude
5
Squared magnitude
25
Unit vector
[0.6, 0.8]
Angle with X-axis
53.130102°
Angle with Y-axis
36.869898°

Steps

Components: x=3, y=4

Squared: x²=9 + y²=16

Sum of squares: 25

Magnitude: √25 = 5

Unit vector: [0.600000, 0.800000]

Direction angles: α=53.1301°, β=36.8699°

Also in Linear Algebra

Linear Algebra

Vector magnitude calculator: find the length of a vector

A vector magnitude calculator computes the length (norm) of a 2D or 3D vector using the Euclidean distance formula. It also provides the unit vector and direction angles.

Computing magnitude

The magnitude of vector v = (x, y, z) is |v| = √(x² + y² + z²). For 2D vectors, omit the z component.

The unit vector is v/|v|, pointing in the same direction with magnitude 1. Direction angles give the angle to each coordinate axis.

|v| = √(x² + y² + z²)

Euclidean vector magnitude.

Frequently asked questions

Can magnitude be negative?

No — magnitude is always non-negative. It is zero only for the zero vector.

What is the difference between magnitude and norm?

For Euclidean vectors, magnitude and norm (specifically the L2 norm) are the same thing.

Related

More from nearby categories

These related calculators come from the same leaf category, nearby sibling categories, or the same top-level topic.