Unit Vector Calculator
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.
Enter the three components of \(\vec{A} = \langle a_{1}, a_{2}, a_{3} \rangle\).
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the vector into the formula.
- Work out the magnitude.
- 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.
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
- How to find the length of a vector, covered in the Magnitude of a Vector Calculator.
- How to divide and simplify fractions, covered in the Simplifying of Fractions Calculator.
- How to simplify a square root, covered in the Simplifying Radicals Calculator.
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
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the vector into the formula.
- Work out the magnitude.
- 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.
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\).
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.
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|}\).
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\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{A} = \left\langle 3,\; 4,\; 0 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{A}| = \sqrt{3^{2} + 4^{2} + 0^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: 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\).
Final Answer
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\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the vector into the formula.
- Work out the magnitude.
- 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.
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\).
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.
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|}\).
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\).
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Substitute the components into the formula.
- Work out the magnitude.
Formula
Formula: Magnitude Formula
This formula gives the length of a vector from its components. Square each component, add the squares, then take the square root.
Step 1
Step 1 - Set up the problem.
In this problem: We are finding the magnitude of \(\vec{A} = \left\langle 1,\; 2,\; 2 \right\rangle\).
Step 2
Step 2 - Write the formula.
In this problem: The magnitude is the length of the vector. It comes from Pythagoras' theorem in three dimensions: square each component, add the squares and take the square root.
Step 3
Step 3 - Substitute the components into the formula.
In this problem: Replacing each component in \(|\vec{A}| = \sqrt{a_{1}^{2} + a_{2}^{2} + a_{3}^{2}}\) gives \(|\vec{A}| = \sqrt{1^{2} + 2^{2} + 2^{2}}\).
Step 4
Step 4 - Work out the magnitude.
In this problem: 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\).
Final Answer
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}\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Unit Vector Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Unit Vector Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.
Login and upgrade to Pro to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.