Skip to content

Math glossary

Slope

Slope measures how steep a line is. It equals the rise divided by the run, or the change in y over the change in x. A positive slope rises from left to right, a negative slope falls, and a horizontal line has a slope of zero.

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

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

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

SlopeLine looks likeExample
PositiveRises left to righty = 2x + 1
NegativeFalls left to righty = −3x + 4
ZeroHorizontaly = 5
UndefinedVerticalx = 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:

DescriptionMeaningSlope as a number
8% road grade8 ft rise per 100 ft run0.08
1:12 wheelchair ramp1 unit rise per 12 run≈ 0.083 (8.3%)
6/12 roof pitch6 in rise per 12 in run0.5
45° angleEqual rise and run1

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.

FAQ

Frequently asked questions

01What is the slope formula?

m = (y₂ − y₁) ÷ (x₂ − x₁). Subtract the y-values, subtract the x-values in the same order, and divide. From (2, 3) to (6, 11) the slope is 8 ÷ 4 = 2.

02What does a slope of 0 mean?

The line is horizontal. The y-value never changes, so the rise is 0 for any run.

03What is an undefined slope?

The slope of a vertical line. The run is 0, and dividing by zero is undefined.

04How do you find the slope from an equation?

Rearrange to y = mx + b. The number multiplying x is the slope. For 2y = 6x − 4, divide by 2 to get y = 3x − 2, so the slope is 3.

05What is the slope of a perpendicular line?

The negative reciprocal. If one line has slope 2, a line perpendicular to it has slope −1/2. Parallel lines have equal slopes.

06How do you find the slope from an angle?

The slope equals the tangent of the angle the line makes with the positive x-axis, m = tan θ. A 45° line has slope 1, and a 30° line has slope about 0.577.

Related terms

Last updated November 9, 2026. See all math terms.