Determinants of Square Matrices
Determinants and Cramer's Rule connect matrices to systems of equations and geometric transformations. A determinant boils a square matrix down to a single number, and that number reveals whether the matrix is invertible, how it scales area or volume, and whether it flips orientation. Cramer's Rule then puts determinants to work by using them to solve systems of linear equations directly.

Calculating Determinants
The determinant is a scalar value computed from the elements of a square matrix. You'll see it written as or .
For a 2×2 matrix, the formula is straightforward: multiply the main diagonal and subtract the product of the off-diagonal.
For example, if , then .
For a 3×3 matrix, you use cofactor expansion (also called expansion along a row or column). Here's how it works along the first row:
- Pick the first row element, multiply it by the determinant of the 2×2 matrix you get by deleting that element's row and column.
- Move to the next element in the row and do the same, but flip the sign.
- Continue alternating signs across the row: .
Two quick base cases:
- The determinant of a 1×1 matrix is just the value of its single element.
- The determinant of a triangular matrix (upper or lower) is the product of its diagonal entries. For example, has determinant .
Special Cases That Give a Zero Determinant
A few matrix patterns guarantee :
- Any row or column is all zeros.
- Two rows (or two columns) are identical.
- One row is a scalar multiple of another row (the rows are linearly dependent).
Recognizing these patterns can save you a lot of computation.
Properties of Determinants
These properties are useful both for simplifying determinant calculations and for understanding how matrix operations affect the determinant.
Transpose and Determinant
The determinant doesn't change when you transpose a matrix:
For example, has . Its transpose also has . This means every property that applies to rows also applies to columns.

Row and Column Operations
- Swapping two rows (or columns) flips the sign of the determinant.
- Multiplying a single row (or column) by a scalar multiplies the determinant by .
- Adding a multiple of one row to another row does not change the determinant.
Be careful with the scaling rule: multiplying one row by multiplies the determinant by . If you multiply the entire matrix by , the determinant gets multiplied by .
Matrix Products and Invertibility
This is a clean, powerful result. For example, if and , then .
The determinant also tells you whether a matrix is invertible (non-singular):
- : the matrix is invertible.
- : the matrix is singular and has no inverse.
This connects directly to systems of equations: a coefficient matrix with a nonzero determinant means the system has exactly one solution.
Cramer's Rule for Systems
Solving Linear Systems
Cramer's Rule gives you a formula for each variable in a system of equations with unknowns, using only determinants. The idea: replace one column of the coefficient matrix at a time with the constants from the right-hand side, then divide that new determinant by the original.
For a 2×2 system:
Let (the coefficient matrix determinant). Then:
Worked example: Solve
-
Compute the coefficient determinant:
-
For , replace the first column with the constants:
-
For , replace the second column with the constants:
-
Divide:
The general rule for variable : replace the -th column of the coefficient matrix with the column of constants, compute that determinant, and divide by .

Applicability and Efficiency
Cramer's Rule only works when the system has a unique solution, meaning . If , the system is either inconsistent (no solution) or dependent (infinitely many solutions), and Cramer's Rule can't distinguish between the two.
For 2×2 and 3×3 systems, Cramer's Rule is practical and often faster than other methods. For larger systems, it becomes computationally expensive: a 3×3 system requires four 3×3 determinants, and the workload grows rapidly from there. Methods like Gaussian elimination are more efficient for bigger systems.
Geometric Interpretation of Determinants
Area and Volume
The absolute value of a determinant has a direct geometric meaning:
- For a 2×2 matrix, equals the area of the parallelogram formed by the column vectors.
- For a 3×3 matrix, equals the volume of the parallelepiped (a 3D parallelogram) formed by the column vectors.
For example, the matrix has . The column vectors and form a rectangle with area 6, which checks out.
A determinant of zero means the vectors are linearly dependent, so they don't span a full parallelogram (in 2D) or parallelepiped (in 3D). The "shape" collapses to a lower dimension.
Orientation and Invertibility
The sign of the determinant tells you about orientation:
- Positive determinant: the transformation preserves orientation (no "flipping").
- Negative determinant: the transformation reverses orientation (like a reflection).
If , the matrix is not invertible, and the transformation it represents squashes space down to a lower dimension. For instance, has . The second column is just twice the first, so this matrix maps the entire 2D plane onto a single line. All the area gets crushed to zero, which is exactly what the zero determinant tells you.