Skip to content
LoveToCalc

Matrix calculator

Type a matrix and choose what to find. The working is shown one row operation at a time, in exact fractions.

Rows3
Columns3
The matrix

Each field takes a whole number, a fraction such as 2/3, or a decimal such as 0.25. The answer is exact.

Operation
MethodMethodCofactor expansion is shown for 2×2 and 3×3; larger matrices are reduced by rows.
Try:

Answer and working

Answer

det A = minus 1

Working

  1. Expand along the first row: each entry times the determinant left when its row and column are crossed out, with the signs + − +. the determinant with rows (1, 2, 3), (2, 5, 3) and (1, 0, 8) = ((1 times (the determinant with rows (5, 3) and (0, 8))) minus (2 times (the determinant with rows (2, 3) and (1, 8)))) plus (3 times (the determinant with rows (2, 5) and (1, 0))) = ((1 times 40) minus (2 times 13)) plus (3 times (minus 5)) = minus 1

How to use it

Exact fractions, and steps in textbook order

Every entry is turned into a fraction and stays one: 0.1 is read as 1/10, and dividing a row by 3 gives thirds rather than 0.3333. The rows are reduced the way a linear algebra course does it by hand. The pivot is the first non-zero entry from the top of the column, it is scaled to a leading 1, the entries below it are cleared, and then the entries above each leading 1, from the last one up. Work in the same order on paper and your lines match the page one by one.

Worked examples

A system. x + y + 2z = 9, 2x + 4y − 3z = 1, 3x + 6y − 5z = 0 is the augmented matrix with rows (1, 1, 2 | 9), (2, 4, −3 | 1) and (3, 6, −5 | 0). Subtract 2 times row 1 from row 2 and 3 times row 1 from row 3, divide row 2 by 2, and continue down and then back up: the reduced form reads x = 1, y = 2, z = 3.

A determinant. For the rows (1, 5, 0), (2, 4, −1) and (0, −2, 0), cofactor expansion along the first row gives 1 · (−2) − 5 · 0 + 0 · (−4) = −2.

Eigenvalues. For the rows (1, 2) and (3, 4), det(A − λI) = λ² − 5λ − 2. It has no rational root, so the eigenvalues are written with the root: λ = (5 ± √33)/2.

The determinant two ways

For a 2×2 and a 3×3 the page expands along the first row, the method most courses start with, and shows each minor. Choose row reduction instead, or type a 4×4 or 5×5, and the matrix is reduced to triangular form. A row swap changes the sign of the determinant, adding a multiple of one row to another changes nothing, and the determinant of the triangular matrix is the product of its diagonal.

What it does not do

It does not multiply or add two matrices, and it takes numbers only, not letters. Matrices larger than 5×5 are out of range, and so are decompositions such as LU or QR. Eigenvalues are found up to 3×3. A cubic characteristic polynomial with no rational root gives its roots as decimals, because their exact form is a nested radical that no course asks for. For a system typed as equations rather than as a grid, use the system of equations calculator.

Last reviewed October 12, 2026 ·How pages are reviewed

The formula behind this

All math calculators

Put this calculator on your site

Copy the code into your page where the calculator should appear. It loads from lovetocalc.com, so it stays current on its own — all we ask is that the credit line comes with it.