IGCSE Maths · Area 3 · Coordinate Geometry

Length and Midpoint

Two calculations sit in this subtopic, and both start from the coordinates of the two ends of a segment. The length comes from Pythagoras' theorem applied to the horizontal and vertical distances between the points, and the midpoint is the average of the two coordinates. Everything here is Extended content, so a Core candidate never meets it.

Not started

Syllabus coverage

  • Extended only: calculate the length of a line segment
  • Extended only: find the coordinates of the midpoint of a line segment
  • Both calculations use the coordinates of the two ends of the segment: the horizontal distance x2−x1 and the vertical distance y2−y1
  • The length is found by applying Pythagoras' theorem, with the segment as the hypotenuse
  • The midpoint is the average of the two x-coordinates and the average of the two y-coordinates
  • This is E3.4, Extended content only - there is no Core version of it

Part of the IGCSE Maths syllabus 0580.

-2-1012345678-2-1012345678ABABlength = 534
The 3-4-5 triangle under AB: a run of 3 and a rise of 4 give a length of 5.

Extended only: what E3.4 asks you to do

The syllabus lists exactly two calculations here: calculate the length of a line segment and find the coordinates of the midpoint of a line segment. Both start from the same information - the coordinates of the two ends - and both are Extended content, so they do not appear on the Core paper.

There is no new formula to learn for the length. You already know Pythagoras' theorem, and the segment joining two points is the hypotenuse of a right-angled triangle whose two shorter sides you can read straight off the coordinates. The midpoint needs one short formula: average the two x-coordinates, then average the two y-coordinates.

Because a midpoint is an average, it always lies exactly halfway along the segment. That single fact is worth more than the formula, because it tells you immediately whether an answer is sensible.

  • Length: Pythagoras applied to the horizontal and vertical distances between the two points
  • Midpoint: the average of the two x-coordinates and the average of the two y-coordinates
  • Both answers come from the same two pairs of numbers, so most questions give you the coordinates once and ask for both
Everything on this page is Extended content. A Core candidate is never asked for the length or the midpoint of a segment from coordinates.

The right-angled triangle hidden in a line segment

Take A(1,2) and B(4,6). To get from A to B you move across and then up: the horizontal distance is 4−1=3 and the vertical distance is 6−2=4. Those two moves are the legs of a right-angled triangle, and the segment AB is its hypotenuse.

The horizontal distance is always x2−x1 and the vertical distance is always y2−y1, where (x1,y1) and (x2,y2) are the two ends. Starting from the left-hand point keeps both numbers positive, which makes the arithmetic easier, and the answer comes out the same either way round.

Sketching the triangle costs a few seconds and prevents almost every error in this subtopic. When the two points are in different quadrants the sketch shows you which way each distance goes, and it stops you adding a distance where you should subtract it.

From A(1,2) to B(4,6)How to work it outDistance
across (horizontal)x2−x1=4−13
up (vertical)y2−y1=6−24
along the segment AB32+425
The two distances you read off the coordinates are the legs, and the segment is the hypotenuse, so the segment is always the longest of the three.

The length of a line segment

Pythagoras' theorem says the square on the hypotenuse equals the sum of the squares on the other two sides. Applied to two points that gives AB2=(x2−x1)2+(y2−y1)2, so the length is AB=(x2−x1)2+(y2−y1)2. This is the distance formula: it is Pythagoras with the coordinates already built in.

For A(1,2) and B(4,6): AB=32+42=9+16=25=5. Square each distance, add the two squares, then take the square root - in that order. The square root comes last, and the answer is the length itself, not its square.

The squares make the order of the two points irrelevant. (1−4)2=9 and (4−1)2=9, so swapping A and B gives the same length. That is a useful check when an answer looks wrong.

  • AB=(x2−x1)2+(y2−y1)2
  • Subtract, square, add, then take the square root
  • A horizontal or vertical segment needs no formula at all: from (2,3) to (7,3) the length is 7−2=5

Negative coordinates, and lengths that are not whole numbers

Negative coordinates cause no trouble in the formula, because every difference is squared. For P(−4,3) and Q(5,−9): the horizontal distance is 5−(−4)=9 and the vertical distance is −9−3=−12. Then PQ=92+(−12)2=81+144=225=15.

Most lengths do not come out as whole numbers. For A(1,2) and B(4,4): AB=32+22=13. The exact answer is the surd 13, and as a decimal it is 3.6055..., which is 3.61 correct to 3 significant figures.

