πAI Math Solver

Learn

Substitution Calculator - Solve Systems by Substitution, Step by Step

A substitution calculator with steps: type the six coefficients of your two equations and the form returns x and y at once. The page then shows how to solve by substitution - solve one equation, substitute into the other, check - one worked example at a time. Six numbers and one click run the substitution calculator; the examples rebuild every step by hand.

Put both equations in the form a1x + b1y = c1 / a2x + b2y = c2, one per row.

x+y=
x+y=
Type your system of equations — the AI shows the substitution steps

How to use this substitution calculator

Put both equations in standard form first: a1x+b1y=c1a_1x + b_1y = c_1 and a2x+b2y=c2a_2x + b_2y = c_2. Then fill the six boxes of the substitution calculator and click Calculate.

  • a1a_1, b1b_1, c1c_1 — Equation 1: the x-coefficient, the y-coefficient, and the right side. For x + y = 7 they are 1, 1, 7 — the substitution calculator's default system.
  • a2a_2, b2b_2, c2c_2 — the same three numbers for Equation 2. Keep the sign as it stands: in x − y = 1, the y-coefficient b2b_2 is −1.
  • Check — the substitution calculator's guard row: it tests whether the determinant a1b2−b1a2a_1b_2 - b_1a_2 is nonzero. True means exactly one solution.
  • x and y — the solution pair, rounded to four decimals. The substitution calculator prints one row per letter.

The substitution calculator starts pre-filled with x + y = 7 and x − y = 1; one click solves it: x = 4, y = 3. Swap in your own numbers and the substitution calculator re-solves instantly.

A false Check row means the determinant is 0: no solution or infinitely many. The special-cases table below separates the two in seconds.

This page is more than a static substitution calculator — it is also an AI tutor. The box under the form takes full questions, photos, and follow-ups:

  • Ask in plain words. "My equations are 2x + 3y = 12 and x − y = 1 — solve the system by substitution." The AI solves it step by step right in the chat.
  • Take a photo of your homework. The AI reads the system and solves it step by step.
  • Ask about the ideas, not just the answer. "Why substitute into the other equation?" The AI explains step by step; you can check every number against the calculator on this page.
  • Work backwards. Give a solution point and ask which coefficients produce it. The AI walks it backwards with you, then the substitution calculator confirms the pair.
  • Keep asking follow-ups. Ask "why?" as often as you need — each answer builds on the last.

What a substitution method calculator solves

Substitution means replacing a letter with something equal to it. If x + y = 7, then x is 7 − y everywhere, so the x in the other equation can become 7 − y. One equation, one letter — and solving it is routine. That swap is the one move a substitution calculator makes, over and over. The substitution calculator just never gets tired of it.

A 1904 college algebra text defines the move: to eliminate x is to derive an equation in which x no longer occurs. That definition still drives every substitution method calculator, this one included — type any pair and it runs the same swap on your numbers.

Read the picture: the blue line is every pair with x + y = 7, the orange line every pair with x − y = 1. The lines cross exactly once, at (4, 3). Every substitution calculator question ends at a crossing like this one. One crossing, one solution — that is the substitution calculator's Check row in graphical form.

Here is the full routine — you can solve the system by substitution by hand in six short steps:

  1. Solve one equation for a letter with coefficient 1, to avoid fractions — the setup the substitution calculator favors.
  2. Substitute that expression into the other equation, parentheses and all — the move the substitution calculator automates.
  3. Solve the result for the remaining letter.
  4. Substitute back into either original equation for the second letter.
  5. Write the answer as an ordered pair (x, y).
  6. Check the pair in both original equations.

Every example below runs these six steps; the substitution calculator collapses them into one click.

12345678123456(4, 3)x + y = 7x − y = 1xy

The substitution calculator in one picture: x + y = 7 and x − y = 1 are two lines, and the solution (4, 3) is the single point where they cross

The formulas this substitution calculator uses

The six steps always end at the same two fractions, so the substitution calculator can evaluate them directly:

x=c1b2−b1c2a1b2−b1a2y=a1c2−c1a2a1b2−b1a2x = \dfrac{c_1b_2 - b_1c_2}{a_1b_2 - b_1a_2} \qquad y = \dfrac{a_1c_2 - c_1a_2}{a_1b_2 - b_1a_2}

