Elimination Method Calculator

Enter the coefficients of two linear equations (a₁x + b₁y = c₁ and a₂x + b₂y = c₂) to solve for x and y using the elimination method.

Quick Facts

Eliminate a variable
Scale, then add/subtract
Multiply one or both equations so a variable's coefficients match, then add or subtract the equations to cancel it.
Determinant form
D = a₁b₂ − a₂b₁
x = (c₁b₂ − c₂b₁) / D and y = (a₁c₂ − a₂c₁) / D — the same result elimination produces, as one formula.
When D = 0
No solution or infinite solutions
The lines are parallel; they either never meet (no solution) or are the same line (infinitely many).

Your Results

Calculated
x
-
Solution for x
y
-
Solution for y
Determinant (D)
-
D = a₁b₂ − a₂b₁
Solution type
-
Unique, none, or infinite

Ready

Enter both equations' coefficients, then press Calculate.

How the Elimination Method works

The elimination method solves a system of two linear equations in two unknowns, written in standard form as a₁x + b₁y = c₁ and a₂x + b₂y = c₂. The idea is to multiply one or both equations by a constant so that the coefficients of one variable become equal (or opposite), then add or subtract the equations so that variable cancels out — leaving one equation in one unknown that you can solve directly. This calculator carries out that process for you and reports x, y, the determinant, and the solution type.

Formula and method

Doing the scaling and subtracting by hand is equivalent to the closed-form solution below, which this calculator uses directly. Let D = a₁b₂ − a₂b₁ (the determinant of the coefficient matrix). Then, when D ≠ 0:

  • x = (c₁b₂ − c₂b₁) / D
  • y = (a₁c₂ − a₂c₁) / D

To see why this matches hand elimination: multiplying equation 1 by b₂ and equation 2 by b₁, then subtracting, cancels y and leaves (a₁b₂ − a₂b₁)x = c₁b₂ − c₂b₁, which is exactly x = (c₁b₂ − c₂b₁)/D. The same trick with a₁ and a₂ isolates y.

Special cases when D = 0

If D = 0, the two lines have identical slopes, so you cannot divide to get a unique x and y. Check the numerators: if c₁b₂ − c₂b₁ = 0 and a₁c₂ − a₂c₁ = 0 as well, both equations describe the same line, so there are infinitely many solutions. If either numerator is nonzero, the lines are parallel but distinct, so the system has no solution.

Common sources of error

  • Sign mistakes: subtracting a negative coefficient (or a whole equation) flips signs — track them carefully or use addition with a negated multiple instead.
  • Forgetting the constant: when you multiply an equation by a scale factor, multiply the constant term (c) too, not just a and b.
  • Assuming a unique answer: always check whether D = 0 before dividing; skipping this step can produce a meaningless or undefined result.

Checking your result

Substitute the computed x and y back into both original equations. Each should balance: a₁x + b₁y should equal c₁, and a₂x + b₂y should equal c₂. If either check fails, re-enter the coefficients and recompute.

Applications

Systems of two linear equations show up whenever two quantities are linked by two independent conditions: mixture and concentration problems, break-even analysis (cost versus revenue lines), rate/time/distance problems with two legs, supply-and-demand equilibrium, and balancing two-ingredient recipes or two-resource budgets.

Frequently Asked Questions

What is the elimination method for solving a system of equations?
The elimination method solves two linear equations in two unknowns by multiplying one or both equations by constants so that the coefficients of one variable become equal (or opposite), then adding or subtracting the equations so that variable cancels out, leaving a single equation in one variable that you can solve directly.
What is the determinant formula version of elimination?
For a₁x + b₁y = c₁ and a₂x + b₂y = c₂, the elimination steps are equivalent to computing D = a₁b₂ − a₂b₁, x = (c₁b₂ − c₂b₁) / D, and y = (a₁c₂ − a₂c₁) / D. This is the same result elimination produces, just written as one formula.
What does it mean when the determinant D equals zero?
D = a₁b₂ − a₂b₁ = 0 means the two lines have the same slope. If the numerators (c₁b₂ − c₂b₁ and a₁c₂ − a₂c₁) are also zero, the equations represent the same line and there are infinitely many solutions. If the numerators are nonzero, the lines are parallel and distinct, so the system has no solution.
How is elimination different from substitution?
Substitution solves one equation for a variable and plugs that expression into the other equation. Elimination instead scales and combines the two equations directly so a variable cancels. Both produce the same solution; elimination is usually faster when no coefficient is already 1, since it avoids introducing fractions early.