Matrix Addition Calculator

Published on: September 7, 2025
Final Answer: Free | Full Steps: Pro

This Matrix Addition Calculator adds two matrices and shows the working 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. Add each pair of matching entries yourself, then compare. For two more free worked examples, check out the Matrix Addition 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

\(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}\)

Notes and Practice Mode

Size of A and B
2
×
2
Matrix A
+
Matrix B

Empty boxes count as 0. Entries can be whole numbers, decimals or fractions like 1/2.

Example Problems

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