Skip to content
Omnikalc

Matrix determinant calculator: 2×2 and 3×3

Enter a 2×2 or 3×3 matrix to get its determinant, its trace and whether it can be inverted, with the 2×2 inverse.

Updated on
Your inputs
Size

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Value out of range

Results

Determinant

-19

Invertible matrix
Trace (sum of the diagonal)
6
Area or volume scale factor |det|
19
2×2 inverse: row 1, column 1
0.5
2×2 inverse: row 1, column 2
0.5
2×2 inverse: row 2, column 1
0
2×2 inverse: row 2, column 2
-1

What the determinant is

The determinant is a single number computed from a square matrix. It tells you whether the matrix can be inverted, whether a system of linear equations has a unique solution, and by how much the matrix stretches areas or volumes. This calculator handles 2×2 and 3×3 matrices, the sizes met most often in algebra, geometry and physics courses.

The formulas

  • 2×2: det [a b; c d] = ad − bc
  • 3×3 (cofactor expansion along the first row): a₁₁(a₂₂a₃₃ − a₂₃a₃₂) − a₁₂(a₂₁a₃₃ − a₂₃a₃₁) + a₁₃(a₂₁a₃₂ − a₂₂a₃₁)
  • Trace: the sum of the diagonal entries
  • 2×2 inverse: (1 ÷ det) × [d −b; −c a], only when det ≠ 0

The rule of Sarrus

For a 3×3 matrix, write the first two columns again to the right of the matrix. Add the products of the three diagonals going down to the right, then subtract the products of the three diagonals going up to the right. The result is the same as the cofactor expansion; this shortcut only works for 3×3 matrices.

Worked example

Take the matrix with rows (2, 1, 3), (0, −1, 4) and (1, 2, 5).

  1. Downward diagonals: 2 × (−1) × 5 + 1 × 4 × 1 + 3 × 0 × 2 = −10 + 4 + 0 = −6.
  2. Upward diagonals: 3 × (−1) × 1 + 1 × 0 × 5 + 2 × 4 × 2 = −3 + 0 + 16 = 13.
  3. Determinant = −6 − 13 = −19. The matrix is invertible.
  4. Trace = 2 − 1 + 5 = 6.

For the 2×2 matrix [2 1; 0 −1], the determinant is −2 and the inverse is [0.5 0.5; 0 −1].

What the value means

Determinant Meaning
not zero invertible matrix, unique solution to the linear system
zero singular matrix: dependent rows, no inverse
absolute value scale factor for areas (2×2) or volumes (3×3)
negative the transformation flips orientation, like a mirror

Useful properties

  • Swapping two rows changes the sign of the determinant.
  • Multiplying a row by k multiplies the determinant by k.
  • Adding a multiple of one row to another leaves it unchanged, which is the basis of row reduction.
  • The determinant of a product is the product of the determinants: det(AB) = det(A) × det(B).
  • A matrix and its transpose have the same determinant.

Where it is used

Determinants appear in Cramer’s rule for solving systems of equations, in finding eigenvalues, in computing the area of a triangle from the coordinates of its vertices, and in 3D graphics, where a negative determinant reveals a mirrored transformation.

Frequently asked questions

How do you calculate a 2×2 determinant?

For the matrix [a b; c d], the determinant is ad − bc. For [2 1; 0 −1], it is 2 × (−1) − 1 × 0 = −2.

How do you calculate a 3×3 determinant?

With the rule of Sarrus or a cofactor expansion along the first row: a₁₁(a₂₂a₃₃ − a₂₃a₃₂) − a₁₂(a₂₁a₃₃ − a₂₃a₃₁) + a₁₃(a₂₁a₃₂ − a₂₂a₃₁).

What does a determinant of zero mean?

The matrix is singular: it has no inverse, its rows are linearly dependent, and a system of equations using it has no unique solution.

What does the determinant mean geometrically?

Its absolute value is the factor by which the matrix scales areas (2×2) or volumes (3×3). A negative sign means the orientation is flipped, like a mirror image.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.