Lemmara logo

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.

36real exam questions on this topic
  • 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 text
Text 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.

  1. L passes through (0, 1) and (3, −1)
  2. Gradient = (−1 − 1)/(3 − 0) = −2/3

Answer −2/3

(b) 2 marks

Draw the straight line y − 2x + 3 = 0 on the grid.

  1. Rearrange: y = 2x − 3
  2. Plot (0, −3), (1, −1), (3, 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.

LineGradient
Goes up to the rightpositive
Goes down to the rightnegative
Flatzero
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.

See this step move in Lemmara

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

    — The two points. Call them A and B so you keep the same order all the way through.

  2. 2

    — Write the fraction first: y of B minus y of A on top, x of B minus x of A underneath.

  3. 3

    — Work out the top. From 5 down to −7 is a drop of 12, so up is −12.

  4. 4

    — Work out the bottom. Taking away a negative is adding: .

  5. 5

    — So across is 4.

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

See this step move in Lemmara

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

    — Pick two points where the line passes exactly through a grid corner, far apart. Exact points give an exact answer.

  2. 2

    — Read the numbers on each axis. Here the y-axis goes up in 2s, so one square up is 2, not 1.

  3. 3

    — Up: y of the second point minus y of the first. It drops 8, so up is −8.

  4. 4

    — Across: x of the second minus x of the first. Minus a negative is plus, so 3 + 1 = 4.

  5. 5

    — Divide up by across.

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

See this step move in Lemmara

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

    — The question. x and y are on the same side, so the 3 is not the gradient yet.

  2. 2

    — Take 3x from both sides, so only the y term is left on the left.

  3. 3

    — Divide every term by 2, including the 8, so y is on its own.

  4. 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. 1

    — The question. This time the y term is −5y.

  2. 2

    — Take 2x from both sides.

  3. 3

    — Divide every term by −5. Negative ÷ negative is positive, so −2x becomes , and 10 ÷ (−5) = −2.

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

See this step move in Lemmara

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

    — The question: find k. Use Q first on the top and the bottom, as always.

  2. 2

    — Up ÷ across, set equal to the gradient you were given.

  3. 3

    — Work out the bottom: 5 − 2 = 3.

  4. 4

    — Multiply both sides by 3 to clear the fraction: −3 × 3 = −9.

  5. 5

    — Take 4 from both sides: −9 − 4 = −13.

  6. 6

    — Multiply both sides by −1 to make k positive.

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

See this step move in Lemmara

Step 6 of 6

Which Method? Read the Question

Look at what you are given.

You seeYou do
Two pointsup ÷ 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 gridtwo exact points from the axes, then up ÷ across
The gradient, with one coordinate missingput it all in up ÷ across and solve
The equation of a line drawn on a gridFinding the Equation From a Graph
Same direction as another lineParallel Lines and Their Equations
At right angles to a linePerpendicular Lines

Key idea

Check the sign with a sketch: a line going down to the right must have a negative gradient.

See this step move in Lemmara

More real exam questions on this

Solve one in Lemmara and see where every mark goes.

All 36 questions on this topic

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.

Try a real exam question on this

Solve it →