Cramer's Rule Calculator
Solve systems of linear equations using Cramer's Rule. Shows det(A), each substituted matrix, and the final solution step by step.
Solve a 2×2 or 3×3 system of linear equations using Cramer's Rule, showing det(A), each substituted matrix, and every variable's solution step by step.
How Cramer's Rule Calculator Works
Cramer's Rule solves a system Ax = b by comparing determinants. First, the calculator finds det(A), the determinant of the coefficient matrix — this only works when det(A) is non-zero, since a zero determinant means the system doesn't have a single unique solution.
For each variable, it builds a new matrix Aᵢ by replacing column i of A with the constants vector b, then computes det(Aᵢ). The value of that variable is simply xᵢ = det(Aᵢ) ÷ det(A) — repeating this once per variable, substituting a different column each time, solves the entire system.
Once every variable is found, the calculator substitutes them back into each original equation to verify that both sides match, confirming the solution is correct. This determinant-based approach is especially clear for small systems, though Gauss-Jordan elimination scales better to larger ones.
See It In Action
Who Uses Cramer's Rule Calculator and Why
- Solving a 2×2 or 3×3 system of linear equations using determinants instead of row-reduction.
- Finding just one specific variable's value quickly, without solving the entire system.
- Learning how each variable in Ax = b corresponds to replacing one column of A with the constants vector b.
- Cross-checking a solution found by Gauss-Jordan elimination or the inverse matrix method using an independent determinant-based approach.
Mistakes to Avoid
- Applying Cramer's Rule to a system larger than 3×3 — computing determinants grows dramatically more expensive as the matrix size increases, making this approach impractical beyond small systems.
- Attempting the method when det(A) is zero — Cramer's Rule requires a non-zero determinant, since a zero determinant means the system has no solution or infinitely many, not one unique answer to divide by.
- Replacing the wrong column when building Aᵢ — each variable xᵢ corresponds to replacing column i specifically, not a row or an arbitrary column.
Tips for Best Results
- Switch to Gauss-Jordan elimination once a system grows beyond 3×3, since determinant computation doesn't scale well.
- Use the calculator's final substitution check — plugging the computed x, y, z values back into each original equation — to confirm the solution before relying on it.
Fixing Common Problems
det(A) came out to zero. — Cramer's Rule can't be applied — the system either has no solution or infinitely many; use Gauss-Jordan elimination instead to determine which.
My solution doesn't satisfy the original equations. — Double-check which column was replaced with b for each variable — replacing the wrong column produces an incorrect det(Aᵢ) and therefore an incorrect variable value.
Terms Explained
Coefficient matrix: The matrix A of coefficients in a system written as Ax = b.
det(Aᵢ): The determinant of the matrix formed by replacing column i of A with the constants vector b, used to solve for variable xᵢ.