Mathovia

Algebra / Graphing and Functions

Slope: Rise Over Run, and What the Number Tells You

Slope is a single number that measures how steep a line is and which way it tilts. It is the vertical change between two points divided by the horizontal change — rise over run. This lesson covers the formula and its four outcomes (positive, negative, zero, undefined), why the order of the two points does not matter, how to read slope off a graph, and what it means when slope is a rate of change in a real problem.

M
Written by
Mathovia Team
Editorial Team

Slope is the number that answers two questions at once: how steep is this line, and which way does it lean? A road sign that says “8% grade” is reporting slope. So is the pitch of a roof, the gradient of a wheelchair ramp, and the rate on a pay-per-mile invoice.

For a straight line the slope is the same everywhere along it, which is what makes it a single, useful number. Pick any two points on the line, measure how much you go up and how much you go across between them, and divide.

Slope: Rise Over Run, and What the Number Tells You — key formula
Key formula

The Slope Formula

The rise is the vertical change between two points; the run is the horizontal change. Slope is rise divided by run.

The Four Kinds of Slope

The sign and size of describe the line completely:

SlopeLine looks likeMeaning
rises left to right increases as increases
falls left to right decreases as increases
horizontalno rise; never changes
undefinedverticalno run; you would divide by zero

Two lines with slopes and both rise, but the first is four times as steep. Size is steepness; sign is direction.

Four small diagrams showing a positive slope, a negative slope, a zero slope horizontal line, and an undefined slope vertical line
Positive, negative, zero, and undefined slope.

Zero versus undefined trips people up. A horizontal line has slope — a perfectly real number. A vertical line has undefined slope — there is no number for it, because the run is . Saying a vertical line has “zero slope” is a specific, common error.

Why the Order of the Points Does Not Matter

Take and . Computing one way:

Computing with the points swapped:

Swapping the points flips the sign of the top and the bottom, and two sign flips cancel. The only rule is consistency: whatever order you subtract the -values, subtract the -values the same way. Mixing the order — over — gives the wrong sign and is the single most common slope mistake.

Reading Slope From a Graph

  1. Find two points where the line passes cleanly through grid intersections.
  2. Count the rise: how many units up (positive) or down (negative) from the left point to the right point.
  3. Count the run: how many units right (positive) — moving left to right keeps the run positive so the sign lives entirely in the rise.
  4. Divide rise by run and simplify.

If the line goes up as you read left to right, the slope is positive; if it goes down, negative. A quick gut check before you compute anything.

A line on a coordinate plane with a dashed right triangle marking a rise of 6 and a run of 3 between two points
Rise over run between any two points gives the same slope.

Slope as a Rate of Change

Slope is not only a geometry idea. Whenever a graph plots one real quantity against another, the slope is a rate:

  • distance vs time → slope is speed (e.g. km per hour)
  • cost vs number of items → slope is price per item
  • water in a tank vs time → slope is fill rate (litres per minute)
  • earnings vs hours worked → slope is the hourly wage

The units come straight from the axes: slope is measured in -units per one -unit. A line on a cost graph with slope means per item, and the steeper the line, the more each item adds.

Worked Example A: Positive Slope

Find the slope through and .

Positive, so the line rises. For every step right, it climbs two.

Worked Example B: Negative Slope

Find the slope through and .

Negative, so the line falls — down two for every one across.

Worked Example C: Zero Slope

Find the slope through and .

The -values are equal, so there is no rise. The line is horizontal, .

Worked Example D: Undefined Slope

Find the slope through and .

The -values are equal, so the run is zero. The line is vertical, , and has no slope.

Worked Example E: A Fractional Slope

Find the slope through and .

Leave it as . It means the line rises for every across — a gentle upward slope, less than .

Worked Example F: Slope as Speed

A car’s distance from home is km after hour and km after hours. What is the slope of the distance-time graph, and what does it mean?

The slope is , in km per hour — the car’s average speed is km/h.

