Stage 8 · Algebra Stretch Skills

Equation of a Line from Two Points

Given two points, write the line's equation in y = mx + b form. You already know every piece — this lesson just puts them together into one organized, calculator-friendly process.

How do you want to start?

📖 Learn the Lesson Workflow + examples ✏️ Guided Practice One step at a time 🎯 GED-Level Practice Full-process questions

Before You Start

A Stage 8 stretch skill

This stage contains advanced algebra skills that build on earlier lessons. You should already feel comfortable with slope and y = mx + b before starting this page. This lesson combines several earlier line skills together into one advanced algebra process.

Come back here after you've worked through:

You already know every part of this process. You know how to find slope from two points. You know what y = mx + b means. You know how to solve a small equation. All this lesson does is line those skills up in order. Now we combine earlier line skills together — slowly, one step at a time.

The hard part is the setup, not the arithmetic. Stay organized, write one substitution step at a time, and use the calculator for the numbers. Organization matters more than mental math here.

The 4-Step GED Workflow

Every "equation from two points" problem uses the same four steps. Learn this one routine and use it every single time — there is no second method to keep track of.

1
Find the slope from the two points. This is exactly the Finding Slope skill — change in y over change in x. The calculator is encouraged.
2
Substitute the slope and ONE point into y = mx + b. Pick either point — just make sure the x and y come from the same point. Label the values if it helps.
3
Solve for b. Do the arithmetic on the right side first, then move it across to get b alone.
4
Write the final equation. Drop your slope (m) and your starting value (b) back into y = mx + b.
m = y₂ − y₁x₂ − x₁   →   y = mx + b
What the two letters mean. Slope tells how fast — how much y changes for every step right. b tells where the line starts — its value when x = 0. Keep that meaning in mind and the algebra stays connected to something real.

🔢 Worked Examples

Notice the same four steps repeat in every example. The numbers change; the routine never does.

slope (m) · x-value · y-value — colors track where each number comes from.

Example 1 — Basic Integer Slope

Find the equation of the line through (1, 3) and (5, 11).

→ Step 1 — Slope: m = (11 − 3) ÷ (5 − 1) = 8 ÷ 4 = 2.
→ Step 2 — Substitute m = 2 and the point (1, 3):   3 = 2(1) + b.
→ Step 3 — Right side first: 2 × 1 = 2, so 3 = 2 + b. Subtract 2: b = 1.
→ Step 4 — Write it: slope 2, starting value 1.
y = 2x + 1
Example 2 — A Negative Coordinate

Find the equation of the line through (−2, 5) and (4, 8).

Tip: when one point has a negative, substitute the other point in Step 2 to keep things clean.

→ Step 1 — Slope: m = (8 − 5) ÷ (4 − (−2)) = 3 ÷ 6 = 1/2. (Subtracting −2 means adding 2.)
→ Step 2 — Substitute m = 12 and the point (4, 8):   8 = 12(4) + b.
→ Step 3 — Right side first: 12 × 4 = 2, so 8 = 2 + b. Subtract 2: b = 6.
→ Step 4 — Write it: slope 12, starting value 6.
y = 12x + 6
Example 3 — A Fraction Slope

Find the equation of the line through (2, 1) and (6, 4).

A fraction slope is normal. Let the calculator handle the fraction arithmetic so you can focus on the setup.

→ Step 1 — Slope: m = (4 − 1) ÷ (6 − 2) = 3 ÷ 4 = 3/4.
→ Step 2 — Substitute m = 34 and the point (2, 1):   1 = 34(2) + b.
→ Step 3 — Right side first: 34 × 2 = 32, so 1 = 32 + b. Subtract 32: b = 1 − 32 = −12.
→ Step 4 — Write it: slope 34, starting value −12.
y = 34x − 12
Example 4 — From a Graph to an Equation

Read two points off the graph, then run the same four steps.

−22123(−2, 1)(2, 3)
→ Read the points: (−2, 1) and (2, 3).
→ Step 1 — Slope: m = (3 − 1) ÷ (2 − (−2)) = 2 ÷ 4 = 1/2.
→ Step 2 — Substitute m = 12 and (2, 3):   3 = 12(2) + b.
→ Step 3 — Right side first: 12 × 2 = 1, so 3 = 1 + b. Subtract 1: b = 2.
y = 12x + 2  (and you can see it crosses the y-axis at 2 ✓)
Example 5 — A Real-World Situation

A gym membership costs $25 to start and totals $65 after 4 months. Write an equation for total cost y after x months.

→ Turn the words into points: at month 0 it costs $25 → (0, 25). After 4 months → (4, 65).
→ Step 1 — Slope: m = (65 − 25) ÷ (4 − 0) = 40 ÷ 4 = 10 dollars per month.
→ Step 2 & 3 — The cost at month 0 is the starting value, so b = 25. (No need to solve — x = 0 hands you b directly.)
→ Step 4 — Slope is the monthly rate; b is the starting fee.
y = 10x + 25

⚠️ Common Mistakes

Almost every wrong answer on this skill comes from one of these. Knowing them in advance is half the battle — the Guided Practice bank includes "What mistake did the student make?" questions to train your eye.

Mixing up x and y
A point is (x, y) — first number x, second number y. Putting the y-values on the bottom of the slope formula flips the answer.
Coordinates from different points
The top of the slope formula uses both y-values; the bottom uses both x-values. Don't grab one number from each point in the wrong slot.
Lost negative signs
Subtracting a negative becomes adding: 4 − (−2) = 4 + 2 = 6. Write it out — don't do it in your head.
Forgetting to solve for b
Finding the slope is only Step 1. You still have to substitute a point and solve for b before you can write the equation.
Arithmetic on the wrong side
In 3 = 2(1) + b, finish the right side (2 × 1) before moving anything across. Use the calculator to avoid slips.
Wrong final format
The answer is y = mx + b: slope in front of x, b added at the end. Don't swap m and b or drop the "y =".
🎯 The whole process on one screen
1Slope: m = y₂ − y₁x₂ − x₁. Calculator welcome.
2Substitute: put m and one point's x and y into y = mx + b.
3Solve for b: finish the right side, then subtract to isolate b.
4Write it: y = mx + b with your slope and your b.
Reference
GED Formula Sheet
Both m = y₂ − y₁x₂ − x₁ and y = mx + b are given to you on test day.
📋 Open Formula Sheet

✏️ Practice Questions

Guided Practice
One step at a time — slope only, substitution, solve for b, spot the mistake
You've answered 5 questions. Keep going or check your score.
GED Level Questions
The full process — points, graphs, and real-world situations
You've answered 5 questions. Keep going or check your score.
Keep Practicing
Back to All Lessons
All Lessons →