Gradient of linear graphs
What the gradient of a straight line measures, how to find it from a grid by reading the rise and the run off the axis scales, and (Extended) how to calculate it from the coordinates of two points on the line.
What the syllabus says
C3.3 (Core)
- Find the gradient of a straight line.
Notes and examples
- From a grid only.
E3.3 (Extended)
- 1 Find the gradient of a straight line.
- 2 Calculate the gradient of a straight line from the coordinates of two points on it.
Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.
What gradient measures
The gradient of a straight line is a single number that tells you how steep the line is and which way it slopes. It is the change in for every 1 unit you move to the right.
Reading a graph from left to right:
- a line that goes up has a positive gradient;
- a line that goes down has a negative gradient;
- a horizontal line has gradient , because does not change at all.
The size of the number tells you the steepness. A line with gradient is steeper than a line with gradient , and a line with gradient is steeper than one with gradient : it falls 4 units for each step right instead of 1. A vertical line has no gradient you can calculate, because the run is and you cannot divide by .
Why any two points give the same answer. Pick two points on a straight line and draw the right-angled triangle between them. Pick two other points and draw another triangle. The two triangles have the same angles, so they are similar: one is an enlargement of the other. That means rise divided by run is the same for both. This is what makes a straight line straight, and it is why you are free to choose whichever two points are easiest to read.
Finding the gradient from a grid
When the line is drawn on a grid, find its gradient like this.
- Choose two points where the line passes exactly through a grid crossing. Choose them far apart: the bigger the triangle, the smaller the effect of any reading error.
- Draw a right-angled triangle with a horizontal side (the run) and a vertical side (the rise), with the line as its longest side.
- Read the run and the rise from the numbers on the axes, not by counting squares. On many exam grids one square across is 1 unit but one square up is 2, 5 or 10 units.
- Decide the sign. Moving left to right, if the line goes down, the rise is negative.
- Divide the rise by the run, and simplify the fraction.
Step 3 is where most marks are lost. Always check the scale on each axis before you count anything. If the -axis goes up in 10s and the -axis in 1s, a triangle that looks 5 squares by 5 squares is really a rise of 50 over a run of 5, so the gradient is 10, not 1.
A gradient can be a fraction or a decimal. A line that rises 3 units for every 4 across has gradient , or . Leave it as a fraction on the non-calculator paper unless it converts neatly.
A gradient triangle
From to the run is and the rise is , so the gradient is . Try the triangle from to : the run is 2, the rise is 4, and the gradient is again .
Worked example 1
Find the gradient of the line drawn on the grid.
Choose two points where the line crosses the grid exactly: and .
Run: goes from to , a change of .
Rise: goes from down to , a change of . The line falls, so the rise is negative.
Gradient .
Sense check: the line goes down from left to right, so a negative gradient is what we expect.
Answer:
Worked example 2
The graph shows the depth of water, cm, in a tank minutes after a tap is turned on. (a) Find the gradient of the line. (b) Explain what the gradient represents.
(a) Look at the scales first: one square across is 1 minute, but one square up is 5 cm.
Choose points far apart on grid crossings: and .
Run . Rise .
Gradient .
Counting squares would give 9 up and 6 across, , which ignores the scale on the -axis.
(b) The gradient is cm divided by minutes: the depth of water rises by cm every minute.
Answer: (a) (b) the depth increases by cm each minute
Check yourself
Find the gradient of the line drawn on the grid.
Answer it in the portal, where your answer is checked as you type →
Check yourself
Find the gradient of the line drawn on the grid. Look carefully at the scale on each axis.
Answer it in the portal, where your answer is checked as you type →
Calculating the gradient from two points Extended
Extended candidates must also find a gradient with no grid at all, from the coordinates of two points. The method is the same idea: the rise is the difference of the -coordinates and the run is the difference of the -coordinates. For points and :
Three things to watch:
- Keep the same order on top and bottom. If you start with on top you must start with underneath. Either order works, because is the same fraction with both signs changed.
- Subtracting a negative adds. . Write the brackets in, every time.
- The difference goes on top. Rise over run, never run over rise.
You can also use the formula to work backwards. If you know the gradient and all but one coordinate, write the formula with a letter for the missing value and solve the equation. And if three points , and give the same gradient for and , the three points lie on one straight line, because the two pieces have the same slope and share the point .
Worked example 3 Extended
Calculate the gradient of the line through and .
Take as the first point and as the second.
Change in : .
Change in : .
Gradient .
Check the sign: goes down as goes up, so the gradient should be negative.
Answer:
Worked example 4 Extended
A straight line passes through and . Its gradient is . Find the value of .
Write the gradient formula with the letter in it: .
So .
Multiply both sides by 4: .
.
Check: .
Answer:
Check yourself Extended
Calculate the gradient of the line through and .
Answer it in the portal, where your answer is checked as you type →
Check yourself Extended
Calculate the gradient of the line through and .
Answer it in the portal, where your answer is checked as you type →
Key points
Gradient : rise over run.
Up from left to right is positive, down is negative, horizontal is .
On a grid, read the rise and run from the axis numbers. The two axes often have different scales.
Any two points on a straight line give the same gradient, so choose two exact grid points far apart.
Extended: , with the same order on top and bottom and brackets round negative numbers.
Where marks are lost
Counting squares when the axes have different scales.
Writing run over rise, for example instead of .
Losing the minus sign on a line that slopes down.
Using points that are not exactly on a grid crossing, so the reading is a guess.
Dividing a -coordinate by an -coordinate (for example for the point ) when the line does not pass through the origin.
Extended: mixing the order, , which flips the sign; or instead of .
Related IGCSE Mathematics 0580 lessons
An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.