Mathematics calculator

Elimination Method Calculator

Solve two linear equations by combining their coefficients and verify the resulting unique intersection.

Calculator inputs

Enter your values

Two-equation system

Use numeric coefficients for two linear equations. The solver uses a fixed determinant tolerance and can misclassify systems containing only constant rows; see the limitations in the guide.

Enter each equation as ax + by = c
Equation 1
Equation 2
Calculated output

Result summary

Your result will appear here

Complete the required fields and select the calculate button.

Two linear equations combined so one variable cancels before finding the intersection
Elimination scales and combines equations until one variable cancels, then back-substitutes for the other.

What Is the Elimination Method?

The elimination method removes a variable by adding or subtracting equations. If its coefficients do not already cancel, multiply entire equations by suitable numbers first. Solve for the remaining variable, then substitute back to obtain the other. The method is also called the addition method or linear combination method.

The Elimination Method Calculator solves two equations in standard form a₁x + b₁y = c₁ and a₂x + b₂y = c₂. It returns a unique ordered pair, determinant, classification and equation checks. Its numerical calculation uses determinant relationships equivalent to eliminating coefficients; the worked example explains hand elimination without claiming the form prints input-specific working.

How to Enter a System for Elimination

  1. Rewrite both equations with x and y on the left and the constant on the right. Keep the same variable order in both rows.
  2. Enter the six signed coefficients under Equation 1 and Equation 2. Enter zero when a term is missing.
  3. Choose Decimal places from 0 through 10. This controls rounding rather than adding precision to the original measurements.
  4. Select Calculate and read the featured Solution (x, y). Verify both equations, allowing for the rounded coordinates used in the checks.

For hand elimination, pick a variable to cancel. Opposite coefficients cancel when you add equations; equal coefficients cancel when you subtract. If scaling is needed, multiply every term on both sides, including the constant.

The calculator tests an unrounded determinant against an absolute tolerance of 10⁻¹². It returns a message rather than a single pair for systems that fail the test. Near-singular or heavily scaled inputs need independent checking, and constant-only systems can be misclassified: with all four variable coefficients zero, a false statement such as 0 = 1 is not reliably identified.

If a rejected calculation follows an earlier success, the earlier pair can remain visible. Read the error message and reset the form before treating any displayed pair as a new result.

Elimination Steps and Determinant Formulas

System: a₁x + b₁y = c₁; a₂x + b₂y = c₂

Eliminate y: b₂(row 1) − b₁(row 2)

D x = c₁b₂ − c₂b₁, where D = a₁b₂ − a₂b₁

Eliminate x: a₁(row 2) − a₂(row 1)

D y = a₁c₂ − a₂c₁

For D ≠ 0: x = (c₁b₂ − c₂b₁)/D; y = (a₁c₂ − a₂c₁)/D

Multiplying and subtracting the rows makes one variable’s coefficient exactly zero in symbolic arithmetic. The OpenStax systems chapter develops elimination and interpretation of dependent or inconsistent systems. The Cramer’s rule chapter explains the resulting determinant quotients.

When one elimination produces a true identity such as 0 = 0, check whether the remaining equation defines an entire line. A contradiction such as 0 = 5 means no pair can satisfy both equations. Neither case should be interpreted as a unique numerical answer.

This implementation uses floating-point products and a fixed zero tolerance. It rounds coordinates before evaluating the displayed checks. A rounded check line can therefore differ from its constant even when the underlying solution is correct to the available precision.

Coefficients, Precision and System Results

First equation a₁, b₁, c₁
x coefficient, y coefficient and right-side constant in the first row.
Second equation a₂, b₂, c₂
Corresponding signed values in the second row, in the same variable order.
Decimal places
Integer 0 through 10 governing displayed coordinates and determinant.
Solution (x, y)
Featured unique intersection point. The coordinate order matters.
Separate coordinate cards
x and y values repeated only as individually labeled components of the ordered pair.
Determinant D
Rounded coefficient combination a₁b₂ − a₂b₁. Internal singularity testing uses its unrounded magnitude.
System classification
One unique solution for a successful response. No-point and dependent cases appear as rejection messages.
Equation checks
Rounded-coordinate substitutions into both original coefficient rows; interpret small differences as possible display rounding.

Solving a System by Elimination

