On this concept: Formula

Not sure which lesson to do first? Find your level and get a plan →

Math · Algebra Fundamentals · Grade 6-8

Slope

Slope is the constant rate of change of a line: how much y changes each time x goes up by 1.

m=ΔyΔx=y2−y1x2−x1
y = 6/2 · x0123456(3, 9)

Move 2 to the right and the line climbs 6 — the slope is 6 ÷ 2 = 3, the same trade everywhere on the line.


Quick Answer

Slope is the constant rate of change of a line: how much y changes each time x goes up by 1. Use it when you need to know how steep a line is, which way it tilts, or how fast one quantity changes compared with another: dollars per hour, metres per second, metres of climb per metre of road. Find it from any two points as rise over run, m=y2−y1x2−x1. Positive slope climbs to the right, negative slope falls, and zero slope is flat.

Why This Matters

Slope turns a line into one number you can compare: a road with slope 0.08 is steeper than one at 0.05, and a plan charging $0.10 per minute grows faster than one at $0.05. It lets you predict the next value without plotting. Mix up rise and run and a gentle ramp with slope 112 becomes a wall with slope 12.

Intuitive Explanation

Walk along a line from left to right. Each step goes some distance across (the run) and some distance up or down (the rise). On the line through (1,2) and (4,11) you go 3 across and 9 up, so the rise for each single step across is 9÷3=3. That 3 is the slope. On a straight line it doesn't matter which two points you pick: from (2,5) to (3,8) is also 3 up for 1 across.

The sign gives the direction and the size gives the steepness. A slope of −2 means 2 down for every 1 across, falling to the right. A slope of 14 is gentle: 1 up for every 4 across. A horizontal line has slope 0 because it never rises. A vertical line has an undefined slope, because its run is 0 and you can't divide by 0.

In a story, slope is a rate with units. A candle that is 20 cm tall after 1 hour and 14 cm tall after 4 hours has slope 14−204−1=−63=−2 cm per hour: it burns down 2 cm each hour.

Slope belongs to straight lines. In the table x=0,1,2,3, y=1,2,4,8 the jumps are 1, 2 and 4, so there is no single slope; between two chosen points you can only find an average rate of change. Keep slope separate from the y-intercept too: the intercept is where the line starts, the slope is how fast it changes.

Think of it like this. On a staircase, slope is how far you climb for each step forward. Tall, short steps make a big slope; long, shallow steps make a small one. Real stairs only go up as you walk, but a line can also have negative slope, which is a staircase going down as you move to the right.

Core idea. Slope is the steady rate a straight line climbs or falls.


When to Use

Find a slope when a problem asks how steep, how fast, or how much per something (per hour, per item, per metre) and the relationship is a straight line or changes by equal amounts. Two points, a graph, or a table with constant differences is all you need. If the changes in a table are not equal, the relationship isn't a line, so find an average rate of change between two points instead. If the question asks for the starting value, you want the y-intercept, not the slope.

Tip. Ask: Does the output change by the same amount for each equal step in the input?

How to Recognize It

Before computing rise over run, check that the relationship really is a straight line and that the question wants its rate rather than its starting value.

  1. Is the question about how much one quantity changes for each single unit of the other?

    If yes, the answer is the slope, with units such as dollars per hour. If it asks for the value when the input is 0, such as a starting fee, it wants the y-intercept instead.

  2. Can you read two exact points off the graph or table?

    If yes, subtract the y-values and the x-values in the same order and divide. On a graph, choose points where the line passes exactly through grid corners, so that your readings are not guesses.

  3. Does the line go through the origin?

    If yes, it is a proportional relationship, and the slope also equals the ratio y/x at every point. If no, the slope still exists, but y/x changes from point to point, so only change over change gives it.

  4. Are the two axes measured in units, like hours and kilometres?

    If yes, the slope carries a unit, here kilometres per hour, and the unit tells you what it means. A slope of 60 on that graph is a speed, not just a steepness.

Slope compared with Proportional relationship, Average rate of change, and y-intercept

