Slope meaning
Slope measures how steep a line is and which way it tilts. It tells you how much y changes for each one-unit step in x. A slope of 3 means the line rises 3 units for every 1 unit to the right. A slope of −½ means it falls half a unit for every unit to the right.
It is usually written m and described as rise over run: the vertical change divided by the horizontal change between any two points on the line. Because a straight line has the same steepness everywhere, any two points give the same answer.
The slope formula
Example 1. Points (2, 3) and (6, 11): m = (11 − 3) ÷ (6 − 2) = 8 ÷ 4 = 2.
Example 2. Points (1, 8) and (5, 2): m = (2 − 8) ÷ (5 − 1) = −6 ÷ 4 = −1.5.
Keep the order consistent. If you start with y₂ on top, start with x₂ on the bottom. Swapping both gives the same answer; swapping only one flips the sign.
Four kinds of slope
| Slope | Line looks like | Example |
|---|---|---|
| Positive | Rises left to right | y = 2x + 1 |
| Negative | Falls left to right | y = −3x + 4 |
| Zero | Horizontal | y = 5 |
| Undefined | Vertical | x = 2 |
The bigger the absolute value, the steeper the line. A slope of −4 is steeper than a slope of 2; it just goes downhill.
Slope in equations of lines
In slope-intercept form, y = mx + b, the slope is m and the y-intercept is b. The line y = 0.5x − 3 crosses the y-axis at −3 and rises half a unit per step.
In point-slope form, y − y₁ = m(x − x₁), you can write a line straight from one point and the slope. Through (4, 1) with slope 3: y − 1 = 3(x − 4), which simplifies to y = 3x − 11.
In standard form, Ax + By = C, the slope is −A ÷ B. For 4x + 2y = 10, the slope is −4 ÷ 2 = −2.
Parallel and perpendicular lines
- Parallel lines have the same slope: y = 2x + 1 and y = 2x − 7 never meet.
- Perpendicular lines have slopes that multiply to −1: slopes 2 and −½, or ⅔ and −³⁄₂.
Slope as a rate
Whenever a graph has real units on its axes, slope is a rate of change with units of "y per x". A distance–time graph with slope 60 means 60 miles per hour. A cost graph with slope 4.50 means $4.50 per item. That is why slope shows up as speed, price per unit, growth per year and wages per hour. A ratio of two changes is exactly what slope is.
Slope in the real world
Roads, ramps and roofs describe slope in their own ways:
| Description | Meaning | Slope as a number |
|---|---|---|
| 8% road grade | 8 ft rise per 100 ft run | 0.08 |
| 1:12 wheelchair ramp | 1 unit rise per 12 run | ≈ 0.083 (8.3%) |
| 6/12 roof pitch | 6 in rise per 12 in run | 0.5 |
| 45° angle | Equal rise and run | 1 |
To turn a slope into an angle, use the inverse tangent: a slope of 0.5 is about 26.6°. The 1:12 ramp rule used in US accessibility guidelines keeps ramps at about 4.8°.
Slope of a curve
A curve does not have one slope; its steepness changes from point to point. The slope at a single point is the slope of the tangent line there, and finding it is exactly what a derivative does. For y = x², the slope is 2 at x = 1 and 6 at x = 3.
Reading slope from a graph
Pick two points where the line crosses grid corners exactly, count the squares up (or down) and the squares across, and divide. If the line goes up 3 squares for every 2 across, the slope is 3/2. Check the scale on each axis first; if the y-axis counts in fives, 3 squares means 15.
Slope in statistics
In a scatter plot, the line of best fit has a slope too, and it is read as a rate. If a regression of test score on study hours gives y = 2.5x + 40, the slope 2.5 means each extra hour of study is associated with 2.5 more points, on average. The sign shows the direction of the relationship, but unlike the correlation coefficient, the slope's size depends on the units used, so it cannot be compared between unrelated data sets.
Common mistakes
- Run over rise. Slope is change in y divided by change in x, not the other way round.
- Mixing the order of points between the top and bottom of the fraction.
- Calling a vertical line's slope 0. Horizontal is 0; vertical is undefined.
- Reading the slope from the wrong form: in 2y = 6x − 4, the slope is 3, not 6.
The slope calculator finds slope, intercept and equation from two points. Slope and equations of lines covers graphing step by step.