method focus
Cramer's Rule Calculator
Solve systems of linear equations using Cramer's Rule. See each determinant matrix step by step -- det(A), det(A_x), det(A_y) -- with highlighted column substitutions.
Click to show tips
Try an Example
Pick a scenario to see how the calculator works, then adjust the values
Simple 2x2 System
Solve 2x + 3y = 7 and x - y = 1 using Gaussian elimination
Key values: 2×2 system · Unique solution · x=2, y=1
3x3 Engineering System
Solve a 3-variable system commonly found in circuit analysis
Key values: 3×3 system · Cramer's Rule · 3 unknowns
Parallel Lines (No Solution)
Explore what happens when two equations have no intersection
Key values: 2×2 system · Inconsistent · No solution
Cramer's Rule
Cramer's rule expresses each unknown as a ratio of determinants. For the system :
where is the matrix with its ith column replaced by the constant vector .
The 2×2 Case
For the system , :
The 3×3 Case
For three equations in three unknowns, compute four 3×3 determinants:
Each 3×3 determinant uses cofactor expansion. For matrix :
When to Use Cramer's Rule
| Scenario | Best method |
|---|---|
| 2×2 or 3×3 by hand | Cramer's rule (elegant, formulaic) |
| Need only one variable | Cramer's rule (compute just 2 determinants) |
| Large systems (4×4+) | Gaussian elimination (far fewer operations) |
| Nearly singular matrix | Gaussian elimination with pivoting |
Computational cost: Cramer's rule for an system requires computing determinants, each costing with cofactor expansion. For large , Gaussian elimination at is dramatically faster.
When Cramer's Rule Fails
If , Cramer's rule is undefined — division by zero. This means the system is either inconsistent (no solution) or dependent (infinitely many solutions). You must use row reduction to distinguish between these cases.
Frequently Asked Questions
What is Cramer's rule?
Cramer's rule expresses each unknown in a system of linear equations as a ratio of determinants: , where is the coefficient matrix with its th column replaced by the constant vector .
When should I use Cramer's rule vs. Gaussian elimination?
Cramer's rule is best for 2x2 or 3x3 systems solved by hand, or when you need only one variable. For larger systems (4x4 and above), Gaussian elimination is dramatically faster because Cramer's rule requires computing determinants.
What happens when the determinant is zero?
When , Cramer's rule is undefined (division by zero). This means the system has either no solution (inconsistent) or infinitely many solutions (dependent). You must use row reduction to distinguish between these two cases.
How do I compute a 3x3 determinant?
Use cofactor expansion along the first row: , where the matrix entries are arranged as . Alternatively, use the Sarrus rule (diagonal products) for 3x3 matrices.
Can Cramer's rule find just one variable without solving the whole system?
Yes. To find only , you only need to compute two determinants: and . This is an advantage over Gaussian elimination, which always solves for all variables simultaneously.
Related method-focus Variants
Explore more method-focus options
More Math Calculators
Explore the category