Common Mistakes to Avoid

  • Inconsistent subtraction order. mixes the order and flips the sign. Subtract both the same way.
  • Run over rise. Slope is rise over run — -change on top.
  • Calling a vertical line “zero slope.” Vertical is undefined; horizontal is zero.
  • Dropping a sign when subtracting a negative. , not . Negatives in the coordinates cause most slope errors.
  • Simplifying a fraction to a “nicer” wrong value. is , not .
  • Reading rise and run off a graph without the scale. If one square is units, a rise of “3 squares” is .
  • Assuming slope changes along a straight line. It does not — any two points give the same . If yours do not, one point is misread.

Where Slope Shows Up Next

  • Lines. Slope-intercept form and point-slope form are both built around .
  • Parallel and perpendicular lines. Parallel lines share a slope; perpendicular slopes are negative reciprocals.
  • Systems of equations. Two lines with the same slope never meet (no solution) or coincide (infinitely many).
  • Calculus. The derivative is the slope of a curve at a single point — the same rise-over-run idea taken to a limit.
  • Applications. Speed, unit price, interest rate, and rate of flow are all slopes of the right graph.

Practice Problems

Work each one before opening the answer.

Problem 1. Slope through and .

Show answer

Problem 2. Slope through and .

Show answer

Problem 3. Slope through and .

Show answer

Horizontal line.

Problem 4. Slope through and .

Show answer

Vertical line.

Problem 5. Slope through and .

Show answer

Problem 6. Compute the slope through and both ways to show the order does not matter.

Show answer

Problem 7. A line rises units for every units it runs. What is its slope, and is it steeper or gentler than ?

Show answer

Slope . Since , it is gentler than , which has slope .

Problem 8. A phone plan costs for GB and for GB of data. Treating cost as a line against data, find the slope and say what it means.

Show answer

The slope is per GB — each extra gigabyte adds .

Problem 9. The points , , are said to be on one straight line. Check using slope.

Show answer

to : . to : . Same slope, so the three points are collinear.

Problem 10. A ramp rises m over a horizontal distance of m. What is its slope, and as a percentage grade?

Show answer

Slope , which is about an grade.

Problem 11. A line has slope and passes through . Find another point on it.

Show answer

From , move right and down (run , rise ): . Or left and up : .

Problem 12. Two points on a line are and . Find the slope.

Show answer

The unknown cancels — only the differences matter.

Quick Reference

IdeaDetail
Formula
In wordsrise over run; change in over change in
line rises left to right
line falls left to right
horizontal line
undefinedvertical line (run )
Point ordereither way, but subtract and the same way
As a rate-units per one -unit (speed, price, wage, flow)

Slope is the in every form of a linear equation — see Lines — and it is computed from coordinate differences on The Cartesian Coordinate System. It also gives the fastest way to sketch when graphing equations. More Algebra lessons are available too.

Frequently Asked Questions

What is the slope formula?+

For two points and , the slope is . It is the change in divided by the change in , often said as 'rise over run'.

Does it matter which point you call point 1?+

No, as long as you are consistent. If you subtract the -values top-to-bottom, subtract the -values in the same order. Swapping both points flips the sign of the numerator and the denominator, and the two sign flips cancel.

What does a negative slope mean?+

The line falls from left to right — as increases, decreases. A slope of means the line drops units for every unit you move right.

What is the slope of a horizontal line? A vertical line?+

A horizontal line has slope — there is no rise. A vertical line has undefined slope — the run is , and dividing by zero is undefined. 'Zero slope' and 'no slope' are not the same thing.

How do you find slope from a graph?+

Pick two points where the line crosses grid intersections cleanly. Count the vertical gap between them (rise) and the horizontal gap (run), keeping track of direction, then divide rise by run.

What does slope mean as a rate of change?+

It is how fast one quantity changes with another. If a graph plots distance against time, the slope is speed. If it plots cost against number of items, the slope is the price per item. The units of slope are the -units per one -unit.

Related lessons