This system of equations calculator solves two linear equations in two unknowns (a₁x + b₁y = c₁ and a₂x + b₂y = c₂) — and tells you honestly when a system has no solution or infinitely many instead of inventing an answer.
Two Lines, Three Possible Stories
A 2×2 system is two lines on a plane, and exactly three things can happen: they cross once (unique solution, determinant ≠ 0), they’re parallel (no solution), or they’re the same line (infinite solutions). Cramer’s rule reads the answer off determinants: x = (c₁b₂ − c₂b₁)/D, y = (a₁c₂ − a₂c₁)/D with D = a₁b₂ − a₂b₁. Each line individually is best explored with our Slope-Intercept Form Calculator. Part of our Math Calculators collection.
Worked Example (Verified)
- 2x + 3y = 12 and x − y = 1 (defaults): D = (2)(−1) − (1)(3) = −5 → x = ((12)(−1) − (1)(3)) ÷ (−5) = 3, y = ((2)(1) − (1)(12)) ÷ (−5) = 2 — check: 6 + 6 = 12 ✔, 3 − 2 = 1 ✔
- The word-problem factory: “3 coffees + 2 muffins = $16; 1 coffee + 1 muffin = $6” is this exact machine wearing an apron (x = coffee price, y = muffin price → $4 and $2)
- Parallel trap: 2x + 3y = 12 vs 4x + 6y = 10 — doubled coefficients but a constant that didn’t double: no solution, and any solver that prints one is hallucinating
- Same-line trap: 2x + 3y = 12 vs 4x + 6y = 24 — proportional everything: infinite solutions, the system is one fact stated twice
Methods, Compared Honestly
- Cramer’s rule (used here): fastest for 2×2, and the determinant instantly diagnoses the degenerate cases.
- Substitution: best when one coefficient is 1 (solve and plug) — the classroom default for a reason.
- Elimination: scales to 3×3 and beyond (Gaussian elimination) where Cramer becomes combinatorially silly.
- Graphing: the intuition pump — always picture the two lines before trusting algebra.
Related Tools
- Slope-Intercept Form Calculator — each line, examined
- Matrix Calculator — the machinery systems grow into
- Math Calculators — the full collection
Frequently Asked Questions
How do you solve a system of two equations?
By elimination, substitution, or determinants — this calculator uses Cramer’s rule: with D = a₁b₂ − a₂b₁ ≠ 0, x = (c₁b₂ − c₂b₁)/D and y = (a₁c₂ − a₂c₁)/D. Always verify by substituting back into both originals, as the worked example does.
What if the determinant is zero?
No unique solution exists. Either the equations are proportional throughout (same line — infinitely many solutions) or the left sides are proportional but the constants aren’t (parallel lines — no solution). The calculator distinguishes and explains both cases rather than dividing by zero.
How do I enter an equation like y = 2x + 3?
Rearrange to standard form a x + b y = c first: y = 2x + 3 becomes −2x + y = 3, so a = −2, b = 1, c = 3. Moving every term with a variable to the left and constants to the right is the only translation step required.
Can this solve 3 equations with 3 unknowns?
This tool is for 2×2 systems. The 3×3 generalization runs on the same determinant idea (or Gaussian elimination) — our Matrix Calculator handles the determinants and inverses involved.
Why do my decimals look repeating?
Many exact answers are fractions (7/3 = 2.3333…); the calculator rounds display to 4 decimal places. For homework, the fractional form from Cramer’s rule (numerator ÷ D, unreduced thinking) is usually what’s wanted — the components are spelled out in the method note.
Is this system of equations calculator free?
Yes — free, instant, no sign-up.