Unit Vector

Create a vector of magnitude 1 pointing in the same direction as the original by dividing by its magnitude — use when direction matters more than distance.

v^=vv\hat{\mathbf{v}} = \frac{\mathbf{v}}{|\mathbf{v}|}

Solve a problem with Unit Vector

Type the problem. The solver will use Unit Vector where Unit 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 Unit Vector takes
v\mathbf{v}
Unit Vector
SymbolMeaning
v\mathbf{v}The original vector you are normalizing, shown in bold to indicate it has both magnitude (size) and direction; if this vector is the zero vector (all components are 0), then the formula is undefined because you cannot divide by 0.

When to use it

Reach for this when you need to know the direction of a vector without caring about its size or scale.

Level

Usually taught in: Pre-Calculus

Worked examples

1. Normalize a vector with positive components

Problem

Find the unit vector in the direction of v=(3,4)\mathbf{v} = (3, 4).
  1. v=32+42|\mathbf{v}| = \sqrt{3^2 + 4^2}

    We find the magnitude using the Pythagorean theorem applied to the vector components.

  2. v=9+16=25=5|\mathbf{v}| = \sqrt{9 + 16} = \sqrt{25} = 5

    Square each component, add them, and take the square root to get v=5|\mathbf{v}| = 5.

  3. v^=(3,4)5\hat{\mathbf{v}} = \frac{(3, 4)}{5}

    We substitute into the unit vector formula vv\frac{\mathbf{v}}{|\mathbf{v}|}.

  4. v^=(35,45)\hat{\mathbf{v}} = \left(\frac{3}{5}, \frac{4}{5}\right)

    Divide each component of the vector by the magnitude to get the final result.

Answer: v^=(35,45)\hat{\mathbf{v}} = \left(\frac{3}{5}, \frac{4}{5}\right)

This example shows the standard process: find magnitude, then divide the entire vector by that magnitude. The result is a vector that still points the same direction but now has length 1.

2. Normalize a vector with negative and positive components

Problem

Find the unit vector in the direction of v=(3,4)\mathbf{v} = (-3, 4).
  1. v=(3)2+42|\mathbf{v}| = \sqrt{(-3)^2 + 4^2}

    The magnitude formula squares each component, so negative values become positive; (3)2=9(-3)^2 = 9.

  2. v=9+16=25=5|\mathbf{v}| = \sqrt{9 + 16} = \sqrt{25} = 5

    We get 9+16=259 + 16 = 25, and the square root of 25 is 5.

  3. v^=(3,4)5\hat{\mathbf{v}} = \frac{(-3, 4)}{5}

    Apply the unit vector formula, substituting both components and the magnitude.

  4. v^=(35,45)\hat{\mathbf{v}} = \left(-\frac{3}{5}, \frac{4}{5}\right)

    Divide each component by 5; the negative component stays negative in the result.

Answer: v^=(35,45)\hat{\mathbf{v}} = \left(-\frac{3}{5}, \frac{4}{5}\right)

This example demonstrates that unit vectors can have negative components. The negative coordinate tells us the vector points partially in the negative xx-direction, and normalization preserves that direction while setting the magnitude to 1.

3. Apply unit vectors to a real-world setting: fence direction

Problem

A rectangular garden plot has corners at the origin and at (8,6)(8, 6) meters. A gardener needs to install a fence along the diagonal. What is the unit vector pointing along this diagonal?
  1. v=(8,6)\mathbf{v} = (8, 6)

    The diagonal of the rectangle from (0,0)(0, 0) to (8,6)(8, 6) forms a vector with these components.

  2. v=82+62|\mathbf{v}| = \sqrt{8^2 + 6^2}

    We find the length of the diagonal using the Pythagorean theorem: 64+36\sqrt{64 + 36}.

  3. v=64+36=100=10|\mathbf{v}| = \sqrt{64 + 36} = \sqrt{100} = 10

    The diagonal measures exactly 10 meters.

  4. v^=(8,6)10\hat{\mathbf{v}} = \frac{(8, 6)}{10}

    The unit vector is found by dividing the diagonal vector by its length of 10 meters.

  5. v^=(45,35)\hat{\mathbf{v}} = \left(\frac{4}{5}, \frac{3}{5}\right)

    After simplifying, this unit vector tells us the pure direction of the diagonal, independent of any actual distance along it.

Answer: v^=(45,35)\hat{\mathbf{v}} = \left(\frac{4}{5}, \frac{3}{5}\right)

This word problem shows why unit vectors matter in practice. The gardener now has the exact direction to follow without being tied to the 10-meter length; if the plot were larger or smaller, the direction would remain the same.

Common mistakes

