Uni-Sine
MathematicsVectors and matrices

Unit vectors

A unit vector is a vector with a magnitude (length) of exactly 1. It shows a direction and nothing else. To find the unit vector in the direction of any vector a, divide a by its own magnitude: â = a ÷ |a|. For example, the vector (3, 4) has magnitude 5, so its unit vector is (0.6, 0.8). The special unit vectors i, j and k point along the x, y and z axes.

What is a unit vector?

Every vector has a size and a direction. A unit vector keeps the direction but has its size set to 1. It is written with a hat: â is read "a hat" and means the unit vector in the direction of a. Turning a vector into its unit vector is called normalising it (normalizing in the US).

−1012341234a(3, 4)â
â points the same way as a but has length 1, so it ends on the circle of radius 1

The unit vector formula

\hat{a} = \frac{a}{|a|}

For a 2D vector (x, y), the magnitude comes from Pythagoras, and in 3D you add the third component:

|a| = \sqrt{x^2 + y^2} \qquad |a| = \sqrt{x^2 + y^2 + z^2}

How to find a unit vector

  1. Find the magnitude |a| using Pythagoras.
  2. Divide every component of a by |a|.
  3. Check: the magnitude of your answer should be exactly 1.

Example 1: a 2D vector

Find the unit vector in the direction of a = (3, 4).

|a| = \sqrt{3^2 + 4^2} = \sqrt{25} = 5
\hat{a} = \frac{1}{5}(3,\ 4) = (0.6,\ 0.8)

Check: 0.6² + 0.8² = 0.36 + 0.64 = 1. It works.

Example 2: i and j notation

Find the unit vector in the direction of b = 5i − 12j.

|b| = \sqrt{5^2 + (-12)^2} = \sqrt{169} = 13
\hat{b} = \frac{5}{13}i - \frac{12}{13}j

Example 3: a 3D vector

Find the unit vector in the direction of c = 2i − j + 2k.

|c| = \sqrt{2^2 + (-1)^2 + 2^2} = \sqrt{9} = 3
\hat{c} = \frac{2}{3}i - \frac{1}{3}j + \frac{2}{3}k

The Vectors calculator finds magnitudes and unit vectors in 2D and 3D and shows the working.

The unit vectors i, j and k

The most important unit vectors point along the axes: i along the x-axis, j along the y-axis and k along the z-axis. Any vector can be written as a sum of them:

i = (1,\ 0,\ 0) \qquad j = (0,\ 1,\ 0) \qquad k = (0,\ 0,\ 1)

So 2i − j + 2k is the same vector as (2, −1, 2). In 2D only i and j are needed. AQA's A-level Maths specification lists â and i, j, k in its notation for vectors, which cover two and three dimensions.

Using unit vectors

Example 4: the unit vector from one point to another

Find the unit vector in the direction from A(1, 2) to B(4, 6).

First find the vector AB by subtracting: AB = (4 − 1, 6 − 2) = (3, 4). Its magnitude is 5, so the unit vector is (0.6, 0.8).

Example 5: a vector of a given length

Find a vector of magnitude 10 in the direction of (1, 2, 2).

The magnitude of (1, 2, 2) is √(1 + 4 + 4) = 3, so the unit vector is (1/3, 2/3, 2/3). Multiply by 10:

10 \times \frac{1}{3}(1,\ 2,\ 2) = \left(\frac{10}{3},\ \frac{20}{3},\ \frac{20}{3}\right)

This is the most common reason to find a unit vector: it lets you build a vector of any length in a chosen direction.

Example 6: from an angle

A unit vector at angle θ to the positive x-axis is (cos θ, sin θ), because its magnitude is √(cos²θ + sin²θ) = √1 = 1. At 30°, it is (√3/2, 1/2).

Example 7: a velocity

A boat moves at 15 m/s in the direction of 3i + 4j. Its velocity vector is the speed times the unit vector: 15 × (0.6i + 0.8j) = 9i + 12j m/s.

Example 8: the angle a vector makes with an axis

The components of a unit vector are the cosines of the angles it makes with the axes. For ĉ = (2/3, −1/3, 2/3) from example 3, the angle with the x-axis is cos⁻¹(2/3) = 48.2° and the angle with the y-axis is cos⁻¹(−1/3) = 109.5°. In 2D, the unit vector (0.6, 0.8) makes an angle of cos⁻¹(0.6) = 53.1° with the x-axis. This is a quick way to find a vector's direction once you have its unit vector.

Check your understanding.

practice
Pick an answer, then check it.
Which of these is a unit vector?

Common mistakes

  • Dividing by the sum of the components instead of the magnitude. For (3, 4), divide by 5, not 7.
  • Forgetting to square negative components. (−12)² = 144, which is positive.
  • Dividing only one component. Every component must be divided by |a|.
  • Missing the third component of a 3D vector when finding the magnitude.
  • Not checking. Squaring and adding your answer's components must give exactly 1.

Practise with a short timed paper

Vectors come up in GCSE Maths Higher, A-level Maths and university linear algebra. The daily GCSE Maths Higher and Linear Algebra papers are short timed papers of 8 questions, with a new one every day.

Common questions

What is a unit vector?
A vector with a magnitude of exactly 1. It describes a direction only.
How do you find a unit vector?
Divide the vector by its magnitude: â = a ÷ |a|. Find the magnitude with Pythagoras first.
What is the unit vector of (3, 4)?
(0.6, 0.8), because the magnitude of (3, 4) is 5.
What are i, j and k?
The unit vectors along the x, y and z axes: (1, 0, 0), (0, 1, 0) and (0, 0, 1).
What does the hat mean on a vector?
â means the unit vector in the direction of a.
Can a unit vector have negative components?
Yes. Only its magnitude must be 1. For example, (0, −1) is the unit vector pointing straight down.

Revision cards

Say the answer first, then flip the card to check it.

Where to go next

  • Solve it

    Vectors Calculator

    Visualise magnitude, direction and operations

    Open the tool
  • Test it

    GCSE Maths Higher

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
  • Test it

    University Linear Algebra

    A new exam-style paper every day, with instant marking and a mark scheme

    Start today's paper
Read next
Maths · Vectors and matricesVector calculator: magnitude, direction, add, dot and crossFree vector calculator: magnitude and direction, adding two vectors, the dot product, cross product and angle between them, in 2D or 3D.