Simultaneous equations solver
Solve two linear equations with two unknowns, x and y, using Cramer's rule.
Formula
How it works
Each equation has the form a·x + b·y = c. Cramer's rule divides a determinant built from the c-values by the determinant of the coefficients to find each unknown directly.
Worked example
The same calculation with the default values:
- a₁ (equation 1) 2
- b₁ (equation 1) 1
- c₁ (equation 1) 8
- a₂ (equation 2) 1
- b₂ (equation 2) -1
- c₂ (equation 2) 1
- D = 2 × -1 − 1 × 1 = -3
- x = (8 × -1 − 1 × 1) ÷ -3 = 3
- y = (2 × 1 − 1 × 8) ÷ -3 = 2
Result: x: 3 · y: 2
Common mistakes
- Forgetting to check the determinant D before trusting the result - when D = 0, the two lines are parallel (no solution) or identical (infinite solutions), and the x/y formulas become meaningless division by zero.
- Mixing up which coefficient belongs to which equation when entering values - a₁,b₁,c₁ must all come from the first equation and a₂,b₂,c₂ from the second, not mixed between them.
- Assuming a solution always exists - two real-world constraints can be contradictory (no solution) or redundant (infinitely many), not just a single intersection point.
Related calculators
Binomial probability calculator
The probability of exactly k successes in n independent trials, each with the same success probability.
Circle calculator
Diameter, circumference and area of a circle from its radius.
Combinations and permutations calculator
How many ways to arrange or choose r items from n, with and without order mattering.
Conditional probability calculator
P(A given B) and P(B given A) from P(A), P(B) and P(A and B), with an independence check.