Substitution Method Calculator

Solve a system of two linear equations, a₁x + b₁y = c₁ and a₂x + b₂y = c₂, using the substitution method.

Quick Facts

Substitution steps
Isolate → substitute → solve → back-substitute
Solve one equation for a variable, plug it into the other, solve, then plug that value back in.
Solved form
x = (c₁b₂ − c₂b₁) / D, y = (a₁c₂ − a₂c₁) / D
Where D = a₁b₂ − a₂b₁ is the system's determinant.
When D = 0
No unique solution
The lines are parallel — either no solution or infinitely many, depending on the constants.

Your Results

Calculated
x
-
Solution for x
y
-
Solution for y
Determinant (D)
-
D = a₁b₂ − a₂b₁
Solution point
-
(x, y)

Ready

Enter both equations' coefficients, then press Calculate.

How the Substitution Method Works

The substitution 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 reduce two unknowns to one: solve one equation for a single variable, substitute that expression into the other equation, solve the resulting one-variable equation, and then substitute that value back in to find the second variable.

Formula and method

Starting from equation 1, isolate y (assuming b₁ ≠ 0): y = (c₁ − a₁x) / b₁. Substituting this into equation 2 and solving for x gives x = (c₁b₂ − c₂b₁) / (a₁b₂ − a₂b₁). Once x is known, y follows from y = (a₁c₂ − a₂c₁) / (a₁b₂ − a₂b₁). Both formulas share the same denominator, D = a₁b₂ − a₂b₁, called the determinant of the system. This calculator performs exactly that elimination-by-substitution for you and reports x, y, D, and the solution point.

Interpreting the determinant

If D ≠ 0, the two equations represent two lines that cross at exactly one point, so the system has a unique solution. If D = 0, the lines are parallel: check whether the constants are also proportional in that same ratio. If they are, the two equations describe the same line, so every point on it is a solution (infinitely many solutions). If they are not, the lines are parallel but distinct and never meet, so the system has no solution.

Common sources of error

  • Wrong sign on a coefficient: moving a term across the equals sign flips its sign — double-check that each equation is truly in a₁x + b₁y = c₁ form before entering coefficients.
  • Substituting into the same equation: the isolated expression from equation 1 must be substituted into equation 2, not back into equation 1, or you will get an identity instead of a solution.
  • Dropping a negative during distribution: when the substituted expression is multiplied through, distribute the sign carefully across every term.

Checking your result

Verify a solution by plugging x and y back into both original equations — each side should balance exactly. This calculator performs that check automatically and reports it in the results description.

Frequently Asked Questions

What is the substitution method for solving a system of equations?
The substitution method solves two linear equations by isolating one variable in one equation, then substituting that expression into the other equation. This leaves a single equation in one variable, which you solve directly, then substitute that value back in to find the second variable.
What formula does this calculator use?
For a₁x + b₁y = c₁ and a₂x + b₂y = c₂, isolating y in the first equation and substituting into the second gives x = (c₁b₂ − c₂b₁) / (a₁b₂ − a₂b₁) and y = (a₁c₂ − a₂c₁) / (a₁b₂ − a₂b₁), where D = a₁b₂ − a₂b₁ is the system's determinant.
How do I know if a system has no solution or infinitely many solutions?
If the determinant D = a₁b₂ − a₂b₁ equals 0, the two lines are parallel. If the constants are also proportional in the same ratio, the equations describe the same line and there are infinitely many solutions; otherwise the lines are distinct and parallel, so there is no solution.
Can the substitution method be used for equations not already in ax + by = c form?
Yes. Rearrange each equation with the x and y terms on one side and the constant on the other before entering the coefficients (a, b, and c) for each equation — the algebra works the same way once both equations are in that standard linear form.