CalcHub

Free calculator tools. Fast, simple, no sign up.

Matrix Multiplication Step by Step: 2x2 and 3x3 Rules and Formulas

Matrix multiplication combines two grids of numbers into a new grid. It looks strange at first, but it follows one rule: rows times columns.

Matrix multiplication combines two grids of numbers into a new grid. It looks strange at first, but it follows one rule: rows times columns.

How it works

To multiply two matrices, take a row from the first and a column from the second, multiply matching entries, and add. For [[1, 2], [3, 4]] times [[5, 6], [7, 8]], the top-left entry is 1 times 5 plus 2 times 7, which is 19. The top-right is 1 times 6 plus 2 times 8, which is 22. The bottom row gives 3 times 5 plus 4 times 7, which is 43, and 3 times 6 plus 4 times 8, which is 50. The answer is [[19, 22], [43, 50]]. The sizes must fit: the number of columns in the first matrix must equal the number of rows in the second.

Matrix multiplication is not commutative: A times B usually differs from B times A. Order matters, and that is why it is used to describe sequences of transformations in graphics.

Worked example

Multiply [[2, 1], [0, 3]] by [[4, 0], [1, 2]]. Top-left: 2 times 4 plus 1 times 1 is 9. Top-right: 2 times 0 plus 1 times 2 is 2. Bottom-left: 0 times 4 plus 3 times 1 is 3. Bottom-right: 0 times 0 plus 3 times 2 is 6. The answer is [[9, 2], [3, 6]].

Common mistakes

The most common error is multiplying matching entries instead of rows by columns. Always take a full row and a full column.

Try it yourself

Multiply [[1, 0], [2, 1]] by [[5, 3], [0, 4]]. (Answer: [[5, 3], [10, 10]].)

Putting it together

The best way to make this stick is to use it three times: once while reading this guide, once tomorrow from memory, and once on a fresh problem. Each round takes a few minutes, and by the third the steps feel natural. If a step feels unclear, go back to the worked example and cover the answer while you redo it. Maths is a skill built from small correct repetitions, and this topic is a good place to practise that habit.

A question to ask yourself

What if the numbers change? The method stays the same, so try the practice question with different numbers and check that the steps still work. That is how you know you have learned the method rather than memorised one answer.