No ads, no sign-upChecked 2026-08-24

Vector Magnitude Calculator

Your numbers

Change any value to update the result.

Magnitude

5.000000

Magnitude: 5.000000
Examples

Square each component, add the squares, take the square root. The vector (3, 4, 0) has magnitude 5, and (1, 2, 2) has exactly 3. Leave z at 0 for a vector in the plane; the formula then reads √(x² + y²). The result is never negative.

Worked examples

How it's calculated

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

  1. StepEnter the three components; a vector in the plane keeps z at 0.
  2. StepEach one is squared and the three squares are added.
  3. ResultThe square root of that sum is the length of the vector.5.000000

Reference table

x, y, zExactMagnitude
0, 0, 0√00.000000
1, 1, 1√31.732051
1, 2, 2√93.000000
1.5, 2.5, 3.5√20.754.555217
3, 4, 0√255.000000
2, 3, 6√497.000000

Questions

How do I calculate the magnitude of a vector?

Square each component, add the squares together, then take the square root: |v| = √(x² + y² + z²). The vector (3, 4, 0) gives √(9 + 16 + 0) = √25 = 5.

What is the magnitude of a vector?

It is the length of the vector — the straight-line distance from the origin to the point the vector reaches. It captures how big the vector is while ignoring its direction, which is why it is also called the norm.

How does this relate to the Pythagorean theorem?

It is the Pythagorean theorem with one more axis. In the plane the length of (x, y) is √(x² + y²), exactly the hypotenuse of a right triangle; a z-axis simply adds another squared term.

Can a vector's magnitude be negative?

No, it is always zero or positive. Each component is squared before being added, so negative components contribute positive amounts. The only vector with magnitude zero is the zero vector (0, 0, 0).

How do I find the magnitude of a 2D vector?

Leave the z component at 0 and the formula reads |v| = √(x² + y²). The 2D vector (6, 8) then has magnitude √(36 + 64) = √100 = 10.

Sources and last check

  1. mathworld.wolfram.com

Information, not professional advice.