Matrix Calculator

English English

Matrix Multiplication Guide

How to Multiply Matrices Step by Step

Learn the matrix multiplication rule in a clean, beginner-friendly way. This page shows when multiplication is allowed, how row-by-column multiplication works, and where to go next for 2x2, 3x3, and larger examples.

Matrix Multiplication Rule

Two matrices can be multiplied only when they are compatible. That means the number of columns in the first matrix must be equal to the number of rows in the second matrix.

Once that rule is satisfied, each number in the result comes from taking one row from the first matrix and one column from the second matrix, multiplying the matching entries, and adding those products together.

Beginner shortcut: matrix multiplication is row by column, not element by element.

Matrix A (row)

12
34
×

Matrix B (column)

56
78

Result

19

(1×5) + (2×7) = 19

Quick Example

Here is a simple 2x2 example:

Matrix A

12
34
×

Matrix B

56
78

Step 1: First row × first column

A

12
34
×

B

56
78

(1×5) + (2×7) = 19

Step 2: First row × second column

A

12
34
×

B

56
78

(1×6) + (2×8) = 22

Step 3: Second row × first column

A

12
34
×

B

56
78

(3×5) + (4×7) = 43

Step 4: Second row × second column

A

12
34
×

B

56
78

(3×6) + (4×8) = 50

So the result of A × B is:

AB

1922
4350

Want to practice more? Try the 2x2 matrix multiplication tool.

Choose Your Learning Path

How to Multiply 2x2 Matrices

Start with the most common beginner case. Learn the pattern, see a clear worked example, and build confidence with the basics.

Explore 2x2 Matrix Multiplication

How to Multiply 3x3 Matrices

Move to a larger example with more row-by-column steps. This is the best next step once the 2x2 method feels natural.

Explore 3x3 Matrix Multiplication

Use a Matrix Multiplication Calculator

After you understand the rule, a calculator is the fastest way to multiply larger matrices or check your work.

Use the main matrix multiplication calculator when you want quick results, larger input sizes, and a reliable way to verify each answer.

Common Mistakes

  • Trying to multiply matrices with incompatible dimensions
  • Confusing matrix multiplication with element-wise multiplication
  • Mixing up row order and column order when computing an entry

Frequently Asked Questions

What is the rule for matrix multiplication?

The number of columns in the first matrix must equal the number of rows in the second matrix. Each result entry comes from row-by-column multiplication.

When can you multiply matrices?

You can multiply matrices when the inner dimensions match. For example, a 2x3 matrix can multiply a 3x4 matrix.

Why is matrix multiplication not commutative?

Matrix multiplication is not commutative because changing the order changes the row and column pairings. That is why AB and BA usually give different results.

Can I use a calculator for larger matrices?

Yes. A matrix multiplication calculator is a convenient way to solve larger problems quickly and to check your work.

Learn matrix multiplication more easily in just 2 minutes with this free game.

Matrix Multiplication Game

Solve your matrix instantly with our free calculator.

Open Matrix Calculator →