Vector Subtraction Calculator

Published on: February 8, 2026
Final Answer: Free | Full Steps: Pro

This Vector Subtraction Calculator subtracts one vector from another in three dimensions, and shows the working line by line. Subtraction works component by component, because each axis is independent of the others. The result is the vector that points from the tip of the second to the tip of the first, which is why it measures the gap between them. Following the same pattern every time keeps the order of subtraction from being reversed.

x y z A ⟨a₁, a₂, a₃⟩ B ⟨b₁, b₂, b₃⟩ A − B

Enter the components of \(\vec{A}\) and \(\vec{B}\).

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the components into the formula.
  4. Work out each component.

Formula: Vector Subtraction Formula

This formula subtracts one vector from another. Take each component of B away from the matching component of A.

\(\vec{A} - \vec{B} = \left\langle a_{1} - b_{1},\; a_{2} - b_{2},\; a_{3} - b_{3} \right\rangle\)

Useful Tips to Remember

Order matters, because \(\vec{A} - \vec{B}\) points the opposite way to \(\vec{B} - \vec{A}\). Subtracting a negative component means adding, so \(3 - (-2) = 5\). The difference points from the tip of B to the tip of A. Subtracting one point from another is exactly how a direction vector between two points is found.

Required knowledge

Where Is Vector Subtraction Used?

Vector subtraction finds the change or the gap between two vectors, which is why it is the starting point for distances, directions and lines in space. Subtracting two positions gives the displacement from one to the other, and subtracting two velocities gives the change in velocity used for acceleration. Games subtract positions to aim a character at a target, and computer vision subtracts feature vectors to measure how different two images are.

  • Finding the displacement between two positions
  • Working out the change in velocity for acceleration
  • Aiming a character or camera at a target
  • Building direction vectors for lines and planes
  • Measuring differences between feature vectors

Vector Subtraction Practice Problems

Example 1 works out \(\langle 4, 5, 6 \rangle - \langle 1, 2, 3 \rangle\), and Example 2 subtracts two vectors with fraction components. Subtract each pair of components in the right order, then compare. For two more free worked examples, check out the Vector Subtraction 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 4,\; 5,\; 6 \right\rangle,\; \vec{B} = \left\langle 1,\; 2,\; 3 \right\rangle\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the components into the formula.
  4. Work out each component.

Formula

Formula: Vector Subtraction Formula

This formula subtracts one vector from another. Take each component of B away from the matching component of A.

\(\vec{A} - \vec{B} = \left\langle a_{1} - b_{1},\; a_{2} - b_{2},\; a_{3} - b_{3} \right\rangle\)

Step 1

Step 1 - Set up the problem.

In this problem: We are subtracting \(\vec{B} = \left\langle 1,\; 2,\; 3 \right\rangle\) from \(\vec{A} = \left\langle 4,\; 5,\; 6 \right\rangle\).

\(\vec{A} = \left\langle 4,\; 5,\; 6 \right\rangle,\; \vec{B} = \left\langle 1,\; 2,\; 3 \right\rangle\)
x y z A ⟨4, 5, 6⟩ B ⟨1, 2, 3⟩ A − B

Step 2

Step 2 - Write the formula.

In this problem: Vectors are subtracted component by component: each component of B is taken away from the matching component of A.

\(\vec{A} - \vec{B} = \left\langle a_{1} - b_{1},\; a_{2} - b_{2},\; a_{3} - b_{3} \right\rangle\)

Step 3

Step 3 - Substitute the components into the formula.

In this problem: Replacing each component in \(\vec{A} - \vec{B} = \left\langle a_{1} - b_{1},\; a_{2} - b_{2},\; a_{3} - b_{3} \right\rangle\) gives \(\vec{A} - \vec{B} = \left\langle 4 - 1,\; 5 - 2,\; 6 - 3 \right\rangle\).

\(\vec{A} - \vec{B} = \left\langle 4 - 1,\; 5 - 2,\; 6 - 3 \right\rangle\)

Step 4

Step 4 - Work out each component.

In this problem: Subtracting the matching components gives \(4 - 1 = 3\), \(5 - 2 = 3\) and \(6 - 3 = 3\).

\(\vec{A} - \vec{B} = \left\langle 4 - 1,\; 5 - 2,\; 6 - 3 \right\rangle = \left\langle 3,\; 3,\; 3 \right\rangle\)

Final Answer

\(\vec{A} - \vec{B} = \left\langle 3,\; 3,\; 3 \right\rangle\)
See Example 2 Hide Example 2

Problem

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

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Substitute the components into the formula.
  4. Work out each component.

Formula

Formula: Vector Subtraction Formula

This formula subtracts one vector from another. Take each component of B away from the matching component of A.

\(\vec{A} - \vec{B} = \left\langle a_{1} - b_{1},\; a_{2} - b_{2},\; a_{3} - b_{3} \right\rangle\)

Step 1

Step 1 - Set up the problem.

In this problem: We are subtracting \(\vec{B} = \left\langle \frac{1}{2},\; 0,\; 0 \right\rangle\) from \(\vec{A} = \left\langle \frac{5}{2},\; 0,\; 0 \right\rangle\).

\(\vec{A} = \left\langle \frac{5}{2},\; 0,\; 0 \right\rangle,\; \vec{B} = \left\langle \frac{1}{2},\; 0,\; 0 \right\rangle\)
x y z A ⟨5/2, 0, 0⟩ B ⟨1/2, 0, 0⟩ A − B

Step 2

Step 2 - Write the formula.

In this problem: Vectors are subtracted component by component: each component of B is taken away from the matching component of A.

\(\vec{A} - \vec{B} = \left\langle a_{1} - b_{1},\; a_{2} - b_{2},\; a_{3} - b_{3} \right\rangle\)

Step 3

Step 3 - Substitute the components into the formula.

In this problem: Replacing each component in \(\vec{A} - \vec{B} = \left\langle a_{1} - b_{1},\; a_{2} - b_{2},\; a_{3} - b_{3} \right\rangle\) gives \(\vec{A} - \vec{B} = \left\langle \frac{5}{2} - \frac{1}{2},\; 0 - 0,\; 0 - 0 \right\rangle\).

\(\vec{A} - \vec{B} = \left\langle \frac{5}{2} - \frac{1}{2},\; 0 - 0,\; 0 - 0 \right\rangle\)

Step 4

Step 4 - Work out each component.

In this problem: Subtracting the matching components gives \(\frac{5}{2} - \frac{1}{2} = 2\), \(0 - 0 = 0\) and \(0 - 0 = 0\).

\(\vec{A} - \vec{B} = \left\langle \frac{5}{2} - \frac{1}{2},\; 0 - 0,\; 0 - 0 \right\rangle = \left\langle 2,\; 0,\; 0 \right\rangle\)

Final Answer

\(\vec{A} - \vec{B} = \left\langle 2,\; 0,\; 0 \right\rangle\)

Notes and Practice Mode

x y z A ⟨a₁, a₂, a₃⟩ B ⟨b₁, b₂, b₃⟩ A − B

Example Problems

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