Guides5 min
Matrix Addition, Subtraction and Scalar Multiplication: Rules and Examples
Matrix addition, subtraction and scalar multiplication work entry by entry, which makes them the easiest matrix operations. Even so, people lose marks on the size condition and on sign slips, so here are the rules and examples in one place.
Addition and subtraction
Two matrices can be added or subtracted only when they have the same size. The entry in row i, column j of the result is the sum or difference of the entries in row i, column j of the two matrices.
Let's work through two 2×2 matrices.
A + B
A − B
Matrices of different sizes have entries with no partner, so addition and subtraction are not defined. You cannot add a 2×3 matrix to a 2×2 matrix.
Scalar multiplication
Multiplying a matrix by a number k multiplies every entry by k. The whole matrix is scaled, not just the first entry.
Combining the operations
When scalar multiplication and subtraction appear together, as in 2A − B, do the scalar multiplication first and then subtract entry by entry.
Properties
- Commutative: A + B = B + A
- Associative: (A + B) + C = A + (B + C)
- Zero matrix: A + O = A, A − A = O
- Distributive: k(A + B) = kA + kB, (k + l)A = kA + lA
- Scalars combine: k(lA) = (kl)A
Unlike multiplication, addition is commutative. In the example above, computing B + A gives the same matrix as A + B.
Common mistakes
- Trying to add matrices of different sizes. Check the sizes first.
- Sign errors when subtracting negative entries. Use parentheses, as in 5 − (−2) = 7.
- Applying the scalar to only one row or only the first entry. Multiply every entry.
- Treating −A as "flip one sign". Every entry changes sign.
FAQ
Can I add a number to a matrix?
Adding a number to a matrix is not defined. If you mean something like A + 3, write it as adding 3I (three times the identity matrix).
What is the zero matrix?
A matrix whose entries are all 0. It behaves like the number 0 in addition, so A + O = A.
Do the same rules apply with decimals or fractions?
Yes. Add fractions with a common denominator and line up decimal places. The calculator works with exact fractions.
Related guides