Read the question's last line before deciding what to write. If it asks for a decimal place or a number of significant figures, give the rounded decimal. If it says nothing, give the exact surd and put the decimal beside it - a correct rounded decimal is accepted in place of the surd.

  • 13=3.61 correct to 3 significant figures
  • 3.6055... rounds up to 3.61, because the next digit is 5 - check before you round
  • 25=5 and 169=13, so a whole-number answer is possible whenever the two distances are the legs of a Pythagorean triple such as 3, 4, 5 or 5, 12, 13
Write the substitution out in full, as (5−(−4))2+(−9−3)2. A wrong sign inside the squares is worth no marks, and a written line makes the examiner's decision easy.

The midpoint of a line segment

The midpoint is the point exactly halfway between the two ends, so its coordinates are the averages: M=(x1+x22,y1+y22). Add the two x-coordinates and halve, then add the two y-coordinates and halve. Adding first matters - halving one end on its own gives a point a quarter of the way along, not halfway.

For A(−3,8) and B(9,−2): the x-coordinate is −3+92=3 and the y-coordinate is 8+(−2)2=3, so the midpoint is (3,3). The signs travel with the numbers, and the two halves are worked out separately.

Midpoints are often not whole numbers. For A(2,1) and B(5,6) the midpoint is (3.5,3.5), and (72,72) is just as good. Do not round a midpoint to a whole number unless the question tells you to.

SegmentWorking for xWorking for yMidpoint
(−3,8) to (9,−2)−3+92=38+(−2)2=3(3,3)
(2,1) to (5,6)2+52=3.51+62=3.5(3.5,3.5)
(−5,4) to (1,4)−5+12=−24+42=4(−2,4)
(3,−7) to (3,1)3+32=3−7+12=−3(3,−3)
Look at the last two rows: on a horizontal or vertical segment one coordinate of the midpoint is the same as the endpoints'. That is a quick way to check whether an answer is sensible.

Working backwards from the midpoint, and using both results

If you are given the midpoint M and one end A, the other end B is the same distance past M again: B=2M−A, worked out one coordinate at a time. With M(4,7) and A(1,3): the x-coordinate is 2×4−1=7 and the y-coordinate is 2×7−3=11, so B is (7,11).

The two calculations are often asked together in one question. For A(2,3) and B(8,11): the distances are 6 and 8, so the length is 36+64=100=10, and the midpoint is (2+82,3+112)=(5,7).

The length and the midpoint also combine into the perpendicular bisector of a segment: the line through the midpoint drawn at right angles to the segment. Finding its equation is Extended work on perpendicular gradients, and the midpoint is always the first thing you need for it.

  • Given the midpoint M and one end A, the other end is B=2M−A
  • Every point on the perpendicular bisector is the same distance from A as it is from B
  • The length is never shorter than the larger of the two distances you measured
Check a midpoint by eye: it must sit between the two ends, so its x-coordinate lies between the two x-coordinates and its y-coordinate lies between the two y-coordinates. For (−3,8) and (9,−2) the point (3,3) passes that test, while (−6,5) fails it straight away.

Key terms you must be able to define

Line segment
The straight part of a line between two points, written AB. Its length is the distance between the two ends.
Endpoint
One of the two points at the ends of a line segment.
Coordinates
The ordered pair (x,y) that fixes the position of a point: the x-coordinate first, then the y-coordinate.
Horizontal distance
How far apart two points are across the grid: x2−x1.
Vertical distance
How far apart two points are up the grid: y2−y1.
Pythagoras' theorem
In a right-angled triangle the square on the hypotenuse equals the sum of the squares on the other two sides: a2+b2=c2.
Hypotenuse
The longest side of a right-angled triangle, opposite the right angle. The segment joining two points is the hypotenuse of the triangle you draw for it.
Distance formula
AB=(x2−x1)2+(y2−y1)2, the length of the segment joining (x1,y1) and (x2,y2).
Surd
A square root left in exact form, such as 13, because it is not a whole number.
Exact value
An answer written without rounding, such as 13 rather than 3.61.
Significant figures
A way of rounding that counts from the first non-zero digit: 3.6055 correct to 3 significant figures is 3.61.
Pythagorean triple
Three whole numbers that satisfy a2+b2=c2, such as 3, 4, 5 and 5, 12, 13. When the two distances are the legs of a triple, the length is a whole number.
Midpoint
The point exactly halfway along a line segment, so the two halves have equal length.
Midpoint formula
(x1+x22,y1+y22): the average of the x-coordinates and the average of the y-coordinates.
Perpendicular bisector
The line through the midpoint of a segment, at right angles to it. Every point on it is the same distance from the two ends.

In context

