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.

Matrix A
Matrix B

Type whole numbers, fractions (3/4) or decimals. Enter moves to the next cell; paste rows like 1 2; 3 4 into any cell to fill the matrix.

det(A)

Step by step

Worked examples

Matrix examples with answers

TypeWorking
Determinant of a 2×2det[3846]=−14
Determinant of a 3×3det[6114−25287]=−306
Inverse of a 2×2[4726]−1=[35−710−1525]
Inverse of a 3×3[211132100]−1=[001−2133−1−5]
Multiply 2×3 by 3×2[123456]×[789101112]=[5864139154]
Row reduce (RREF)RREF[12−1321133−124]=[10020100001−1]
Transpose[123456]T=[142536]
Power[1110]10=[89555534]

Formulas

2×2 determinant and inverse formulas

det[abcd]=ad−bc[abcd]−1=1ad−bc[d−b−ca]

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

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.

Built and maintained by Zubaer Ahammed · Updated · Runs on your device; nothing you add is uploaded