CalcSeed

System of Equations Calculator

Solve a1x + b1y = c1 and a2x + b2y = c2 for x and y using determinants.

=
Quick answer: with the default inputs (1, 1, 5, 1), the x is 3. At these inputs: y = 2. Change any input to update the result.
x
—

What this calculator does

A system of two linear equations in two unknowns describes two lines, and its solution is the point where they cross. Cramer’s rule finds that point as ratios of determinants, with no rearranging required. The defaults solve x + y = 5 and x − y = 1, and the calculator returns x = 3, y = 2 — the crossing point, confirmed by substitution: 3 + 2 = 5 and 3 − 2 = 1.

How Cramer’s rule works

x=c1b2−c2b1a1b2−a2b1x = \frac{c_1 b_2 - c_2 b_1}{a_1 b_2 - a_2 b_1}

The rule builds one 2×2 determinant per unknown, all sharing the same denominator. The main determinant uses the coefficients: det = a1·b2 − a2·b1. For x, replace the x-column with the constants and compute c1·b2 − c2·b1; for y, replace the y-column and compute a1·c2 − a2·c1. Each unknown is its determinant divided by the main one, so the whole solution is three short cross-multiplications.

What the denominator tells you

The main determinant is zero exactly when the two coefficient rows are proportional — the same as saying the two lines have parallel geometry. Division by zero then has no meaning, which mirrors the geometry: parallel distinct lines never meet, and identical lines meet everywhere. Every numeric answer this calculator produces therefore carries a built-in existence check before any division happens.

Geometric meaning

  • Each equation is a line in the plane, and the solution is the point where the lines cross.
  • A non-zero determinant means exactly one crossing point.
  • Parallel distinct lines mean no solution; identical lines mean infinitely many.
  • The signs of the coefficients set the slopes, so a negative b turns one line downhill.

Worked example at the defaults

System: x + y = 5 and x − y = 1, so a1 = 1, b1 = 1, c1 = 5, a2 = 1, b2 = −1, c2 = 1. Step 1: det = 1 × (−1) − 1 × 1 = −1 − 1 = −2. Step 2: x = (c1·b2 − c2·b1) ÷ det = (5 × (−1) − 1 × 1) ÷ (−2) = (−6) ÷ (−2) = 3. Step 3: y = (a1·c2 − a2·c1) ÷ det = (1 × 1 − 1 × 5) ÷ (−2) = (−4) ÷ (−2) = 2. The calculator returns x = 3, y = 2, matching each step.

Two independent checks confirm it. Substitution: 3 + 2 = 5 satisfies the first equation and 3 − 2 = 1 satisfies the second. Elimination: adding the two equations eliminates y and gives 2x = 6, so x = 3, and substituting back gives y = 5 − 3 = 2. Three methods, one answer — that agreement is what makes a solution trustworthy on an exam.

The three possible outcomes

SystemDeterminantOutcome
x + y = 5, x − y = 1 (defaults)−2Unique solution (3, 2)
x + y = 5, x + y = 10No solution: parallel distinct lines
x + y = 5, 2x + 2y = 100Infinitely many: same line twice
2x + y = 7, x − 3y = −2−7Unique solution: x = 19/7 ≈ 2.71, y = 11/7 ≈ 1.57

The two zero-determinant rows show how the same failure condition splits into two different diagnoses. When det = 0 and the constants are also proportional — here 5 versus 10 with coefficients 1 versus 2 — the equations say the same thing and every point on the line solves the system. When the constants are not proportional, the lines are parallel and no point works. Checking the constants is the extra step that tells you which zero case you have.

Elimination and substitution as cross-checks

Cramer’s rule is mechanical, which makes it fast but also easy to apply with a copied sign. Elimination re-derives the answer with visible reasoning: multiply one equation so a variable’s coefficients match, then add or subtract. Substitution isolates one variable — from the defaults, y = 5 − x goes into x − (5 − x) = 1, giving 2x = 6 and x = 3. Both routes are slower than the calculator but immune to determinant-placement errors, which is why running one of them as a spot check is worth the two minutes.

Common mistakes

