Matrix Multiplication Calculator
Multiply two compatible matrices.
Best for: Use it in graphics, machine learning, physics and solving systems.
Input
How it's calculated & sources
Free & no sign-up · runs entirely in your browser. Results are estimates for general information, not professional advice — verify important decisions with a qualified expert. Last reviewed June 2026.
How it works
(AB)ᵢⱼ = Σₖ Aᵢₖ × Bₖⱼ. Inner dimensions must match: A is m×n, B is n×p.
Example
[[1,2],[3,4]] × [[5,6],[7,8]] = [[19,22],[43,50]]
Frequently asked questions
Why is order important?+
Matrix multiplication is not commutative: AB ≠ BA in general.
Continue your journey
Where people usually head next.