Slope, the constant ratio of a proportional relationship, an average rate of change and the y-intercept can all be read from the same graph. Ask whether you want a rate or a starting value, and whether the graph is straight.

Slope

Meaning
Use this when a relationship is linear and you need its rate, steepness, or direction of change.
Key test
Does the output change by the same amount for each equal step in the input?
Formula
m=ΔyΔx=y2−y1x2−x1
Example
A line passes through (1,2) and (4,11). Find its slope.

Proportional relationship

Meaning
A special line through the origin where y/x is constant.
Key test
Use when the line passes through (0,0) and the ratio y/x stays fixed.
Formula
y=kx
Example
Distance at constant speed from a standstill

Average rate of change

Meaning
The overall rate between two points of a curve that is not straight.
Key test
Use when the relationship is nonlinear and you want a between-two-points rate.
Formula
f(b)−f(a)b−a
Example
Average speed over a trip that sped up and slowed down

y-intercept

Meaning
Where the line crosses the y-axis — the starting value, not the rate.
Key test
Use when the question asks for the value at x=0, not how fast it changes.
Formula
b in y=mx+b
Example
The flat fee before any per-unit charge

Formula & Notation

m=ΔyΔx=y2−y1x2−x1
For two distinct points (x1,y1),(x2,y2)∈R2 with x1≠x2: m=y2−y1x2−x1. The slope is the unique m∈R such that y−y1=m(x−x1) for all (x,y) on the line.

How to read it: m is the slope: the change in y for each +1 change in x.

Worked Examples

Example 1 — Slope from two points

Easy

A line passes through (1,2) and (4,11). Find its slope.
Show the steps and the answer
  1. Label the points: (x1,y1)=(1,2) and (x2,y2)=(4,11).

    Naming them fixes an order, so the top and bottom of the fraction subtract the same way.

  2. Find the rise: y2−y1=11−2=9.

    Rise is the change in y, the vertical direction.

  3. Find the run: x2−x1=4−1=3.

    Run is the change in x, taken in the same order as the rise.

  4. Divide: m=93=3.

    Rise over run gives the change in y for each 1 unit across.

  5. Try the other order: 2−111−4=−9−3=3.

    Swapping both points flips both signs, which cancel, so the slope doesn't change.

Answer: m=3

Takeaway: Subtract in the same order top and bottom; slope 3 means the line rises 3 for every 1 step to the right.

Example 2 — Not a constant rate

Standard

A table shows x=0,1,2,3 with y=1,2,4,8. Can you give it a single slope?
Show the steps and the answer
  1. Find the change in y for each step of 1 in x: 2−1=1, 4−2=2, 8−4=4.

    A line changes by the same amount for equal steps, and these changes differ.

  2. Notice that each y is double the one before: 1,2,4,8.

    Doubling is multiplying by 2 each step, an exponential pattern, so the graph curves upward.

  3. Compute the rate across the whole table: 8−13−0=73.

    This is only an average rate of change; between x=0 and x=1 the rate is 1, so 73 does not describe every step.

Answer: No single slope — it is not linear

Takeaway: Check that the differences are constant before calling anything a slope; a curve only has average rates between chosen points.

Example 3 — Find the mistake: mixed subtraction order

Application

Find the slope of the line through (2,7) and (6,−1). Mia writes: "m=−1−72−6=−8−4=2." Find the error and the correct slope.
Show the steps and the answer
  1. Look at the order: the top is point 2 minus point 1 (−1−7), but the bottom is point 1 minus point 2 (2−6).

    Mixing the orders flips the sign of only one part, so the slope's sign comes out wrong.

  2. Redo it with one order: m=−1−76−2=−84=−2.

    Using (6,−1) as the second point in both places keeps rise and run consistent.

  3. Check the direction: as x goes from 2 to 6, y drops from 7 to −1.

    The line falls to the right, so its slope must be negative, and Mia's +2 can't be right.

Answer: m=−2

Takeaway: Use the same first point on top and bottom, then check the sign against whether the line rises or falls.

