Matrix Calculator With Steps
Perform common matrix operations and follow the calculation steps. Add, subtract, or multiply matrices, transpose a matrix, calculate a determinant, or find an inverse. Enter one matrix row per line.
Enter your matrices
Separate entries with spaces or commas and rows with new lines. Each matrix can contain up to 8 rows and 8 columns.
How to use this matrix calculator
- Select the operation you want to perform.
- Enter Matrix A, using one row per line.
- For addition, subtraction, or multiplication, enter Matrix B as well.
- Click Calculate with steps.
- Review the result and the explanation below the form.
Example: matrix multiplication
For these matrices:
B = [5 6; 7 8]
The product is:
The calculator expands each output entry into the corresponding row-by-column products.
Frequently asked questions
Can I add matrices of different sizes?
No. Matrix addition and subtraction require the matrices to have exactly the same number of rows and columns.
When is matrix multiplication possible?
The number of columns in Matrix A must equal the number of rows in Matrix B. The result has the same number of rows as A and the same number of columns as B.
Which matrices have an inverse?
A matrix must be square and nonsingular to have an inverse. A singular matrix has determinant zero and no inverse.
How is the determinant calculated?
This calculator uses Gaussian elimination with row pivoting. The product of the upper-triangular diagonal entries is adjusted for any row swaps to obtain the determinant.
Are the steps shown for every operation?
Yes. The calculator explains the entry-by-entry calculations for addition, subtraction, and multiplication, and the main row operations for determinant and inverse calculations. Transpose explains how rows and columns are exchanged.