Home / IGCSE Mathematics 0580 / Gradient of linear graphs
Cambridge IGCSE Mathematics 0580 · Coordinate geometry

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.

C3.3E3.3Core and ExtendedFree lesson
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 y for every 1 unit you move to the right.

gradient=change in ychange in x=riserun

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 0, because y does not change at all.

The size of the number tells you the steepness. A line with gradient 3 is steeper than a line with gradient 12, and a line with gradient −4 is steeper than one with gradient −1: it falls 4 units for each step right instead of 1. A vertical line has no gradient you can calculate, because the run is 0 and you cannot divide by 0.

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.

  1. 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.
  2. Draw a right-angled triangle with a horizontal side (the run) and a vertical side (the rise), with the line as its longest side.
  3. 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.
  4. Decide the sign. Moving left to right, if the line goes down, the rise is negative.
  5. 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 y-axis goes up in 10s and the x-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 34, or 0.75. Leave it as a fraction on the non-calculator paper unless it converts neatly.

A gradient triangle

xy−112345−3−2−11234567890

From (1,1) to (4,7) the run is 4−1=3 and the rise is 7−1=6, so the gradient is 63=2. Try the triangle from (0,−1) to (2,3): the run is 2, the rise is 4, and the gradient is again 42=2.

Worked example 1

Find the gradient of the line drawn on the grid.

xy−2−11234−5−4−3−2−112345670
  1. Choose two points where the line crosses the grid exactly: (−1,5) and (3,−3).

  2. Run: x goes from −1 to 3, a change of 3−(−1)=4.

  3. Rise: y goes from 5 down to −3, a change of −3−5=−8. The line falls, so the rise is negative.

  4. Gradient =−84=−2.

  5. Sense check: the line goes down from left to right, so a negative gradient is what we expect.

Answer: −2

Worked example 2

The graph shows the depth of water, y cm, in a tank x minutes after a tap is turned on. (a) Find the gradient of the line. (b) Explain what the gradient represents.

xy12345651015202530354045500
  1. (a) Look at the scales first: one square across is 1 minute, but one square up is 5 cm.

  2. Choose points far apart on grid crossings: (0,5) and (6,50).

  3. Run =6−0=6. Rise =50−5=45.

  4. Gradient =456=7.5.

  5. Counting squares would give 9 up and 6 across, 96=1.5, which ignores the scale on the y-axis.

  6. (b) The gradient is cm divided by minutes: the depth of water rises by 7.5 cm every minute.

Answer: (a) 7.5 (b) the depth increases by 7.5 cm each minute

Check yourself

Find the gradient of the line drawn on the grid.

xy−3−2−112345−11234560

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.

xy1234548121620240

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 y-coordinates and the run is the difference of the x-coordinates. For points (x1,y1) and (x2,y2):

gradient=y2−y1x2−x1

Three things to watch:

  • Keep the same order on top and bottom. If you start with y2 on top you must start with x2 underneath. Either order works, because y1−y2x1−x2 is the same fraction with both signs changed.
  • Subtracting a negative adds. 5−(−3)=8. Write the brackets in, every time.
  • The y 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 A, B and C give the same gradient for AB and BC, the three points lie on one straight line, because the two pieces have the same slope and share the point B.

Worked example 3 Extended

Calculate the gradient of the line through A(−2,7) and B(4,−2).

  1. Take A as the first point and B as the second.

  2. Change in y: −2−7=−9.

  3. Change in x: 4−(−2)=6.

  4. Gradient =−96=−32.

  5. Check the sign: y goes down as x goes up, so the gradient should be negative.

Answer: −32

Worked example 4 Extended

A straight line passes through (1,3) and (5,k). Its gradient is 2.5. Find the value of k.

  1. Write the gradient formula with the letter in it: k−35−1=2.5.

  2. So k−34=2.5.

  3. Multiply both sides by 4: k−3=10.

  4. k=13.

  5. Check: 13−35−1=104=2.5.

Answer: k=13

Check yourself Extended

Calculate the gradient of the line through (−3,−1) and (5,3).

Answer it in the portal, where your answer is checked as you type →

Check yourself Extended

Calculate the gradient of the line through (2.4,−1.5) and (5.4,6).

Answer it in the portal, where your answer is checked as you type →

Key points

  • Gradient =change in ychange in x: rise over run.

  • Up from left to right is positive, down is negative, horizontal is 0.

  • 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: y2−y1x2−x1, 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 13 instead of 3.

  • 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 y-coordinate by an x-coordinate (for example 2212 for the point (12,22)) when the line does not pass through the origin.

  • Extended: mixing the order, y2−y1x1−x2, which flips the sign; or 5−−3=2 instead of 8.

Related IGCSE Mathematics 0580 lessons

All 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.