Sumfinder All calculators

Math & Everyday

Matrix Calculator

The determinant, trace and inverse of a two by two matrix.

A two by two matrix is four numbers that describe a stretch, a turn or a squashing of the plane, and its determinant says how much area it scales. Enter the four entries and this gives the determinant, the trace, and the inverse when one exists, with the substitutions written out so the result can be followed.

How this is worked out

The determinant is ad − bc: the top-left times the bottom-right, minus the top-right times the bottom-left. The inverse is the same four numbers rearranged — d, −b, −c, a — each divided by that determinant. When the determinant is zero there is no inverse, because dividing by zero has no answer.

Good to know

  • A zero determinant means the inverse does not exist. A near-zero one means any inverse will be very sensitive to rounding.
  • The trace is just a + d, the sum of the diagonal — nothing to do with the determinant.
  • Check the inverse by multiplying it back: the result should be [1 0; 0 1].

What this assumes

  • The matrix is two rows by two columns, written [a b; c d].
  • The inverse only exists when the determinant is not zero; the page says when it is not.
  • The inverse entries are left as fractions when they are not tidy decimals.

Common questions

What is the determinant of a 2×2 matrix?

ad − bc, the diagonal going down to the right minus the diagonal going up to the right. For [2 3; 1 4] that is 2 × 4 − 3 × 1 = 5.

When does a matrix have no inverse?

When its determinant is zero. The rows then describe the same direction, and the inverse would need to divide by zero.

Estimate only. Figures come from the numbers you enter and the standard rates shown on the page. Check anything that matters against the official figure before you rely on it.