Step 1: First row × first column
A
B
(1×5) + (2×7) = 19
Matrix Multiplication Guide
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.
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.
Matrix A (row)
Matrix B (column)
Result
(1×5) + (2×7) = 19
Here is a simple 2x2 example:
Matrix A
Matrix B
A
B
(1×5) + (2×7) = 19
A
B
(1×6) + (2×8) = 22
A
B
(3×5) + (4×7) = 43
A
B
(3×6) + (4×8) = 50
So the result of A × B is:
AB
Want to practice more? Try the 2x2 matrix multiplication tool.
Start with the most common beginner case. Learn the pattern, see a clear worked example, and build confidence with the basics.
Explore 2x2 Matrix MultiplicationMove 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 MultiplicationAfter 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.
Continue with one of these related matrix multiplication pages:
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.
You can multiply matrices when the inner dimensions match. For example, a 2x3 matrix can multiply a 3x4 matrix.
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.
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.
Solve your matrix instantly with our free calculator.
Open Matrix Calculator →