Matrix Multiplication Calculator
Multiply two matrices with step-by-step explanation. Supports up to 5x5 matrices.
Was this calculator helpful?
How to use this tool?
This calculator multiplies two matrices. Follow these steps:
- Set dimensions – Adjust the rows and columns for Matrix A and Matrix B using the number inputs.
- Enter values – Fill in the matrix cells. Default values are 1 on the diagonal and 0 elsewhere.
- Check compatibility – The number of columns in Matrix A must equal the number of rows in Matrix B. An error will appear if not.
- Calculate – Click the Calculate button.
- View results – The product matrix (C = A × B) appears below, along with step-by-step calculations showing each element’s sum of products.
All inputs accept any real numbers (including decimals). Matrix dimensions are limited to 1–5.
Previous Results
| Result | Inputs | Date |
|---|
Frequently Asked Questions
The number of columns in the first matrix must equal the number of rows in the second matrix.
If matrix A is m×n and matrix B is n×p, the result matrix C is m×p.
Yes, as long as the inner dimensions match (columns of first = rows of second).