Elimination Method Calculator
Solve two linear equations and identify unique, inconsistent, or dependent systems.
Linear equation system
Enter coefficients for two equations in standard form.
About the elimination method
The elimination method solves a system of simultaneous linear equations by removing one variable. Each equation represents a straight line, and a solution is a point that satisfies both equations. Multiplying an entire equation by a nonzero number does not change its line, so the equations can be scaled until one pair of coefficients are opposites. Adding the scaled equations then eliminates that variable and leaves a one-variable equation. Substitution into either original equation produces the remaining coordinate.
This calculator accepts two equations in standard form, with an x coefficient, a y coefficient, and a constant for each row. It uses determinant arithmetic, which is algebraically equivalent to elimination for a two-equation system. The main determinant compares the coefficient rows. When it is nonzero, the two lines have different slopes and meet at exactly one point. The calculator divides two related determinants by the main determinant to obtain x and y, retaining full floating-point precision before rounding the displayed values.
A zero determinant requires additional interpretation. If the coefficient rows and constants are proportional, both equations describe the same line and every point on that line satisfies the system. The result is infinitely many solutions. If the coefficient rows are proportional but their constants are not, the lines are parallel and distinct, so no ordered pair can satisfy both equations. Reporting these cases is important because dividing by a zero determinant would otherwise produce a misleading numerical result.
Elimination is useful in algebra classes, coordinate geometry, circuit analysis, mixture problems, pricing models, and any situation with two unknown quantities constrained by two linear relationships. Negative, decimal, and zero coefficients are valid. To check a unique answer, substitute the reported x and y values into both original equations and confirm that each left side equals its constant, allowing for small rounding differences. For hand calculations, choose the variable whose coefficients are easiest to match, scale carefully, and apply every multiplication to all terms in that equation. This tool provides a quick numerical answer while preserving the core classification of the system.
Elimination examples
| System | Result | Classification |
|---|---|---|
| 2x + y = 5; x - y = 1 | x = 2, y = 1 | The lines intersect once. |
| x + y = 4; 2x - y = 1 | x = 1.666667, y = 2.333333 | The solution contains repeating decimals. |
| x + 2y = 3; 2x + 4y = 6 | Infinitely many solutions | The second equation is twice the first. |
How to solve by elimination
- Enter the x coefficient, y coefficient, and constant for the first equation.
- Enter the corresponding three values for the second equation.
- Select Solve system to eliminate a variable and classify the equations.
- Substitute a unique result into both original equations to check it.
Frequently asked questions
What does elimination do?
Elimination combines scaled equations so one variable cancels. The remaining equation can then be solved directly.
When is there no solution?
There is no solution when the equations represent distinct parallel lines. Their variable coefficients are proportional while their constants are not.
When are there infinitely many solutions?
Infinitely many solutions occur when both equations describe the same line. Every coefficient and the constant share the same scale factor.
Can coefficients be zero or negative?
Yes, zero and negative coefficients are valid numbers. An equation should still contain enough information to define a line.
How can I verify the answer?
Substitute the reported x and y into both equations. Each evaluated left side should match its original constant within rounding tolerance.