Illustrative example. Solve 3x + 2y = 18 and 5x − 2y = 14. Enter rows (3, 2, 18) and (5, −2, 14), with 4 decimal places.

The y coefficients are opposite, so add the equations. The y terms cancel and give 8x = 32, so x = 4.

Substitute into the first equation: 3 × 4 + 2y = 18, so 2y = 6 and y = 3. The second check is 5 × 4 − 2 × 3 = 14. The solution is (4, 3), and D = 3 × (−2) − 5 × 2 = −16.

Calculation check. These illustrative values were checked independently against the formula and calculator response. Retain unrounded intermediate values when checking approximations.

Solving a System by Elimination
Step or outputValue
Added equations8x = 32
x4
y3
Ordered pair(4, 3)
Determinant−16

What Cancellation Tells You About a System

Elimination may leave a single-variable equation, a true identity or a contradiction. Interpret the remaining equation rather than assigning arbitrary values when variables cancel.

What Cancellation Tells You About a System
After a valid row operationMeaning
8x = 32Solve x = 4, then find y
0 = 0 with one independent line leftInfinitely many solutions on that line
0 = 5No solution
Both original rows 0 = 0Every (x, y) satisfies them
Constant-only row 0 = 1No solution; current classifier needs manual checking

How to Interpret an Elimination Result

The returned pair must satisfy both original equations. If only one check works, inspect the copied signs, constants and display precision. When explaining a solution, show the cancellation step as well as the final coordinates so another reader can follow the method.

For ordinary line equations, a nonzero determinant means one intersection. A zero determinant can mean two distinct parallel lines with no solution or the same line with infinitely many solutions. The constants decide which case applies. The current tool reports these cases for ordinary rows but does not handle every degenerate constant-only case reliably.

If all four variable coefficients are zero, evaluate the two constant statements manually. For example, 0 = 1 and 0 = 2 is inconsistent, even though this implementation incorrectly labels it as infinitely many solutions. This is a known classification limitation, not a reason to accept the contradiction.

A tiny determinant can signal a sensitive system, but a fixed absolute cutoff also depends on how equations are scaled. Multiplying every coefficient and constant in a row by a small nonzero factor leaves the exact line unchanged but can alter whether the tool rejects it. Use an exact or suitably scaled solver when those boundaries matter.

Choose elimination when coefficients cancel directly or become simple small multiples. Substitution can be easier when one variable is already isolated. The two pages teach different hand methods but use equivalent numerical formulas and should agree on a unique solution for the same inputs.

Common Elimination Mistakes

  • Multiplying a variable coefficient without multiplying every other term and the constant in that equation.
  • Adding equations when equal signs require subtraction to cancel a variable, or subtracting when opposite coefficients already cancel.
  • Losing a minus sign when subtracting an entire row.
  • Solving for only one variable and forgetting to substitute back.
  • Taking 0 = 0 to mean x = 0 and y = 0 rather than examining the solution set.
  • Treating a printed rounded determinant as the exact value used for classification.
  • Trusting constant-only contradictory rows or tiny-scale systems without an independent check.

Frequently Asked Questions

How does elimination solve two equations?

Add or subtract suitably scaled equations so one variable cancels. Solve for the remaining variable, then substitute back to find the other.

When should I add instead of subtract equations?

Add when the target coefficients are opposites, such as +2y and −2y. Subtract when they are equal, taking care to change every sign in the row you subtract.

What if the coefficients do not cancel directly?

Multiply entire equations by suitable nonzero values. Scale every coefficient and the right-side constant, not just the term you want to cancel.

Does this form generate a full elimination derivation?

No. It returns the solution pair and checks from determinant relationships. The guide demonstrates cancellation with a separate worked example.

What does 0 = 0 mean after elimination?

It is a true identity. If one independent line remains, the system has infinitely many solutions on that line. It does not force x and y to be zero.

What does a contradiction such as 0 = 5 mean?

It means no values of x and y can satisfy both original equations. The system is inconsistent.

Why can scaling the equations change whether this tool accepts them?

The implementation uses an absolute determinant tolerance of 10⁻¹². Scaling rows changes the determinant’s numerical size even when the exact solution set is unchanged.

What is the known constant-only classification limitation?

When all four variable coefficients are zero, the current classifier can incorrectly call a contradictory system dependent. For example, 0 = 1 and 0 = 2 has no solution and needs manual checking.

Sources and References