Glossary

Slope

Also written: gradient · rise over run · m

Definition

Slope measures how steep a line is: the change in y divided by the change in x. A slope of 2 means the line climbs 2 units for every 1 unit across.

The formula

Between two points (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2):

m=y2y1x2x1=riserunm = \frac{y_2 - y_1}{x_2 - x_1} = \frac{\text{rise}}{\text{run}}

Reading the sign

SlopeThe line
positiverises left to right
negativefalls left to right
zerois horizontal
undefinedis vertical

Zero and undefined are opposites, not variations of each other. A horizontal line has slope 00 because the rise is zero; a vertical line has no slope because the run is zero, and dividing by zero is undefined.

Why it is the same everywhere on a line

Pick any two points and drop a right triangle beneath them. Any other pair gives a triangle with the same angles, so the two are similar and their sides are in the same ratio. Scaling a triangle changes the rise and the run together and leaves the fraction alone. See what slope is.

Slope as a rate

When the axes carry units, slope carries the units of yy per unit of xx — dollars per gigabyte, litres per minute, miles per hour. That is why it is also called a rate of change.

Lessons that use this term

  • What Slope Is, and Why It Never Changes on a Line

    Learn what slope measures, how to find it with rise over run and the slope formula, and why similar triangles guarantee it is the same everywhere on a line.

  • Slope-Intercept Form: y = mx + b

    Understand y = mx + b, what m and b each control, how to graph a line from it in two moves, and how to rewrite any linear equation into this form.

  • How to Graph Linear Equations

    Graph a line three ways — from slope-intercept form, from intercepts, or from a table — and understand why every point on the line is a solution.

Related terms