Matrix Subtraction Notes

Published on: September 29, 2026

These Matrix Subtraction Notes explain how to take one matrix away from another of the same size, with every pair of entries shown as it is subtracted. In Algebra 2, matrices hold related numbers in rows and columns, and subtracting them shows how one table differs from another. Each entry of B is taken from the entry of A in the same position, and the order always matters. Following the same pattern every time keeps the signs right.

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Pair the entries in matching positions.
  4. Subtract each pair.

Formula: Matrix Subtraction Formula

This formula subtracts one matrix from another of the same size. Take each entry of B away from the entry of A in the same position.

\((A - B)_{ij} = a_{ij} - b_{ij}\)

Useful Tips to Remember

Order matters, because \(A - B\) and \(B - A\) have opposite signs in every entry. Subtracting a negative entry means adding, so \(7 - (-2) = 9\). Both matrices must be the same size. A quick check is that adding B back to the answer should give A again.

Required knowledge

Where Is Matrix Subtraction Used?

In Algebra 2, matrix subtraction is used to compare two tables of data, such as this year's and last year's prices, and see the change in every entry at once. It appears in word problems about inventory, budgets and scores. Outside the classroom, the same idea compares two images to find differences, and lets spreadsheets show the change between two ranges of cells.

  • Comparing sales or stock between two periods
  • Motion detection by subtracting video frames
  • Removing background noise from measurements
  • Finding prediction errors in machine learning
  • Tracking changes in spreadsheets and tables

Matrix Subtraction Practice Problems

Example 1 subtracts two \(2 \times 2\) matrices, including a negative entry in B, and Example 2 subtracts two \(2 \times 3\) matrices. Examples 3 and 4 give you two more problems of the same kind to try. Subtract each pair in the right order, then compare.

The worked examples below go through the same pattern from start to finish, so you can compare every step with your own working. Try each problem on paper first, then open the example and check your working one step at a time, so you can see exactly which step went wrong if your answer does not match. Use them to check your answers and to understand why each step works.

See Example 1 Hide Example 1

Problem

