That is the whole mechanical rule, and it takes a minute to learn. The parts worth real attention are why the size condition exists, where signs go wrong in subtraction, how to solve equations with an unknown matrix, and quick ways to catch a mistake. Matrix multiplication is a completely different operation, and mixing the two up is the most common slip in this topic.
How do you add matrices?
Every entry in a matrix has an address: row , column . The entry at address in the sum is the sum of the two entries at that address.
There is a clean reason this is the rule and not just a convention. A matrix acts on vectors, so adding two matrices should mean adding what they do: . Feed in , which picks out the first column, and the first column of must be the first column of plus the first column of . Feeding in does the same for the second column. Entry-by-entry addition is the only definition that makes this work.
The entry in row 2, column 1 only ever meets the entry in row 2, column 1 of the other matrix. Where a number appears in the grid decides its partner.
The routine is short:
- Compare sizes, rows by columns, and stop if they differ.
- Add address by address, left to right across each row.
- Write each result straight into an answer grid of the same size.
Why can only matrices of the same size be added?

If one matrix has an entry at row 3, column 2 and the other has no such address, that entry has nothing to be added to. The sum is not zero, it is undefined. The same logic means the answer always has the size of the inputs: two matrices give a matrix.
The trap is counting entries instead of checking shape. A and a matrix both hold six numbers, yet they cannot be added, because rows and columns must match separately. The same goes for a row vector and a column vector with the same three numbers.
One exception is worth knowing so it does not confuse you later. Software such as NumPy sometimes “broadcasts” mismatched shapes and returns a result anyway. That is a programming convenience, not matrix addition as defined in algebra, and a textbook or exam will mark such a sum as undefined. If shapes are off by a transpose, check whether the problem really meant , where flipping rows and columns makes the sizes agree.
Quick check
Answer:
Adding matrices with negatives and fractions
Treat the matrix as a set of independent small additions. Nothing carries between entries, so a negative in one slot never affects another, and a common denominator is found per entry, not for the whole matrix.
Example 1. Add the matrices.
Top left: . Top right: . Bottom left: . Bottom right: .
Notice that the bottom left is and stays as a written , not a blank. A zero entry is a real entry. Decimals work the same way: line up the place values within each entry and ignore the rest of the grid.
How to subtract matrices without sign errors
Subtraction is addition of the opposite: , where is with every entry’s sign flipped. The costly mistake is flipping the sign of only the first entry, or forgetting that subtracting a negative adds. When an expression has several matrices and parentheses, handle it as with numbers: brackets first, then left to right, the same habits drilled in order of operations practice problems.
Example 2. Compute for and .
Flip the signs of to get , then add:
Direct subtraction agrees: , , , . Unlike addition, order matters here. is the negative of , entry for entry.
Try this: Compute , then reverse the order and subtract again. Every entry of the second answer should be the opposite of the first.
Adding matrices vs. multiplying matrices
Students often try to multiply matrices the way they add them, entry with entry. That produces a real operation (the Hadamard product), but it is not what “matrix multiplication” means in a course. True multiplication combines a whole row with a whole column, so its size rules and its results are different.
| Addition | Multiplication | |
|---|---|---|
| Size requirement | Identical sizes | Columns of first = rows of second |
| Size of result | Same as inputs | Rows of first by columns of second |
| Does order matter? | No | Yes |
| Entry rule | Same address | Row times column |
Each operation also has its own neutral element. Multiplication has the identity matrix, with ones on the diagonal. Addition has the zero matrix, covered below. Keep the two apart and a lot of confusion disappears.
The one place where multiplication does behave entry by entry is multiplying by a single number: multiplies every entry by . That scalar operation combines freely with addition, which is what makes the next section work.
How to solve a matrix equation like A + X = B
Solving for an unknown matrix uses the same idea as solving : do the same thing to both sides. Subtract from both sides to get . If is scaled, undo the addition first and divide by the scalar last.
Example 3. Solve .
Subtract the known matrix from both sides:
Divide every entry by :
Check by substituting back: , and adding gives . This method only handles addition and scalars. If is multiplied by a matrix, as in , subtracting will not help, and you need the inverse of a 2×2 matrix instead.
Quick check
Answer:
Properties of matrix addition and the zero matrix
Matrix addition inherits every friendly property of ordinary addition, because each entry is just a sum of two real numbers. So (commutative), (associative), and (distributive over a scalar). None of these needs a separate proof: check one address and the rest follow.
The zero matrix has in every position, so for any of matching size. Its opposite partner is , which gives .
Because only addition and scalars are involved, a list of matrices with a constant difference behaves like a number sequence. If , then the sum of the first terms is , exactly the arithmetic series formula applied to every entry at once. For instance, with and , the first three terms add to .
How to check a matrix sum quickly

Several totals must add the way the matrices do, and they take seconds to test.
- Size check: the answer must have the same rows and columns as the inputs.
- Total check: the sum of all entries of equals the sum of all entries of plus the sum of all entries of .
- Diagonal check: for square matrices, the diagonal total (the trace) also adds.
Apply the total check to Example 2. The entries of total , and those of total , so must total . The answer has , which matches. A match does not prove the answer is right, since two errors can cancel, but a mismatch proves a mistake.
Do not extend this to the determinant. It does not add: in general. Take . Each has determinant , but has determinant , not . The formula for the determinant of a 2×2 matrix multiplies entries, which is why sums break it. The same failure appears for the determinant of a 3×3 matrix, where the products are even longer.
Quick check
Answer: No, the total must be
Where adding matrices shows up in real life
The most direct use is combining tables of data. A store keeps a matrix of stock with products as rows and sizes as columns. Adding the matrices from two warehouses gives total inventory, and subtracting a sales matrix gives what remains. Because the sizes must match, the structure of the data is checked automatically.
In digital images, a grayscale picture is a matrix of brightness values. Adding a constant matrix brightens it, and subtracting one frame from another highlights what changed between two video frames. In physics and engineering, forces and stresses described by matrices are combined by superposition, which is matrix addition.
Even basic algebra fits the pattern. Store a line as the row from slope-intercept form, and adding two rows gives the line whose slope and intercept are the sums. Subtracting a point’s row from another’s gives the displacement between them, and the ratio of its entries is the slope formula in disguise.
Practice problems
0 of 5 solved
Answer:
Both matrices are , so the sum exists. Top row: and . Bottom row: and .Answer:
Both are . Subtract position by position: , then , then .Answer:
Top row: and . Bottom left: . Bottom right: .- Find and :
Answer:
Match positions: the top left gives and the bottom right gives . Subtract the second from the first: . Then . Check the other entries: and . - Solve for :
Answer:
Add the known matrix to both sides: . Divide every entry by to get . Check: .
Common questions
Can you add matrices of different sizes?
No. Adding matrices requires the same number of rows and the same number of columns, because every entry needs a partner in the same position. If the sizes differ, the sum is undefined, not zero.
How do you subtract matrices?
Subtract corresponding entries, taking the first matrix minus the second in every position. Watch the signs: subtracting a negative entry adds its absolute value.
Is matrix addition commutative?
Yes. because each entry is a sum of two real numbers, and real-number addition is commutative. Subtraction is not commutative, and neither is matrix multiplication.
Can you add a single number to a matrix?
Not in standard matrix algebra. A number is a scalar, and scalars multiply matrices rather than add to them. To add to every entry, add a matrix of the same size filled with threes.
How do you add three or more matrices?
Add them in any grouping, since . In practice, add the three entries at each position in one step, as long as all matrices share the same size.
What size is the sum of two matrices?
The sum has exactly the same size as the matrices you started with. Two matrices add to a matrix.