Both share one denominator — the determinant:

D=a1b2−b1a2D = a_1b_2 - b_1a_2

The Check row of the substitution calculator computes exactly this number. A zero there is the substitution calculator's only stop sign.

SymbolMeaning
a1a_1, b1b_1, c1c_1coefficients and right side of Equation 1
a2a_2, b2b_2, c2c_2coefficients and right side of Equation 2
DDthe determinant the substitution calculator checks; D≠0D \ne 0 means one solution
(x,y)(x, y)the solution pair the x and y rows report

Special cases — how the substitution calculator reports a false Check row:

CaseWhat it meansGraph
D≠0D \ne 0exactly one solutiontwo lines crossing once
D=0D = 0 and a1/a2=b1/b2=c1/c2a_1/a_2 = b_1/b_2 = c_1/c_2infinitely many solutions (dependent)one line, drawn twice
D=0D = 0 and the cc-ratio differsno solution (inconsistent)two parallel lines

Try 2x + 6y = 10 with x + 3y = 5: every ratio matches, one line drawn twice, infinitely many solutions. Change c1c_1 to 9 and no pair works: no solution. The substitution calculator flags both with a false Check row; the ratios tell you which.

Example 1 - solve by substitution with the anchor pair

Solve the anchor system by substitution, one line per step — the substitution calculator's own default:

  1. Solve Equation 1 for x: x=7−yx = 7 - y.
  2. Substitute into Equation 2: (7−y)−y=1(7 - y) - y = 1.
  3. Combine like terms: 7−2y=17 - 2y = 1, so y=3y = 3.
  4. Substitute back: x=7−3=4x = 7 - 3 = 4.
  5. Check both equations: 4+3=74 + 3 = 7 and 4−3=14 - 3 = 1. The solution is (4,3)(4, 3).

The form above holds exactly this system: a1=1a_1 = 1, b1=1b_1 = 1, c1=7c_1 = 7, a2=1a_2 = 1, b2=−1b_2 = −1, c2=1c_2 = 1. Click Calculate and the substitution calculator confirms x = 4, y = 3 in one run. That is the substitution calculator's whole promise: six coefficients in, two values out.

Example 2 - negatives and the parentheses trap

A 1904 college algebra text solves this pair, and it still teaches the right habits:

  1. Solve Equation 1 for x: x=3−3yx = 3 - 3y.
  2. Substitute into Equation 2, parentheses kept: 3(3−3y)+5y=13(3 - 3y) + 5y = 1 — the single-equation fold the substitution calculator mirrors.
  3. Distribute the 3 over both terms: 9−9y+5y=19 - 9y + 5y = 1.
  4. Solve: −4y=−8-4y = -8, so y=2y = 2.
  5. Substitute back: x=3−3(2)=−3x = 3 - 3(2) = -3.

The old book then verifies both: −3+3⋅2=3−3 + 3 \cdot 2 = 3 and 3(−3)+5⋅2=13(−3) + 5 \cdot 2 = 1. Both hold, so (x,y)=(−3,2)(x, y) = (−3, 2). The substitution calculator will agree.

Type 1, 3, 3 and 3, 5, 1 into the substitution calculator above — its x and y rows return −3 and 2 without a single fraction. The substitution calculator and the 1904 text agree: the method is that stable.

Example 3 - work backwards from the solution

Sometimes the solution is given and a coefficient is missing — work the substitution calculator's direction in reverse. Suppose x + y = 7 and 2x − by = 5 have the solution (4, 3). Find b.

  1. A solution must satisfy both equations, so feed x = 4 and y = 3 to the second one, the check the substitution calculator runs for you.
  2. That gives 2⋅4−3b=52 \cdot 4 - 3b = 5.
  3. Solve: 8−3b=58 - 3b = 5, so 3b=33b = 3 and b=1b = 1.
  4. The full system is x + y = 7 with 2x − y = 5, and indeed 4+3=74 + 3 = 7 while 8−3=58 - 3 = 5.

