Gradient and Slope
Key Ideas
• Gradient measures the steepness of a line: gradient = rise ÷ run.
• Rise = vertical change (up is positive, down is negative).
• Run = horizontal change (right is positive, left is negative).
• Positive gradient: line goes up from left to right (rise and run have the same sign).
• Negative gradient: line goes down from left to right (rise and run have opposite signs).
• Zero gradient: horizontal line (rise = 0).
• Undefined gradient: vertical line (run = 0, division by zero is undefined).
• From two points: gradient m = (y2 − y1) ÷ (x2 − x1).
Gradient from two points:
The formula is: m = Δy ÷ Δx = (y2 − y1) ÷ (x2 − x1)
Worked Example
Question: Find the gradient of the line passing through (1, 2) and (4, 8).
Step 1 — Label the points.
Let (x1, y1) = (1, 2) and (x2, y2) = (4, 8).
Step 2 — Calculate rise and run.
Rise = y2 − y1 = 8 − 2 = 6
Run = x2 − x1 = 4 − 1 = 3
Step 3 — Divide.
m = rise ÷ run = 6 ÷ 3 = 2
Step 4 — Interpret.
The gradient is 2 (positive), so the line rises 2 units for every 1 unit it moves to the right.
What Is Gradient?
The gradient (also called slope) measures the steepness of a line. It tells you how much y changes for every 1 unit increase in x.
Gradient = rise ÷ run
where rise is the vertical change and run is the horizontal change between two points on the line. Pick any two points — the gradient will be the same no matter which two you choose (that's what makes it a straight line).
Example: A line passes through (2, 3) and (6, 11).
Rise = 11 − 3 = 8. Run = 6 − 2 = 4. Gradient = 8 ÷ 4 = 2.
Positive, Negative, Zero, and Undefined Gradient
Positive gradient: The line goes up from left to right (like walking uphill). y increases as x increases. e.g. gradient = 3.
Negative gradient: The line goes down from left to right (like walking downhill). y decreases as x increases. e.g. gradient = −2.
Zero gradient: The line is perfectly horizontal (flat). y stays the same as x changes. The rule looks like y = 5 (no x term). Gradient = 0/run = 0.
Undefined gradient: The line is perfectly vertical. x stays the same as y changes. This is like dividing by zero — gradient = rise/0 which is undefined. Vertical lines are written as x = 3 (no y term).
Gradient in Real Life
Gradient is used to describe the steepness of real-world slopes:
• Roads: A road with gradient 1/10 rises 1 m for every 10 m of horizontal distance. This is an 8.1° slope — quite steep for a road.
• Roofs: A roof pitch is often described as a ratio of rise to run. A 1:3 pitch means for every 3 m across, the roof rises 1 m.
• Wheelchair ramps: Australian standards require a maximum gradient of 1:14 for accessibility — very gentle.
• Ski runs: A black diamond run might have a gradient of 1:2 or steeper.
Calculating Gradient from Two Points
Given two points (x1, y1) and (x2, y2):
m = (y2 − y1) ÷ (x2 − x1)
Example: Points (−1, 4) and (3, −4).
m = (−4 − 4) ÷ (3 − (−1)) = −8 ÷ 4 = −2. Negative — line goes downhill left to right.
Note: you can subtract in either order, as long as you are consistent (same point first in numerator and denominator).
Steeper Lines Have Larger Gradient Values
A gradient of 5 is steeper than a gradient of 2, which is steeper than a gradient of 0.5. For negative gradients, −4 is steeper (falling faster) than −1.
On a graph, a line with gradient 4 rises 4 units for every 1 unit across. A line with gradient 1/2 only rises 1 unit for every 2 units across — much gentler.
Mastery Practice
-
Calculate the gradient of the line passing through each pair of points. Fluency
- (0, 0) and (3, 6)
- (1, 3) and (4, 9)
- (2, 5) and (6, 13)
- (0, 4) and (5, −1)
- (1, 7) and (3, 3)
- (−2, 1) and (2, 9)
- (3, 3) and (7, 3)
- (−1, −3) and (2, 6)
- (0, 10) and (4, 2)
- (−3, 5) and (1, −3)
-
For each gradient value, classify it as positive, negative, zero, or undefined. Fluency
- m = 3
- m = −5
- m = 0
- m = ½
- m = −¾
- A vertical line
- m = −100
- m = 0.01
-
For each description, state whether the gradient is positive, negative, zero, or undefined, then estimate or calculate the value where possible. Fluency
- A road that climbs 8 m for every 100 m travelled horizontally.
- A horizontal footpath.
- A ski slope that drops 15 m for every 30 m of horizontal distance.
- A flagpole standing straight up.
- A ramp that rises 1 m for every 4 m of horizontal distance.
- A line going down from left to right.
-
Compare the steepness of lines with the given gradients. For each pair, state which line is steeper and explain why. Understanding
- m = 3 and m = 5
- m = −4 and m = 2
- m = ½ and m = ¼
- m = −6 and m = −2
- m = 1 and m = −1
- m = 0.75 and m = ¾
-
Use the given gradient and one point to find the missing coordinate. Understanding
- m = 2; points (1, 3) and (4, ?)
- m = −3; points (0, 5) and (2, ?)
- m = 4; points (?, 6) and (3, 14)
- m = ½; points (2, 1) and (6, ?)
- m = −2; points (1, 8) and (?, 2)
- m = 3; points (0, ?) and (4, 13)
-
Gradient in real-world contexts. Problem Solving
- A wheelchair ramp must have a maximum gradient of 1:12 (rise of 1 for every run of 12). A ramp needs to rise 0.6 m. What is the minimum horizontal length the ramp must be?
- Three points are given: A(0, 2), B(3, 8), and C(6, 14). Show that A, B, and C are collinear (lie on the same straight line) by comparing the gradients of AB and BC.
- A road rises from an elevation of 45 m at point A to 165 m at point B. The horizontal distance between A and B is 600 m. Find the gradient of the road. Express it as a simplified fraction and as a decimal.
- Line 1 passes through (0, 3) and (4, 11). Line 2 passes through (−2, 9) and (2, 1). Without drawing the lines, describe how they compare in terms of gradient. What do you notice?
-
Ramp design. A builder is designing two ramps to access a loading dock 1.2 m above ground level. Ramp A has a horizontal run of 6 m. Ramp B has a gradient of 1:8 (rise:run).Problem Solving
- Calculate the gradient of Ramp A as a simplified fraction and as a decimal.
- What is the horizontal run of Ramp B?
- Building regulations state the maximum gradient for a ramp is 1:5. Which ramp(s) comply? Justify your answer.
-
The graph below shows the line y = 2x − 1 with two points marked. Use the marked points to calculate the gradient. Understanding
- Write the coordinates of the two marked points.
- Calculate the rise (vertical change) and the run (horizontal change) between the two points.
- Calculate the gradient using rise ÷ run.
- Choose a different pair of points on the line and verify that you get the same gradient.
-
The graph below shows two lines with different gradients. Study the graph and answer the questions. Problem Solving
- Which line has the greater gradient? How can you tell just by looking at the graph?
- Calculate the gradient of Line A (y = 3x) using two points you can read from the graph. Show your working.
- Calculate the gradient of Line B (y = x/2) using two points you can read from the graph. Show your working.
- Explain in your own words why a larger gradient value produces a steeper line.
-
The graph below shows a line with a negative gradient. Use the marked points to answer the questions. Problem Solving
- Use the two marked points (0, 1) and (2, −3) to calculate the gradient. Show your working using the formula m = (y2 − y1) ÷ (x2 − x1).
- What does a negative gradient tell you about the direction of the line? Describe what you see on the graph.
- A different line has gradient −3. Is it steeper or less steep than this line? Explain your reasoning.