Slope

Definitionnoun

What is slope in math?

Slope is a number that measures how steep a line is: the change in y divided by the change in x between any two points on the line, often called rise over run. A positive slope rises from left to right, a negative slope falls, and a horizontal line has slope 0.

In Spanish
pendiente
Also called
gradient, rate of change, rise over run
Grade level
6-8
Grade 8Algebra 1CCSS 8.EE.B.5CCSS 8.EE.B.6CCSS 8.F.B.4GEDSATACT

Slope in a picture

Slope as rise over runA line through A(1, 2) and B(5, 5). From A, a dashed run of 4 goes right and a rise of 3 goes up to B, so the slope is 3/4. Below, four small graphs show positive, negative, zero and undefined slope.1234567123456xyA(1, 2)B(5, 5)run = 4rise = 3slope = rise ÷ run = 3 ÷ 4 = 0.75positivenegativezeroundefined
From A to B the line goes right 4 (the run) and up 3 (the rise), so its slope is 34. Any two points on this line give the same slope. The small graphs show the four kinds of slope.

Formal definition and notation

For two points (x1, y1) and (x2, y2) on a non-vertical line, with x1 ≠ x2, the slope is m = y2 − y1x2 − x1. Because the line is straight, every pair of points on it gives the same value of m: the slope triangles they make are similar. A vertical line has x1 = x2, so its slope is undefined.

Symbol Read it as Meaning
m m the usual letter for slope, as in y = mx + b
Δ y delta y the change in y, also called the rise
Δ yΔ x delta y over delta x change in y divided by change in x
y = mx + b y equals m x plus b slope-intercept form: m is the slope and b is the y-intercept

Key facts

  • Positive slope: the line rises from left to right. Negative slope: it falls from left to right.
  • Zero slope: a horizontal line, such as y = 4. Undefined slope: a vertical line, such as x = −2.
  • The larger the absolute value |m|, the steeper the line: a slope of −3 is steeper than a slope of 2.
  • parallel lines have equal slopes. Non-vertical perpendicular lines have slopes that multiply to −1, such as 2 and −12.
  • In a real situation, slope is a unit rate or rate of change: dollars per hour, miles per gallon, meters per second.

Where the name comes from. Nobody knows for sure why slope is written m. The earliest known printed use is in a book by O’Brien from 1844, and the popular story that it comes from the French word monter (to climb) has no evidence behind it.

Slope formula

Slope formula
m = y2 − y1x2 − x1 = riserun
m
the slope of the line
(x1, y1), (x2, y2)
any two different points on the line
y2 − y1
the rise: how far up (positive) or down (negative) you move
x2 − x1
the run: how far right you move (it cannot be 0)

Subtract in the same order on the top and the bottom. The formula does not work when x2 = x1, because that is a vertical line.

Try it: drag the points

Interactive

Drag point A or B, or select a point and use the arrow keys. The rise, run, slope and equation of the line update as you move. Try the presets for special cases.

This interactive needs JavaScript. The worked examples below show the same ideas step by step.

Slope examples, step by step

Example 1: Slope from two points

Warm-up

Find the slope of the line through (2, 3) and (6, 11).

  1. Label the points: (x1, y1) = (2, 3) and (x2, y2) = (6, 11).
  2. Find the rise: y2 − y1 = 11 − 3 = 8.
  3. Find the run: x2 − x1 = 6 − 2 = 4.
  4. Divide rise by run: m = 84 = 2.

Answer: The slope is 2: the line goes up 2 units for every 1 unit it moves to the right.

Example 2: A negative, fractional slope

Core

Find the slope of the line through (−3, 4) and (5, −2).

  1. Rise: y2 − y1 = −2 − 4 = −6.
  2. Run: x2 − x1 = 5 − (−3) = 8. Subtracting a negative means adding.
  3. Divide and simplify: m = −68 = −34.
  4. Check the sign: as x goes from −3 to 5, y goes down from 4 to −2, so a negative slope makes sense.

Answer: m = −34, or −0.75: the line falls 3 units for every 4 units to the right.

Example 3: Slope as a rate in a word problem

Test-style

A plumber charges a fixed fee plus an hourly rate. A 2-hour job costs 150 dollars and a 5-hour job costs 315 dollars. The cost is a linear function of time. What is the slope, and what does it mean?

  1. Write each job as a point (hours, cost): (2, 150) and (5, 315).
  2. Rise (change in cost): 315 − 150 = 165 dollars.
  3. Run (change in time): 5 − 2 = 3 hours.
  4. Slope: m = 1653 = 55 dollars per hour.
  5. Interpret it: every extra hour adds 55 dollars, so the slope is the hourly rate. The fixed fee is the y-intercept: 150 − 2 × 55 = 40 dollars.

