Matrix Calculator with Fractions
NEWAdd, subtract and multiply matrices up to 6×6, and find the determinant, inverse, transpose, rank, RREF or a power. Every step uses exact fractions, with an optional decimal view.
Runs 100% in your browser — your input is never uploaded or stored on our servers.
Type integers, decimals (1.5) or fractions (3/4, -2/5). Empty cells count as 0.
| 5 | 5 | 3/2 |
| 7 | 5 | 7/2 |
| 1 | 2 | 0 |
Size: 3 × 3
Entry (i, j) of A × B is row i of A times column j of B, summed. The columns of A must match the rows of B, and A × B is usually not equal to B × A.
Quick Examples
Typical inputs and the results this tool produces.
Overview
This matrix calculator works with two matrices, A and B, each from 1×1 up to 6×6. You can type whole numbers, decimals such as 0.25 or fractions such as 3/4 into the cells, pick an operation and read the result straight away.
Supported operations are addition, subtraction, multiplication, scalar multiples, transpose, determinant, inverse, rank, reduced row echelon form and whole-number powers from −20 to 20. All arithmetic runs on exact fractions, so 1/3 stays 1/3 instead of turning into 0.333333 and picking up rounding errors. When a matrix has no inverse, or the sizes do not fit the operation, the tool says why instead of showing a wrong number.
You can copy the result as tab-separated text that pastes straight into a spreadsheet, or load it back as matrix A for the next step. Nothing leaves your browser.
Why use this tool?
- Exact fractions, no rounding drift
- Ten operations on matrices up to 6×6
- Clear messages for singular or mismatched matrices
- Copy results as spreadsheet-ready text
- Runs in your browser, nothing is sent
Features
Fractions in, fractions out
Enter 3/4, −2/5, 1.5 or 7 in any cell; results are reduced fractions, or decimals if you prefer.
Determinant and inverse
Gaussian elimination for the determinant and Gauss-Jordan for the inverse, with a message when the matrix is singular.
Rank and RREF
Reduce any matrix to reduced row echelon form and read off its rank.
Products and powers
Multiply A × B when the inner sizes match, and raise a square matrix to a power from −20 to 20.
Chain operations
Swap A and B, or load a result back into A to keep going.
Copy as text
One row per line, values separated by tabs, ready for a spreadsheet or notes.
How to Use
Set the sizes
Choose the number of rows and columns for matrix A and matrix B.
Fill in the cells
Type integers, decimals or fractions. Empty cells count as 0.
Pick an operation
Choose sum, product, determinant, inverse, rank, RREF, power or another operation, and which matrix it applies to.
Read and copy
The result appears at once. Switch to decimals if needed, then copy it or use it as A.