How to Multiply 2 2×2 Matrices Step by Step

To multiply two 2×2 matrices, you take each row of the first matrix and combine it with each column of the second matrix using a “multiply then add” pattern. The result is another 2×2 matrix with four entries, each calculated from a pair of multiplications and one addition.

The General Formula

Say you have two matrices, A and B:

A = [a, b] [c, d] and B = [e, f] [g, h]

The product AB gives you a new 2×2 matrix where each cell is calculated like this:

  • Top-left: ae + bg
  • Top-right: af + bh
  • Bottom-left: ce + dg
  • Bottom-right: cf + dh

The pattern: for any cell in the result, you multiply across the corresponding row of the first matrix and down the corresponding column of the second matrix, then add those products together. This “row times column” pattern is the core mechanic of all matrix multiplication, not just 2×2.

A Worked Example

Let’s multiply these two matrices step by step:

A = [2, 4] [5, 3] and B = [3, 6] [-1, 9]

Top-left cell (row 1 of A, column 1 of B): (2 × 3) + (4 × -1) = 6 + (-4) = 2

Top-right cell (row 1 of A, column 2 of B): (2 × 6) + (4 × 9) = 12 + 36 = 48

Bottom-left cell (row 2 of A, column 1 of B): (5 × 3) + (3 × -1) = 15 + (-3) = 12

Bottom-right cell (row 2 of A, column 2 of B): (5 × 6) + (3 × 9) = 30 + 27 = 57

So the result is: AB = [2, 48] [12, 57]

Each cell required exactly two multiplications and one addition. For a 2×2 matrix, that means 8 multiplications and 4 additions total.

Why Order Matters

Matrix multiplication is not commutative. That means AB and BA usually give different results, even when both matrices are the same size. Here’s a quick proof by example:

A = [1, 2] [3, 4] and B = [0, 1] [1, 0]

AB = [2, 1] [4, 3]

BA = [3, 4] [1, 2]

Completely different answers. So when someone asks you to multiply matrix A by matrix B, the order matters. A times B means A is on the left and B is on the right. Swapping them changes the result.

The Most Common Mistake

Beginners often multiply the matching positions of each matrix together, cell by cell. If A = [1, 2] [3, 4] and B = [5, 6] [7, 8], a cell-by-cell approach would give [1×5, 2×6] [3×7, 4×8] = [5, 12] [21, 32]. That’s wrong for matrix multiplication. It’s a different operation entirely, sometimes called element-wise multiplication or the Hadamard product.

The correct result uses the row-by-column method. For the same matrices, the top-left cell would be (1×5) + (2×7) = 19, not just 1×5 = 5. If you’re getting results that look too simple, you’re probably multiplying element by element instead of using the dot product pattern.

The Identity Matrix Shortcut

The 2×2 identity matrix is [1, 0] [0, 1]. It works like the number 1 in regular arithmetic: multiply any 2×2 matrix by the identity matrix and you get the original matrix back. This holds true regardless of order, making the identity matrix one of the rare cases where AB does equal BA.

This is useful as a sanity check. If you’re practicing and want to verify your technique, multiply any matrix by the identity matrix. If you don’t get the original matrix back, something went wrong in your process.

When Matrices Can Be Multiplied

Two 2×2 matrices can always be multiplied together because their dimensions are compatible. The general rule is that the number of columns in the first matrix must equal the number of rows in the second matrix. A 2×2 matrix has 2 columns, and another 2×2 matrix has 2 rows, so the inner dimensions match.

The result always has the same number of rows as the first matrix and the same number of columns as the second. Since both are 2×2, the result is also 2×2. If you were multiplying a 2×2 by a 2×3, the result would be 2×3. A 3×2 times a 2×2 gives a 3×2.

Where This Shows Up in Practice

Multiplying 2×2 matrices isn’t just a textbook exercise. In computer graphics, rotating a point on a 2D screen uses a specific 2×2 rotation matrix. To rotate a point (x, y) counterclockwise by some angle, you multiply a rotation matrix by the point’s coordinates. The rotation matrix has cosines and sines of the angle arranged in a 2×2 grid, and the multiplication produces the new coordinates after rotation. Every time you see a shape spin on screen in a game or animation, 2×2 matrix multiplication is doing that work behind the scenes.

Scaling, reflection, and shearing in 2D all work the same way. Each transformation has its own 2×2 matrix, and applying multiple transformations in sequence means multiplying those matrices together. The order you multiply them controls the order the transformations happen, which is another reason the non-commutative property matters in practice.