A wheelchair ramp cannot be too steep, or it becomes dangerous to use. Accessibility rules limit ramps to a gentle steepness; a common rule, used in Ontario's building code for barrier-free ramps, allows at most 1 unit of height for every 12 units of horizontal length, and some standards ask for an even gentler slope. Roofers talk about a roof's pitch, and road signs warn of a "10% grade" before a steep hill. All of these describe the same idea, the slope of a line: how far it goes up or down for each step across. In the last lesson you met the rate of change of a linear relation. Slope is the same number, read straight off a graph. In this lesson you will calculate slope several ways and combine it with one more number, the -intercept, to write the equation of any non-vertical line.

Slope is rise over run
Pick two points on a line. The rise is the vertical change from the first point to the second: positive if you go up, negative if you go down. The run is the horizontal change: positive if you go right. The slope, written , is the rise divided by the run. Because a line is straight, it does not matter which two points you pick: a bigger triangle has a bigger rise and a bigger run in the same proportion, so the quotient is always the same. If the points are and , the rise is and the run is .
| Slope | What the line does (left to right) | Example |
|---|---|---|
| Positive | Rises | |
| Negative | Falls | |
| Zero | Horizontal: the rise is 0 | |
| Undefined | Vertical: the run is 0, and you cannot divide by 0 |
Slope from two points
For and : the rise is and the run is , so . Reduce the fraction, the way you would any fraction. You can also subtract the other way round, , and get the same slope, as long as you subtract in the same order on top and bottom. Mixing orders flips the sign. Be extra careful with negative coordinates: subtracting a negative means adding.
The y-intercept and slope-intercept form
The y-intercept is where a line crosses the -axis. Every point on the -axis has , so the -intercept is the point , and we usually just call the number the -intercept. A non-vertical line with slope and -intercept has the equation , called slope-intercept form. This is the "rate of change and initial value" form from the last lesson: is the rate of change and is the initial value. For the line in the figure, and , so . To graph , plot , then use the rise and run of to reach a second point, and draw the line through both.
Writing the equation from a graph, a table, two points or a description
- From a graph: read where the line crosses the -axis, then pick two points exactly on grid corners and find rise over run. Check the scale of each axis first: one grid square is not always 1 unit.
- From a table: the slope is the change in divided by the change in between rows. The -value in the row where is ; if there is no such row, work backward with the slope.
- From two points: find with the slope formula, then substitute one point and into and solve for .
- From a description: the amount added or lost per unit is (negative when it decreases), and the starting amount is .