Linear Functions
Slope of a Line
Finding the slope of a line from a graph, table, or two points.
The Number That Never Changes Along a Line
Two hikers climb different trails up the same mountain. Trail A gains 200 feet of elevation for every 1,000 feet walked; Trail B gains 350 feet for every 1,000 feet walked. Before reading on, decide: which trail is steeper, and what single number captures that steepness so precisely that you could compare any two trails this way, no matter how long each one is?
Definition — Slope
Why does it matter which two points you pick? It doesn't — and here's why. Pick any two pairs of points on the same line, and draw a right triangle under each pair using a horizontal and vertical leg. Because both triangles sit on the same straight line, they're similar triangles — same angles, proportional sides — which means their rise-to-run ratios must be equal. Slope isn't just a number computed from two arbitrary points; it's a genuine property of the line itself.
Worked Example — Finding Slope from Two Points
Worked Example — Finding Slope from a Table
Worked Example — Horizontal and Vertical Lines
Graph Visualizer
Domain & range
Evaluate a point
- x^2 = 0
Tip
Common Mistakes
Subtracting coordinates in mismatched order, such as computing (y₂ − y₁) in the numerator but (x₁ − x₂) in the denominator.
Whichever point you label as point 1 and point 2, subtract consistently in both the numerator and denominator — always (second minus first) in both, or (first minus second) in both, never mixed.
Confusing an undefined slope (vertical line) with a zero slope (horizontal line).
A slope of 0 means completely flat — no rise at all. An undefined slope means completely vertical — no run at all, and division by zero. These describe opposite situations, not the same thing.
Key Takeaways
- Slope, the ratio of rise to run, is a fixed property of a line — the same no matter which two points on the line you use to calculate it.
- Similar triangles formed by any two point-pairs on a line explain why slope stays constant.
- A horizontal line has slope 0; a vertical line has undefined slope.
Summary
Slope captures a line's constant rate of change, provably the same no matter which points define it. The next lesson uses slope together with one more piece of information — where the line crosses the y-axis — to write a line's full equation.
Sign in to track your progress and mark this lesson complete.
Track your progress