Slope of a Line: Formula, Meaning, and Examples
The slope of a line is a single number that measures how steep the line is. It tells you how much the line rises (or falls) vertically for each unit it moves horizontally. A large slope means a steep climb; a slope of zero means the line is perfectly flat.
Slope matters because it captures the "rate of change" idea that runs through all of mathematics and science — speed is the slope of a distance-time graph, and price rises are slopes on a chart. In coordinate geometry, the slope is the key that unlocks the equation of any non-vertical line.
Key Concepts
- Rise over run: slope = (vertical change) ÷ (horizontal change) between any two points on the line.
- Symbol m: the standard letter for slope, as in the famous y = mx + c.
- Positive vs negative slope: a line rising left-to-right has positive slope; falling left-to-right has negative slope.
- Zero and undefined: a horizontal line has slope 0; a vertical line has undefined (infinite) slope because you cannot divide by zero run.
- Units: slope is (y-units) per (x-unit) — for example metres of height per kilometre of road.
Formulas
For a line passing through P(x1, y1) and Q(x2, y2), with x1 ≠ x2:
- m = (y2 − y1)/(x2 − x1) — the change in y divided by the change in x.
- From inclination: if the line makes an angle θ with the positive x-axis, then m = tan θ.
Assumptions: the two points are distinct and the line is not vertical (x1 ≠ x2). Limits: slope alone does not fix a line's position — infinitely many parallel lines share the same slope; you also need one point (or an intercept) to pin it down.
Worked Example
Find the slope of the line through A(2, 1) and B(8, 19).
- Change in y: y2 − y1 = 19 − 1 = 18.
- Change in x: x2 − x1 = 8 − 2 = 6.
- Divide: m = 18/6 = 3.
- Interpretation: for every 1 unit moved right, the line climbs 3 units up — a steep positive slope.
- Check with a third point: the line through A with slope 3 has equation y − 1 = 3(x − 2); at x = 8, y = 1 + 18 = 19, which is point B. Correct.
Common Misconceptions
- "A vertical line has slope zero." Zero slope is horizontal. A vertical line's slope is undefined because the run is zero.
- "Slope (y2−y1)/(x2−x1) changes if I swap the points." Swapping flips the signs of both top and bottom, so the ratio stays exactly the same.
- "Steeper always means bigger slope." A line with slope −5 is steeper than one with slope 2 — steepness is about |m|, while the sign only gives the direction.
Real-World Applications
- Road engineers specify hill gradients (like 1 in 10) using slope.
- Speed is the slope of a distance-time graph; acceleration is the slope of a speed-time graph.
- Economists read growth rates as slopes on time-series charts.
- Roofers and builders set roof pitches using rise-over-run slope ratios.
Slope is rise divided by run — one number that encodes steepness and direction. Positive climbs, negative falls, zero is flat, and vertical is undefined. Master the slope and every form of a line's equation becomes easy.
Related blogs
- Cartesian Coordinate System: Explained with Examples
- Distance Formula: Explained with Examples, Notes and FAQs
- Section Formula: Internal and External Division Explained
- Midpoint Formula Explained: Find Any Middle Point Easily
- Centroid Incentre and Orthocentre: Explained with Examples
- Area of Triangle and Quadrilateral: Formulas