Math
Substitution Method Calculator
Type two linear equations such as y = 2x - 1 and 3x + y = 9 and the substitution method calculator solves them the way a textbook does: isolate one variable (it picks the one with coefficient 1 when possible), substitute that expression into the other equation, solve for the remaining variable, then back-substitute.
Every step is shown with exact fractions, and systems with no solution or infinitely many solutions are explained.
Use x and y (any two letters work). Each line needs one = sign. Fractions and decimals are fine.
Try an example
Result
Solution
—
- First variable
- —
- Second variable
- —
- Type of system
- —
- Expression substituted
- —
- Equation after substituting
- —
- Check
- —
More details (1 more)
- Equations in standard form
- —
Student quick launch
Grade planning, algebra checks, and formulas students reach for most.
Study path
Use this calculator with
Follow these when you want the formula behind the answer, a short lesson, or nearby tools in the same topic.
What the substitution method calculator solves
The substitution method solves a system by expressing one variable in terms of the other and plugging that expression into the second equation. That leaves one equation in one unknown, which is solved directly; the first expression then gives the other variable. It is the natural choice when one equation is already solved for a variable or has a The number multiplying a variable, like the 3 in 3x. of 1.
The four steps
- Solve one equation for one variable (choose a coefficient of 1 or -1 to avoid fractions).
- Substitute that expression into the other equation, using parentheses.
- Solve the resulting one-variable equation.
- Back-substitute to find the other variable, then check both equations.
| Result of step 3 | Meaning | Solution set |
|---|---|---|
| x = a number | independent system | one point (x, y) |
| 0 = 0 (variable cancels, true) | dependent system | infinitely many: every point on the line |
| 0 = 5 (variable cancels, false) | inconsistent system | none: parallel lines |
How to use it
- Type the two equations, one per line, in any arrangement such as y = 2x - 1 or 3x + y = 9.
- Read the solution and the type of system at the top.
- Open the steps to see which variable was isolated, the substituted equation, and the back-substitution.
How to read the answer
An independent system gives one point where the two lines cross. If the variable cancels and leaves a true statement, the equations are the same line and there are infinitely many solutions; if it leaves a false statement, the lines are parallel and there is no solution. Fractions in the answer are exact, with decimals alongside.
Common mistakes and edge cases
- Substituting into the same equation you solved: that only gives 0 = 0. Always substitute into the other equation.
- Forgetting parentheses when substituting: 3(2x - 1) is 6x - 3, not 6x - 1.
- Stopping after finding one variable. Back-substitute to get both.
- Misreading 0 = 0 as 'x = 0': it means the system is dependent, not that x is zero.
Worked examples
One equation already solved for y
y = 2x - 1 and 3x + y = 9 → x = 2, y = 3
Solution
x = 2, y = 3
Fraction answer
2x + 3y = 7 and x - y = 1 → x = 2, y = 1
Solution
x = 2, y = 1
Fractions in the solution
3x + 2y = 4 and x - 4y = 5 → x = 13/7, y = -11/14
Solution
x = 13/7 (1.857143), y = -11/14 (-0.785714)
No solution
x + y = 2 and 2x + 2y = 5 are parallel
Solution
No solution (inconsistent system)
Infinitely many solutions
x - y = 1 and 2x - 2y = 2 are the same line
Solution
Infinitely many solutions (dependent system)
Decimal coefficients
0.5x + y = 3 and x - 0.25y = 1.5 → x = 2, y = 2
Solution
x = 2, y = 2
Three equations are rejected
This page is for 2×2 systems
Solution
Error
Frequently asked questions
When should I use substitution instead of elimination?+
When one equation is already solved for a variable, or a variable has coefficient 1 or -1, substitution avoids fractions. When both equations are in standard form with larger coefficients, elimination is usually quicker.
Which variable should I solve for first?+
The one with coefficient 1 or -1. The calculator picks it automatically; if none exists it picks the smallest coefficient to keep the fractions small.
What does it mean when the variables cancel?+
If you are left with a true statement such as 0 = 0, the equations are the same line and there are infinitely many solutions. If you get a false statement such as 0 = 5, the lines are parallel and there is no solution.
Can I enter equations that are not in standard form?+
Yes. Write them however they appear, such as y = 2x - 1 or 3x = 9 - y. Each line just needs one = sign and the letters x and y.
How do I check the solution?+
Substitute both values into both original equations. Each must produce a true statement. The calculator shows this check in the last step.
Does the substitution method work for three variables?+
Yes, but it takes more steps. For 3×3 systems the elimination method calculator or Cramer's rule is more practical.
About this calculator
- Written by
- mathcheck editorial team
- Last reviewed
- September 4, 2026
Method
- Uses the values entered by the user and stable formulas documented on the page.
Related calculators
Elimination Method Calculator
Solve 2×2 and 3×3 systems of linear equations by elimination (addition method) with classroom steps: multiply equations to get opposite coefficients, add to eliminate a variable, back-substitute, and check. Exact fractions; detects no-solution and dependent systems.
System of Equations Calculator
Solve a 2x2 linear system with elimination/determinant steps for x and y.
Cramer's Rule Calculator
Solve 2 x 2, 3 x 3, and up to 8 x 8 linear systems with Cramer's rule. Shows D and every D_x, D_y, D_z determinant with the replaced column, exact fraction answers, and explains what happens when D = 0.
Intersection of Two Lines Calculator
Find where two lines intersect from any form of their equations. Exact-fraction intersection point, parallel and coincident detection, the angle between the lines, a graph, and Cramer's-rule steps.
Slope Intercept Form Calculator
Write the equation of a line in slope-intercept form y = mx + b from two points, a point and a slope, or standard form. Exact fractions, intercepts, a graph, and every other form of the line.
Box Method Calculator
Box method (area model) calculator that multiplies polynomials with an n × m box or factors a trinomial with the 2 × 2 box and ac method. Draws the box, labels every cell, and reads the factors off the edges.
Last updated: September 4, 2026