Magnitude of a Vector

Magnitude of a vector is its length or size, measured as the distance from the origin; use it to find how far something has traveled overall.

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

Solve a problem with Magnitude of a Vector

Type the problem. The solver will use Magnitude of a Vector where Magnitude of a Vector is the right tool, and tell you when it is not.

Drag one in or paste from the clipboard. JPEG, PNG or WebP. You get the transcription to check before anything is solved.

How to get a better answer
  • Paste the whole problem, including the instruction word — "simplify", "solve for x" and "factor" lead to three different answers.
  • Say what you have already tried. "I got x = 4 and the book says 2" turns a solution into a diagnosis.
  • Set the level in the settings button. A calculus shortcut is not a better answer if you have not met derivatives yet.
  • For a photo, get the whole problem in frame and hold the page flat — you get the transcription to fix before anything is solved.

What each symbol means

What Magnitude of a Vector takes
v\mathbf{v}
Magnitude of a Vector
SymbolMeaning
v\mathbf{v}This is the vector whose length you are measuring, shown in bold to indicate it has both magnitude and direction; if read as a scalar, you lose the directional information.

When to use it

Find magnitude whenever you need to know how long or far a vector is, such as calculating true distance traveled despite changes in direction.

Level

Usually taught in: Pre-Calculus

Worked examples

1. Find the magnitude of a 3D vector with small integer components

Problem

Find the magnitude of the vector v=(1,2,2)\mathbf{v} = (1, 2, 2).
  1. v=12+22+22|\mathbf{v}| = \sqrt{1^2 + 2^2 + 2^2}

    Write out the magnitude formula with the vector components v1=1v_1 = 1, v2=2v_2 = 2, v3=2v_3 = 2.

  2. v=1+4+4|\mathbf{v}| = \sqrt{1 + 4 + 4}

    Calculate each squared term: 12=11^2 = 1, 22=42^2 = 4, 22=42^2 = 4.

  3. v=9|\mathbf{v}| = \sqrt{9}

    Add the squares together: 1+4+4=91 + 4 + 4 = 9.

  4. v=3|\mathbf{v}| = 3

    Take the square root: 9=3\sqrt{9} = 3.

Answer: v=3|\mathbf{v}| = 3

This is a direct application of the magnitude formula for a true 3D vector. Unlike the 2D case, all three dimensions contribute to the final length.

2. Find the magnitude of a vector with negative components

Problem

Find the magnitude of v=(2,3,6)\mathbf{v} = (-2, 3, -6).
  1. v=(2)2+32+(6)2|\mathbf{v}| = \sqrt{(-2)^2 + 3^2 + (-6)^2}

    Substitute the components into the magnitude formula; negatives must be squared before summing.

  2. v=4+9+36|\mathbf{v}| = \sqrt{4 + 9 + 36}

    Square each component: (2)2=4(-2)^2 = 4, 32=93^2 = 9, (6)2=36(-6)^2 = 36.

  3. v=49|\mathbf{v}| = \sqrt{49}

    Sum the squared values: 4+9+36=494 + 9 + 36 = 49.

  4. v=7|\mathbf{v}| = 7

    Take the square root: 49=7\sqrt{49} = 7.

Answer: v=7|\mathbf{v}| = 7

Magnitude is always positive, even with negative components. Squaring eliminates signs, so the direction of each component does not affect the final length—only the absolute values matter for size.

3. Find the displacement from a starting point after a two-stage road trip

Problem

During a road trip, a driver travels 60 km east, then 80 km north from the starting point. How far is the driver from the starting location in a straight line?
  1. d=(60,80,0)\mathbf{d} = (60, 80, 0)

    Set up a displacement vector where east is the positive xx-direction, north is the positive yy-direction, and altitude is the zz-direction (which is 0 for ground travel).

  2. d=602+802+02|\mathbf{d}| = \sqrt{60^2 + 80^2 + 0^2}

    Apply the magnitude formula to find the straight-line distance from start to finish.

  3. d=3600+6400+0|\mathbf{d}| = \sqrt{3600 + 6400 + 0}

    Calculate each square: 602=360060^2 = 3600, 802=640080^2 = 6400, 02=00^2 = 0.

  4. d=10000|\mathbf{d}| = \sqrt{10000}

    Add the squared values: 3600+6400+0=100003600 + 6400 + 0 = 10000.

  5. d=100 km|\mathbf{d}| = 100 \text{ km}

    Take the square root: 10000=100\sqrt{10000} = 100 km.

Answer: d=100 km|\mathbf{d}| = 100 \text{ km}

Although the driver traveled 60 + 80 = 140 km along roads, the straight-line distance is only 100 km. This is a 3-4-5 Pythagorean triple scaled by 20, showing that magnitude captures net displacement, not total distance traveled along the path.

