Skip to content

GED math lesson

Slope Formula: How to Find Slope From Two Points, a Graph or a Table

The formula

m = rise ÷ run

m is the slope: the rise (how far up or down) divided by the run (how far across). With two points, that's m = (y₂ − y₁) ÷ (x₂ − x₁).

(x₁, y₁)(x₂, y₂)run = x₂ − x₁rise = y₂ − y₁

Slope questions often give you choices like 2/3, 3/2, −2/3 and −3/2. At a glance, they all look right. Two quick counts and one look at the line leave only one standing.

Coach Crissy

Math instructor

Published
October 20, 2026
Reading time
8 min read

Why the slope of a line is rise over run

Slope tells you how steep a line is. Take one step to the right along the line. How far does it go up or down? That’s the slope.

Picture a phone plan that costs $45 a month plus $6 for each extra gig. Every extra gig is one step to the right. Every step adds $6, so the line climbs 6. The slope is 6.

01234extra gigs$45$69monthly bill1 gig+$63 gigs+$18
One step: $6 up for 1 gig across, and 6 ÷ 1 = 6. Three steps: $18 up for 3 gigs across, and 18 ÷ 3 is still 6.

That’s why any two points on a line give the same slope. The rise is how far you go up or down, which is y₂ − y₁. The run is how far you go across, which is x₂ − x₁. Divide the rise by the run.

Steepness works the same way. A ramp that rises 2 feet over a 24-foot run has a slope of 2 ÷ 24, or 1/12. Work it backward: a ramp with that slope that has to climb 3 feet needs a 36-foot run.

Bottom line: slope is how far the line climbs for each step across.

How to find slope from two points

This is the formula on your sheet. Here’s how it works:

  1. Call one point (x₁, y₁) and the other (x₂, y₂). Either one can go first.
  2. Subtract the y-values: y₂ − y₁. That’s the rise.
  3. Subtract the x-values in the same order: x₂ − x₁. That’s the run.
  4. Divide the rise by the run, then simplify.
Worked example
Two points

Your phone plan charges the same amount for every extra gig. In May you used 2 extra gigs and paid $57. In June you used 5 extra gigs and paid $75. How much does each extra gig cost?

The working

  1. Write each month as a point (gigs, dollars): (2, 57) and (5, 75)
  2. Subtract the y-values for the rise: 75 − 57 = 18
  3. Subtract the x-values in the same order for the run: 5 − 2 = 3
  4. Divide: m = 18 ÷ 3 = 6
  5. Check it: 3 more gigs at $6 each is $18, and 57 + 18 = 75

Answer: $6 per extra gig

The slope is the price of one more gig. When a question asks for a rate, like dollars per gig or miles per hour, it’s asking for a slope.

Slope from a graph: count the squares

On a graph, you can count instead of using the formula. Find two points where the line crosses a grid corner exactly. Start at the one on the left. Count up or down to the other point’s height, then count across to it.

Counting up gives a positive rise, and counting down gives a negative one. The run is positive, since you move right.

Worked example
From a graph

What is the slope of the line through points A and B?

AB

The working

  1. Start at A, the point on the left.
  2. Count up to B’s height: 4 squares up. The rise is 4.
  3. Count across to B: 6 squares right. The run is 6.
  4. Divide and simplify: m = 4 ÷ 6 = 2/3
  5. Check: the line goes uphill, so the slope is positive. It climbs less than it moves across, so the slope is less than 1.

Answer: 2/3

That last check takes two seconds. It rules out 3/2, −2/3 and −3/2 before you pick an answer.

Slope from a table: watch how x jumps

A table is a list of points, so pick any two rows and use the formula. The catch? The x-values don’t always go up by 1.

Worked example
From a table

On a road trip, a car burns gas at a steady rate. The table shows how much gas is left in the tank. What is the slope, and what does it mean?

Gas left in the tank
Hours driven (x)Gallons left (y)
114
310
56
72

