How to Find Slope From a Graph: Steps and Examples

#How to Find Slope From a Graph
TL;DR
To find slope from a graph, pick two points the line passes through exactly, count the rise and the run between them, and divide: slope = rise ÷ run. Six worked examples show the sign, the special cases and the scale trap.
Ashish Chauhan·reviewed byShikha SharmaLast updated on December 2, 202613 min read

Key Points

  • Slope is rise over run: the vertical change divided by the horizontal change between two points on the line.
  • Choose points where the line crosses grid corners exactly, and choose them far apart.
  • An uphill line has a positive slope, a downhill line a negative one, a flat line 00 and a vertical line none.
  • On scaled axes, count units, not squares: one square may stand for 5 metres or 10 dollars.

How Do You Read the Steepness of a Line Straight Off the Page?

A ramp that is too steep is dangerous, so building rules cap a ramp's slope at 1 in 12.

  • An inspector reads that steepness straight off the drawing, no equation needed.
  • Take the line through A(1, 1) and B(7, 5). From A to B you move 6 squares right and 4 squares up.
  • So the line climbs 4 for every 6 across: 46=23\frac{4}{6} = \frac{2}{3}. That fixed rate is the slope.
  • A and B come back throughout this lesson.
how to find slope from a graph by counting rise 4 and run 6 between two points
The line through A(1, 1) and B(7, 5) on a grid, with a blue run arrow of 6 and a green rise arrow of 4, giving slope 4/6 = 2/3.

What Is Slope, and What Does "Rise Over Run" Mean?

The slope of a line is one number that says how steep the line is and which way it tilts.

slope=m=riserun=vertical changehorizontal change\text{slope} = m = \frac{\text{rise}}{\text{run}} = \frac{\text{vertical change}}{\text{horizontal change}}
  • The rise is how far you move up (positive) or down (negative) between two points.
  • The run is how far you move across. Read left to right, the run is positive, so the sign comes from the rise.
  • A slope of 23\frac{2}{3} means "2 up for every 3 across".
  • The letter mm is the mm in y=mx+by = mx + b. Slope is also called the gradient of a line.

How to Find Slope From a Graph, Step by Step

Do these four steps in order and most errors disappear.

  1. Pick two points the line passes through exactly, on grid corners (lattice points). A point between gridlines forces a guess.
  2. Count the run: squares to the right, from the left point to below or above the second point.
  3. Count the rise: squares up (positive) or down (negative) to reach the second point.
  4. Divide rise by run and simplify. For A and B: 46=23\frac{4}{6} = \frac{2}{3}.

Before step 2, glance once: uphill or downhill? That gives the sign before you count.

Why pick points far apart?

Every reading has a little error, and a longer triangle shrinks it. Misread a rise by 0.20.2 of a square on the 23\frac{2}{3} line:

  • Close pair (run 1.5, true rise 1): you get 1.21.5=0.8\frac{1.2}{1.5} = 0.8, which is 20% too big.
  • Far pair (run 6, true rise 4): you get 4.26=0.7\frac{4.2}{6} = 0.7, only 5% too big.
  • No grid corners at all? Estimate the points, far apart, and call the answer approximate.
points far apart give a more accurate slope from a graph
Two panels on a line of slope 2/3. Left: a close pair with run 1.5, where a 0.2 misreading of the rise gives 0.8, 20 percent off. Right: a far pair with run 6, where the same misreading gives 0.7, 5 percent off.

What Is the Slope Formula From Two Points on a Graph?

Counting squares is really subtracting coordinates. For points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) read off the grid:

m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1}
Symbol What it means on the graph
y2−y1y_2 - y_1 the rise: how far up or down
x2−x1x_2 - x_1 the run: how far across
mm the slope
  • For A and B: m=5−17−1=46=23m = \frac{5 - 1}{7 - 1} = \frac{4}{6} = \frac{2}{3}, the same as the count.
  • Subtract in the same order on top and bottom, starting from the same point, or the sign flips.
  • See finding slope from two points for the formula without a graph.

Why Do Any Two Points Give the Same Slope?

Because all the slope triangles on one straight line have the same shape, so the method cannot depend on your choice.

Way 1: similar triangles

  • On the A–B line, (4, 3) is also a grid corner. From (1, 1) to (4, 3): run 3, rise 2.
  • From (4, 3) to (10, 7): run 6, rise 4. That is the first triangle scaled by 2.
  • Both have a right angle and meet the line at the same angle, so they are similar triangles, with the same ratio: 23=46\frac{2}{3} = \frac{4}{6}.
similar slope triangles show that any two points on a line give the same slope
Two slope triangles on the same line: a green one from (1, 1) to (4, 3) with run 3 and rise 2, and a blue one from (4, 3) to (10, 7) with run 6 and rise 4. Both give 2/3.

Way 2: the algebra

For any two points on y=mx+by = mx + b:

