Matrix multiplication calculator with steps
Enter two matrices and get the product with each row-by-column sum shown in full — the arithmetic you are expected to reproduce in an exam.
The rule, in one line
Entry (i, j) of the product AB is the sum of the products of row i of A and column j of B:
(AB)ᵢⱼ = aᵢ₁b₁ⱼ + aᵢ₂b₂ⱼ + … + aᵢₙbₙⱼ
Every entry is its own dot product. That is the whole operation. Nothing is added across the diagonal, no sign flips, no overlap with determinants — if you remember one cell at a time, you cannot go far wrong.
The size rule before any arithmetic
An m × n matrix times an n × p matrix gives an m × p matrix. The two inner numbers must match, and the outer two are the shape of the answer. Write the shapes down first: (2×3)(3×4) is legal and produces 2×4; (2×3)(2×4) is undefined, and no amount of rearranging fixes it.
Also worth knowing before you start: AB and BA are usually not equal, and both may not even exist. Multiplication is not commutative for matrices.
A worked example, every sum shown
Multiply
A = ⎡ 2 3 ⎤ B = ⎡ 5 6 ⎤
⎣ 4 1 ⎦ ⎣ 7 8 ⎦Both are 2×2, so the product is 2×2. Take row 1 of A against each column of B, then row 2.
(1,1) 2·5 + 3·7 = 10 + 21 = 31
(1,2) 2·6 + 3·8 = 12 + 24 = 36
(2,1) 4·5 + 1·7 = 20 + 7 = 27
(2,2) 4·6 + 1·8 = 24 + 8 = 32
AB = ⎡ 31 36 ⎤
⎣ 27 32 ⎦Check one entry by hand against the rule: (2,1) is row 2 of A, which is [4, 1], times column 1 of B, which is [5, 7]. Four times five plus one times seven — twenty-seven.
Rectangular matrices
A 2×3 times a 3×2 gives a 2×2, and each entry is a three-term sum rather than a two-term one. The method does not change: the number of terms is the number of columns on the left, which equals the number of rows on the right. That is exactly what the size rule was telling you.
Where people lose marks
- Multiplying element by element. That is the Hadamard product, a different operation.
[[1,2],[3,4]]element-wise with itself is[[1,4],[9,16]]; the matrix product is[[7,10],[15,22]]. - Multiplying in the wrong order. Row always comes from the left matrix and column from the right one. Swapping them computes
BA, which is a different matrix. - Skipping the size check. A dimension mismatch is not a hard question, it is an undefined question, and the working should say so rather than produce a number.
What the calculator adds
It performs the multiplication on the device, up to 10×10, and prints the sum for every cell in order. That is the part a bare answer key leaves out — the answer tells you whether you were right, the working tells you where you went wrong.
Doing it on something else
On a graphing calculator the menu is hidden under a key that does not say “matrix” — the TI-84 guide has the exact keystrokes and the four errors that cause most wrong answers. If you already have Desmos open and only need the product, the Desmos comparison says what it will and will not show you.
Questions
Does it show the steps, or only the answer?
Both. The product is shown as a matrix, and each entry is expanded into the sum that produced it.
Can it multiply non-square matrices?
Yes, wherever the dimensions allow it — an m×n matrix times an n×p matrix. If the inner dimensions do not match, it says so instead of guessing.
How big can the matrices be?
Up to 10 rows by 10 columns, on Android and in the browser.
Can I use expressions instead of typing the matrices?
Yes. Input like A + 2B or A·B is understood, which is faster than entering two matrices to then combine them.