The working

  1. Pick two rows: (1, 14) and (3, 10)
  2. Subtract the y-values: 10 − 14 = −4
  3. Subtract the x-values: 3 − 1 = 2. The hours jump by 2 each row.
  4. Divide: m = −4 ÷ 2 = −2
  5. Check two other rows: (2 − 6) ÷ (7 − 5) = −4 ÷ 2 = −2

Answer: −2, so the tank loses 2 gallons an hour

If you read −4 off the table as the slope, you’d say the tank drops 4 gallons an hour. That’s double the real rate, so always divide by how far x jumps.

Positive, negative, zero and undefined slope

Positive

uphill

Negative

downhill

Zero

flat

Undefined

straight up and down

Read every line from left to right, the same way you read a sentence.
  • Positive: the line goes uphill, like a bill that grows with every gig.
  • Negative: it goes downhill, like gas draining from a tank.
  • Zero: it’s flat, like an unlimited plan that costs the same however much you use.
  • Undefined: it goes straight up and down, like a wall. There’s no step across at all.

4 mistakes that cost points

Mistake 1: subtracting in a different order

Whichever point goes first on top goes first on the bottom too. For (1, 2) and (4, 8), the slope is (8 − 2) ÷ (4 − 1) = 2. Mix the order, (8 − 2) ÷ (1 − 4), and you get −2. Now the line goes the wrong way.

Mistake 2: putting the run on top

The y-values go on top. A line through (0, 0) and (2, 6) has a slope of 6 ÷ 2 = 3. Flip it and you get 1/3, a line that’s far too flat.

Mistake 3: losing a minus sign

Put negative numbers in parentheses. For (−2, 5) and (4, −7), the run is 4 − (−2) = 6, because subtracting a negative adds. So the slope is −12 ÷ 6 = −2. Drop that sign and you get a run of 2 and a slope of −6. On the TI-30XS, type −2 with the (−) key.

Mistake 4: mixing up zero and undefined

Through (1, 4) and (6, 4), the rise is 0, so the slope is 0 ÷ 5 = 0. Through (3, 1) and (3, 5), the run is 3 − 3 = 0. You can’t divide by 0, so that slope is undefined. Flat is zero. Straight up is undefined.

Practice: 5 new questions

Every set is new. Check each answer as you go, and read the working on any you miss before the next one.

Slope of a line: 5 questions

Questions
5
Timer
None
No calculator
None

New questions every time you start. Do this set as many times as you like.

  • Check each answer as you go and read the working before the next question.
  • The formula sheet and calculator sit in the toolbar, as they do on the real test.

No account or email needed.

Want more? Practice all of functions and graphing (25 questions, every skill in the topic), or take the full GED math practice test.

Frequently asked questions

What are the three formulas for slope?

They're three ways to get the same number. On a graph, count rise over run. With two points, use m = (y₂ − y₁) ÷ (x₂ − x₁), the one on the GED formula sheet. With an equation in the form y = mx + b, the slope is m. Use whichever one matches what the question gives you.

How do you find the slope of y = mx + b?

Read the number in front of x, sign included. In y = −2x + 4, the slope is −2, so the line drops 2 for every step to the right. The 4 is where it crosses the y-axis. If y isn't alone yet, get it alone first: 2y = 6x + 4 becomes y = 3x + 2, so the slope is 3.

What angle is a 5% slope?

About 2.9 degrees. A 5% slope rises 5 feet for every 100 feet across, so m = 5 ÷ 100 = 0.05. To turn a slope into an angle, use the inverse tangent key (tan⁻¹) on a scientific calculator: tan⁻¹(0.05) ≈ 2.86°. Percent and degrees are different scales. A 100% slope is a 45° angle.

Keep going

Written by

Coach Crissy

Math instructor

Coach Crissy teaches the video lessons behind the BooknBoost GED math course, working through GED-style problems on camera: ratios and proportions, percent and interest, mean, median and mode, slope, and the geometry students meet on test day.