Math · free · step by step
Matrix Calculator
Find the determinant, inverse, transpose, rank and reduced row echelon form, and multiply, add or raise matrices to a power, up to 8×8. Answers are exact fractions with every step shown.
Step by step
Worked examples
Matrix examples with answers
Formulas
2×2 determinant and inverse formulas
Row operations used for RREF and the inverse: swap two rows, multiply a row by a non-zero number, and add a multiple of one row to another. Adding a multiple of one row to another leaves the determinant unchanged, swapping two rows flips its sign, and multiplying a row by k multiplies the determinant by k.
More math
Other math tools
- Scientific CalculatorTrig, logs, powers, n!, nCr with history and exact answers
- Fraction CalculatorAdd, subtract, multiply and divide fractions with steps
- Statistics CalculatorMean, median, mode, standard deviation and regression
- Binary ConverterBinary, decimal, hex and octal with steps
- Complex Number Calculatora + bi, polar form, powers and roots with steps
- Equation SolverQuadratic, cubic and simultaneous equations with steps
- Graphing CalculatorPlot functions, circles, polar and parametric curves
- Derivative CalculatorDerivatives with every step shown
- Integral CalculatorIntegrals with steps, definite and indefinite
- Ohm’s Law CalculatorVolts, amps, ohms and watts
Questions
Matrix Calculator FAQ
Free, private and works offline: everything is worked out in your browser.
How do you find the determinant of a 2×2 matrix?
Multiply the main diagonal and subtract the product of the other diagonal: for [[a, b], [c, d]] the determinant is ad − bc. For [[3, 8], [4, 6]] that is 3·6 − 8·4 = −14.
How do you find the determinant of a 3×3 matrix?
Expand along the first row: det = a(ei − fh) − b(di − fg) + c(dh − eg), where each bracket is the 2×2 determinant left after crossing out that entry’s row and column. For [[6, 1, 1], [4, −2, 5], [2, 8, 7]] the determinant is −306. Larger matrices are row-reduced to a triangle and the diagonal multiplied.
How do you find the inverse of a matrix?
For a 2×2, swap a and d, change the signs of b and c, and divide by the determinant: the inverse of [[4, 7], [2, 6]] is [3/5 −7/10; −1/5 2/5]. For larger matrices, write [A | I] and row-reduce until the left half is the identity; the right half is A⁻¹. A matrix with determinant 0 (singular) has no inverse.
How do you multiply two matrices?
Each entry of A × B is a row of A times a column of B: multiply matching numbers and add. A must have as many columns as B has rows; a 2×3 times a 3×2 gives a 2×2. Order matters: A × B and B × A are usually different, and one may not exist at all.
What is reduced row echelon form (RREF) and rank?
RREF is what you get after row operations make every pivot 1 with zeros above and below it. It shows the solutions of a system of linear equations at a glance, and the number of non-zero rows is the rank, the number of independent rows.
How do I solve a system of equations with a matrix?
Enter the augmented matrix (the coefficients with the right-hand sides as the last column) and choose RREF; each pivot row then reads “variable = value”. The equation solver does the same from equations typed as text, with fractions.
Can I enter fractions and decimals?
Yes. Entries can be whole numbers, fractions like 3/4, mixed numbers like 1 1/2, or decimals, and answers stay exact fractions. You can also paste a matrix from a spreadsheet or as text like 1 2; 3 4 into any cell to fill the whole grid.
Is the matrix calculator free and private?
Yes. Everything is worked out in your browser with exact arithmetic, nothing is uploaded, and there is no sign-up. Copy the link to share a matrix and its answer.