About the Matrix Calculator
This Matrix Calculator runs entirely in your browser. You type matrices and numbers; nothing is uploaded to a server. You can add, subtract, multiply, transpose, take determinants, invert matrices, compute powers, get RREF, rank and trace. The tool works with matrices up to 10 x 10. It uses exact rational arithmetic for elimination and determinant work so fractions stay as fractions. You also get a decimal view when fractions appear. Results update instantly as you type; there is no calculate button. You can copy the result or share a link that reopens with your numbers. This makes the tool good for homework checks, class demos and quick calculations on desktop or mobile.
How to use it
- 1Choose an operation from the Operation menu.
- 2Type Matrix A and, if needed, Matrix B or number k.
- 3Set the power or scalar when the operation needs it.
- 4Copy the result or share the link that reopens with your numbers.
Worked example
Inputs: Operation = A x B Matrix A = [[1,2],[3,4]] Matrix B = [[2,0],[1,2]] Result: [[4,4],[10,8]] As decimals: [[4.0,4.0],[10.0,8.0]] Size of the result: 2 x 2 Also: result updates instantly while you type.
The formula
Matrices are added and subtracted entry by entry, so both must be the same sizeIn A x B, the entry in row i and column j is the sum of row i of A times column j of B, so A needs as many columns as B has rowsThe transpose swaps rows and columnsThe determinant, inverse, rank and RREF come from Gaussian elimination with exact fractions, so 1/3 stays 1/3 instead of 0.333Source: FreeToolr - Matrix CalculatorMIT linear algebra notes (inverse and elimination). Last checked 5 November 2026.
What it is good for
- Runs in your browser; nothing is uploaded.
- Shows exact rational results and a decimal view.
- Results update instantly as you type; no calculate button.
- Handles matrices up to 10 x 10 only.
- Provides only the listed operations and outputs (no eigen or SVD).
Questions people ask
Will the calculator keep fractions or convert to decimals?
It keeps exact fractions for determinant, inverse, RREF and rank by using Gaussian elimination with rational arithmetic. The tool also shows a decimal view when fractions appear.
What input format should I use for matrices?
Enter rows on separate lines. Separate entries with spaces or commas. Use a decimal point for decimals, for example 1.5 not 1,5.
Why does an inverse not appear for some matrices?
Only square matrices can be inverted. If the matrix is singular, its determinant is zero and no inverse exists. The tool will indicate the matrix is noninvertible.
How large of a matrix can I use?
You can use matrices up to 10 by 10. Larger matrices are not supported by this tool.
How is the determinant computed?
The tool uses Gaussian elimination with exact fractions for determinant work. That preserves exact values instead of returning floating point approximations.
Can I save or share my work?
Yes. You can copy the result and use the share link. The share link reopens the page with your numbers already filled in.
Help keep every tool free
FreeToolr stays free because people help it grow. Share a tool you like, tell us what to build next, or support us on Ko-fi.