With b = 1 the determinant is 1⋅(−1)−1⋅2=−31 \cdot (−1) - 1 \cdot 2 = −3, not 0. One solution exists, and the substitution calculator reports it as x = 4, y = 3 — run it and see. Change b to 2 and the substitution calculator returns (4.75, 2.25) instead: the system itself changed.

The Variable Solver Side Door: One Letter at a Time

Not every question arrives as a full system. A very common one is: you know one letter and need the other. Take 5x + 2y = 20 with x = 2 — here the substitution calculator works as a variable solver in three moves.

  1. Turn the known value into its own row: x+0y=2x + 0y = 2.
  2. Enter 5, 2, 20 in the first row and 1, 0, 2 in the second — a coefficient 0 switches a letter off, so the pair solver becomes a variable calculator — a trick the substitution calculator handles natively.
  3. Calculate: the substitution calculator returns x = 2 and y = 5. Check: 5⋅2+2⋅5=205 \cdot 2 + 2 \cdot 5 = 20.

So if you searched for a solve for variable calculator, this page answers that too. Put the known letter in its own row, then read the unknown off the other row. The substitution calculator never cares which letter you were after.

Three Common Mistakes When You Solve Using Substitution

Three slips the substitution calculator catches every day:

  1. Dropping the parentheses. The 3 in 3(3 − 3y) must multiply both terms. Writing 9 − 3y instead of 9 − 9y wrecks the y value; the substitution calculator's x and y rows keep the algebra honest.
  2. Losing a sign. A term that crosses the equals sign flips: −y becomes +y. That is why the anchor types b2=−1b_2 = −1 exactly as x − y = 1 stands; the substitution calculator keeps every sign you type.
  3. Solving for the wrong letter. When some coefficient equals 1, solve for that letter and skip the fractions. Forcing 3x + 5y = 1 to give x first invites fractions for nothing; the substitution calculator accepts any letter choice — the fractions are the only cost.

Name the slip, fix it, and the substitution calculator confirms the repair — solve one by hand for practice.

Problem 1

The sum of two numbers is 24. One of the numbers is 6 less than the other. Find the two numbers, then check them with the substitution calculator above.

⏱ 00:00
Page 1
Problem 2

A rectangular vegetable garden has a perimeter of 94 feet. Its length is 5 feet more than twice its width. Find the length and the width, then check with the substitution calculator above.

⏱ 00:00
Page 1

Frequently asked questions

1

How do I enter equations into this substitution calculator?

Rearrange each equation to standard form first: $a_1x + b_1y = c_1$ and $a_2x + b_2y = c_2$. Then type the six coefficients. For y = 2x + 3, rewrite it as −2x + y = 3 and enter $a_1 = −2$, $b_1 = 1$, $c_1 = 3$. The substitution calculator takes the numbers from there.

2

When should I solve the system by substitution instead of elimination?

Use substitution when a variable has coefficient 1, or an equation hands you the variable directly, like y = x + 5 — a substitution calculator shines exactly there. This page is that substitution calculator. Elimination earns its keep when both letters carry awkward coefficients.

3

What does 0 = 0 mean when I solve by substitution?

A true statement like 0 = 0 means every point on one line satisfies the other. The equations are dependent — one line drawn twice — so the substitution calculator reports infinitely many solutions. Its Check row reads false here too, exactly as in the no-solution case.

4

What does a false statement like 2 = 7 mean?

Parallel lines never meet: no solution, an inconsistent system. In this substitution calculator both zero-determinant cases surface as a false Check row; the ratios table — not another substitution calculator run — separates them.

5

Is it 'solve by substitution' or 'solve for substitution'?

Both phrasings lead to this substitution calculator page. Classrooms say solve by substitution or solve using substitution; if you typed solve for substitution, the substitution calculator here is still the right tool. Either way, it solves the pair the same way.

6

Can the substitution method handle fractional answers?

Yes. The x and y rows round to four decimals: 3x + 2y = 8 with x + 3y = 7 returns 1.4286 and 1.8571, exactly 10/7 and 13/7. The method never needs whole numbers, and neither does this substitution calculator — type 3, 2, 8 and 1, 3, 7 into the substitution calculator above and read the two rows. The substitution calculator only rounds the display, never the math.

Related practice