Algebra

How to Find the Determinant of a Matrix

By Math Solving Space · · 1 min read

On this page
  1. 2×2 determinants
  2. 3×3 determinants: cofactor expansion
  3. Worked example
  4. What the determinant means
  5. Larger matrices
  6. Common mistakes
  7. Practice questions
  8. Frequently asked questions

The determinant is a single number calculated from a square matrix. For a 2×2 matrix it is ad−bcad - bc. For a 3×3 matrix, expand along a row using smaller 2×2 determinants. A determinant of zero means the matrix has no inverse.

2×2 determinants

∣abcd∣=ad−bc\begin{vmatrix} a & b \\ c & d \end{vmatrix} = ad - bc

Example: ∣4726∣=4×6−7×2=10\begin{vmatrix} 4 & 7 \\ 2 & 6 \end{vmatrix} = 4 \times 6 - 7 \times 2 = 10.

3×3 determinants: cofactor expansion

Expand along the first row with signs +,−,++, -, +:

∣abcdefghi∣=a∣efhi∣−b∣dfgi∣+c∣degh∣\begin{vmatrix} a & b & c \\ d & e & f \\ g & h & i \end{vmatrix} = a\begin{vmatrix} e & f \\ h & i \end{vmatrix} - b\begin{vmatrix} d & f \\ g & i \end{vmatrix} + c\begin{vmatrix} d & e \\ g & h \end{vmatrix}

Worked example

∣2−3120−1145∣=2(0+4)−(−3)(10+1)+1(8−0)=8+33+8=49\begin{vmatrix} 2 & -3 & 1 \\ 2 & 0 & -1 \\ 1 & 4 & 5 \end{vmatrix} = 2(0 + 4) - (-3)(10 + 1) + 1(8 - 0) = 8 + 33 + 8 = 49

What the determinant means

  • Zero determinant: the matrix is singular, it has no inverse, and its rows are linearly dependent. For example ∣1224∣=0\begin{vmatrix} 1 & 2 \\ 2 & 4 \end{vmatrix} = 0 because the second row is double the first.
  • Area scale: a 2×2 matrix maps the unit square to a parallelogram whose area is ∣det⁡A∣|\det A|.
  • Sign: a negative determinant means the transformation flips orientation.

Larger matrices

For 4×4 and above, row-reduce to triangular form. The determinant is the product of the diagonal, with a sign change for each row swap.

Common mistakes

  • Forgetting the alternating signs in cofactor expansion.
  • Computing ad+bcad + bc instead of ad−bcad - bc.
  • Losing a sign when swapping rows.

Practice questions

  1. ∣3512∣\begin{vmatrix} 3 & 5 \\ 1 & 2 \end{vmatrix}
  2. ∣100020003∣\begin{vmatrix} 1 & 0 & 0 \\ 0 & 2 & 0 \\ 0 & 0 & 3 \end{vmatrix}
  3. For which kk is ∣k236∣=0\begin{vmatrix} k & 2 \\ 3 & 6 \end{vmatrix} = 0?

Answers: 1) 1 2) 6 3) k=1k = 1

The determinant calculator shows the cofactor expansion and, for 2×2 matrices, animates the area change. Use it alongside how to find the inverse of a matrix and the matrix calculator.

Frequently asked questions

Do non-square matrices have determinants?

No. Determinants are only defined for square matrices.

What is the determinant of the identity matrix?
Is det(AB) = det(A) × det(B)?

Yes, for square matrices of the same size.

Open the calculator →

#matrices#linear algebra