MatrixStep

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.

(A ± B)ᵢⱼ = aᵢⱼ ± bᵢⱼ

Let's work through two 2×2 matrices.

A =1234B =5678

A + B

c₁₁ = 1 + 5 = 6
c₁₂ = 2 + 6 = 8
c₂₁ = 3 + 7 = 10
c₂₂ = 4 + 8 = 12
A + B =681012

A − B

c₁₁ = 1 − 5 = −4
c₁₂ = 2 − 6 = −4
c₂₁ = 3 − 7 = −4
c₂₂ = 4 − 8 = −4
A − B =−4−4−4−4

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.

3A =36912

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.

2A =24682A − B =−3−2−10

Properties

Unlike multiplication, addition is commutative. In the example above, computing B + A gives the same matrix as A + B.

Common mistakes

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