Answer: The slope is 55 dollars per hour, the plumber’s hourly rate (and the fixed fee is 40 dollars).

Common mistakes

✗ MistakeRun over rise: x2 − x1y2 − y1.
✓ InsteadRise over run: y2 − y1x2 − x1. The change in y goes on top.

Slope tells how much y changes for each 1-unit step in x, so the change in y is divided by the change in x, not x over y. Memory trick: you rise out of bed before you run.

✗ MistakeMixing the order: for (2, 3) and (6, 11), 11 − 32 − 6 = −2.
✓ InsteadSame order on top and bottom: 11 − 36 − 2 = 2.

If you start the top with the second point’s y, start the bottom with the second point’s x. Mixing the order flips the sign.

✗ MistakeA vertical line has slope 0.
✓ InsteadA horizontal line has slope 0. A vertical line has an undefined slope.

On a vertical line the run is 0, and you cannot divide by 0. On a horizontal line the rise is 0, and 0 divided by any run is 0.

Not to be confused with

Slopevs.Y-Intercept

Slope is how steep the line is: the m in y = mx + b. The y-intercept is where the line crosses the y-axis: the b. In y = 2x + 5, the slope is 2 and the y-intercept is 5.

Slope is one number. Slope-intercept form, y = mx + b, is a way to write the equation of a whole line so that its slope and y-intercept are easy to read.

Slopevs.Angle

Slope is a ratio, not an angle. A slope of 1 makes a 45° angle with the x-axis, but doubling the slope to 2 gives about 63°, not 90°.

Quick check: 3 questions

Question 1 of 3

What is the slope of the line through (1, 2) and (4, 8)?

Show answer and explanation

Answer: A. Rise = 8 − 2 = 6 and run = 4 − 1 = 3, so m = 63 = 2. Choice B is run over rise; C and D are the rise and the run on their own.

Question 2 of 3

Which line has an undefined slope?

Show answer and explanation

Answer: B. x = 3 is a vertical line: every point has the same x, so the run is 0 and you cannot divide by 0. y = 3 is horizontal, so its slope is 0.

Question 3 of 3

What is the slope of y = −4x + 7?

Show answer and explanation

Answer: B. In slope-intercept form y = mx + b, the slope m is the coefficient of x, so m = −4. The 7 is the y-intercept.

Slope: frequently asked questions

Can a slope be zero?

Yes. A slope of 0 means the rise is 0: the y-value never changes, so the line is horizontal, like y = 4. Do not mix this up with a vertical line such as x = 4. There the run is 0, and since you cannot divide by 0, the slope of a vertical line is undefined, not zero.

Does it matter which point I use first?

No, as long as you stay consistent. Using (2, 3) first gives 11 − 36 − 2 = 2. Using (6, 11) first gives 3 − 112 − 6 = −8−4 = 2. Both orders give the same slope. The only rule is to subtract in the same order in the numerator and the denominator.

What does slope mean in a word problem?

Slope is a rate of change: how much the output changes for each 1-unit increase in the input. Its units are output units per input unit, such as dollars per hour, miles per gallon or degrees per minute. On a graph of cost against hours worked, for example, the slope is the hourly rate.

Practice and tools

Sources

  1. Common Core State Standards, Grade 8 Expressions and Equations (8.EE.B.5, 8.EE.B.6)
  2. Common Core State Standards, Grade 8 Functions (8.F.B.4)
  3. OpenStax, Elementary Algebra 2e, 4.4 Understand Slope of a Line
  4. Weisstein, Eric W. "Slope." MathWorld, Wolfram Research (history of the symbol m)

Updated November 2026·Reviewed by the Effortless Math team·Standards: CCSS 8.EE.B.5, CCSS 8.EE.B.6, CCSS 8.F.B.4

Cite this entry

Effortless Math Team. “Slope.” Effortless Math Dictionary. Updated November 2026. https://www.effortlessmath.com/math-dictionary/slope/

Flashcard

TermSlopem = riserun
DefinitionHow steep a line is: the change in y divided by the change in x. Through (1, 2) and (4, 8) the slope is 6 ÷ 3 = 2.
Study the full deck

Browse all terms in the Math Dictionary · More algebra terms · Random term