The Gradient of a Straight Line
Work out how steep a straight line is from two points or from its equation, and tell uphill, downhill and flat lines apart.
- 6 steps
- 6 min
- 5 syllabuses
Try a real exam question on this
0580/23 · May/Jun 2026 · Q8 · 4 marks · Solve it step by step, the way the examiner marks it.
Loading the animated solution…
See the solution as textText version of the solution
A straight line L is drawn on a coordinate grid from −5 to 5. Find its gradient, then draw the line y − 2x + 3 = 0 on the same grid.
(a) 2 marks
Work out the gradient of the line L shown on the grid.
- L passes through (0, 1) and (3, −1)
- Gradient = (−1 − 1)/(3 − 0) = −2/3
Answer −2/3
(b) 2 marks
Draw the straight line y − 2x + 3 = 0 on the grid.
- Rearrange: y = 2x − 3
- Plot (0, −3), (1, −1), (3, 3)
- Join with a straight ruled line
Answer Correct line from at least (0, −3) to (3, 3)
The lesson, step by step
Step 1 of 6
What Gradient Means
The gradient tells you how steep a line is. It is how far the line goes up for every 1 you go across.
Formula
Key idea
Why does this work? Gradient tells you how steep a line is, how much it goes up for each 1 it goes across.
Dividing the total distance up by the total distance across shares it out, giving the amount up for each 1 across.
is the gradient. and are any two points on the line.
| Line | Gradient |
| Goes up to the right | positive |
| Goes down to the right | negative |
| Flat | zero |
| Straight up (upright) | no gradient: across is 0, and you cannot divide by 0 |
Key idea
A bigger number means a steeper line. A gradient of 4 is steeper than a gradient of 1.
Key idea
In many countries, including the UK and USA, a wheelchair ramp may be no steeper than 1 : 12: 1 unit up for every 12 across. That is a gradient of , about , gentle enough to push up safely.
Step 2 of 6
Gradient From Two Points
The 2-mark question: work out the gradient of the line through two points. Take the same point first on the top and the bottom.
Worked example
- 1
— The two points. Call them A and B so you keep the same order all the way through.
- 2
— Write the fraction first: y of B minus y of A on top, x of B minus x of A underneath.
- 3
— Work out the top. From 5 down to −7 is a drop of 12, so up is −12.
- 4
— Work out the bottom. Taking away a negative is adding: .
- 5
— So across is 4.
- 6
— Divide up by across. It is negative because the line goes down to the right.
Key idea
Show the fraction line, like . It earns 1 of the 2 marks on its own, even if the sum after it slips.
Common mistake
Doing on top but underneath. That mixes the order and gives 3. Start with the same point both times.
Step 3 of 6
Gradient From a Line on a Grid
Many questions draw the line on a grid and ask for its gradient. Read two points from the axes, then do up ÷ across.
Worked example
- 1
— Pick two points where the line passes exactly through a grid corner, far apart. Exact points give an exact answer.
- 2
— Read the numbers on each axis. Here the y-axis goes up in 2s, so one square up is 2, not 1.
- 3
— Up: y of the second point minus y of the first. It drops 8, so up is −8.
- 4
— Across: x of the second minus x of the first. Minus a negative is plus, so 3 + 1 = 4.
- 5
— Divide up by across.
- 6
— Check the sign with your eyes: the line falls to the right, so a negative gradient is right.
Common mistake
Counting squares: 4 down and 4 across gives −1. The y-axis goes up in 2s, so 4 squares is 8. Always use the numbers on the axes.
Step 4 of 6
Gradient From an Equation
The 1-mark question gives . When y is on its own, the gradient is the number in front of , with its sign: here . In , means , so the gradient is .
The 2-mark question gives an equation like . Get y on its own first.
Worked example
- 1
— The question. x and y are on the same side, so the 3 is not the gradient yet.
- 2
— Take 3x from both sides, so only the y term is left on the left.
- 3
— Divide every term by 2, including the 8, so y is on its own.
- 4
— Now it is , so the gradient is the number in front of x, minus sign included.
If y has a minus in front, divide by the negative number. Watch the signs.
Worked example
- 1
— The question. This time the y term is −5y.
- 2
— Take 2x from both sides.
- 3
— Divide every term by −5. Negative ÷ negative is positive, so −2x becomes , and 10 ÷ (−5) = −2.
- 4
— The number in front of x. Leave it as a fraction or write 0.4.
Common mistake
Answering 3. The 3 is not the gradient until y is on its own.
Step 5 of 6
Find a Missing Coordinate
Some questions give the gradient and hide one coordinate. Put everything into the gradient formula, then solve for the letter.
Worked example
- 1
— The question: find k. Use Q first on the top and the bottom, as always.
- 2
— Up ÷ across, set equal to the gradient you were given.
- 3
— Work out the bottom: 5 − 2 = 3.
- 4
— Multiply both sides by 3 to clear the fraction: −3 × 3 = −9.
- 5
— Take 4 from both sides: −9 − 4 = −13.
- 6
— Multiply both sides by −1 to make k positive.
- 7
— Check: put k = 13 back in. The gradient is −3, as given.
Key idea
Extended papers may use letters for both points. For gradient 2 through and : , so , so . Same moves.
Step 6 of 6
Which Method? Read the Question
Look at what you are given.
| You see | You do |
| Two points | up ÷ across |
| y on its own, like | number in front of x |
| x and y together, like | get y on its own first |
| A line drawn on a grid | two exact points from the axes, then up ÷ across |
| The gradient, with one coordinate missing | put it all in up ÷ across and solve |
| The equation of a line drawn on a grid | Finding the Equation From a Graph |
| Same direction as another line | Parallel Lines and Their Equations |
| At right angles to a line | Perpendicular Lines |
Key idea
Check the sign with a sketch: a line going down to the right must have a negative gradient.
More real exam questions on this
Solve one in Lemmara and see where every mark goes.
- 0580/21May/Jun 2026 · Q122 marksUsing points A(3, 20) and B(5, 10), work out the gradient of the line AB.Solve it →
- 0580/33May/Jun 2026 · Q213 marksSketch the straight line y = 3x − 2 on the given axes, then work out the gradient of the straight line L shown on the grid.Solve it →
- 4024/22May/Jun 2026 · Q54 marksUsing the plotted points A and B on a coordinate grid, find B's coordinates, the gradient of line AB, and the midpoint of AB.Solve it →
- 4024/23May/Jun 2026 · Q73 marksFrom a grid diagram with points A and B marked, find the coordinates of A and calculate the gradient of line AB.Solve it →
- 0580/23May/Jun 2025 · Q247 marksWork with coordinates of points A(a, 12) and B(b, 27), then use point D(22, 34) and E(23, 39) with 2CE = 5DE to locate C.Solve it →
- 0580/32May/Jun 2025 · Q152 marksFor the line y = −5x + 7, state its gradient and give the coordinates where it meets the y-axis.Solve it →
Lemmara is an independent study tool, not affiliated with or endorsed by Cambridge International Education or Pearson Edexcel. The lessons and worked examples are Lemmara’s own.