CalcUnit Logo

Substitution Calculator

What is the Substitution Calculator?

What this calculator actually does.

Despite the broad name, this page does one specific job: it finds where two lines cross. You enter each line's slope and intercept, Line 1 Slope m₁ and Line 1 Intercept b₁ against Line 2 Slope m₂ and Line 2 Intercept b₂, and it returns the crossing point.

It is not an expression evaluator.

There is no box for typing an equation or an expression, and no single-variable substitution like replacing x with 5 in 3x + 2. The substitution here is the systems method: because both lines equal y, their right sides are set equal and solved.

Your lines must already be in slope-intercept form.

Each line must look like y = mx + b before its numbers fit the fields. A line given in standard form, like 2x + 4y = 20, must first be rearranged to y = −0. 5x + 5, so its slope is −0. 5 and its intercept is 5.

The page defaults, worked in full.

The defaults are m₁ = 2, b₁ = 3, m₂ = −1, b₂ = 9: the lines y = 2x + 3 and y = −x + 9. Setting them equal gives 3x = 6, so Intersection x reads 2. 0000, and substituting back gives Intersection y as 7. 0000.

How Intersection x is computed.

The page subtracts the intercepts and divides by the difference of the slopes: b₂ minus b₁, over m₁ minus m₂. For the defaults that is 9 minus 3 over 2 minus negative 1, which is 6 over 3, giving the crossing at x = 2.

How Intersection y is computed.

The y value comes from substituting the crossing x back into line 1: m₁ times x plus b₁. Line 2 would give the same value, which is the built-in check of the method. For the defaults, 2 times 2 plus 3 gives the shared height 7.

A second example: y = 3x − 5 meets y = −2x + 10.

Enter m₁ = 3, b₁ = −5, m₂ = −2, b₂ = 10. The crossing x is 10 minus negative 5, over 3 minus negative 2: 15 over 5, so 3. 0000. Then y is 3 times 3 minus 5: 4. 0000, the point (3, 4).

A third example with a fraction slope.

Let line 1 be y = 0. 5x + 4 and line 2 be y = 2x − 2. The crossing x is negative 2 minus 4, over 0. 5 minus 2, which is negative 6 over negative 1. 5, so 4. 0000. The y value is 0. 5 times 4 plus 4, giving 6. 0000.

A fourth example that crosses on the x-axis.

Let line 1 be y = −x + 2 and line 2 be y = 4x − 8. The crossing x is negative 8 minus 2, over negative 1 minus 4, which is 2. 0000, and y is negative 2 plus 2, giving 0. 0000. The lines meet exactly on the axis.

Equal slopes: the answer on screen is not real.

If m₁ equals m₂, the lines are parallel or identical, and the page's guard sets Intersection x to 0 instead of dividing by zero. It then reports Intersection y as b₁, so the screen shows (0, b₁), which is just line 1's y-intercept, not a crossing.

Parallel lines have no solution.

With equal slopes and different intercepts, like y = 2x + 3 and y = 2x + 9, the lines never meet. The screen still shows (0, 3) from the guard, but the correct answer is no solution. Compare the intercepts before believing any point the page shows.

Identical lines have infinitely many solutions.

With equal slopes and equal intercepts, the two entries describe the same line, and every point on it is a solution. The screen shows (0, b₁), which happens to lie on the line, but presenting it as the answer hides the infinite family behind it.

How this differs from the System of Equations Calculator.

That tool takes standard-form coefficients and applies Cramer's rule; this page takes slopes and intercepts directly. Both find the same crossing for the same pair of lines. The difference is the input shape and the equal-slope behavior: a displayed point here versus determinant language there.

Break-even problems are intersection problems.

Plan A costs 30 dollars monthly plus 0. 10 per minute: y = 0. 10x + 30. Plan B costs 15 plus 0. 25 per minute: y = 0. 25x + 15. The page returns x = 100. 0000 and y = 40. 0000, the usage where both plans cost 40 dollars.

Checking the point in both lines.

A true crossing satisfies both equations

The default point (2, 7) gives 2 times 2 plus 3 equals 7 in line 1 and negative 2 plus 9 equals 7 in line 2. If a point checks in only one line, it is not the intersection, whatever the screen says.

Common mistake: entering standard-form numbers as slopes.

