For larger matrices, see cofactor expansion. 2x2 matrix determinant acbd=ad−cb 3x3 matrix determinant adgbehcfi=a(ei+hf)−b(di−gf)+c(dh−ge)