Matrix Addition Notes

Published on: September 29, 2026

These Matrix Addition Notes explain how to add two matrices, with the working shown line by line. Two matrices can only be added when they have the same number of rows and columns, because every entry needs a partner sitting in the same position. Each pair is added on its own and the total goes straight back into that position, so the answer is the same size as the two it came from. Following the same pattern every time makes matrix addition easy to check and repeat.

Step-by-step method

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

Formula: Matrix Addition Formula

This formula adds two matrices of the same size. Add the entries that sit in the same row and column.

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

Useful Tips to Remember

Only matrices of the same size can be added, so check the rows and columns first. Each answer entry comes from one pair, so entries never mix between positions. The order does not matter, because \(A + B = B + A\). Watch the signs when an entry is negative, since adding a negative is the same as subtracting.

Required knowledge

Where Is Matrix Addition Used?

Matrix addition combines two tables of numbers position by position, which is how data organised in rows and columns is totalled. Shops add monthly sales matrices to get a quarterly total for each product and store. In image editing, every pixel value is stored in a matrix, so blending or brightening images adds matrices. Physics and engineering add matrices of forces or stresses, and in machine learning every training step adds a matrix of small changes to the weights.

  • Totalling sales tables across months or stores
  • Blending and brightening images pixel by pixel
  • Combining stress and force matrices in engineering
  • Updating weights in machine learning
  • Adding cost or score tables in spreadsheets

Matrix Addition Practice Problems

Example 1 adds two \(2 \times 2\) matrices with negative entries, and Example 2 adds two \(2 \times 3\) matrices. Examples 3 and 4 give you two more problems of the same kind to try. Add each pair of matching entries yourself, 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. Add each pair.

Formula

Formula: Matrix Addition Formula

This formula adds two matrices of the same size. Add the entries that sit in the same row and column.

\((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 added one position at a time, so the entry in row i and column j of the answer is the sum of the two entries in that 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 - Add each pair.

In this problem: Adding each pair gives \(12 + 5 = 17\), \(-3 + 18 = 15\), \(40 + \left(-9\right) = 31\) and \(7 + 2 = 9\).

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

Final Answer

\(A + B = \begin{bmatrix} 17 & 15 \\ 31 & 9 \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. Add each pair.

Formula

Formula: Matrix Addition Formula

This formula adds two matrices of the same size. Add the entries that sit in the same row and column.

\((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 added one position at a time, so the entry in row i and column j of the answer is the sum of the two entries in that 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 - Add each pair.

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

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

Final Answer

\(A + B = \begin{bmatrix} 8 & 10 & 12 \\ 5 & 5 & 8 \end{bmatrix}\)
See Example 3 Hide Example 3

Problem

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

Approach

Step-by-step method

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

Formula

Formula: Matrix Addition Formula

This formula adds two matrices of the same size. Add the entries that sit in the same row and column.

\((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} 3 & 8 \\ -2 & 5 \end{bmatrix},\; B = \begin{bmatrix} 6 & -4 \\ 7 & 1 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: Matrices of the same size are added one position at a time, so the entry in row i and column j of the answer is the sum of the two entries in that 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} 3 + 6 & 8 + \left(-4\right) \\ -2 + 7 & 5 + 1 \end{bmatrix}\).

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

Step 4

Step 4 - Add each pair.

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

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

Final Answer

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

Problem

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

Approach

Step-by-step method

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

Formula

Formula: Matrix Addition Formula

This formula adds two matrices of the same size. Add the entries that sit in the same row and column.

\((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} 2 & 0 & 5 \\ -1 & 3 & 4 \end{bmatrix},\; B = \begin{bmatrix} 4 & 6 & -2 \\ 3 & 1 & 0 \end{bmatrix}\)

Step 2

Step 2 - Write the formula.

In this problem: Matrices of the same size are added one position at a time, so the entry in row i and column j of the answer is the sum of the two entries in that 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} 2 + 4 & 0 + 6 & 5 + \left(-2\right) \\ -1 + 3 & 3 + 1 & 4 + 0 \end{bmatrix}\).

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

Step 4

Step 4 - Add each pair.

In this problem: Adding each pair gives \(2 + 4 = 6\), \(0 + 6 = 6\), \(5 + \left(-2\right) = 3\), \(-1 + 3 = 2\), \(3 + 1 = 4\) and \(4 + 0 = 4\).

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

Final Answer

\(A + B = \begin{bmatrix} 6 & 6 & 3 \\ 2 & 4 & 4 \end{bmatrix}\)

Calculator and Practice Mode