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

Vector Magnitude Calculator

Result

5.000000

Result: 5.000000

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.

The numbers at a glance

Held fixed: x component 3.0000, y component 4.0000.

z componentResult
-40,000.000040,000.000313
-20,000.000020,000.000625
0.0000Your value5.000000
20,000.000020,000.000625
40,000.000040,000.000313

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.

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.