Unit Vector Calculator

Published on: March 1, 2026
Final Answer: Free | Full Steps: Pro

This Unit Vector Calculator rescales a vector so that it has length one while pointing the same way, and shows the working line by line. The length is measured first, and then every component is divided by it, which is what forces the new length to be exactly one. The result carries only the direction and none of the size. Following the same pattern every time keeps the direction unchanged while the length is normalised.

x y z A ⟨a₁, a₂, a₃⟩

Enter the three components of \(\vec{A} = \langle a_{1}, a_{2}, a_{3} \rangle\).

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the vector into the formula.
  4. Work out the magnitude.
  5. Work out the unit vector.

Formula: Unit Vector Formula

This formula keeps the direction of a vector and makes its length exactly one. Find the magnitude, then divide every component by it.

\(\hat{A} = \frac{\vec{A}}{|\vec{A}|}\)

Useful Tips to Remember

A unit vector always has length 1, so a quick check is to square its components and make sure they add to 1. Divide every component by the same magnitude, including any zeros. The zero vector has no direction, so it has no unit vector. Leave fractions and roots exact, such as \(\frac{1}{\sqrt{14}}\), rather than rounding too early.

Required knowledge

Where Is a Unit Vector Used?

A unit vector describes a pure direction with the size taken out, which makes it easy to scale to any length later. Game engines and 3D software use unit vectors for camera directions, surface normals and lighting, where only the direction matters. In physics, unit vectors give the direction of a force or field, and in robotics they set the heading of a move. Search engines and recommendation systems normalise data vectors to length one so they can compare directions fairly.

  • Surface normals for lighting in 3D graphics
  • Camera and movement directions in video games
  • Giving the direction of a force or electric field
  • Setting the heading of a robot or drone
  • Normalising data vectors before comparing them

Unit Vector Practice Problems