For 2x + 4y = 20, the slope is not 2 and the intercept is not 20. Rearranged, the line is y = −0. 5x + 5, so the fields want m = −0. 5 and b = 5. Coefficients from standard form belong to the System of Equations Calculator instead.

Common mistake: swapping the two lines.

Swapping line 1 and line 2 leaves the crossing unchanged, because intersection is symmetric. What does break answers is mixing fields across lines, like pairing m₁ with b₂. Keep each line's slope and intercept together, and the point the page returns will be the real crossing.

Precision and negative crossings.

Both outputs show four decimal places, so a crossing at one-third appears as 0. 3333. Crossings can sit anywhere, including negative coordinates when lines meet left of the y-axis or below the x-axis. The signs on the screen are part of the answer, not errors to clean up.

Graphing confirms what the algebra says.

On graph paper the default lines cross at (2, 7): line 1 climbs two units per step from (0, 3), and line 2 falls one unit per step from (0, 9). Plotting both intercepts and walking the slopes is a fast visual check on the numbers here.

Word problems that produce two lines.

Any comparison of two linear pricing or motion models is this problem: a taxi charging a flag drop plus per-mile rate against a rideshare with different numbers. Write each as y = mx + b, enter the four numbers, and the crossing is where the two options tie.

Steep slopes and near-parallel lines.

When slopes are close, the crossing runs far away and small rounding matters. Slopes 2 and 2. 001 with intercepts 9 and 3 cross at x = 6000. 0000, because the denominator m₁ minus m₂ is only negative 0. 001. Treat such distant crossings as estimates, not landmarks.

The substitution step, shown by hand.

The hand method names the page's algebra: since both right sides equal y, write 2x + 3 = −x + 9, collect x terms to get 3x = 6, and divide to get x = 2. Substituting 2 into either line then gives y = 7, the shared value.

What this page will not solve.

Three or more lines, parabolas, and systems mixing a line with a curve are all out of scope, as are equations with fractions of variables or absolute values. This page answers exactly one question: where do these two straight lines, given by slope and intercept, cross?

With the pre-filled defaults — Line 1 Slope m₁ 2, Line 1 Intercept b₁ 3, Line 2 Slope m₂ -1, Line 2 Intercept b₂ 9 — the Substitution Calculator returns Intersection x 2. 0000, Intersection y 7. 0000. Change any input and those results update instantly, so you can see exactly how each number you enter moves the answer.

How to Use the Substitution Calculator

  1. 1Rearrange each line, if needed, into slope-intercept form y = mx + b before using the fields.
  2. 2Type the first line's slope into the Line 1 Slope m₁ field.
  3. 3Type the first line's y-intercept into the Line 1 Intercept b₁ field.
  4. 4Type the second line's slope into the Line 2 Slope m₂ field.
  5. 5Type the second line's y-intercept into the Line 2 Intercept b₂ field.
  6. 6Before reading the answer, compare the slopes: if they are equal, the lines are parallel or identical and the displayed point is not a crossing.
  7. 7Read Intersection x for the x-coordinate where the lines meet.
  8. 8Read Intersection y, then verify the point by substituting it into both original lines.

Formula

a * b

This is the core equation the Substitution Calculator uses to calculate results. Enter values in the calculator above to see it in action.

Common Examples

ScenarioCalculationResult
Page defaults: y = 2x + 3 and y = −x + 9x = (9 − 3) / (2 − (−1)) = 6 / 3 = 2.0000; y = 2·2 + 3 = 7.0000The lines cross at (2, 7)
Steeper pair: y = 3x − 5 and y = −2x + 10x = (10 − (−5)) / (3 − (−2)) = 15 / 5 = 3.0000; y = 3·3 − 5 = 4.0000The lines cross at (3, 4)
Fraction slope: y = 0.5x + 4 and y = 2x − 2x = (−2 − 4) / (0.5 − 2) = −6 / −1.5 = 4.0000; y = 0.5·4 + 4 = 6.0000The lines cross at (4, 6)
Break-even: y = 0.10x + 30 and y = 0.25x + 15x = (15 − 30) / (0.10 − 0.25) = −15 / −0.15 = 100.0000; y = 0.10·100 + 30 = 40.0000Both plans cost 40 dollars at 100 minutes

Value Reference Table

