By · Updated

Inverse Matrix Calculator and Determinant

Determinant and Inverse of a 2x2 or 3x3 Matrix, in Exact Fractions

No ratings yet
Result

—

OneTask is free, with no sign-up, and built by one person.
If this tool saved you time, a coffee helps keep new ones coming.

How the Determinant and Inverse Matrix Calculator works

This inverse matrix calculator finds the determinant and the inverse of a square matrix up to 6 × 6. Type one row per line with spaces or commas between the numbers. Answers come back as exact fractions where possible, with the working and a check that the inverse really undoes the matrix.

The inverse of a matrix A is the matrix A⁻¹ that gives the identity when multiplied by A, the matrix version of 1 ÷ x. It only exists when the determinant is not zero. The determinant is a single number that measures how much the matrix stretches area or volume.

How the inverse matrix calculator works

For a 2 × 2 matrix [a b; c d] the formula is det = ad − bc and A⁻¹ = (1 ÷ det) × [d −b; −c a]. For 3 × 3 the determinant expands along the first row using 2 × 2 minors. Larger matrices are row-reduced: the calculator writes [A | I] and applies Gauss-Jordan elimination until the left half is I.

First example. For [1 2; 3 4], det = 1 × 4 − 2 × 3 = −2, so the inverse is (1 ÷ −2) × [4 −2; −3 1] = [−2 1; 3/2 −1/2].

Second example. [1 2; 2 4] has det = 4 − 4 = 0. The second row is twice the first, so the matrix is singular and has no inverse.

How many 2 × 2 minors does a 3 × 3 determinant need? Three, one for each entry of the row you expand along.

Determinants and inverses of common 2 × 2 matrices

Matrix Determinant Inverse
[1 2; 3 4] -2 [-2 1; 3/2 -1/2]
[2 1; 1 1] 1 [1 -1; -1 2]
[4 7; 2 6] 10 [3/5 -7/10; -1/5 2/5]
[3 0; 0 3] 9 [1/3 0; 0 1/3]
[1 1; 0 1] 1 [1 -1; 0 1]
[2 3; 1 2] 1 [2 -3; -1 2]
[5 2; 2 1] 1 [1 -2; -2 5]
[1 2; 2 4] 0 None (singular)
[0 1; 1 0] -1 [0 1; 1 0]
[3 4; 5 6] -2 [-3 2; 5/2 -3/2]
[2 5; 1 3] 1 [3 -5; -1 2]
[6 3; 4 2] 0 None (singular)
[1 -1; 1 1] 2 [1/2 1/2; -1/2 1/2]
[2 0; 0 5] 10 [1/2 0; 0 1/5]
[4 3; 3 2] -1 [-2 3; 3 -4]
[7 2; 3 1] 1 [1 -2; -3 7]
[1 3; 2 7] 1 [7 -3; -2 1]
[-2 1; 3 -1] -1 [1 1; 3 2]
[5 3; 7 4] -1 [-4 3; 7 -5]
[2 4; 1 3] 2 [3/2 -2; -1/2 1]
[3 1; 2 1] 1 [1 -1; -2 3]
[1 4; 2 9] 1 [9 -4; -2 1]

Tips

FAQ

How do you find the inverse of a 2 × 2 matrix?

Swap the two diagonal entries, change the sign of the other two, then divide everything by the determinant ad − bc. For [4 7; 2 6] the determinant is 24 − 14 = 10, giving [0.6 −0.7; −0.2 0.4]. If the determinant is zero, stop: there is no inverse.

How do you find the determinant of a 3 × 3 matrix?

Expand along the first row. Multiply each entry by the determinant of the 2 × 2 matrix left when you cross out its row and column, then combine the three products with signs plus, minus, plus. The calculator shows those three minors in its working line.

What does it mean when a matrix is singular?

A singular matrix has a determinant of zero. It squashes space into fewer dimensions, so information is lost and cannot be recovered, which is why no inverse exists. In a system of equations it means there is either no solution or infinitely many.

Why does the calculator show fractions?

Inverses of whole-number matrices are usually fractions with the determinant as denominator. Exact fractions such as 3/2 avoid rounding errors that build up in decimals. Where an entry is not a simple fraction, the calculator falls back to a decimal rounded to six places.

See also: all Algebra and Geometry tools, Arithmetic, Number Theory, Statistics, Trigonometry and Calculus.

Related tools