Three formulas, three coordinate-geometry workhorses. Find the length of a line segment, the midpoint, and the gradient β building blocks for tangents, perpendiculars, and quadrilateral classification.
What youβll learn
Mapped to the Cambridge IGCSE 0580 syllabus (2025-2027).
E3.1 β Calculate the gradient and length of a straight line; find the midpoint of a line segment.
Recognise parallel and perpendicular lines from their gradients.
Distance between two points
Pythagoras applied to coordinates. Square the differences, add, square root.
Formula. Distance between A(x1β,y1β) and B(x2β,y2β):
d=(x2ββx1β)2+(y2ββy1β)2β.
This is just Pythagoras' theorem applied to the right triangle formed by the horizontal and vertical legs.
The distance is the hypotenuse β square the horizontal and vertical gaps, add, take the root.
Worked. Find the distance from A(1,2) to B(4,6).
d=(4β1)2+(6β2)2β=9+16β=25β=5.
Worked (negatives). Find the distance from P(β2,5) to Q(3,β7).
Sign-doesn't-matter rule. Since each difference is squared, the order of subtraction doesn't matter: (x2ββx1β)2=(x1ββx2β)2.
Square the differences.
Add.
Square root.
Order of subtraction doesn't matter (squared).
Midpoint of a line segment
Average each coordinate. Half-way along the line.
Formula. Midpoint of segment from (x1β,y1β) to (x2β,y2β):
M=(2x1β+x2ββ,2y1β+y2ββ).
Worked. Midpoint of A(2,β1) and B(8,5).
M=(22+8β,2β1+5β)=(5,2).
The midpoint sits exactly halfway β average the x-values and the y-values.
Reverse problem. "Given M and one endpoint, find the other endpoint."
If M=(5,2) and one endpoint is A(2,β1), the other endpoint B satisfies 22+xβ=5 β x=8. Similarly y=5. So B(8,5) β.
Average each coordinate.
Same midpoint regardless of order of endpoints.
Reverse: solve for the missing endpoint.
Gradient of a line
Rise over run. Positive: rises left to right. Negative: falls.
Formula. Gradient of the line through (x1β,y1β) and (x2β,y2β):
m=x2ββx1βy2ββy1ββ.
The order matters HERE β but be consistent in numerator and denominator.
Sign of the gradient.
m>0: line rises left to right.
m<0: line falls left to right.
m=0: horizontal line.
Vertical line: m is undefined (zero denominator).
Gradient tells you the steepness and direction β flat means zero, vertical means undefined.
Worked. Gradient through A(1,2) and B(4,11).
m=4β111β2β=39β=3.
Parallel lines: SAME gradient.
Perpendicular lines.m1βΓm2β=β1. Each is the negative reciprocal of the other.
If m1β=2, perpendicular gradient is β21β.
If m1β=β43β, perpendicular gradient is 34β.
m=ΞxΞyβ.
Positive: up. Negative: down. Zero: flat.
Parallel β same m.
Perpendicular β m1ββ m2β=β1.
How itβs examined
These three formulas appear inside almost every Paper 4 coordinate-geometry question (5-7 marks). Common combo: find midpoint, find gradient of perpendicular, write equation of perpendicular bisector. Examiner reports flag inverted gradient (run/rise instead of rise/run) and arithmetic slips with negatives.
Worked examples, formulae, definitions and the mistakes examiners flag β everything you need to push from a pass to an A*.
Take this whole topic with you
Download a branded revision sheet β worked examples, formulae, definitions and common mistakes for Distance, Midpoint and Gradient, ready to print or save as PDF.
Step-by-step worked examples β Distance, Midpoint and Gradient
Step-by-step solutions to past-paper-style questions on distance, midpoint and gradient, written exactly the way a tutor would explain them at the board.
1Find the distance between two points
Coreβ’ distance
βΌ
Question
Find the distance between A(1,2) and B(7,10).
Step-by-step solution
Step 1
d=(x2ββx1β)2+(y2ββy1β)2β.
d=(7β1)2+(10β2)2β
Step 2
Compute.
=36+64β=100β=10
Answer
d=10 units
2Find the midpoint of a segment
Coreβ’ midpoint
βΌ
Question
Find the midpoint of the segment joining P(β3,5) and Q(7,β1).
Step-by-step solution
Step 1
Average each coordinate.
M=(2β3+7β,Β 25+(β1)β)
Step 2
Simplify.
=(2,2)
Answer
M=(2,2)
3Find the gradient between two points
Coreβ’ Adapted from 0580/22 May/Jun 2024 Q8β’ gradient
βΌ
Question
Find the gradient of the line through A(2,3) and B(8,15).
Step-by-step solution
Step 1
m=x2ββx1βy2ββy1ββ.
m=8β215β3β=612β=2
Answer
m=2
4Find a missing coordinate using the gradient
Extendedβ’ gradient
βΌ
Question
Points P(1,k) and Q(5,11) lie on a line of gradient 2. Find k.
Step-by-step solution
Step 1
Set up the gradient equation.
5β111βkβ=2
Step 2
Solve.
11βk=8βΉk=3
Answer
k=3
5Find the gradient of a perpendicular line
Extendedβ’ gradient, perpendicular
βΌ
Question
A line has gradient 43β. Find the gradient of any line perpendicular to it.
Step-by-step solution
Step 1
Perpendicular gradient is the negative reciprocal.
mβ₯β=β34β
Answer
β34β
6Find an endpoint given the midpoint
Extendedβ’ Adapted from 0580/22 May/Jun 2023 Q14β’ midpoint, endpoint
βΌ
Question
The midpoint of segment AB is M(4,β1). If A=(β2,5), find the coordinates of B.
Step-by-step solution
Step 1
Let B=(x,y). Use the midpoint formula component-by-component.
2β2+xβ=4βΉx=10
Step 2
And:
25+yβ=β1βΉy=β7
Answer
B=(10,β7)
Examiner tip
The mark scheme awards method marks for setting up the two simultaneous component equations. The examiner report flags candidates often guess at B by symmetry without writing the equations.
7Distance giving a surd answer
Extendedβ’ distance, surd
βΌ
Question
Find the exact distance between C(β3,4) and D(2,β1), giving the answer in simplest surd form.
Step-by-step solution
Step 1
Apply the distance formula.
d=(2β(β3))2+(β1β4)2β
Step 2
Compute.
=25+25β=50β
Step 3
Simplify.
50β=52β
Answer
52β units
8Gradient between two points on a curve
Extendedβ’ gradient, curve
βΌ
Question
Points P and Q on the curve y=x2+1 have x-coordinates 1 and 3 respectively. Find the gradient of line PQ.
Step-by-step solution
Step 1
Find the y-coordinates.
P(1,2),Β Q(3,10)
Step 2
Apply the gradient formula.
m=3β110β2β=28β=4
Answer
m=4
9Verify a triangle is isosceles
Challengeβ’ Adapted from 0580/42 Feb/Mar 2023 Q15β’ distance, isosceles
βΌ
Question
Three points are A(1,3), B(5,7) and C(7,1). Show that triangle ABC is isosceles.
Step-by-step solution
Step 1
Compute AB2.
AB2=(5β1)2+(7β3)2=16+16=32
Step 2
Compute BC2.
BC2=(7β5)2+(1β7)2=4+36=40
Step 3
Compute AC2.
AC2=(7β1)2+(1β3)2=36+4=40
Step 4
BC=AC=40β but AB=32β β two equal sides, so triangle ABC is isosceles.
Answer
BC=AC=40β (or 210β); triangle is isosceles.
Examiner tip
The examiner report flags candidates often compute distances and stop without comparing. State which two sides are equal as the concluding line β that's where the final mark sits.
10Test for collinearity using gradients
Challengeβ’ gradient, collinear
βΌ
Question
Show that the points P(β1,β3), Q(2,3) and R(5,9) are collinear.
Step-by-step solution
Step 1
Gradient of PQ.
mPQβ=2β(β1)3β(β3)β=36β=2
Step 2
Gradient of QR.
mQRβ=5β29β3β=36β=2
Step 3
Both gradients are equal and they share the point Q, so P, Q, R lie on the same straight line.
Answer
mPQβ=mQRβ=2, with Q as a common point β the three points are collinear.
Examiner tip
The mark scheme awards the final mark for explicitly stating "same gradient AND shared point". The examiner report flags candidates often forget the shared-point clause.
Key Formulae β Distance, Midpoint and Gradient
The formulae you need to memorise for distance, midpoint and gradient on the Cambridge IGCSE 0580 paper, with every variable defined in plain English and a note on when to use it.
Distance formula
d=(x2ββx1β)2+(y2ββy1β)2β
(x1β,y1β)
first point
(x2β,y2β)
second point
When to use
Whenever you need the straight-line distance between two coordinate points.
Midpoint formula
M=(2x1β+x2ββ,Β 2y1β+y2ββ)
When to use
Average of the coordinates β finds the point exactly halfway.
Gradient formula
m=x2ββx1βy2ββy1ββ
When to use
Slope of a line through two given points β rise over run.
Perpendicular gradient
m1ββ m2β=β1βΊm2β=βm1β1β
When to use
Two lines are perpendicular when the product of their gradients is β1.
Key Definitions and Keywords β Distance, Midpoint and Gradient
Definitions to memorise and the exact keywords mark schemes credit for distance, midpoint and gradient answers β sharpened from recent examiner reports for the 2026 0580 sitting.
Distance between two points
Examiner keyword
The straight-line length of the segment joining them, found via Pythagoras' theorem in coordinate form.
Midpoint
Examiner keyword
The point exactly halfway between two given points; coordinates are the average of the endpoints.
Gradient
Examiner keyword
Steepness of a line; rise over run.
Parallel lines
Lines with equal gradients (m1β=m2β).
Perpendicular lines
Examiner keyword
Lines whose gradients multiply to β1 (m1βm2β=β1).
Common Mistakes and Misconceptions β Distance, Midpoint and Gradient
The traps other students keep falling into on distance, midpoint and gradient questions β taken from recent Cambridge IGCSE 0580 examiner reports and mark schemes β and how to avoid them.
βForgetting to square the differences inside the distance formula
βΌ
Why it happens
Students write d=x2ββx1ββ+y2ββy1ββ.
How to avoid it
Always: square each difference, ADD, then square root.
βSubtracting instead of averaging in the midpoint formula
0580/22 β recurring
βΌ
Why it happens
Confusion with the gradient formula.
How to avoid it
Midpoint = ADD coordinates and divide by 2.
βComputing y2ββy1βx2ββx1ββ instead of x2ββx1βy2ββy1ββ
βΌ
Why it happens
Confusing rise/run with run/rise.
How to avoid it
Gradient is RISE over RUN β y on top, x on bottom.
βUsing the reciprocal as the perpendicular gradient (without negating)
βΌ
Why it happens
Half-remembering the rule.
How to avoid it
Perpendicular gradient = NEGATIVE RECIPROCAL. Both flip and change sign.
Practice questions
Exam-style questions with step-by-step worked solutions. Try one before checking the method.
Past paper style quiz
Get a report showing which sub-topics you've nailed and which ones still need work.
4. Exam Quiz
Assess your understanding
Attempt a past paper style quiz for this sub-topic and get instant feedback to identify your strengths and weaknesses.
Instant AI marking SchemeExaminer's feedbackAI Detailed report
Video lesson
Short walkthrough of the concepts students most often get stuck on.
Distance, Midpoint and Gradient β frequently asked questions
The things students keep getting wrong in this sub-topic, answered.