Salam Academy
Contents · 0% complete
  1. Learning objectives
  2. Core idea
  3. Key formulae
  4. Worked examples
  5. Explore the graph
  6. Common mistakes
  7. Exam tip
  8. Guided practice
  9. Practice questions
  10. Challenge
  11. Exam-style questions
  12. Summary
  13. Quick quiz
  14. Same topic, different board
  15. Past paper questions
Coordinate geometry · Subtopic 1 of 2

Gradients and Straight Lines

Two points fix a straight line. From them you can find how steep it is (gradient), how long the segment is (Pythagoras), its middle (average the coordinates), and its equation y=mx+cy=mx+c.

0580 past papers

Cambridge 4024 Paper 1Cambridge 4024 Paper 2Edexcel 4MA1 Papers 1H, 2HEdexcel 4MA1 Papers 1F, 2FAQA 8300 Papers 1–3Cambridge 0580 Papers 2, 4≈ 30 minRevision 8 · updated
On the Cambridge 0580 syllabus (2025–2027): 5 points this lesson covers
  • E3.1 Coordinates
  • E3.2 Drawing linear graphs
  • E3.3 Gradient
  • E3.4 Length and midpoint
  • E3.5 Equations of lines

Summarised in our own words from the official syllabus. Check the exact wording in the board's specification.

Practise this topicTimed testAsk Salam Tutor
Section 1 of 15

Learning objectives

  • Find the gradient of a line through two points.
  • Find the length and midpoint of a line segment.
  • Find the equation of a line in the form y=mx+cy=mx+c.
  • Read the gradient and intercept from an equation such as 2x+3y=122x+3y=12.
Pause and think

A road sign warns of a "10%10\%" hill. What do you think 10%10\% measures?

Section 2 of 15

Core idea

Start hereHow steep is the road?

A road sign says "1 in 10": rise 1 metre for every 10 along. That's a gradient of 0.1. Every straight line is fixed by its gradient and one point it passes through.

The big idea

y=mx+cy=mx+c: mm gradient, cc yy-intercept. m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}.

1. Gradient

y = mx + 1 as the gradient changes
−4−3−2−11234−4−22460xyy = mx + 1run 1rise mc = 1
Positive mm: uphill. Negative: downhill. Zero: flat. Bigger numbers: steeper.
m=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}
where
(x1,y1),(x2,y2)(x_1,y_1),(x_2,y_2)
two points on the line.
midpoint=(x1+x22,y1+y22),length=(x2−x1)2+(y2−y1)2\text{midpoint}=\left(\tfrac{x_1+x_2}2,\tfrac{y_1+y_2}2\right),\quad\text{length}=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}
where
length
from Pythagoras.

2. Finding the equation

Worked exampleThrough (1,3)(1,3) and (4,9)(4,9)

Equation, midpoint, length.

Goal
Three results.
Strategy
Gradient, then cc by substitution.
  1. m=9−34−1=2m=\frac{9-3}{4-1}=2
    Rise over run.
  2. 3=2(1)+c⇒c=13=2(1)+c\Rightarrow c=1
    Substitute a point.
  3. (2.5,6),9+36=6.71(2.5,6),\quad\sqrt{9+36}=6.71
    Midpoint, length.
Answery=2x+1y=2x+1; (2.5,6)(2.5,6); 6.716.71.
✓ Check(4,9)(4,9): 2(4)+1=92(4)+1=9 ✓.
Worked example3x+2y=123x+2y=12

Gradient and intercept.

Goal
mm, cc.
Strategy
Make yy the subject.
  1. 2y=−3x+122y=-3x+12
    Subtract 3x3x.
  2. y=−32x+6y=-\tfrac32x+6
    Divide by 2.
Answerm=−1.5m=-1.5, c=6c=6.
✓ Check(0,6)(0,6): 0+12=120+12=12 ✓.
Common misconceptionReading m from 3x + 2y = 12 mm is not 3: rearrange first.
Pause and think

Where does y=2x−6y=2x-6 cross the xx-axis?

Quick check

Find the equation of the line through (2, 5) with gradient −3.

