Coordinate geometry·Elementary·Rate

Slope

The slope of a nonvertical line measures its vertical change divided by its horizontal change.

Slope tells how much y changes for each unit change in x.

What does slope mean?

For distinct points (x₁,y₁) and (x₂,y₂), slope m=(y₂−y₁)/(x₂−x₁), provided x₂≠x₁. A positive slope rises from left to right; a negative slope falls. A vertical line has undefined slope because its horizontal change is zero.

Slope equals change in y divided by change in x

m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}

Slope examples

Example 1

Find the slope through (1,2) and (4,8).

Answer: (8−2)/(4−1)=2

The line rises 6 units over a run of 3 units.

Properties and types

  • Parallel nonvertical lines have equal slopes.
  • Perpendicular nonvertical lines have slopes whose product is −1 when both slopes are defined.

Where is slope used?

This concept appears in a range of mathematical and practical settings:

  • Line equations
  • Rates and trends
  • Tangent lines

Common misunderstandings

  • Reversing the order in only one difference.
  • Saying a vertical line has slope zero.

Related tools and learning resources