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+c.
Read the gradient and intercept from an equation such as 2x+3y=12.
Pause and think
A road sign warns of a "10%" hill. What do you think 10% measures?
For every 100 m you travel horizontally, you go up (or down) 10 m. That is a gradient of 10010=0.1: "rise over run".
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+c: m gradient, cy-intercept. m=x2−x1y2−y1.
1. Gradient
y = mx + 1 as the gradient changesPositive m: uphill. Negative: downhill. Zero: flat. Bigger numbers: steeper.
⚠️ Common misconceptionReading m from 3x + 2y = 12m is not 3: rearrange first.
Pause and think
Where does y=2x−6 cross the x-axis?
(3,0).
Quick check
Find the equation of the line through (2, 5) with gradient −3.
y − 5 = −3(x − 2), so y = −3x + 11.
Summary
y=mx+c.
Gradient from two points; substitute for c.
Key words
Gradient
Steepness: rise ÷ run.
Intercept
Where a line crosses an axis.
Perpendicular lines: gradients multiply to −1
In y=mx+c, m is the gradient and c is where the line crosses the y-axis. Here 2×(−21)=−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%, a gradient of about 0.35: a rise of 3.5 m for every 10 m along.
Section 3 of 15
Key formulae
Gradientm=x2−x1y2−y1
Midpoint(2x1+x2,2y1+y2)
Length(x2−x1)2+(y2−y1)2
Straight liney=mx+c
🪄 TrickKeep the same order.In the gradient formula, if you start with point B on top, start with point B on the bottom too: xB−xAyB−yA. 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) and (4,11).
Answer
4−111−2=39=3
M1 A1
Example 2 · Equation from point and gradient0 / 2 steps
Find the equation of the line through (2,7) with gradient −1.
Step 1
7=−1(2)+c⇒c=9
M1
Answer
y=−x+9
A1
Example 3 · Reading m and c0 / 2 steps
Find the gradient and y-intercept of 2x+3y=12.
Step 1
3y=−2x+12⇒y=−32x+4
M1
Answer
Gradient −32, intercept 4
A1
Section 5 of 15
Explore the graph
📈The line through two points
Interactive graph
Try this
Drag the points (a,b) and (c,d). The line through them and the midpoint update.
Make d=b. What is the gradient of a horizontal line?
Make c=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:12 (rising 1 m for every 12 m along). Architects use exactly the gradient formula to check their designs.
Section 6 of 15
Common mistakes
IncorrectGradient =y2−y1x2−x1
Correctx2−x1y2−y1
Rise (up) over run (across).
Incorrect2x+3y=12 has gradient 2
Correct−32
Rearrange to y=… first.
IncorrectMidpoint by subtracting
CorrectAdd and halve
The midpoint is the average.
IncorrectLength =(x2−x1)+(y2−y1)
CorrectUse Pythagoras
The segment is the hypotenuse.
y=mx+c
📈
m tells you how steep, c 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 is neat, but 52 should be left as 52=213 on Paper 1, or given to 3 s.f. on Paper 2. Read the question to see which is wanted.
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.
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.
Salam Academy original content · Content status: reviewed and published. Syllabus mapping: Cambridge International 0580, 2025–2027 (official specification).