Matrix calculator

Use this matrix calculator to find the determinant, inverse, transpose or rank, or to add, multiply and raise matrices to a power — up to 6 × 6. It works in exact fractions and shows the working step by step.

A

Whole numbers, fractions (1/2) and decimals (0.75) — everything is worked out exactly. An empty cell counts as 0.

Result
−1

The determinant of the matrix is −1.

Step-by-step working

  1. Use the rule of Sarrus: add the three products running along the leading diagonal and subtract the three running along the other diagonal:

    2576345−2−3= 2·3·(−3) + 5·4·5 + 7·6·(−2) − 7·3·5 − 2·4·(−2) − 5·6·(−3)= −18 + 100 + (−84) − 105 − (−16) − (−90)= −1

Formula

det A=Σ (−1)¹⁺ʲ · a₁ⱼ · M₁ⱼ

The formula changes with the operation you choose. aᵢⱼ is the entry in row i and column j, Mᵢⱼ is the minor (the determinant with row i and column j removed) and adj A is the adjugate matrix.

How we got there

det A = −1

A matrix has an inverse only when its determinant is not zero. To check, multiply: A · A⁻¹ must give the identity matrix.

How to find a determinant and an inverse matrix by hand

  1. 2 × 2 determinant

    Subtract the product of the other diagonal from the product of the leading diagonal: for the rows (1, 2) and (3, 4) that is 1 · 4 − 2 · 3 = −2.

  2. 3 × 3 determinant — the rule of Sarrus

    Add the product along the leading diagonal and the two products parallel to it, then subtract the three matching products for the other diagonal.

  3. Inverse by Gauss–Jordan elimination

    Write the identity matrix to the right to form [A | I], then use row operations to turn the left half into I. The right half is now A⁻¹.

  4. Multiplying matrices — row by column

    Entry cᵢⱼ is the sum of the products of row i of the first matrix with column j of the second. A must have as many columns as B has rows.

Matrices in Further Maths or first-year linear algebra? Find a maths tutor for Year 12

Frequently asked questions

For a 2 × 2 matrix it is ad − bc. For 3 × 3, use the rule of Sarrus or expand along a row. A larger matrix is easiest to reduce to triangular form by Gaussian elimination and then multiply the diagonal entries — which is exactly what the determinant calculator above does.

Check that the determinant is not zero, write the identity matrix alongside to form [A | I] and use row operations to turn the left half into I. The right half becomes A⁻¹. Choose ‘Inverse’ and the inverse matrix calculator shows every row operation.

When its determinant is zero. Such a matrix is called singular, and the calculator tells you that no inverse exists.

Each entry of the result is the sum of the products of a row of the first matrix with a column of the second. You can only multiply when the first matrix has as many columns as the second has rows.

It is the largest number of linearly independent rows. To find it, reduce the matrix to row echelon form by Gaussian elimination and count the non-zero rows.

Type 1/2, −3 or 0.75 — the calculator turns everything into exact fractions. An empty cell counts as zero.

Matrices not adding up?

Book a free introductory lesson with a Mathema tutor. 30 minutes online, no commitment — we find the gap and the plan to close it.