Matrix Calculator
Add, subtract and multiply matrices, and find the determinant, inverse, transpose, rank and square – up to 6×6, with fractions.
Calculator
Was this tool useful?
About this tool
About Matrix Calculator
A full matrix calculator with two editable grids. Choose the size of each matrix, type numbers or fractions, and press an operation button to see the result as a matrix.
How it works
A × B: each entry = row of A · column of B. Determinant and inverse use Gaussian elimination with partial pivoting. A⁻¹ exists only when det A ≠ 0.
Example
A = [[4, 7], [2, 6]] has det = 4×6 − 7×2 = 10 and inverse [[3/5, −7/10], [−1/5, 2/5]].
How to use this tool
- Set the size of matrices A and B (up to 6 × 6).
- Type the numbers (fractions like 1/3 are fine) or press Random.
- Press an operation: A+B, A×B, det A, A⁻¹, Aᵀ and more.
Frequently asked questions
Why can’t I multiply these matrices?
For A × B, the number of columns in A must equal the number of rows in B.
Why is there no inverse?
A matrix whose determinant is 0 (a singular matrix) has no inverse.
Do I need to sign up?
No. The calculator is free, works in your browser and nothing you type is stored.
Can I use the Matrix Calculator for homework?
Yes. The Matrix Calculator shows the answer and, where possible, the method, so you can check your own working. Teachers usually want to see the steps, so use it to learn the method rather than only copying the answer.