Where Unit Vector usually goes wrong
Answer came out wrong
Writing v^=vv\hat{\mathbf{v}} = |\mathbf{v}| \cdot \mathbf{v} (multiplying by magnitude instead of dividing).
The formula is v^=vv\hat{\mathbf{v}} = \frac{\mathbf{v}}{|\mathbf{v}|} — you divide the vector by its magnitude, not multiply. For v=(3,4)\mathbf{v} = (3, 4) with magnitude 5, divide to get (3/5,4/5)(3/5, 4/5), not multiply to get (15,20)(15, 20).
Computing magnitude by adding components: v=3+4=7|\mathbf{v}| = 3 + 4 = 7 instead of 32+42=5\sqrt{3^2 + 4^2} = 5.
Always use v=v12+v22+|\mathbf{v}| = \sqrt{v_1^2 + v_2^2 + \cdots}. For (3,4)(3, 4): 9+16=25=5\sqrt{9 + 16} = \sqrt{25} = 5, never 3+4=73 + 4 = 7.
Stopping the problem after finding magnitude and reporting v|\mathbf{v}| as the unit vector instead of computing vv\frac{\mathbf{v}}{|\mathbf{v}|}.
After finding the magnitude, divide each component of the original vector by that magnitude. If v=(3,4)\mathbf{v} = (3, 4) and v=5|\mathbf{v}| = 5, then v^=(3/5,4/5)\hat{\mathbf{v}} = (3/5, 4/5) — not just the number 5.
The mistakeWhy it is wrongThe fix
Writing v^=vv\hat{\mathbf{v}} = |\mathbf{v}| \cdot \mathbf{v} (multiplying by magnitude instead of dividing).Multiplying by magnitude makes the vector much longer, not shorter; unit vectors must always have magnitude exactly 1.The formula is v^=vv\hat{\mathbf{v}} = \frac{\mathbf{v}}{|\mathbf{v}|} — you divide the vector by its magnitude, not multiply. For v=(3,4)\mathbf{v} = (3, 4) with magnitude 5, divide to get (3/5,4/5)(3/5, 4/5), not multiply to get (15,20)(15, 20).
Computing magnitude by adding components: v=3+4=7|\mathbf{v}| = 3 + 4 = 7 instead of 32+42=5\sqrt{3^2 + 4^2} = 5.Adding components is not the magnitude formula; you must square each component first, add those squares, then take the square root.Always use v=v12+v22+|\mathbf{v}| = \sqrt{v_1^2 + v_2^2 + \cdots}. For (3,4)(3, 4): 9+16=25=5\sqrt{9 + 16} = \sqrt{25} = 5, never 3+4=73 + 4 = 7.
Stopping the problem after finding magnitude and reporting v|\mathbf{v}| as the unit vector instead of computing vv\frac{\mathbf{v}}{|\mathbf{v}|}.The magnitude is a single number (scalar), not a vector. A unit vector must be a vector with all its components specified and magnitude exactly 1.After finding the magnitude, divide each component of the original vector by that magnitude. If v=(3,4)\mathbf{v} = (3, 4) and v=5|\mathbf{v}| = 5, then v^=(3/5,4/5)\hat{\mathbf{v}} = (3/5, 4/5) — not just the number 5.

Tips and when to use something else

  • Always verify your answer by checking that v^=1|\hat{\mathbf{v}}| = 1; compute the magnitude of your unit vector to confirm it has length 1, and if not, you made an arithmetic error.
  • Unit vectors isolate direction from size, making them invaluable in physics and engineering for describing pure direction (like compass headings or force directions) without scale.
  • If you need both direction and distance, first normalize to find the unit vector, then multiply by the desired distance: w=dv^\mathbf{w} = d \cdot \hat{\mathbf{v}} where dd is your desired length.
  • When you only care about magnitude without direction, use the Magnitude of a Vector formula instead; when you need only direction, use the unit vector formula.

Frequently asked questions

Why do we divide by magnitude instead of multiplying?
Dividing scales the vector down to length 1 while multiplying would scale it up. The magnitude tells us how 'big' the original vector is, so we divide by it — taking its reciprocal — to shrink the vector to unit length. Multiplying by the magnitude would point in the same direction but make it much larger, which defeats the purpose.
What happens if I try to normalize the zero vector?
The formula breaks down. The zero vector v=(0,0)\mathbf{v} = (0, 0) has magnitude 0, so we would compute (0,0)0\frac{(0, 0)}{0}, which is undefined (division by zero). Geometrically, the zero vector has no direction, so it cannot be normalized. Always check that your vector is not the zero vector before applying the formula.
Can a unit vector have decimal or fractional components?
Yes, absolutely. The components can be decimals, fractions, or even irrational numbers like 22\frac{\sqrt{2}}{2}. The only requirement is that the magnitude equals 1. A unit vector like (35,45)\left(\frac{3}{5}, \frac{4}{5}\right) or (0.6,0.8)(0.6, 0.8) is perfectly valid because (3/5)2+(4/5)2=1\sqrt{(3/5)^2 + (4/5)^2} = 1.
Are basis vectors i\mathbf{i} and j\mathbf{j} the same as unit vectors?
Both have magnitude 1, but they are not the same thing. Basis vectors are fixed unit vectors along the coordinate axes — i=(1,0)\mathbf{i} = (1, 0) and j=(0,1)\mathbf{j} = (0, 1) in 2D. A unit vector can point in any direction you want. Every basis vector is a unit vector, but most unit vectors are not basis vectors. Use basis vectors to express components; use general unit vectors for direction.

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