Matrix Addition Calculator

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

This Matrix Addition Calculator adds two matrices of the same size and shows every pair of entries being combined. In Algebra 2, matrices are a tidy way to store sets of numbers, such as the coefficients of a system of equations or a table of prices, and adding them is the first operation to learn. Each entry of the answer is simply the sum of the two entries in the same position. Following the same pattern every time makes the result easy to check.

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?

In Algebra 2, matrix addition is used to combine tables of data, such as two price lists or two sets of test scores, into one. It also sets up the rules that later operations follow, like subtraction and scalar multiplication. Businesses use it to total inventories from different stores, and graphics programs use it to shift every point of a shape by the same amounts. Spreadsheets do exactly this when two ranges of cells are added together.

  • 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.