Matrix Multiplication Calculator
Multiply two matrices and see every dot product spelled out, in exact fractions - updating live as you type.
Matrix A dimension
Matrix B dimension
Matrix A
Matrix B
Your input
Multiply by .
Solution
Answer
The product matrix is .
Runs entirely on your device - nothing is ever uploaded.
More tools
- RREF Calculator Reduce a matrix to RREF and solve systems, one elimination step at a time. Get started
- Determinant Calculator Determinant of a square matrix, from 1×1 through 6×6. Get started
- Inverse Matrix Calculator Invert a square matrix and verify it multiplies back to I. Get started
- Eigenvalue Calculator Find eigenvalues and see the characteristic polynomial for a matrix. Get started
- Eigenvector Calculator Find an eigenvector basis and verify Av = λv with exact fractions. Get started
- Dot Product Calculator Dot two vectors with every product summed, plus magnitudes and the angle. Get started
- Derivative Calculator Differentiate with steps, up to the second derivative. Get started
- Integral Calculator Antiderivatives with the technique behind every step. Get started
How to use the matrix multiplication calculator
- Set the dimensions - A's columns and B's rows are linked, so the pair is always multipliable.
- Type a number (decimals and fractions like 1/5 both work) into every cell of both grids.
- The solution writes itself: each element Cij appears as its dot product - row i of A dotted into column j of B - with the running product matrix alongside.
- Read the final product in exact fractions, or copy it.
No calculate button - solutions are always on, updating the moment you type.
Why order matters
Matrix multiplication is not commutative: AB rarely equals BA, and the shapes must line up - columns of A against rows of B. That order-sensitivity is the whole point in graphics, where rotate-then-move differs from move-then-rotate, and in neural networks, where each layer is a matrix multiply in a fixed sequence. Dimension mismatch is the classic error; this calculator flags it before any arithmetic.