Cramer's Rule Calculator
Solve linear systems with determinants.
About this tool
Enter a coefficient matrix and the constants to solve by determinants. For 2x + y = 5 and x + 3y = 6, det A = 5, so x = 1.8 and y = 1.4.
How to use
How it works
Each unknown is a ratio of determinants: xᵢ = det(Aᵢ) ÷ det(A), where Aᵢ is A with column i swapped for the constants. It fails when det(A) = 0, because the system is then dependent or inconsistent.
xᵢ = det(Aᵢ) ÷ det(A)
Worked example
Three unknowns
- Input
- [1 1 1; 2 −1 1; 1 2 −1], constants 6 3 2
- Output
- x₁ = 1, x₂ = 2, x₃ = 3
- Walkthrough
- Check row by row: 1+2+3 = 6, 2−2+3 = 3 and 1+4−3 = 2.
Limitations
- The matrix must be square.
- If det A = 0 the tool says there is no unique solution.
Questions
Solve 2x + y = 5, x + 3y = 6 by Cramer's rule.
What if the determinant is zero?
Is it practical for large systems?
Features
- 2×2 and 3×3 systems
- Determinant shown
- Runs in your browser
Related resources
Guides and videos from around the web—opens on YouTube or the publisher’s site.
Solving an equation with variables on both sides
Khan Academy
Classic linear solve pattern for algebra calculators.
Watch on YouTubeSolving a consecutive integer problem
Khan Academy
Word-problem setup that feeds equation tools.
Watch on YouTube
- Solving Equations
Math is Fun
Balance-scale approach for linear equation tools.
- Polynomials
Math is Fun
Vocabulary for polynomial simplify and factor tools.