Example 1 normalises \(\langle 3, 4, 0 \rangle\), whose length is 5, and Example 2 normalises \(\langle 1, 2, 2 \rangle\), whose length is 3. Find the magnitude, divide each component and compare your answer. For two more free worked examples, check out the Unit Vector Notes.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. For more practice, the notes page goes further with extra worked examples and fuller explanations of the ideas behind each step. Use them together to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(\vec{A} = \left\langle 3,\; 4,\; 0 \right\rangle\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the vector into the formula.
  4. Work out the magnitude.
  5. Work out the unit vector.

Formula

Formula: Unit Vector Formula

This formula keeps the direction of a vector and makes its length exactly one. Find the magnitude, then divide every component by it.

\(\hat{A} = \frac{\vec{A}}{|\vec{A}|}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the unit vector in the direction of \(\vec{A} = \left\langle 3,\; 4,\; 0 \right\rangle\).

\(\vec{A} = \left\langle 3,\; 4,\; 0 \right\rangle\)
x y z A ⟨3, 4, 0⟩

Step 2

Step 2 - Write the formula.

In this problem: A unit vector has length 1 and points the same way as the vector, so the vector is divided by its own magnitude.

\(\hat{A} = \frac{\vec{A}}{|\vec{A}|}\)

Step 3

Step 3 - Substitute the vector into the formula.

In this problem: Replacing \(\vec{A}\) in \(\hat{A} = \frac{\vec{A}}{|\vec{A}|}\) gives \(\hat{A} = \frac{\left\langle 3,\; 4,\; 0 \right\rangle}{|\left\langle 3,\; 4,\; 0 \right\rangle|}\).

\(\hat{A} = \frac{\left\langle 3,\; 4,\; 0 \right\rangle}{|\left\langle 3,\; 4,\; 0 \right\rangle|}\)

Step 4

Step 4 - Work out the magnitude.

In this problem: The magnitude is worked out from the components, covered in the Magnitude of a Vector Calculator. Squaring the components gives \(3^{2} = 9\), \(4^{2} = 16\) and \(0^{2} = 0\). Adding the squares gives \(9 + 16 + 0 = 25\). Taking the square root gives \(\sqrt{25} = 5\).

\(|\vec{A}| = \sqrt{3^{2} + 4^{2} + 0^{2}} = 5\)

Step 5

Step 5 - Work out the unit vector.

In this problem: Putting the magnitude back in gives \(\hat{A} = \frac{\left\langle 3,\; 4,\; 0 \right\rangle}{5}\). Dividing each component by \(5\) gives \(3 \div 5 = \frac{3}{5}\), \(4 \div 5 = \frac{4}{5}\) and \(0 \div 5 = 0\).

\(\hat{A} = \frac{\left\langle 3,\; 4,\; 0 \right\rangle}{5} = \left\langle \frac{3}{5},\; \frac{4}{5},\; 0 \right\rangle\)

Final Answer

\(\hat{A} = \left\langle \frac{3}{5},\; \frac{4}{5},\; 0 \right\rangle\)
See Example 2 Hide Example 2

Problem

\(\vec{A} = \left\langle 1,\; 2,\; 2 \right\rangle\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the vector into the formula.
  4. Work out the magnitude.
  5. Work out the unit vector.

Formula

Formula: Unit Vector Formula

This formula keeps the direction of a vector and makes its length exactly one. Find the magnitude, then divide every component by it.

\(\hat{A} = \frac{\vec{A}}{|\vec{A}|}\)

Step 1

Step 1 - Set up the problem.

In this problem: We are finding the unit vector in the direction of \(\vec{A} = \left\langle 1,\; 2,\; 2 \right\rangle\).

\(\vec{A} = \left\langle 1,\; 2,\; 2 \right\rangle\)
x y z A ⟨1, 2, 2⟩

Step 2

Step 2 - Write the formula.

In this problem: A unit vector has length 1 and points the same way as the vector, so the vector is divided by its own magnitude.

\(\hat{A} = \frac{\vec{A}}{|\vec{A}|}\)

Step 3

Step 3 - Substitute the vector into the formula.

In this problem: Replacing \(\vec{A}\) in \(\hat{A} = \frac{\vec{A}}{|\vec{A}|}\) gives \(\hat{A} = \frac{\left\langle 1,\; 2,\; 2 \right\rangle}{|\left\langle 1,\; 2,\; 2 \right\rangle|}\).

\(\hat{A} = \frac{\left\langle 1,\; 2,\; 2 \right\rangle}{|\left\langle 1,\; 2,\; 2 \right\rangle|}\)

Step 4

Step 4 - Work out the magnitude.

In this problem: The magnitude is worked out from the components, covered in the Magnitude of a Vector Calculator. Squaring the components gives \(1^{2} = 1\), \(2^{2} = 4\) and \(2^{2} = 4\). Adding the squares gives \(1 + 4 + 4 = 9\). Taking the square root gives \(\sqrt{9} = 3\).

\(|\vec{A}| = \sqrt{1^{2} + 2^{2} + 2^{2}} = 3\)

Step 5

Step 5 - Work out the unit vector.

In this problem: Putting the magnitude back in gives \(\hat{A} = \frac{\left\langle 1,\; 2,\; 2 \right\rangle}{3}\). Dividing each component by \(3\) gives \(1 \div 3 = \frac{1}{3}\), \(2 \div 3 = \frac{2}{3}\) and \(2 \div 3 = \frac{2}{3}\).

\(\hat{A} = \frac{\left\langle 1,\; 2,\; 2 \right\rangle}{3} = \left\langle \frac{1}{3},\; \frac{2}{3},\; \frac{2}{3} \right\rangle\)

Final Answer

\(\hat{A} = \left\langle \frac{1}{3},\; \frac{2}{3},\; \frac{2}{3} \right\rangle\)

Notes and Practice Mode

x y z A ⟨a₁, a₂, a₃⟩

Example Problems

Click one to load it into the box and solve it.