Cambridge sets 0580 in real situations - a recipe, a bank statement, a map, a garden, a graph of a car's journey. These show how the mathematics appears in a question, then you write your own working for the numbers you are given.

Length from two coordinates

Find the length of the segment joining A(1,2) and B(4,6). The horizontal distance is 4−1=3 and the vertical distance is 6−2=4. Then AB=32+42=9+16=25=5. The two distances and the length are the triple 3, 4, 5, which is why the answer is a whole number.

Length with negative coordinates

Find the length of the segment joining P(−4,3) and Q(5,−9). The horizontal distance is 5−(−4)=9 and the vertical distance is −9−3=−12. Then PQ=92+(−12)2=81+144=225=15. The negative difference disappears when it is squared.

A length that is a surd

Find the exact length of the segment joining A(1,2) and B(4,4). The distances are 3 and 2, so AB=9+4=13. The exact answer is 13, and 3.61 is the same value correct to 3 significant figures.

Midpoint of a segment

Find the midpoint of the segment joining A(−3,8) and B(9,−2). Average the x-coordinates: −3+92=3. Average the y-coordinates: 8+(−2)2=3. The midpoint is (3,3), which sits between the two ends as a midpoint must.

Finding the other end

The point M(4,7) is the midpoint of AB and A is (1,3). Since M is halfway from A to B, the step from A to M is 3 across and 4 up, so the step from M to B is the same again: B is (4+3,7+4)=(7,11). The formula B=2M−A gives the same answer: (2×4−1,2×7−3)=(7,11).

Flashcards

Click a card to flip it. Mark honestly — the tracker uses this.

Q1How do you find the length of the segment joining two points?
Draw the right-angled triangle between them, then use Pythagoras: (x2−x1)2+(y2−y1)2.
Q2Write down the distance formula.
AB=(x2−x1)2+(y2−y1)2.
Q3What is the length of the segment joining (1,2) and (4,6)?
5. The distances are 3 and 4, and 9+16=25=5.
Q4What is the length of the segment joining (−4,3) and (5,−9)?
15. The distances are 9 and 12, and 81+144=225=15.
Q5Does it matter which point you subtract from which?
No. Each distance is squared, so swapping the two points gives exactly the same length.
Q6What is the exact length of the segment joining (1,2) and (4,4)?
13, which is 3.61 correct to 3 significant figures.
Q7How do you find the midpoint of a segment?
Average the coordinates: (x1+x22,y1+y22).
Q8What is the midpoint of (−3,8) and (9,−2)?
(3,3). The averages are 62 and 62.
Q9What is the midpoint of (2,1) and (5,6)?
(3.5,3.5), which is (72,72). It is exact, so do not round it.
Q10Given the midpoint M(4,7) and one end A(1,3), how do you find the other end B?
B=2M−A, so B is (7,11). The step from A to M is repeated past M.
Q11A segment is 5 units long and the horizontal distance between its ends is 3. What is the vertical distance?
4, because 3, 4, 5 is a Pythagorean triple: 9+16=5.
Q12How many significant figures are in 3.61?
Three, counted from the first non-zero digit.
Q13What is the perpendicular bisector of a segment?
The line through the midpoint of the segment, at right angles to it. Its equation is Extended work on perpendicular gradients.
Q14Can a midpoint contain a decimal?
Yes. (3.5,3.5) is an exact midpoint, and rounding it to (4,4) would be wrong.
0 of 14 marked as known

Exam-style questions

7 questions, 18 marks. Write your answer, then reveal the mark scheme and tick each point you actually made. Answering honestly here is what makes the rest of the site useful.

