Matrix Calculator
Add and multiply matrices and find the determinant, inverse, transpose, rank, trace, powers and the reduced row echelon form with row-operation steps, up to 6×6, in exact fractions for integer or fraction input.
The tool
How to use
- Choose the rows and columns of matrix A (and B when the operation needs two matrices) and type the values. An empty cell = 0.
- You can copy cells from Excel or Google Sheets and paste them into the first cell to fill the whole matrix.
- Press the operation you want: determinant, inverse, multiply… and the result appears below with the method.
- Copy the result, or send it to A or B to continue with another operation.
Privacy & how it works
Processes your data in the browser and stores nothing.
- Engine: lightweight in-page code, no external libraries.
- Works offline after you open it once.
- Needs a browser with BigInt support (all modern browsers since 2020).
Frequently asked questions
When is the result exact fractions and when decimals?
If every cell is an integer or a fraction such as 3/4, all arithmetic is done in fractions with no rounding. If even one cell is a decimal (like 0.5) the calculation switches to ordinary floating-point decimals (about 15 digits), 6 decimals are shown, and a matrix that is extremely close to singular (a difference below one part in a hundred billion) is treated as singular.
Why does it say the matrix has no inverse?
Only a square matrix with a non-zero determinant has an inverse. If the determinant is zero the matrix is “singular” and has no inverse.
What is RREF?
Reduced row echelon form: row operations (swap two rows, divide a row by a number, subtract a multiple of one row from another) are applied until the first non-zero entry of every row is 1 and the rest of its column is zero. The tool shows every step.
How do I paste a matrix from a spreadsheet?
Copy the cells in your spreadsheet, click the first (top-left) cell and paste. The matrix size changes to match what you pasted (up to 6×6).
What are the limits?
The largest size is 6×6 and the power is a whole number from −100 to 100. It does not compute eigenvalues, decompositions (LU, QR) or symbolic matrices.