Matrix Multiplication Calculator: Multiply A × B
By FindMySum · Last reviewed
A matrix multiplication calculator multiplies two matrices the way linear algebra defines it: each entry of the product is a row of the first matrix combined with a column of the second, by multiplying matching entries and adding. It is how you chain transformations in graphics, combine prices with quantities, or step a system forward in time, and it is easy to slip on by hand.
Worked example
Multiply A, with rows 1 2 3 and 4 5 6 (2×3, typed as 1 2 3; 4 5 6), by B, with rows 7 8, 9 10 and 11 12 (3×2, typed as 7 8; 9 10; 11 12). A has 3 columns and B has 3 rows, so the product exists and is 2×2.
- Row 1 of A with column 1 of B: 1 × 7 + 2 × 9 + 3 × 11 = 7 + 18 + 33 = 58.
- Row 1 with column 2: 1 × 8 + 2 × 10 + 3 × 12 = 8 + 20 + 36 = 64.
- Row 2 with column 1: 4 × 7 + 5 × 9 + 6 × 11 = 28 + 45 + 66 = 139.
- Row 2 with column 2: 4 × 8 + 5 × 10 + 6 × 12 = 32 + 50 + 72 = 154.
So A × B has rows 58 64 and 139 154.
A practical reading
Think of A as two shoppers' quantities of three products, and B as each product's price in two stores. Then A × B gives each shopper's total bill at each store: shopper 1 pays 58 at store 1 and 64 at store 2. Seeing what the rows and columns mean makes it clear why the inner sizes must match.
For determinants, inverses and row reduction, use the matrix calculator; for the determinant on its own, the determinant calculator.
Sources
This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.