System of Equations Calculator – Elimination Method
Solve a system of two linear equations with the elimination method. Enter the six coefficients a1, b1, c1, a2, b2, c2 and get the values of x and y, or a message when there is no unique solution.
Solve Linear Systems with the Elimination Method
Elimination Method
Where:
- \(a_1, b_1, c_1\) — coefficients and constant of the first equation
- \(a_2, b_2, c_2\) — coefficients and constant of the second equation
- \(D = a_1b_2 - a_2b_1\) — the determinant of the system
The two formulas are the compact result of the elimination process: after multiplying and adding or subtracting the equations so that one variable cancels, each unknown is obtained as a ratio of determinants (Cramer's rule).
Elimination Method – Calculation Example
Example: solve the system \(2x + 3y = 8\) and \(x - y = -1\) (the calculator's default values).
Step 1: eliminate \(y\). Multiply the second equation by 3:
\[ 3(x - y) = 3(-1) \;\Rightarrow\; 3x - 3y = -3 \]
Step 2: add the equations — the \(y\)-terms cancel:
\[ (2x + 3y) + (3x - 3y) = 8 + (-3) \;\Rightarrow\; 5x = 5 \;\Rightarrow\; x = 1 \]
Step 3: substitute \(x = 1\) into the second equation:
\[ 1 - y = -1 \;\Rightarrow\; y = 2 \]
Result: \(x = 1\), \(y = 2\). Check: \(2(1) + 3(2) = 8\) and \(1 - 2 = -1\).
How to Use the Calculator
- Write your system in the standard form \(a_1x + b_1y = c_1\) and \(a_2x + b_2y = c_2\), moving all constants to the right side.
- Enter the three numbers of the first equation in the fields Coefficient a₁, Coefficient b₁ and Constant c₁.
- Enter the three numbers of the second equation in Coefficient a₂, Coefficient b₂ and Constant c₂. Use a minus sign for negative coefficients.
- Read the results: the calculator shows the values of x and y rounded to 4 decimal places, or a message telling you whether the system has infinitely many solutions or none at all.
What Is the Elimination Method?
The elimination method (also called the addition method) solves a system of two linear equations by removing one variable so that a single equation with one unknown remains. You multiply one or both equations by suitable numbers so that the coefficients of \(x\) or \(y\) become equal or opposite, then add or subtract the equations. The chosen variable cancels out, leaving a simple equation such as \(5x = 5\), which is solved immediately. The second variable is then found by substituting the first result back into either original equation.
Because the whole process reduces to fixed arithmetic on the six coefficients, it can be condensed into the determinant formulas shown above. The denominator \(D = a_1b_2 - a_2b_1\) tells you whether a unique solution exists: if \(D \neq 0\), the two lines intersect at exactly one point, and the formulas give its coordinates directly. This is the same idea that powers Cramer's rule and, in later courses, Gaussian elimination for larger systems.
The method is often preferred over substitution when the coefficients are small integers, because the multiplication and addition steps stay tidy and errors are easy to spot. It is a standard topic in school algebra and a foundation for linear algebra, economics modeling, and any field that works with simultaneous equations. After solving, always check the result by substituting \(x\) and \(y\) into both original equations — both must balance, not just one.
Special Cases, Assumptions and Tips
- Parallel lines (no solution): if \(D = 0\) but at least one of the numerators is nonzero, the two equations describe parallel lines that never meet. The calculator reports "No solution".
- Coincident lines (infinite solutions): if \(D = 0\) and both numerators are zero, the two equations are equivalent — the same line written twice. The calculator reports "Infinite solutions".
- Fractions and decimals: the coefficients may be decimals; results are rounded to 4 decimal places, so a value like \(0.6667\) usually means the exact answer is a fraction such as \(2/3\).
- Standard form required: rearrange each equation so that the \(x\)-term, the \(y\)-term and the constant appear in that order; otherwise the coefficients will not land in the right fields.
- Two equations only: this calculator handles systems with exactly two equations and two unknowns. Larger systems need matrix methods such as Gaussian elimination.
Once you have solved the linear system, related tools can help with the rest of your work: the Quadratic Equation Calculator handles second-degree equations, the Linear Inequality Calculator deals with inequalities instead of equations, and the Proportion Calculator is useful when a problem reduces to a single ratio.
Frequently Asked Questions
How do I solve a system by elimination by hand?
Rearrange both equations into the form \(a_1x + b_1y = c_1\). Multiply one or both equations by numbers that make the coefficients of one variable equal or opposite. Add or subtract the equations so that variable cancels, solve the remaining one-variable equation, then substitute back to find the other variable. For example, with \(2x + 3y = 8\) and \(x - y = -1\), multiply the second by 3 and add: \(5x = 5\), so \(x = 1\) and \(y = 2\).
How do I enter an equation like 3y - 5 = 2x into the calculator?
First rewrite it in standard form with \(x\), \(y\), and the constant in order. Subtract \(2x\) from both sides and add 5: \(-2x + 3y = 5\). Then enter \(a_1 = -2\), \(b_1 = 3\), \(c_1 = 5\). A common mistake is entering coefficients in the order they appear in the original equation without rearranging first — the signs and positions must follow the standard form.
Can I use fractions as coefficients instead of decimals?
The input fields accept decimals, so convert fractions first: \(\tfrac{1}{2}\) becomes 0.5 and \(\tfrac{2}{3}\) becomes 0.6666667 (use enough digits for accuracy). The results are rounded to 4 decimal places, so an output like 0.6667 usually represents the exact fraction \(\tfrac{2}{3}\). If you need exact fractional answers, work through the elimination by hand using fraction arithmetic.
What does it mean when the calculator says 'No solution' or 'Infinite solutions'?
'No solution' means the two lines are parallel: the determinant \(D = a_1b_2 - a_2b_1 = 0\) but the constants are inconsistent, so no pair \((x, y)\) satisfies both equations. 'Infinite solutions' means the equations describe the same line — one is a multiple of the other — so every point on that line works. Only when \(D \neq 0\) do the lines cross at a single point, which is the unique solution.
When should I use elimination instead of substitution or graphing?
Elimination works best when one variable already has equal or opposite coefficients, or when a single small multiplication makes them match — the arithmetic stays clean and sign errors are easy to catch. Substitution is preferable when one equation already isolates a variable, e.g. \(y = 3x + 1\). Graphing is useful for visualizing whether lines cross, are parallel, or coincide, but it rarely gives exact coordinates, so use it as a check rather than the main method.
How can I check that my solution is correct?
Substitute the values of \(x\) and \(y\) back into both original equations and verify each side. For \(x = 1\), \(y = 2\): the first equation gives \(2(1) + 3(2) = 8\) ✓ and the second gives \(1 - 2 = -1\) ✓. Checking only one equation is a common mistake, because a wrong pair can accidentally satisfy one equation while violating the other.
Does this method work for systems with more than two equations?
The idea generalizes: Gaussian elimination extends the same cancel-and-combine logic to any number of equations and unknowns using matrices. However, this calculator handles exactly two equations with two unknowns. For three or more variables, use a matrix calculator or perform row reduction on the augmented matrix, checking whether the determinant of the coefficient matrix is zero just as you would here.