Summary

  • y=mx+cy=mx+c.
  • Gradient from two points; substitute for cc.
Key words
Gradient
Steepness: rise ÷ run.
Intercept
Where a line crosses an axis.
Perpendicular lines: gradients multiply to −1
−2−1123456−22460xyy = 2x + 1 (m = 2)y = −½x + 4 (m = −½)(1.2, 3.4)y-intercept 1
In y=mx+cy=mx+c, mm is the gradient and cc is where the line crosses the yy-axis. Here 2×(−12)=−12\times(-\tfrac12)=-1, so the lines meet at right angles.
HistoryDescartes and the fly. René Descartes published coordinate geometry in La Géométrie in 1637, linking algebra and shapes. A popular legend says he got the idea lying in bed watching a fly crawl on the ceiling, realising he could describe its position with two distances from the walls.
Fun factThe steepest street. Ffordd Pen Llech in Wales and Baldwin Street in New Zealand have argued over the title of "world's steepest street": the Guinness record moved to Wales in 2019 and back to New Zealand in 2020. Both are around 35%35\%, a gradient of about 0.350.35: a rise of 3.53.5 m for every 1010 m along.
Section 3 of 15

Key formulae

Gradientm=y2−y1x2−x1m=\frac{y_2-y_1}{x_2-x_1}
Midpoint(x1+x22, y1+y22)\left(\frac{x_1+x_2}{2},\ \frac{y_1+y_2}{2}\right)
Length(x2−x1)2+(y2−y1)2\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}
Straight liney=mx+cy=mx+c
TrickKeep the same order. In the gradient formula, if you start with point BB on top, start with point BB on the bottom too: yB−yAxB−xA\dfrac{y_B-y_A}{x_B-x_A}. Mixing the order flips the sign.
Section 4 of 15

Worked examples

Example 1 · Gradient0 / 1 steps
Find the gradient of the line through (1,2)(1,2) and (4,11)(4,11).
Example 2 · Equation from point and gradient0 / 2 steps
Find the equation of the line through (2,7)(2,7) with gradient −1-1.
Example 3 · Reading m and c0 / 2 steps
Find the gradient and yy-intercept of 2x+3y=122x+3y=12.
Section 5 of 15

Explore the graph

The line through two points
Interactive graph
Try this
  1. Drag the points (a,b)(a,b) and (c,d)(c,d). The line through them and the midpoint update.
  2. Make d=bd=b. What is the gradient of a horizontal line?
  3. Make c=ac=a. Why does the gradient formula break for a vertical line?

Gradient is rise over run; the midpoint averages the coordinates.

In the real worldRamps must not be too steep. Building rules typically limit wheelchair ramps to a gradient of about 1:121:12 (rising 11 m for every 1212 m along). Architects use exactly the gradient formula to check their designs.
Section 6 of 15

Common mistakes

IncorrectGradient =x2−x1y2−y1=\dfrac{x_2-x_1}{y_2-y_1}
Correcty2−y1x2−x1\dfrac{y_2-y_1}{x_2-x_1}
Rise (up) over run (across).
Incorrect2x+3y=122x+3y=12 has gradient 22
Correct−23-\tfrac23
Rearrange to y=…y=\ldots first.
IncorrectMidpoint by subtracting
CorrectAdd and halve
The midpoint is the average.
IncorrectLength =(x2−x1)+(y2−y1)=(x_2-x_1)+(y_2-y_1)
CorrectUse Pythagoras
The segment is the hypotenuse.

y=mx+cy=mx+c

mm tells you how steep, cc tells you where it crosses. Two numbers, the whole line.

Section 7 of 15

Exam tip

Exam tipLeave answers exact. Lengths often come out as surds: 100=10\sqrt{100}=10 is neat, but 52\sqrt{52} should be left as 52=213\sqrt{52}=2\sqrt{13} on Paper 1, or given to 33 s.f. on Paper 2. Read the question to see which is wanted.
Section 8 of 15

Guided practice

SA-4024-CG-G014 marksEasyNon-calculatorGradient & midpoint
AA is (2,3)(2,3) and BB is (8,11)(8,11). Find (a) the gradient of ABAB (b) the length of ABAB (c) the coordinates of the midpoint of ABAB.

