Matrix Addition Calculator
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
- Set up the problem.
- Write the formula.
- Pair the entries in matching positions.
- 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.
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
- How to add numbers, including negatives, covered in the Addition of Small Numbers Calculator.
- How to add fractions, covered in the Addition of Fractions Calculator.
- How the opposite operation works, covered in the Matrix Subtraction Calculator.
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
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Pair the entries in matching positions.
- 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.
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.
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.
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}\).
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\).
Final Answer
See Example 2 Hide Example 2
Problem
Approach
Step-by-step method
- Set up the problem.
- Write the formula.
- Pair the entries in matching positions.
- 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.
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.
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.
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}\).
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\).
Final Answer
Notes and Practice Mode
Want to understand the method more deeply? The Matrix Addition Notes go through the same pattern with extra worked examples and fuller explanations of the ideas behind each step, so you can see why every step works and not just what to do. When you are ready to test yourself, Matrix Addition Practice gives you a new problem at Easy, Medium or Hard level, checks your answer and shows the full working whenever you get one wrong. Practice Mode for this calculator is available on the Pro plan.
Empty boxes count as 0. Entries can be whole numbers, decimals or fractions like 1/2.
Login and upgrade to Pro to unlock the full step solution.
Example Problems
Click one to load it into the box and solve it.