Cramer's Rule Calculator
Enter the coefficients of a 2×2, 3×3, or 4×4 system of linear equations and solve using Cramer's Rule. Every determinant is computed and displayed step by step so you can follow the full working.
| x₁ | x₂ | x₃ | = b |
|---|---|---|---|
Notes
How Cramer's Rule Works
For a system Ax = b, Cramer's Rule computes each variable xᵢ as the ratio of two determinants: the determinant of A with its i-th column replaced by b, divided by det(A).
Worked Example — 2×2
System: 2x₁ + x₂ = 5, x₁ − x₂ = 1
Worked Example — 3×3
System: x₁ + x₂ + x₃ = 6, 2x₁ − x₂ + x₃ = 3, x₁ + 2x₂ − x₃ = 2
- Cramer's Rule — Full Notes — Theory, derivation, and multiple worked examples
- Cramer's Rule Formula Reference — Formula, variables, and step-by-step usage
Frequently Asked Questions
What is Cramer's Rule?
Cramer's Rule is a method for solving a system of n linear equations with n unknowns using determinants. Each variable xᵢ equals Dᵢ/D, where D is the determinant of the coefficient matrix and Dᵢ is the determinant with the i-th column replaced by the constants.
When does Cramer's Rule fail?
Cramer's Rule fails when D = det(A) = 0, meaning the coefficient matrix is singular. If D = 0 and all Dᵢ = 0, the system has infinitely many solutions. If D = 0 and any Dᵢ ≠ 0, the system is inconsistent and has no solution.
Is Cramer's Rule efficient for large systems?
No. Computing determinants has O(n!) complexity by cofactor expansion. For large systems (n > 4), Gaussian elimination or LU decomposition is far more efficient. Cramer's Rule is mainly used for 2×2 and 3×3 systems in education.
Can Cramer's Rule handle non-square systems?
No. Cramer's Rule requires the coefficient matrix to be square (n×n). For non-square systems, use Gaussian elimination or least squares methods.