Sign in or create a free account to check answers, get hints and track your progress.

Salam Academy Original Practice · Proposed mark scheme
Section 9 of 15

Practice questions

Easy · 4 questions · One idea at a time

SA-4024-CG1-0012 marksEasyCalculatorGradient & midpoint
Find the gradient of the line through (1,2)(1,2) and (4,11)(4,11).

Sign in or create a free account to check answers, get hints and track your progress.

Salam Academy Original Practice · Proposed mark scheme
SA-4024-CG1-0022 marksEasyCalculatorGradient & midpoint
Find the midpoint of the line segment joining (−2,5)(-2,5) and (6,−1)(6,-1).

Sign in or create a free account to check answers, get hints and track your progress.

Salam Academy Original Practice · Proposed mark scheme
SA-4024-CG-0072 marksEasyNon-calculatorGradient & midpoint
Find the distance between (−3,2)(-3,2) and (5,−4)(5,-4).

Sign in or create a free account to check answers, get hints and track your progress.

Salam Academy Original Practice · Proposed mark scheme
SA-4024-CG-0012 marksEasyNon-calculatorStraight lines
Find the equation of the line through (1,−2)(1,-2) with gradient 33. Give your answer in the form y=mx+cy=mx+c.

Sign in or create a free account to check answers, get hints and track your progress.

Salam Academy Original Practice · Proposed mark scheme
5 more practice questions with hints, worked solutions and instant marking
Included in Student Premium.
See Premium

More questions on every skill in this subtopic are in the question bank under Practise.

Section 10 of 15

Challenge

1 more challenge question with hints, worked solutions and instant marking
Included in Student Premium.
See Premium
Section 11 of 15

Exam-style questions

Questions set out the way exam papers set them, many with a diagram, table or graph to read. They are grouped by difficulty: start with Easy and work up to Hard.

SA-EX-MOCLI-12 marksEasyCalculatorGradient & midpoint
Fig. 1.1 shows a straight line through A(0, 2) and B(4, 10).
Fig. 1.1
−1123456246810120xyAB
Line through A and B.
(b) Equation of the line

Sign in or create a free account to check answers, get hints and track your progress.

Salam Academy Original Practice · Proposed mark scheme
2 more exam-style questions with hints, worked solutions and instant marking
Included in Student Premium.
See Premium
Section 12 of 15

Summary

  • Gradient =riserun=y2−y1x2−x1=\dfrac{\text{rise}}{\text{run}}=\dfrac{y_2-y_1}{x_2-x_1}.
  • Midpoint: average the coordinates. Length: Pythagoras.
  • y=mx+cy=mx+c: gradient mm, intercept cc; find cc by substituting a point.
  • Rearrange to y=…y=\ldots to read off mm and cc.
Section 13 of 15

Quick quiz

SA-4024-CG1-0012 marksEasyCalculatorGradient & midpoint
Find the gradient of the line through (1,2)(1,2) and (4,11)(4,11).

Sign in or create a free account to check answers, get hints and track your progress.

Salam Academy Original Practice · Proposed mark scheme
1 more quiz question with hints, worked solutions and instant marking
Included in Student Premium.
See Premium
Section 14 of 15

Same topic, different board

Specification
4024 O Level Mathematics
Where
Papers 1 and 2 · 3.1–3.5 Coordinate geometry
Expected
Find the gradient, length and midpoint of a line segment from the coordinates of its end points; interpret and obtain the equation of a straight line in the form y = mx + c and other forms.
Calculator
Paper 1 is non-calculator; Paper 2 allows a calculator.
Typical style
Two points given: find gradient, length, midpoint and the equation of the line.
Open in
4024 · Paper 14024 · Paper 20580 · Papers 2, 40580 · Papers 1, 3
Section 15 of 15

Past paper questions

No past paper questions are tagged to this subtopic yet. We add papers every week.

0580 past papers

Salam Academy original content · Content status: reviewed and published. Syllabus mapping: Cambridge International 0580, 2025–2027 (official specification).