CalculateAO12 marks
A line segment joins the points A(1,2) and B(4,6). Calculate the length of AB.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • A1AB=32+42=25=5not checked yet
Examiner tip: The two distances are the legs of a right-angled triangle and the segment is the hypotenuse, so Pythagoras is the method. Write the substitution out: 32+42.
CalculateAO12 marks
The points P(−4,3) and Q(5,−9) are the ends of a line segment. Calculate the length of PQ.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • A1PQ=92+(−12)2=81+144=225=15not checked yet
Examiner tip: Subtracting a negative coordinate adds it, so 5−(−4) is 9 and not 1. The −12 is fine inside the formula because it is squared.
CalculateAO13 marks
The line segment joining A(1,2) and B(4,4) is drawn on a grid. Calculate the exact length of AB. Give your answer as a surd in its simplest form.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1AB=13not checked yet
Examiner tip: 13 is not a square number, so the exact length stays as 13. Do not replace it with 3.61 when the question asks for the exact value.
CalculateAO12 marks
Calculate the coordinates of the midpoint of the line segment joining A(−3,8) and B(9,−2).
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • A1(−3+92,8+(−2)2)=(3,3)not checked yet
Examiner tip: Average the two x-coordinates and the two y-coordinates separately. Adding first is what makes it a midpoint rather than a quarter of the way along.
Work outAO22 marks
On a plan, the points A(2,1) and B(5,6) are the ends of a straight fence. Work out the coordinates of the midpoint of the fence.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • A1(3.5,3.5), the averages 72 and 72not checked yet
Examiner tip: The midpoint of a fence is still just the average of its two ends. Leave the decimals as 3.5 - they are exact, and rounding to a whole number would move the midpoint off the fence.
Work outAO23 marks
The point M(4,7) is the midpoint of the line segment AB. The coordinates of A are (1,3). Work out the coordinates of B.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1B(7,11)not checked yet
Examiner tip: A midpoint is halfway, so the step from A to M is repeated to get from M to B. Check by averaging: 1+72=4 and 3+112=7.
Work outAO24 marks
The points A(2,3) and B(8,11) are joined by a straight line segment. Work out the length of AB and the coordinates of the midpoint of AB.
Give every part of the answer, separated by commas or the word 'or'.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • M1
  • A1AB=10 and the midpoint is (5,7)not checked yet
Examiner tip: The two halves of the question use the same pair of distances, so work them out once and label them. 6, 8, 10 is a Pythagorean triple, so the length is a whole number - if you get a surd here, check the subtraction.

Exam technique for this topic

  • Sketch the right-angled triangle on the grid before you substitute anything, and mark the horizontal and vertical distances on it with the segment as the hypotenuse. The sketch is what stops a sign error turning into a wrong answer.
  • Write the substitution line before the answer: AB=(4−1)2+(6−2)2. The method marks are for the two distances and the Pythagoras step, so a correct method with an arithmetic slip still scores.
  • Leave a length as an exact surd unless the question asks for a decimal place or a number of significant figures. If it does ask, give the rounded value to that accuracy and no more: 3.61, not 3.6055.
  • Never round a midpoint. Whole numbers, fractions and decimals such as 3.5 are all exact, so (3.5,3.5) written as (4,4) has lost the answer for no reason.
  • Check the two answers against each other. The midpoint lies on the segment, so its coordinates sit between the coordinates of the two ends, and the length is at least as long as the larger of the horizontal and vertical distances.

Why students lose marks here

A student wroteThe length of the segment joining (1,2) and (4,6) is 7, because the distances are 3 and 4 and 3+4=7.
Why it loses marksThe two distances are the legs of a right-angled triangle, not parts of the segment. Adding them measures a journey along the legs instead of along the hypotenuse, so the answer is always too big.
The answer that scoresAB=32+42=9+16=25=5. Square the two distances, add the squares, then take the square root.
A student wrote(2−4)2=−4.
Why it loses marksThe square applies to the whole bracket. The bracket works out to −2, and squaring a negative number gives a positive answer.
The answer that scores(2−4)2=(−2)2=4. Do the subtraction first, then square the result - that is why a length can never come out negative.
A student wroteThe midpoint of (2,1) and (5,6) is (1,0.5), because I halved the first pair of coordinates.
Why it loses marksHalving one endpoint gives the point a quarter of the way along the segment. A midpoint is the average of the two ends, so the coordinates have to be added before they are halved.
The answer that scores(2+52,1+62)=(3.5,3.5). Add first, then halve, once for x and once for y.
A student wroteThe midpoint of (−3,8) and (9,−2) is (6,6).
Why it loses marksThat is the sum of the two coordinates. The answer has been left twice as far from the origin as it should be, because the division by 2 was missed.
The answer that scores(−3+92,8+(−2)2)=(3,3). Check the answer sits between the two ends: 3 is between −3 and 9, and 3 is between −2 and 8.
A student wrote13=3.6 correct to 3 significant figures.
Why it loses marks3.6055... rounds up at the third significant figure, because the digit after it is 5. Writing 3.6 gives only two significant figures, so the accuracy asked for has not been reached.
The answer that scores13=3.61 correct to 3 significant figures. Count from the first non-zero digit and look at the next digit before deciding whether to round up.

Where this fits in IGCSE Maths

This page is one topic of Cambridge IGCSE Maths 0580. IGCSE Maths is the course home: every area and every topic in Cambridge's own order, the papers you sit and what each one tests, and the exam-practice tools. The full topic list, with each topic linked to its revision page, is on the IGCSE Maths syllabus page.