Linear Algebra
Intermediate

Vector Magnitude

Length of a vector.

Formula

∣v⃗∣=v12+v22+v32|\vec{v}| = \sqrt{v_1^2 + v_2^2 + v_3^2}

Live Calculator

Members

Variables

v_1,v_2,v_3Components

Example

|(3, 4, 0)| = √(9+16+0) = 5.

How it works

The magnitude of a vector is its distance from the origin, so it tells you how long the vector is in space. The formula comes from the Pythagorean theorem: in 2D you find the length of the hypotenuse from the horizontal and vertical components, and in 3D the third component adds another squared term. Squaring each component makes negative directions contribute positively to length, which is why the result is always nonnegative.

When to use it

Use this formula whenever you need the size or length of a vector in geometry, physics, or engineering. Common examples include finding displacement, velocity magnitude, force strength, or checking the distance from the origin in 3D coordinates.

Worked example, step by step

Find the magnitude of v = (2, -5, 4). |v| = √(v1^2 + v2^2 + v3^2) |v| = √(2^2 + (-5)^2 + 4^2) |v| = √(4 + 25 + 16) |v| = √45 |v| = 3√5

Common mistakes to avoid

  • Forgetting to square negative components before adding them
  • Adding the components first instead of adding their squares
  • Leaving the answer as a squared length instead of taking the square root

Did You Know?

A vector's magnitude is the Pythagorean theorem generalized to any number of dimensions.

Share this formula

Reviewed & maintained by the FormulaWon editorial teamLast reviewed September 2026