\(A = \begin{bmatrix} 12 & -3 \\ 40 & 7 \end{bmatrix},\; B = \begin{bmatrix} 5 & 18 \\ -9 & 2 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Pair the entries in matching positions.
  4. Subtract each pair.

Formula

Formula: Matrix Subtraction Formula

This formula subtracts one matrix from another of the same size. Take each entry of B away from the entry of A in the same position.

\((A - B)_{ij} = a_{ij} - b_{ij}\)

Step 1

Step 1 - Set up the problem.

In this problem: Matrix A and Matrix B are both \(2 \times 2\), so every entry of A has a partner in the same position of B.

\(A = \begin{bmatrix} 12 & -3 \\ 40 & 7 \end{bmatrix},\; B = \begin{bmatrix} 5 & 18 \\ -9 & 2 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: Matrices of the same size are subtracted one position at a time, so each entry of B is taken away from the entry of A in the same position.

\((A - B)_{ij} = a_{ij} - b_{ij}\)

Step 3

Step 3 - Pair the entries in matching positions.

In this problem: Writing each pair in its own position gives \(A - B = \begin{bmatrix} 12 - 5 & -3 - 18 \\ 40 - \left(-9\right) & 7 - 2 \end{bmatrix}\).

\(A - B = \begin{bmatrix} 12 - 5 & -3 - 18 \\ 40 - \left(-9\right) & 7 - 2 \end{bmatrix}\)

Step 4

Step 4 - Subtract each pair.

In this problem: Subtracting each pair gives \(12 - 5 = 7\), \(-3 - 18 = -21\), \(40 - \left(-9\right) = 49\) and \(7 - 2 = 5\).

\(A - B = \begin{bmatrix} 12 - 5 & -3 - 18 \\ 40 - \left(-9\right) & 7 - 2 \end{bmatrix} = \begin{bmatrix} 7 & -21 \\ 49 & 5 \end{bmatrix}\)

Final Answer

\(A - B = \begin{bmatrix} 7 & -21 \\ 49 & 5 \end{bmatrix}\)
See Example 2 Hide Example 2

Problem

\(A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix},\; B = \begin{bmatrix} 7 & 8 & 9 \\ 1 & 0 & 2 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Pair the entries in matching positions.
  4. Subtract each pair.

Formula

Formula: Matrix Subtraction Formula

This formula subtracts one matrix from another of the same size. Take each entry of B away from the entry of A in the same position.

\((A - B)_{ij} = a_{ij} - b_{ij}\)

Step 1

Step 1 - Set up the problem.

In this problem: Matrix A and Matrix B are both \(2 \times 3\), so every entry of A has a partner in the same position of B.

\(A = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix},\; B = \begin{bmatrix} 7 & 8 & 9 \\ 1 & 0 & 2 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: Matrices of the same size are subtracted one position at a time, so each entry of B is taken away from the entry of A in the same position.

\((A - B)_{ij} = a_{ij} - b_{ij}\)

Step 3

Step 3 - Pair the entries in matching positions.

In this problem: Writing each pair in its own position gives \(A - B = \begin{bmatrix} 1 - 7 & 2 - 8 & 3 - 9 \\ 4 - 1 & 5 - 0 & 6 - 2 \end{bmatrix}\).

\(A - B = \begin{bmatrix} 1 - 7 & 2 - 8 & 3 - 9 \\ 4 - 1 & 5 - 0 & 6 - 2 \end{bmatrix}\)

Step 4

Step 4 - Subtract each pair.

In this problem: Subtracting each pair gives \(1 - 7 = -6\), \(2 - 8 = -6\), \(3 - 9 = -6\), \(4 - 1 = 3\), \(5 - 0 = 5\) and \(6 - 2 = 4\).

\(A - B = \begin{bmatrix} 1 - 7 & 2 - 8 & 3 - 9 \\ 4 - 1 & 5 - 0 & 6 - 2 \end{bmatrix} = \begin{bmatrix} -6 & -6 & -6 \\ 3 & 5 & 4 \end{bmatrix}\)

Final Answer

\(A - B = \begin{bmatrix} -6 & -6 & -6 \\ 3 & 5 & 4 \end{bmatrix}\)
See Example 3 Hide Example 3

Problem

\(A = \begin{bmatrix} 9 & 4 \\ 6 & -3 \end{bmatrix},\; B = \begin{bmatrix} 2 & 7 \\ 1 & 5 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Pair the entries in matching positions.
  4. Subtract each pair.

Formula

Formula: Matrix Subtraction Formula

This formula subtracts one matrix from another of the same size. Take each entry of B away from the entry of A in the same position.

\((A - B)_{ij} = a_{ij} - b_{ij}\)

Step 1

Step 1 - Set up the problem.

In this problem: Matrix A and Matrix B are both \(2 \times 2\), so every entry of A has a partner in the same position of B.

\(A = \begin{bmatrix} 9 & 4 \\ 6 & -3 \end{bmatrix},\; B = \begin{bmatrix} 2 & 7 \\ 1 & 5 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: Matrices of the same size are subtracted one position at a time, so each entry of B is taken away from the entry of A in the same position.

\((A - B)_{ij} = a_{ij} - b_{ij}\)

Step 3

Step 3 - Pair the entries in matching positions.

In this problem: Writing each pair in its own position gives \(A - B = \begin{bmatrix} 9 - 2 & 4 - 7 \\ 6 - 1 & -3 - 5 \end{bmatrix}\).

\(A - B = \begin{bmatrix} 9 - 2 & 4 - 7 \\ 6 - 1 & -3 - 5 \end{bmatrix}\)

Step 4

Step 4 - Subtract each pair.

In this problem: Subtracting each pair gives \(9 - 2 = 7\), \(4 - 7 = -3\), \(6 - 1 = 5\) and \(-3 - 5 = -8\).

\(A - B = \begin{bmatrix} 9 - 2 & 4 - 7 \\ 6 - 1 & -3 - 5 \end{bmatrix} = \begin{bmatrix} 7 & -3 \\ 5 & -8 \end{bmatrix}\)

Final Answer

\(A - B = \begin{bmatrix} 7 & -3 \\ 5 & -8 \end{bmatrix}\)
See Example 4 Hide Example 4

Problem

\(A = \begin{bmatrix} 8 & 3 & 6 \\ 5 & 0 & 7 \end{bmatrix},\; B = \begin{bmatrix} 2 & 5 & 1 \\ 4 & 2 & 3 \end{bmatrix}\)

Approach

Step-by-step method

  1. Set up the problem.
  2. Write the formula.
  3. Pair the entries in matching positions.
  4. Subtract each pair.

Formula

Formula: Matrix Subtraction Formula

This formula subtracts one matrix from another of the same size. Take each entry of B away from the entry of A in the same position.

\((A - B)_{ij} = a_{ij} - b_{ij}\)

Step 1

Step 1 - Set up the problem.

In this problem: Matrix A and Matrix B are both \(2 \times 3\), so every entry of A has a partner in the same position of B.

\(A = \begin{bmatrix} 8 & 3 & 6 \\ 5 & 0 & 7 \end{bmatrix},\; B = \begin{bmatrix} 2 & 5 & 1 \\ 4 & 2 & 3 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: Matrices of the same size are subtracted one position at a time, so each entry of B is taken away from the entry of A in the same position.

\((A - B)_{ij} = a_{ij} - b_{ij}\)

Step 3

Step 3 - Pair the entries in matching positions.

In this problem: Writing each pair in its own position gives \(A - B = \begin{bmatrix} 8 - 2 & 3 - 5 & 6 - 1 \\ 5 - 4 & 0 - 2 & 7 - 3 \end{bmatrix}\).

\(A - B = \begin{bmatrix} 8 - 2 & 3 - 5 & 6 - 1 \\ 5 - 4 & 0 - 2 & 7 - 3 \end{bmatrix}\)

Step 4

Step 4 - Subtract each pair.

In this problem: Subtracting each pair gives \(8 - 2 = 6\), \(3 - 5 = -2\), \(6 - 1 = 5\), \(5 - 4 = 1\), \(0 - 2 = -2\) and \(7 - 3 = 4\).

\(A - B = \begin{bmatrix} 8 - 2 & 3 - 5 & 6 - 1 \\ 5 - 4 & 0 - 2 & 7 - 3 \end{bmatrix} = \begin{bmatrix} 6 & -2 & 5 \\ 1 & -2 & 4 \end{bmatrix}\)

Final Answer

\(A - B = \begin{bmatrix} 6 & -2 & 5 \\ 1 & -2 & 4 \end{bmatrix}\)

Calculator and Practice Mode