Where You'll See It

  • Wheelchair ramp rules

    US accessibility rules allow a ramp slope of at most 112: 1 inch of rise for every 12 inches of run. To reach a porch 30 inches high, the ramp needs 30×12=360 inches of run, which is 30 feet.

  • Road grade warning signs

    A sign reading "8% grade" means a slope of 0.08: the road drops 8 m for every 100 m of horizontal distance. Over 2 km that is a 160 m descent, which is why truck drivers are told to use a low gear.

  • Hourly pay from two paychecks

    If 3 hours of work paid $45 and 5 hours paid $75, the slope is 75−455−3=302=15 dollars per hour, which is the hourly wage.

Common Mistakes

  1. The slip: Computing ΔxΔy instead of ΔyΔx

    Instead: rise goes over run, output over input.

  2. The slip: Subtracting the coordinates in a different order top and bottom

    Instead: keep (y2−y1) over (x2−x1) with the same first point.

  3. The slip: Calling a curved or unequal-step relationship a slope

    Instead: slope only describes a straight line.


Mini Practice

Try these on your own. Tap Reveal when you want to check.

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

    Hint: Divide the change in y by the change in x.

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

    Hint: Keep the same point first on top and on the bottom.

  3. A wheelchair ramp rises 1.5 m over a horizontal distance of 12 m. What is its slope?

    Hint: Slope is rise divided by run.

  4. A table gives x: 0, 2, 4, 6 and y: 7, 4, 1, −2. Is the relationship linear? If so, find the slope.

    Hint: Check whether y changes by the same amount for each step of 2 in x.

  5. A car's distance (km) at hours 0, 1, 2, 3 is 0, 60, 120, 180. A ball's height (m) at seconds 0, 1, 2, 3 is 0, 15, 20, 15. For which can you give one slope?

    Hint: Find the change between each pair of neighbouring values.

  6. For the points (1,4) and (3,10), Sam computes 3−110−4=13. Correct his slope.

    Hint: Which change belongs on top: the change in x or the change in y?

Want the full set?

50 practice questions for this concept — free to try, every one with a complete worked solution showing the why, not just the answer.

Frequently Asked Questions

Why is a horizontal line's slope 0 but a vertical line's slope undefined?

A horizontal line has a rise of 0 for any run, and 05=0\frac{0}{5} = 0, so its slope is 0: no change at all. A vertical line has a run of 0, and 50\frac{5}{0} has no value, because no number times 0 gives 5. So its slope is undefined, not zero. A flat road has slope 0; a wall has no slope, since you cannot walk forward along it.

Does it matter which point I call the first point?

No, as long as you use the same order on top and bottom. From (1,3)(1, 3) to (4,9)(4, 9): 9−34−1=2\frac{9 - 3}{4 - 1} = 2. From (4,9)(4, 9) to (1,3)(1, 3): 3−91−4=−6−3=2\frac{3 - 9}{1 - 4} = \frac{-6}{-3} = 2. Swapping the points flips the sign of both the top and the bottom, and those two sign changes cancel.

How is slope used for roads and ramps?

Road signs give slope as a percentage called the grade: a 6% grade rises 6 m for every 100 m across, a slope of 0.06. Many building codes let a wheelchair ramp rise at most 1 unit for every 12 across, a slope of about 0.083. Roofers describe pitch as, say, 4 in 12. Each is rise over run, written in the way that suits the trade.

What does it mean if two lines have the same slope?

They climb at the same rate, so the gap between them never changes: they are parallel, unless they also share a point, in which case they are the same line. Lines that meet at a right angle have slopes that multiply to −1-1, such as 2 and −12-\frac{1}{2}, as long as neither line is vertical. That pairing is the next idea after slope.

Learning Path

Slope

You are here

You need the Coordinate Plane (to read points) and Rates (comparing two quantities, like kilometres per hour) first. Slope turns a straight line's steepness into one number, rise over run. Next, Linear Functions write a line as y=mx+b with slope m, and Parallel and Perpendicular lines are recognised by equal slopes or by slopes whose product is −1.

See Also