Cramer’s rule errors concentrate in the setup rather than the arithmetic, and each of the following has a one-line fix.

  • Swapping columns in the numerator determinants: x uses the constants in the first column, y in the second — reversed placement swaps the answers.
  • Sign slips with negative coefficients: the defaults include b2 = −1, and dropping the minus turns det into 0 and the solution into a false no-solution verdict.
  • Dividing by a zero determinant by accident: stop and classify the system as parallel or coincident instead of forcing a number.
  • Mismatched equation order: c1 must come from the same equation as a1 and b1; mixing rows scrambles both numerators.
  • Forgetting to check: substitute the pair back into both original equations — two satisfied equations end the argument.

Reading word problems into a1, b1, c1

Most applied systems fail at translation, not algebra. A classic: 3 books and 2 pens cost $17, 1 book and 4 pens cost $12. Write 3x + 2y = 17 and x + 4y = 12 with x the book price and y the pen price. The determinant is 3 × 4 − 1 × 2 = 10, x = (17 × 4 − 12 × 2) ÷ 10 = 44 ÷ 10 = 4.40 and y = (3 × 12 − 1 × 17) ÷ 10 = 19 ÷ 10 = 1.90. A $4.40 book and $1.90 pen satisfy both receipts, so the translation was right.

Where systems of two equations appear

Two-unknown systems model any situation with two prices, two speeds or two mixtures: blended ticket pricing, break-even analysis where revenue equals cost, and rate problems combining distance and time. In 2026 coursework they are the standard first meeting with linear algebra, and the 2×2 determinant here reappears as the Jacobian of two-variable transformations. The same three-determinant pattern extends to three equations in three unknowns, where the 3×3 version of det decides whether a unique intersection exists — the conceptual foundation every larger system solver, including Gaussian elimination, builds on.

Frequently asked questions

What is the solution of x + y = 5 and x − y = 1?

x = 3 and y = 2. The determinant is 1 × (−1) − 1 × 1 = −2, x = −6 ÷ −2 = 3 and y = −4 ÷ −2 = 2, confirmed by 3 + 2 = 5 and 3 − 2 = 1.

How do I solve a system of equations?

Use Cramer’s rule with three determinants, or eliminate a variable by combining the equations, or substitute one equation into the other. For the defaults, adding the equations gives 2x = 6, so x = 3 and then y = 2.

What if the determinant is zero?

The system has no unique solution. If the constants are proportional too, the lines are identical and every point on the line works, as with x + y = 5 and 2x + 2y = 10; otherwise the lines are parallel and nothing works.

Can this handle more than two unknowns?

This calculator handles two equations in two unknowns. Three-unknown systems need 3×3 determinants or Gaussian elimination, and larger systems are solved with matrix methods in software.

How do I check my solution?

Substitute the pair into both original equations. For (3, 2): 3 + 2 = 5 checks the first and 3 − 2 = 1 checks the second. Both must pass, since one satisfied equation is not proof.

Why did I get x and y swapped?

The x numerator places the constants in the first column and the y numerator in the second. Reversing the columns swaps the two answers, which usually still passes one equation — so always check both.

Do fractional answers mean an error?

No. Coefficients like 2x + y = 7 and x − 3y = −2 have determinant −7 and give x = 19/7 ≈ 2.71 and y = 12/7 ≈ 1.71. Fractions are common whenever coefficients are not matched up nicely.

Is Cramer’s rule better than elimination?

For two equations it is comparable — both take a handful of multiplications. Elimination shows the reasoning and generalizes to larger systems, while Cramer’s rule is a fixed recipe, so using one to check the other is good practice.

Method and sources

Calculation basis

Results follow exact mathematical definitions; the arithmetic is deterministic and can be verified by hand from the steps shown.

Last updated: November 19, 2026
Formula & data sources
  • Cramer's rule for 2x2 systems.

Cite this page

Reference formats
APA 7CalcSeed. (2026, November 19). System of Equations Calculator. https://calcseed.com/c/math/system-of-equations-calculator/
MLA 9"System of Equations Calculator." CalcSeed, 19 Nov. 2026, calcseed.com/c/math/system-of-equations-calculator/.
ChicagoCalcSeed. "System of Equations Calculator." Last modified November 19, 2026. https://calcseed.com/c/math/system-of-equations-calculator/

Related calculators