Common mistakes

Where Magnitude of a Vector usually goes wrong
Answer came out wrong
Writing v=v1+v2+v3|\mathbf{v}| = v_1 + v_2 + v_3 (just adding components together)
Square each component first, add those squares, then take the square root: v=v12+v22+v32|\mathbf{v}| = \sqrt{v_1^2 + v_2^2 + v_3^2}.
Writing v=v1+v2+v3|\mathbf{v}| = \sqrt{v_1 + v_2 + v_3} (adding before squaring)
Square each component before adding: v=v12+v22+v32|\mathbf{v}| = \sqrt{v_1^2 + v_2^2 + v_3^2}, not v1+v2+v3\sqrt{v_1 + v_2 + v_3}.
Writing v=1+(2)2+(2)2=144=7|\mathbf{v}| = \sqrt{1 + (-2)^2 + (-2)^2} = \sqrt{1 - 4 - 4} = \sqrt{-7} for a vector with negative components
Recall that squaring always yields a positive result: (2)2=4(-2)^2 = 4. For v=(1,2,2)\mathbf{v} = (1, -2, -2), compute v=1+4+4=9=3|\mathbf{v}| = \sqrt{1 + 4 + 4} = \sqrt{9} = 3.
The mistakeWhy it is wrongThe fix
Writing v=v1+v2+v3|\mathbf{v}| = v_1 + v_2 + v_3 (just adding components together)Adding components gives only a sum, not the actual straight-line distance; it ignores how the components interact geometrically through the Pythagorean theorem.Square each component first, add those squares, then take the square root: v=v12+v22+v32|\mathbf{v}| = \sqrt{v_1^2 + v_2^2 + v_3^2}.
Writing v=v1+v2+v3|\mathbf{v}| = \sqrt{v_1 + v_2 + v_3} (adding before squaring)This treats components as if they add before applying the Pythagorean theorem, but each component contributes independently through its own squared term.Square each component before adding: v=v12+v22+v32|\mathbf{v}| = \sqrt{v_1^2 + v_2^2 + v_3^2}, not v1+v2+v3\sqrt{v_1 + v_2 + v_3}.
Writing v=1+(2)2+(2)2=144=7|\mathbf{v}| = \sqrt{1 + (-2)^2 + (-2)^2} = \sqrt{1 - 4 - 4} = \sqrt{-7} for a vector with negative componentsNegative components produce positive values when squared; treating (2)2(-2)^2 as 4-4 creates a negative under the radical, which has no real solution.Recall that squaring always yields a positive result: (2)2=4(-2)^2 = 4. For v=(1,2,2)\mathbf{v} = (1, -2, -2), compute v=1+4+4=9=3|\mathbf{v}| = \sqrt{1 + 4 + 4} = \sqrt{9} = 3.

Tips and when to use something else

  • Magnitude is always zero or positive—the square root of a sum of squares cannot be negative.
  • To find a unit vector in the same direction, divide the vector by its magnitude: v^=vv\hat{\mathbf{v}} = \frac{\mathbf{v}}{|\mathbf{v}|} instead.
  • For 2D vectors, the formula reduces to v=v12+v22|\mathbf{v}| = \sqrt{v_1^2 + v_2^2}, which is the Pythagorean theorem itself.
  • Do not confuse magnitude with the dot product; magnitude gives length alone, while dot product combines two vectors to yield a scalar involving both magnitudes and the angle between them.

Frequently asked questions

What is the difference between magnitude and direction?
Magnitude is a single positive number representing how long the vector is, while direction indicates where it points in space. A vector has both; a scalar has only magnitude. For example, saying a car traveled 50 miles gives only magnitude, but saying it traveled 50 miles northeast includes direction.
Can magnitude ever be negative?
No, magnitude is always zero or positive. You are taking the square root of a sum of squares, and the square root of any non-negative number is non-negative. Only the zero vector has magnitude exactly 0.
Do I have to use the 3D formula for 2D vectors?
You can set the third component to zero—for v=(3,4)\mathbf{v} = (3, 4), use v=32+42+02=5|\mathbf{v}| = \sqrt{3^2 + 4^2 + 0^2} = 5—but it is simpler to use the 2D formula directly: v=32+42=5|\mathbf{v}| = \sqrt{3^2 + 4^2} = 5. Both give the same answer.
Why do we square the components instead of just using absolute values?
Squaring and taking absolute value produce the same result for real numbers, but squaring lets us apply the Pythagorean theorem, which is where the magnitude formula originates geometrically. Squaring each component and summing captures how the vector extends in each dimension.

Need a different method?

The full solver is not scoped to one formula — type any problem and it will pick the method.

Open the math solver

Reviewed 2026-09-18