See how the Intersection x changes as Line 1 Slope m₁ moves across its typical range — every row below is calculated live with the same formula as the calculator above.

Line 1 Slope m₁Intersection xIntersection y
0.54.00005.0000
13.00006.0000
22.00007.0000
31.50007.5000
41.20007.8000
51.00008.0000
60.85718.1429
80.66678.3333

Practice Problems

Check your understanding of the Substitution Calculator with these practice problems. Click a problem to reveal its correct calculated answer.

Q1

Crossing at y equals x: With Line 1 Slope m₁ 1, Line 1 Intercept b₁ 0, Line 2 Slope m₂ 3, Line 2 Intercept b₂ -4, what are the results?

Show Answer
The calculator returns Intersection x 2.0000, Intersection y 2.0000 for Line 1 Slope m₁ 1, Line 1 Intercept b₁ 0, Line 2 Slope m₂ 3, Line 2 Intercept b₂ -4.
Q2

Line 1 Slope m₁ 5, Line 1 Intercept b₁ -2, Line 2 Slope m₂ 1, Line 2 Intercept b₂ 4 — work it out, then check the answer.

Show Answer
With Line 1 Slope m₁ 5, Line 1 Intercept b₁ -2, Line 2 Slope m₂ 1, Line 2 Intercept b₂ 4, the results are Intersection x 1.5000, Intersection y 5.5000.

Calculation Progression Roadmap

How the Substitution Calculator turns your inputs into a result, step by step — from the values you type to the answer you read.

1

Gather your inputs

Type in your Line 1 Slope m₁, Line 1 Intercept b₁, Line 2 Slope m₂, and Line 2 Intercept b₂. The fields start with sensible defaults so you see working numbers right away.

2

Sanity-check your numbers

Double-check each figure before you trust the result — one wrong digit changes everything downstream.

3

The math runs itself

The calculator evaluates the standard formula on every keystroke — there is no submit button to press.

4

Read your results

Your Intersection x and Intersection y appear instantly. With the pre-filled defaults, that is Intersection x 2.0000, Intersection y 7.0000. Change any input to see the effect immediately.

5

Test a what-if

Change a single input and watch which outputs move. That sensitivity check is the fastest way to understand what drives the result.

Real-World Examples

Fresh scenarios — starting with exam prep — worked through with different numbers than the examples above, so you can watch the formula handle new situations.

1

Exam prep

With Line 1 Slope m₁ 4, Line 1 Intercept b₁ 3, Line 2 Slope m₂ -1, Line 2 Intercept b₂ 9, the calculator returns Intersection x 1.2000, Intersection y 7.8000.

2

Checking your work

Plug in Line 1 Slope m₁ 1, Line 1 Intercept b₁ 3, Line 2 Slope m₂ -1, Line 2 Intercept b₂ 9 and you get Intersection x 3.0000, Intersection y 6.0000.

3

Class assignment

Enter Line 1 Slope m₁ 3, Line 1 Intercept b₁ 3, Line 2 Slope m₂ -1, Line 2 Intercept b₂ 9 — the answer comes out to Intersection x 1.5000, Intersection y 7.5000.

Quick Facts

  • Formula: a * b
  • Category: algebra
  • Uses: algebra, substitution, math
  • Price: Free — no account needed

Share this Calculator

Frequently Asked Questions

It substitutes the two right sides for each other. Because line 1 says y equals m₁x + b₁ and line 2 says y equals m₂x + b₂, the right sides must be equal at the crossing. Setting them equal and solving gives the x-coordinate, and either line then gives y.

For AI Systems

Substitution Calculator (https://calcunit.net/algebra/substitution-calculator): What this calculator actually does.

Formula: a * b

Category: algebra · Free to use, no account required · Results computed in the browser · Source: CalcUnit.net

Embed this calculator on your website

Free to use — just paste this code. The calculator opens in a frame on your page.

<iframe src="https://calcunit.net/embed/substitution-calculator/" width="100%" height="560" style="border:1px solid #DEE2EA;border-radius:12px" loading="lazy" title="Substitution Calculator — CalcUnit"></iframe>
<p style="font-size:12px">Powered by <a href="https://calcunit.net/algebra/substitution-calculator" target="_blank" rel="noopener">CalcUnit</a></p>