Skip to content
MasterMath

Inverse Matrix Calculator

The inverse of a square matrix, when it exists. Multiply a matrix by its inverse and you get the identity — the matrix equivalent of multiplying by one.

Inverse matrix

—

Inverse matrix—
Determinant—
Does it have an inverse?—
Check A × A⁻¹—

The inverse matrix

RowValues

How this was worked out

    The formula

    A⁻¹ = adj(A) ÷ det(A)

    What it means

    The inverse undoes what the matrix does. If A transforms a vector, A⁻¹ transforms it back. That only works when the transformation is reversible, which is exactly when the determinant is not zero.

    How to do it by hand

    1. Check the matrix is square
    2. Work out the determinant: if it is zero, there is no inverse
    3. Build the matrix of cofactors and transpose it to get the adjugate
    4. Divide every element by the determinant

    What is worth knowing

    A zero determinant means the transformation collapses space — it squashes a plane onto a line, say — and you cannot undo that, because the information about which point you started from is gone. Such matrices are called singular. The parallel with numbers is exact: zero has no reciprocal for the same reason. In practice, computing an inverse explicitly is usually the wrong move: to solve Ax = b, elimination is faster and far more numerically stable than working out A⁻¹ and multiplying. Numerical libraries warn about this specifically.

    Frequently asked questions

    When does a matrix have an inverse?

    When it is square and its determinant is not zero. Such matrices are called invertible or non-singular.

    What is a singular matrix?

    One with determinant zero. It has no inverse, because the transformation it represents loses information and cannot be undone.

    How do I check my answer?

    Multiply the matrix by its inverse. You should get the identity: ones on the diagonal and zeros elsewhere.

    Should I use the inverse to solve equations?

    Usually not. Gaussian elimination is faster and numerically more stable than computing the inverse and multiplying.