Length and midpoint
How to calculate the length of a line segment from the coordinates of its ends, using Pythagoras' theorem, as an exact surd or to 3 significant figures, and how to find the midpoint by averaging the coordinates. This subtopic is Extended content only.
What the syllabus says
E3.4 (Extended)
- 1 Calculate the length of a line segment.
- 2 Find the coordinates of the midpoint of a line segment.
Quoted from the Cambridge IGCSE Mathematics 0580 syllabus for 2025 to 2027.
Length of a line segment Extended
A line segment is the part of a line between two end points. To find its length from coordinates, draw the same right-angled triangle you use for a gradient: a horizontal side, a vertical side, and the segment itself as the hypotenuse.
The horizontal side is the change in and the vertical side is the change in . Pythagoras' theorem then gives the length. For the points and :
The method, step by step:
- Find the change in and the change in .
- Square each one.
- Add the squares.
- Square root the total.
Why the signs do not matter here. A change of and a change of give the same square, 64. A length is always positive, and squaring removes the direction. You still have to subtract correctly, though: from to is a change of , not 2.
You do not need to memorise the formula if you understand the triangle. Many students sketch the triangle on a quick pair of axes, label the two short sides, and use directly. That is exactly what the formula says.
The length triangle Extended
From to the horizontal side is and the vertical side is . So and .
Worked example 1 Extended
Calculate the length of the line segment joining and .
Change in : .
Change in : .
.
.
Answer:
Exact answers and rounded answers Extended
Most pairs of points do not give a whole-number length. What you write depends on the paper and the question.
Non-calculator (Paper 2): leave the answer as a surd, in its simplest form. Look for the largest square number that divides the number under the root: . If the question says "give your answer in the form ", it is telling you which surd to aim for.
Calculator (Paper 4): give the answer correct to 3 significant figures unless told otherwise: .
Keep the exact value for as long as you can. If the length is used again, for example in a perimeter, use the full calculator value, or the surd, and round only at the very end.
Worked example 2 Extended
is the point and is the point . Find the length of , (a) as a surd in its simplest form, (b) correct to 3 significant figures.
Change in : . Change in : .
.
(a) . The largest square factor of 80 is 16, so .
(b) to 3 significant figures.
Answer: (a) (b)
Check yourself Extended
Calculate the length of the line segment joining and .
Answer it in the portal, where your answer is checked as you type →
Check yourself Extended
Find the length of the line segment joining and . Give your answer as a surd in its simplest form.
Answer it in the portal, where your answer is checked as you type →
Midpoint of a line segment Extended
The midpoint of a line segment is the point exactly halfway along it. Its -coordinate is halfway between the two -coordinates, and its -coordinate is halfway between the two -coordinates. Halfway between two numbers is their mean, so:
Why it works. Go halfway along the segment and draw the small triangle back to the start. It is the big length triangle scaled by , so it covers half the change in and half the change in . Starting at and adding half the change, , simplifies to : the mean.
Note the plus signs. The midpoint adds the coordinates and halves; the length and the gradient subtract. Mixing the two up is the most common error in this topic.
Working backwards. If you know one end, , and the midpoint, , the other end is as far beyond as is beyond . Find the step from to and take the same step again from . Equivalently, , coordinate by coordinate.
Worked example 3 Extended
Find the coordinates of the midpoint of the line segment joining and .
-coordinate: .
-coordinate: .
Sense check: 1 is halfway between and 5, and 3 is halfway between 7 and .
Answer:
Worked example 4 Extended
is the midpoint of the line segment . is the point . (a) Find the coordinates of . (b) Find the length of , giving your answer in the form .
(a) From to : changes by and changes by .
Take the same step again from : .
Check: the midpoint of and is .
(b) Change in : . Change in : .
, so .
Answer: (a) (b)
Check yourself Extended
Find the coordinates of the midpoint of the line segment joining and .
Answer it in the portal, where your answer is checked as you type →
Using length and midpoint together Extended
Exam questions often combine the two skills with a fact about a shape.
- Circles. If is a diameter, the centre is the midpoint of and the radius is half the length of . A point lies on the circle exactly when its distance from the centre equals the radius.
- Isosceles triangles. Calculate all three side lengths. Two equal lengths show the triangle is isosceles. The line from the top vertex to the midpoint of the base is then the height, which gives the area.
- Parallelograms. The diagonals of a parallelogram cut each other in half, so both diagonals have the same midpoint. That lets you find a missing vertex.
- Unknown coordinates. If a length is given and one coordinate is a letter, form an equation with Pythagoras and solve it. A square root has two signs, so there are often two answers.
In a "show that" question, give every length in full, as a surd or with the calculation shown, and finish with a sentence that states what you have shown.
Key points
Length : Pythagoras on the change in and the change in .
Midpoint : the mean of each coordinate.
Length and gradient subtract the coordinates; the midpoint adds them.
Without a calculator, give lengths as surds in their simplest form; with one, to 3 significant figures.
To find an end point from the midpoint, take the step from the known end to the midpoint again.
Where marks are lost
Adding the changes instead of their squares: is not the length.
Forgetting the final square root, and giving as the answer.
Subtracting negatives wrongly: , not 2.
Halving the difference for the midpoint, , instead of halving the sum.
Giving when the question asks for the simplest form, .
Rounding a length early and then using the rounded value in a perimeter or area.
Related IGCSE Mathematics 0580 lessons
An original lesson written to the Cambridge IGCSE Mathematics 0580 syllabus (2025 to 2027). The worked examples and questions are our own, not Cambridge questions. Back to every IGCSE Mathematics 0580 lesson.