(mx2+b)−(mx1+b)x2−x1=m(x2−x1)x2−x1=m\frac{(mx_2 + b) - (mx_1 + b)}{x_2 - x_1} = \frac{m(x_2 - x_1)}{x_2 - x_1} = m
  • The bb cancels, then (x2−x1)(x_2 - x_1) cancels, leaving only mm.
  • On a curve this breaks: each pair gives a different ratio. Calculus handles that case.

How Do You Tell If the Slope Is Positive or Negative?

Read the line left to right, and its direction gives the sign.

What the line does Rise Slope
Climbs (uphill) positive positive
Falls (downhill) negative negative
Stays flat 00 00
Goes straight up any undefined
  • A vertical line's run is 00, and dividing by zero has no value, so its slope is undefined.
  • Undefined is not 00: zero slope is flat; undefined slope is upright.
positive, negative, zero and undefined slope on a graph
Four small graphs: an uphill line with slope 2/3, a downhill line with slope minus 3/2, a flat line with slope 0, and a vertical line whose slope is undefined.

Try it: drag the blue handles, count the rise and run yourself, and check the read-out agrees. Tilt the line downhill to flip the sign, then stand it upright.

Try It Yourself

Use the coordinate lab to see How to Find Slope From a Graph at work: drag, change the numbers and watch what happens.

Examples of Finding Slope From a Graph

These start with an uphill line and end with a graph whose axes are scaled.

Example 1

A line passes through (1, 2) and (4, 8). Find its slope.

  1. Run: from x=1x = 1 to x=4x = 4 is 3.
  2. Rise: from y=2y = 2 up to y=8y = 8 is 6.
  3. m=63=2m = \frac{6}{3} = 2.

Final answer: slope =2= 2.

Example 2

A line falls from (0, 4) to (2, 0). Find its slope.

  1. A first try: "it moves 4 and 2, so 42=2\frac{4}{2} = 2."
  2. But the line goes downhill, and a downhill line cannot have a positive slope.
  3. Keep the direction: run +2+2, rise −4-4, so m=−42=−2m = \frac{-4}{2} = -2.
a falling line has a negative rise, so its slope from the graph is negative
A downhill line from (0, 4) to (2, 0) with run +2 and rise minus 4. The wrong 4/2 = 2 is crossed out and the correct minus 4/2 = minus 2 is ticked.

Final answer: slope =−2= -2.

Example 3

A horizontal line runs through (−3, 5) and (6, 5). Find its slope.

  1. Run: from −3-3 to 66 is 9. Rise: 5−5=05 - 5 = 0.
  2. m=09=0m = \frac{0}{9} = 0.

Final answer: slope =0= 0.

Example 4

A vertical line passes through (2, 1) and (2, 7). Find its slope.

  1. Rise: 7−1=67 - 1 = 6. Run: 2−2=02 - 2 = 0.
  2. 60\frac{6}{0} divides by zero, which has no value.

Final answer: the slope is undefined.

Example 5

On a distance-time graph, each square across is 1 second and each square up is 5 metres. The line goes from the origin to (8 s, 40 m). Find the slope and say what it means.

  1. Counting squares gives 8 up and 8 across, which looks like a slope of 1. But the squares are not equal units.
  2. Count units: rise 40 m, run 8 s.
  3. m=40 m8 s=5m = \frac{40 \text{ m}}{8 \text{ s}} = 5 m/s, which is the speed.
the slope of a distance-time graph is the speed, counted in units rather than squares
A distance-time graph where each square across is 1 second and each square up is 5 metres. The line runs from the origin to (8 s, 40 m), and the slope is 40 m divided by 8 s, which is 5 m/s.

Final answer: 5 m/s.

Example 6

Two lattice points on a line are (−2, −1) and (2, 7). Find the slope, then check it with the formula.

  1. Run: from −2-2 to 22 is 4. Rise: from −1-1 up to 77 is 8.
  2. m=84=2m = \frac{8}{4} = 2.
  3. Check: 7−(−1)2−(−2)=84=2\frac{7 - (-1)}{2 - (-2)} = \frac{8}{4} = 2.

Final answer: slope =2= 2.

Why Does Reading Slope From a Graph Actually Matter?

Slope turns a picture of a line into one number you can compare.

  • Ramps. The US ADA Standards for Accessible Design allow a ramp no steeper than 1:12: slope 112≈0.083\frac{1}{12} \approx 0.083, about 4.8°4.8°. That is the rule from the opening.
  • Speed. The slope of a distance-time graph is the speed, as Example 5 showed.
  • Road signs. A "6% grade" rises or falls 6 m for every 100 m across, so m=0.06m = 0.06.
  • Trends in data. The slope of a trend line shows how fast sales, temperature or population change.
a wheelchair ramp at the steepest allowed slope of 1 in 12
A ramp drawn to scale with a run of 12 and a rise of 1, a handrail and a door at the top. The slope is 1/12 and the angle at the bottom is about 4.8 degrees.

What Are the Most Common Mistakes When Reading Slope From a Graph?

Four slips cause most wrong answers.

Mistake 1: Run over rise

