Vector Magnitude Calculator

A vector’s magnitude is the square root of the sum of its squared components, which is Pythagoras’ theorem in as many dimensions as you need.

Also called: Vector length calculator · Vector norm calculator

  • Last updated
  • Formula tested against reference values

Your numbers

Components separated by commas, e.g. 3, 4 or 1, -2, 2. Any number of dimensions from 2 to 50.

Result

Magnitude |v|
—

Calculating…

Squared magnitude |v|²
—
Taxicab norm (L1)
—
Maximum norm (L∞)
—
Number of components
—

How to use this calculator

  1. Enter or choose vector.
  2. The magnitude |v| updates as you type. Use Copy result or Share to keep it.

Method

|v| = √(v₁² + v₂² + … + vₙ²); L1 = Σ|vᵢ|; L∞ = max|vᵢ|

vᵢ
the components of the vector
n
the number of components

Worked example

  1. Square the components: 4, 9 and 36.
  2. Add them: 4 + 9 + 36 = 49.
  3. Take the square root: √49 = 7.

The vector (2, 3, 6) has a magnitude of exactly 7.

What the result means

The magnitude is the straight-line length of the arrow. The L1 norm is the distance travelled along the axes (city blocks), and the L∞ norm is the largest single component.

Assumptions and limits

  • Components are in an ordinary Cartesian (orthonormal) basis.
  • For physical vectors, all components must be in the same unit for the length to make sense.

Questions

Is magnitude the same as distance?

The magnitude of B − A is the distance between points A and B. Use the distance calculator to enter two points directly.

Can a magnitude be negative?

No. It is a length, so it is zero for the zero vector and positive otherwise.