Math

Vector magnitude calculator

The magnitude of a vector is its length, found with the Pythagorean theorem: square each component, add them and take the square root. With this vector magnitude calculator, enter a 2D or 3D vector to get |v| with every step shown, the answer as a simplified radical when it is not a whole number, the unit vector and the direction of the vector.

Runs in your browser. Nothing you type is sent to us.

Magnitude |v|

7

|v| = √(2² + (-3)² + 6²) = √49

Sum of squares
49
Unit vector (û)
⟨0.285714, -0.428571, 0.857143⟩
Angle with the x-axis
73.3985°
Angle with the y-axis
115.3769°
Angle with the z-axis
31.0027°

Key facts

  • v= √(x² + y² + z²), the Pythagorean theorem extended to any number of dimensions.
  • For v = ⟨2, −3, 6⟩, |v| = √(4 + 9 + 36) = √49 = 7.
  • For v = ⟨3, 4⟩, |v| = 5; for ⟨1, 1, 1⟩, |v| = √3 ≈ 1.732.
  • A magnitude is never negative, and only the zero vector has a magnitude of 0.
  • The magnitude of the vector from point A to point B is the distance between the two points.

What magnitude means

A vector has a direction and a size. The magnitude is the size: the length of the arrow. For a velocity vector, the magnitude is the speed; for a force vector, it is the strength of the force; for a displacement, it is the straight-line distance travelled.

How to use the vector magnitude calculator

  1. Choose 2D or 3D.
  2. Enter the components. Negative values are fine.
  3. Read the magnitude with the working, the sum of squares, the exact radical form, the unit vector and the direction.

Formula for vector magnitude

|v| = √(v₁² + v₂² + v₃²)

In 2D, drop the z term. The same pattern works in any number of dimensions: add the squares of all components and take the square root.

Worked examples: vector magnitude

Example 1: a 3D vector

v = ⟨2, −3, 6⟩. |v| = √(2² + (−3)² + 6²) = √(4 + 9 + 36) = √49 = 7.

Example 2: a classic right triangle

v = ⟨3, 4⟩. |v| = √(9 + 16) = √25 = 5. Other whole-number lengths: ⟨5, 12⟩ has length 13 and ⟨8, 15⟩ has length 17.

Example 3: a radical answer

v = ⟨1, 1, 1⟩. |v| = √3 ≈ 1.732. And ⟨2, 4⟩ has length √20 = 2√5 ≈ 4.472, which the calculator simplifies for you.

Example 4: speed from velocity

A drone moves with velocity ⟨6, 8, 0⟩ m/s. Its speed is |v| = √(36 + 64) = 10 m/s.

Magnitudes of common vectors

VectorMagnitude
⟨1, 0⟩1
⟨1, 1⟩√2 ≈ 1.414
⟨3, 4⟩5
⟨1, 1, 1⟩√3 ≈ 1.732
⟨2, 3, 6⟩7
⟨1, 2, 2⟩3
⟨5, 12⟩13

Distance between two points

Subtract the coordinates to get the vector from one point to the other, then find its magnitude. From A(1, 2, 3) to B(3, −1, 9), the vector is ⟨2, −3, 6⟩ with length 7, so the points are 7 units apart. The distance formula calculator does this directly from coordinates.

Direction

In 2D, the direction is the angle measured counterclockwise from the positive x-axis, found with atan2(y, x). In 3D, the calculator gives the angle to each axis, the direction angles. Dividing the vector by its magnitude gives the unit vector in the same direction.

Magnitude in physics and engineering

Engineers resolve forces into x, y and z components to analyse a structure, then recombine them with this formula to find the size of the resultant. A force of ⟨300, 400, 0⟩ N has a magnitude of 500 N. Pilots and sailors do the same with velocity: a heading component and a crosswind component combine into the ground speed.

Properties

  • |k v| = |k| |v|: scaling a vector scales its length by the absolute value of the factor.
  • Triangle inequality: |a + b| ≤ |a| + |b|.
  • |v|² = v · v, the dot product of the vector with itself.

Vector length and other ways to measure distance

The magnitude of a vector is its length, found by the Pythagorean theorem extended to any number of dimensions: |v| = √(v₁² + v₂² + v₃² + …). Mathematicians call this the Euclidean norm or L² norm, and it is only one way to measure size. The taxicab or L¹ norm adds absolute values, matching distance travelled along a city grid; it was studied by Hermann Minkowski around the turn of the 20th century. The maximum or L∞ norm takes the largest component, which is how a chess king moves.

Magnitudes appear wherever quantities have direction. Meteorologists record wind as east–west and north–south components (u and v), and the wind speed is √(u² + v²). Physicists find the speed of an object from its velocity vector and the strength of a force from its components. GPS receivers compute positions in Earth-centred, Earth-fixed coordinates, where the distance to each satellite is the magnitude of a difference vector. In machine learning, keeping weight vectors small, L2 regularization, helps prevent overfitting. In US high schools, Common Core standard N-VM.A.1 introduces notation such as |v| for magnitude. Dividing a dot product by two magnitudes gives the cosine of the angle between the vectors. To get a direction of length 1, use the unit vector calculator; for the gap between two points, the distance formula calculator; and for the 2D case, the Pythagorean theorem calculator.

How this calculator works

  • Enter vectors as comma- or space-separated components, in 2D or 3D.
  • Shows each step with your numbers, plus exact radical forms where the inputs are whole numbers.
  • v= √(v₁² + v₂² + …), showing the sum of squares and a simplified radical such as 5√2 where possible.
  • Also gives the unit vector v ÷ |v| and, for 2D vectors, the direction angle from the positive x-axis.

Frequently asked questions

How do you find the magnitude of a vector?

Square each component, add the squares and take the square root: |v| = √(x² + y² + z²).

What is the magnitude of ⟨3, 4⟩?

5, because √(9 + 16) = √25 = 5.

Can a magnitude be negative?

No. A length is always zero or positive, even if the components are negative.

Is magnitude the same as length?

Yes. Magnitude, length and norm all mean the same thing for vectors.

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

Include the z component: |⟨2, −3, 6⟩| = √(4 + 9 + 36) = 7.

How is magnitude related to distance?

The distance between two points equals the magnitude of the vector from one to the other.

What is the magnitude of a unit vector?

Exactly 1.

What does |kv| equal?

k×v. Doubling a vector doubles its length; multiplying by −1 keeps the length.

Sources

  1. Wolfram MathWorld: Vector norm
  2. OpenStax: Calculus Volume 3, section 2.2 Vectors in Three Dimensions
  3. Math is Fun: Vectors

Updated November 25, 2026. Formulas checked against published sources and worked examples.

Cite this page: CalcRoster. "Vector magnitude calculator." calcroster.com/vector-magnitude-calculator/. Updated November 25, 2026.

Results are estimates for general information. They are not financial, medical or legal advice. Check important decisions with a qualified professional.