System By Substitution Calculator
Solve a pair of linear equations the way your algebra class expects: isolate one variable, substitute it into the other equation, and work down to a single unknown. This system by substitution calculator does exactly that, and it prints every step it takes, so you can follow the working, spot a sign error, and hand in reasoning your teacher can actually check, not just an answer.
Equation 1: ax + by = c
Equation 2: dx + ey = f
Solutions are shown to 4 decimal places. The step panel uses the same numbers, rounded to 4 decimal places, so every line can be checked by hand.
Quick Answer
For the prefilled system, -2x + y = 3 and x + y = 7, the solution is x = 4/3 (1.3333) and y = 17/3 (5.6667). Isolate x in the first equation to get x = (3 – y) / -2, substitute that into the second equation, simplify to 1.5y – 1.5 = 7, solve to get y = 17/3 (5.6667), then back-substitute to find x = 4/3 (1.3333). Click Calculate on the prefilled tool to see all six steps printed for this exact system.
Key takeaways
- Substitution turns two equations in two unknowns into one equation in one unknown, then back-substitutes to find the second value.
- The tool always isolates a variable from the first equation, substitutes into the second, solves, back-substitutes, and checks both equations.
- One solution means the lines cross once. Parallel lines give no solution. The same line twice gives infinitely many solutions.
- A fraction answer such as 4/3 is exact. The tool shows 1.3333 beside it so the decimal and the fraction stay visibly connected.
- Quick Answer
- How substitution works, in five moves
- Reading the step panel the tool prints
- One solution, no solution, or infinitely many: how to tell
- Three worked systems, solved by substitution
- When substitution is the fastest choice, and when it is not
- Mistakes that break a substitution
- Substitution or elimination: a straight comparison
- Frequently Asked Questions
- Add This Calculator to Your Website
- References
How substitution works, in five moves
Substitution is built on one simple idea. If two things are equal, you can swap one for the other without changing the truth of an equation. The method uses that idea twice: once to reduce the system to a single unknown, and once more to recover the variable you removed.
The five moves below are the whole method. The tool follows them in this order for every system it solves, and the step panel labels them so you can match each printed line to the move it performs.
- Isolate. Rearrange one equation so one variable stands alone, for example y = 2x + 3.
- Substitute. Replace that variable everywhere it appears in the other equation. The second equation now contains only one unknown.
- Solve. Simplify and solve the single-variable equation.
- Back-substitute. Put the value you just found into the isolated expression from step 1 to get the other variable.
- Check. Put both values into both original equations. Both sides must balance, or something went wrong earlier.
That check in step 5 is not decoration. Sign errors in substitution almost always survive steps 1 to 4 looking plausible, and only the check exposes them. A general system of equations calculator that hides its working cannot tell you where a wrong answer came from. This tool can, because every intermediate line is on screen.
Reading the step panel the tool prints
For the prefilled system, the step panel reads as follows. Step 1 isolates x from -2x + y = 3, giving x = (3 – y) / -2. Step 2 substitutes that expression into x + y = 7. Step 3 simplifies the result to a single equation in y. Step 4 solves it, step 5 back-substitutes to find x, and step 6 checks both original equations against their constants, 3 and 7.
Two details in that panel are worth noticing. First, the tool isolates x when the first equation has a nonzero x coefficient, and switches to isolating y when the first equation starts with 0x, for example 0x + 3y = 9 paired with 2x + y = 5. The mathematics is identical either way; only the variable chosen for isolation changes. Second, the panel rounds intermediate numbers to 4 decimal places for display, but the final x and y come from the full-precision calculation, so a displayed intermediate such as 5.6667 still checks out against the exact fraction 17/3.
One solution, no solution, or infinitely many: how to tell
Every system of two linear equations falls into exactly one of three cases, and the case is decided by the geometry of the two lines. The table below names each case, shows a concrete system for it, and states what the tool reports.
| Case | What the lines do | Example system | Tool result |
|---|---|---|---|
| Unique solution | Cross at one point | -2x + y = 3; x + y = 7 | x = 1.3333, y = 5.6667 |
| No solution | Parallel, never meet | x + 2y = 3; 2x + 4y = 7 | No unique solution |
| Infinitely many | Same line twice | x + 2y = 3; 2x + 4y = 6 | No unique solution |
The parallel and coincident cases look alike in the tool because both make the variable cancel during substitution, leaving either a contradiction (parallel) or an identity (coincident). The step panel names which case applies, and the prose above explains why. Note the tell in the examples: in the parallel pair the left hand sides are exact multiples (the second is twice the first) but the constants are not (7 is not twice 3). In the coincident pair the constants are multiples too (6 is twice 3), so the second equation adds no new information. Comparing slopes gives the same answer faster: parallel lines share a slope but not an intercept, while coincident lines share both.
Three worked systems, solved by substitution
The worked examples below cover the three shapes students meet most often: clean integer answers, a system where one equation is already nearly solved, and a fractional answer. Each one can be typed into the tool to reproduce the steps.
| System | Isolate first | Solution |
|---|---|---|
| 2x + 3y = 12; x – y = 1 | x = y + 1 from the second equation | x = 3, y = 2 |
| x + 2y = 5; 3x + 4y = 11 | x = 5 – 2y from the first equation | x = 1, y = 2 |
| -2x + y = 3; x + y = 7 | x = (3 – y) / -2 from the first equation | x = 4/3, y = 17/3 |
Take the first row slowly, because it shows why choosing the easy isolation matters. The second equation, x – y = 1, rearranges to x = y + 1 with no division at all. Substituting gives 2(y + 1) + 3y = 12, which simplifies to 5y + 2 = 12, so y = 2, and back-substitution gives x = 3. If you had isolated x from the first equation instead, you would have carried the fraction (12 – 3y) / 2 through every later line and reached the same answer with more room for error. The tool isolates from the first equation by design, so for homework-style elegance you may still want to pick the cleaner equation yourself; the answer will match either way.
When substitution is the fastest choice, and when it is not
Substitution wins when one equation is already solved for a variable, or when one coefficient is 1 or -1 so isolation costs nothing. It is the natural method for word problems that hand you a relationship directly, such as “y is 3 more than twice x”, because that sentence is already an isolated expression waiting to be substituted.
Elimination wins when all four coefficients are large, fractional, or share no convenient 1, because substitution then drags fractions through every line while elimination clears them in one multiplication. Graphing wins when you only need an approximate answer or a picture of what is happening, but it cannot settle a fractional solution exactly. The comparison below summarises the trade-off honestly rather than pretending one method fits all systems.
| Method | Best when | Weakness |
|---|---|---|
| Substitution | A variable is isolated, or a coefficient is 1 or -1 | Fractions spread through every line otherwise |
| Elimination | Coefficients are large or matched easily | Choosing multipliers takes practice |
| Graphing | You need a picture or a rough answer | Fractional intersections cannot be read exactly |
A linear systems calculator that offers several methods is worth keeping beside this one for the systems where elimination is genuinely cleaner. Use substitution here when the working itself is the point, which in schoolwork it usually is.
Mistakes that break a substitution
Most substitution errors are not conceptual. They are bookkeeping slips at exactly the two moments where an expression replaces a variable. Watch for these four.
- Dropping brackets. Substituting y = 2x + 3 into x + y = 7 gives x + (2x + 3) = 7. Writing x + 2x + 3 without brackets happens to work here, but substituting into 2y or -y without brackets flips signs silently. Keep the brackets until the distribution is done.
- Substituting into the wrong equation. The isolated expression must go into the other equation, not back into the equation it came from. Putting it back where it started produces an identity such as 3 = 3 and no new information.
- Stopping halfway. Solving for one variable is not solving the system. Back-substitution is a required step, not a courtesy, and a surprising number of lost marks come from answers that report only x.
- Skipping the check. A sign error in step 1 propagates through every later line and still produces a tidy-looking pair. The check against both original equations is the only step that catches it.
One more habit helps: rewrite each equation in the standard form ax + by = c before entering coefficients, moving every term to the correct side first. Writing linear equations in standard form is a separate skill, but it is the step that prevents the commonest input error here, which is entering a constant with the wrong sign after moving it across the equals sign.
Substitution or elimination: a straight comparison
The honest verdict is that neither method is universally better, and examiners know it: they often specify the method precisely because the working, not the answer, is being assessed. This tool exists for the substitution case, and it shows its working for exactly that reason.
Frequently Asked Questions
It is a way to solve a system of equations by isolating one variable in one equation and substituting that expression into the other equation. That leaves a single equation in a single unknown, which you solve, then back-substitute to find the remaining variable.
Pick the variable whose coefficient is 1 or -1 if one exists, because isolation then needs no division. If no coefficient is 1 or -1, pick the smallest coefficient to keep the fractions as simple as possible. The tool isolates from the first equation, which gives the same final answer as any other valid choice.
It reports no unique solution and explains that the variable cancelled during substitution, leaving a contradiction. Parallel lines never meet, so no ordered pair satisfies both equations, and the step panel says so instead of inventing an answer.
It means both equations describe the same line. Every point on that line satisfies both equations, so there is no single answer to report. The tool names this coincident case in its step panel and distinguishes it from the parallel case.
Because in schoolwork the working is usually what is marked. The step panel shows the isolation, the substitution, the single-variable equation, the back-substitution, and the check, so you can copy the reasoning, find a sign error, or confirm a hand solution line by line.
Yes. Enter decimals or fractions as decimals, for example 0.5 for one half, and the tool carries them through the same steps. Fractional answers are shown to 4 decimal places, such as 1.3333 for 4/3, and the check step confirms them against both original equations.
Neither is universally better. Substitution is fastest when a variable is already isolated or a coefficient is 1 or -1. Elimination is cleaner when all coefficients are large or fractional. Both return the same solution on any system that has a unique one.
Put the x and y values into both original equations and simplify each side separately. For the prefilled system, x = 4/3 and y = 17/3 give -2(4/3) + 17/3 = 3 and 4/3 + 17/3 = 7. If either side does not match its constant, the solution is wrong.
Add This Calculator to Your Website
References
- Mathematics LibreTexts, Elementary Algebra (Arnold). Solving Systems by Substitution Accessed October 25, 2026.
- Mathematics LibreTexts, Elementary Algebra 1e (OpenStax). Solve Systems of Equations by Substitution Accessed October 25, 2026.
- Khan Academy. Solving Systems with Substitution Accessed October 25, 2026.
- Portland Community College, Math Learning Center. Solving Systems Using the Substitution Method Accessed October 25, 2026.
- AllMath. Substitution Calculator Accessed October 25, 2026.
- Symbolab. System of Equations Calculator Accessed October 25, 2026.
