How to Find Slope: 3 Methods for Points, Graphs & Equations (Plus the 4 Types of Slope)
Find the slope of a line three different ways — from two coordinate points, by counting on a graph, or by reading it straight from an equation — and learn to identify positive, negative, zero, and undefined slope on sight.
How to Find Slope: 3 Methods for Points, Graphs & Equations
Slope shows up in algebra class in three different disguises — a pair of coordinates, a line drawn on a graph, and an equation on the page — and each one calls for a slightly different technique to solve. This guide walks through all three methods side by side, plus how to recognize the four types of slope on sight, so you are never stuck no matter which form the problem gives you.
Looking for slope incline in construction, roads, ramps, or roofs instead? See our complete guide to slope incline for real-world grading, ADA ramp standards, and roof pitch. This guide focuses purely on the coordinate-geometry side — the version tested in algebra class.
In this article, you'll find:
- The slope formula and what rise and run mean
- The 4 types of slope — positive, negative, zero, and undefined
- Method 1: finding slope from two points, with a worked example for each type
- Method 2: finding slope by counting on a graph
- Method 3: reading slope directly from an equation
- Practice questions with answers
- Common mistakes and how to avoid them
- FAQs
The Slope Formula
The 4 Types of Slope
Before calculating, it helps to recognize what kind of slope you are looking for. There are exactly four possibilities:
Swipe sideways to compare columns.
| Type | Sign | Direction | What It Looks Like |
|---|---|---|---|
| Positive | m > 0 | Up from left to right | A line climbing like a hill you drive up |
| Negative | m < 0 | Down from left to right | A line falling like a ski slope going downhill |
| Zero | m = 0 | Horizontal (flat) | A perfectly flat, level line |
| Undefined | No numeric value | Vertical (straight up and down) | A line straight up and down, like a wall |
Method 1: Finding Slope from Two Points
This is the most common method in algebra — when you have two coordinate points, plug them straight into the slope formula. Here is a worked example for each of the four types.
Example 1: Positive Slope — (2, 3) and (5, 9)
Swipe sideways to compare columns.
| Step | Action | Calculation |
|---|---|---|
| 1 | Identify points | (x₁, y₁) = (2, 3), (x₂, y₂) = (5, 9) |
| 2 | Find rise (Δy) | 9 − 3 = 6 |
| 3 | Find run (Δx) | 5 − 2 = 3 |
| 4 | Divide rise by run | 6 ÷ 3 = 2 |
Example 2: Negative Slope — (4, 8) and (7, 2)
Swipe sideways to compare columns.
| Step | Action | Calculation |
|---|---|---|
| 1 | Identify points | (x₁, y₁) = (4, 8), (x₂, y₂) = (7, 2) |
| 2 | Find rise (Δy) | 2 − 8 = -6 |
| 3 | Find run (Δx) | 7 − 4 = 3 |
| 4 | Divide rise by run | -6 ÷ 3 = -2 |
Example 3: Zero Slope — (2, 5) and (7, 5)
Swipe sideways to compare columns.
| Step | Action | Calculation |
|---|---|---|
| 1 | Identify points | (x₁, y₁) = (2, 5), (x₂, y₂) = (7, 5) |
| 2 | Find rise (Δy) | 5 − 5 = 0 |
| 3 | Find run (Δx) | 7 − 2 = 5 |
| 4 | Divide rise by run | 0 ÷ 5 = 0 |
Example 4: Undefined Slope — (3, 2) and (3, 8)
Swipe sideways to compare columns.
| Step | Action | Calculation |
|---|---|---|
| 1 | Identify points | (x₁, y₁) = (3, 2), (x₂, y₂) = (3, 8) |
| 2 | Find rise (Δy) | 8 − 2 = 6 |
| 3 | Find run (Δx) | 3 − 3 = 0 |
| 4 | Divide rise by run | 6 ÷ 0 = undefined |
Method 2: Finding Slope from a Graph
If you can see the line on a graph, you can find the slope by counting squares instead of subtracting coordinates.
- Pick two clear points where the line crosses grid intersections
- Count the vertical change (rise) — how many units up or down between the points
- Count the horizontal change (run) — how many units left or right between the points
- Divide rise by run: m = rise ÷ run
Worked Example: Reading a Graph
Problem: on a graph, a line goes down 3 units and right 6 units. What is the slope?
Method 3: Finding Slope from an Equation
If a line's equation is already written in slope-intercept form, you can read the slope directly without any calculation at all.
Worked Example: Rearranging to Slope-Intercept Form
Problem: find the slope of the line 3y − 2x + 7 = 0.
Swipe sideways to compare columns.
| Step | Action | Calculation |
|---|---|---|
| 1 | Start with the equation | 3y − 2x + 7 = 0 |
| 2 | Move x and constant terms to the right | 3y = 2x − 7 |
| 3 | Divide every term by 3 | y = (2/3)x − 7/3 |
| 4 | Compare to y = mx + b | m = 2/3, b = -7/3 |
Swipe sideways to compare columns.
| Equation | Slope (m) | Y-Intercept (b) |
|---|---|---|
| y = 2x + 3 | 2 | 3 |
| y = -4x + 1 | -4 | 1 |
| y = 0.5x − 2 | 0.5 | -2 |
| y = 5x | 5 | 0 |
| y = -x + 7 | -1 | 7 |
| y = 3 | 0 | 3 (horizontal line) |
| x = 5 | Undefined | No y-intercept (vertical line) |
A Note on Real-World Slope
The same rise-over-run math applies to physical inclines — road grades, roof pitches, wheelchair ramps — but those problems usually give you a percentage or ratio instead of coordinate points. For unit conversions between ratio, percentage, decimal, and angle, plus construction and accessibility standards, see our dedicated slope incline guide.
Practice Questions (With Answers)
Swipe sideways to compare columns.
| # | Problem | Answer |
|---|---|---|
| 1 | Find the slope through (1, 2) and (4, 8) | m = 2 |
| 2 | Find the slope through (-2, 5) and (3, -5) | m = -2 |
| 3 | Find the slope through (2, 4) and (6, 4) | m = 0 |
| 4 | Find the slope through (3, 1) and (3, 7) | Undefined |
| 5 | Find the slope of y = 3x − 5 | m = 3 |
| 6 | Find the slope of 2y = 4x + 6 | m = 2 |
| 7 | A line on a graph goes down 4 units and right 8 units — find the slope | m = -0.5 |
Common Mistakes When Finding Slope
Common Slope Mistakes & Correct Fixes
These are the mistakes that show up most often when calculating slope from points, graphs, and equations — separate from field-measurement mistakes on real inclines.
Common Mistakes to Avoid
Algebra and graph-reading traps
- Subtracting the points in a different order for y than for x
- Forgetting that a vertical line (same x-coordinates) gives an undefined slope, not zero
- Putting run over rise instead of rise over run
- Dropping a negative sign partway through the calculation
- Leaving the slope as an unsimplified fraction, like 4/8 instead of 1/2
- Miscounting grid squares when reading slope off a graph
- Reading the y-intercept (b) instead of the slope (m) from y = mx + b
- Forgetting to fully isolate y before comparing an equation to slope-intercept form
Correct Strategies to Follow
Habits that keep slope calculations accurate
- Always subtract in the same order: (y₂ − y₁) over (x₂ − x₁)
- Check whether the run is 0 before dividing — if so, the slope is undefined
- Remember slope = rise ÷ run (vertical ÷ horizontal), never the reverse
- Keep negative signs through every step, not just the final answer
- Always simplify the slope fraction to lowest terms
- Count grid squares carefully and recount if the answer looks off
- Remember: m is the coefficient of x, b is the constant term
- Fully solve the equation for y before reading off the slope
Always double-check: did you subtract y-values and x-values in the same order?
Frequently Asked Questions
Does it matter which point I call (x₁, y₁) and which I call (x₂, y₂)?
No — as long as you are consistent. Subtract the y-values in the same order you subtract the x-values, and you will get the same slope either way.
What happens if both points have the same x-coordinate?
The run is 0, which means the slope is undefined (division by zero). This describes a vertical line.
What happens if both points have the same y-coordinate?
The rise is 0, which makes the slope exactly 0. This describes a horizontal line.
How do I find slope without a graph, a calculator, or two given points?
If you have the line's equation, rearrange it into slope-intercept form (y = mx + b) — the slope is simply the number multiplying x, with no further calculation needed.
What is the fastest of the three methods?
Reading slope from an equation already in y = mx + b form is fastest, since it requires no arithmetic. From two points requires one subtraction and one division. From a graph requires careful counting, which is usually the slowest and most error-prone of the three.
How do I check that my slope answer is correct?
Plug your two original points back into the slope formula and recompute, or pick a third point on the same line and confirm the slope between it and one of your original points matches.
What is slope-intercept form?
Slope-intercept form is y = mx + b, where m is the slope and b is the y-intercept — the point where the line crosses the y-axis.
Can slope be a fraction or a decimal?
Yes. Slope is simply rise divided by run, so it can be a whole number, a fraction, or a decimal depending on the two points or equation involved.
Is a vertical line's slope zero or undefined?
Undefined, not zero. A slope of zero describes a horizontal line. A vertical line has no defined slope because it would require dividing by zero.
How do I find the slope from a table of x and y values instead of a graph or equation?
Pick any two rows from the table and treat their x and y values as your two coordinate points, then apply the standard slope formula: m = (y₂ − y₁) / (x₂ − x₁).
Do parallel lines have the same slope?
Yes. Parallel lines always have identical slopes. Perpendicular lines, by contrast, have slopes that are negative reciprocals of each other.
Why do I need to simplify my slope fraction?
An unsimplified fraction like 4/8 is not wrong, but 1/2 is the standard, expected form — most teachers and answer keys expect slope expressed in lowest terms.
Is this slope guide free?
Yes — completely free, with no registration required.
Related Math Calculators & Guides
- Slope Calculator — Find slope, angle of inclination, and line equations interactively.
- How to Calculate Slope Incline: A Complete Guide for Students & Professionals — real-world incline, construction standards, and format conversions.
- Midpoint Calculator — Compute midpoints and distances between coordinate pairs.
- Fraction Calculator — Simplify rise-over-run fractions into lowest terms.
- Cross Multiplication Calculator — Solve proportions and equations involving fractions.
- Decimal to Fraction Calculator — Convert decimal slopes into exact fractions.
Final Summary
Whether you are handed two points, a graph, or an equation, the underlying idea never changes — slope is rise over run. Recognize which of the four types you are looking at, pick the method that matches what you were given, and the calculation itself is always short.
Try it yourself — use our Slope Calculator above to check any pair of points, step by step, completely free.
Written by
Do The Calculation Team
Do The Calculation Editorial Board
The Do The Calculation Editorial Board is comprised of software engineers, finance analysts, and technical contributors focused on building clean, accurate, and easy-to-use calculator tools.
Reviewed & Verified By
Dr. Elena Rostova, PhD
Mathematics Advisor
Professor of mathematics with 20+ years of teaching experience. Dr. Rostova oversees the formulas, proofs, and algorithms behind our math division tools, fractions, logarithms, and scientific equations.