Where it slips in: Writing the fraction from memory, quickly.

Don't do this: Put the run on top. For A and B that gives 64=32\frac{6}{4} = \frac{3}{2}, the reciprocal of the true slope.

The correct way: Vertical change on top, always. Say what each word means before dividing: rise goes up, run goes across.

Mistake 2: Losing the minus sign on a falling line

Where it slips in: Counting squares as distances, which are never negative.

Don't do this: Report 22 for the line through (0, 4) and (2, 0).

The correct way: A downhill line has a negative rise. The student who rushes counts "4 down" as +4+4; check the direction first.

Mistake 3: Dividing y by x at one point

Where it slips in: A line that does not pass through the origin, and one handy point on it.

Don't do this: Take (2, 4) on y=12x+3y = \frac{1}{2}x + 3 and write 4÷2=24 \div 2 = 2. That is the slope of a different line, from the origin to (2, 4).

The correct way: Use two points on the line itself. From (0, 3) to (2, 4): run 2, rise 1, slope 12\frac{1}{2}.

dividing y by x at one point gives the wrong slope unless the line passes through the origin
The line y = x/2 + 3 through (0, 3) and (2, 4), with run 2 and rise 1, giving slope 1/2. A dashed purple line from the origin to (2, 4) shows the wrong value 4 ÷ 2 = 2.

Mistake 4: Counting squares when the axes are scaled

Where it slips in: Graphs with units on the axes, like Example 5.

Don't do this: Count 8 squares up and 8 across and call the slope 1.

The correct way: Read the numbers on the axes. A rise of 8 squares at 5 m each is 40 m, so the slope is 5 m/s.

Conclusion

  • Slope from a graph is rise ÷ run between two exact points on the line.
  • It works because every slope triangle on a straight line is similar to every other one.
  • Uphill is positive, downhill negative, flat 00, vertical undefined.
  • Read the direction first, keep the minus sign on a falling line, and count units on scaled axes.

Practice These to Solidify Your Understanding

Work these, then revisit the four steps if any answer surprises you.

  1. A line passes through (0, 1) and (3, 7). Find its slope.
  2. A line falls through (1, 5) and (6, 0). Find its slope.
  3. State the slope of the vertical line through (4, 2) and (4, 9).
  4. Draw the line through (−3, 4) and (3, 0). Find its slope by counting, by the formula, and with a different pair of points.
  • Answer to Question 1: rise 6, run 3, slope 2.
  • Answer to Question 2: rise −5-5, run 5, slope −1-1. Got +1+1? Revisit Mistake 2.
  • Answer to Question 3: undefined.
  • Answer to Question 4: −23-\frac{2}{3} all three ways.

To practise graphs and slope with a teacher, explore Bhanzu's geometry tutor sessions or math classes online.

Want a live Bhanzu trainer to walk your child through slope and graphs? Book a free demo class.

Read More

Research Behind This Article

  1. OpenStax, Elementary Algebra 2e, Section 4.4: Understand Slope of a Line. openstax.org
  2. OpenStax, College Physics 2e, Section 2.8: Graphical Analysis of One-Dimensional Motion. openstax.org
  3. U.S. Access Board, ADA Accessibility Standards, 405.2 Slope (1:12 maximum). access-board.gov
  4. Euclid, Elements, Book VI, Proposition 4 (similar triangles), D. E. Joyce, Clark University. mathcs.clarku.edu

Quick Quiz: Check Yourself

Three levels, questions with figures, instant feedback with the reason.

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the formula for slope from a graph?
Rise over run: m=y2−y1x2−x1m = \frac{y_2 - y_1}{x_2 - x_1} for any two points on the line.
Does it matter which point I start from?
No. Going from B to A flips the sign of both rise and run, so the fraction is unchanged: 1−51−7=−4−6=23\frac{1 - 5}{1 - 7} = \frac{-4}{-6} = \frac{2}{3}.
Can a slope read from a graph be negative?
Yes. A line that falls from left to right has a negative slope. The steps for how to find slope from a graph stay the same; just keep the minus sign on the rise.
How to find slope from a graph when the line misses every grid corner?
Estimate two points as carefully as you can, choose them far apart, and give the answer as approximate.
Is slope the same as gradient?
Yes. "Gradient" is the word used in many countries and in physics; both mean rise over run.
✍️ Written By
Ashish Chauhan
Ashish Chauhan
Math Curriculum Developer
Ashish Chauhan is a Mathematics and Science educator and curriculum developer with 6+ years of experience teaching students from Grades 3–12. He specializes in simplifying complex concepts through conceptual, student-centered learning and has worked across CBSE, PSEB, and international curricula. Beyond teaching, Ashish develops K–12 educational content, lesson plans, and assessments aligned with US learning standards. He holds a BS in PCM and an MS in Chemistry, bringing a strong STEM foundation to education and curriculum design.
🔬 Reviewed By
Shikha Sharma
Subject Matter Expert
Book a FREE Demo ClassBook Now →