Given two points, how do we find the length of the segment joining them and the coordinates of its midpoint?
Calculate the length of a line segment using the distance formula and find the midpoint of a line segment
A focused answer to the N(A)-Level Mathematics outcome on length and midpoint. The distance formula from Pythagoras, the midpoint formula, and applying both to points on a grid.
Reviewed by: AI editorial process; not yet individually human-reviewed
Have a quick question? Jump to the Q&A page
Jump to a section
What this dot point is asking
SEAB wants you to find the length of a line segment joining two points using the distance formula, and to find the coordinates of its midpoint. Both come from simple ideas - Pythagoras for length and averaging for the midpoint - and they appear throughout coordinate geometry.
The answer
The distance formula
The length of the segment joining and comes straight from Pythagoras' theorem. The horizontal gap and the vertical gap form the two short sides of a right-angled triangle, and the segment is the hypotenuse:
Because the differences are squared, it does not matter which point you call first - a negative difference squared becomes positive.
Why it is just Pythagoras
If you plot the two points and draw a horizontal line and a vertical line to form a right-angled triangle, the horizontal side has length and the vertical side has length . The straight-line distance between the points is the hypotenuse, so .
The midpoint formula
The midpoint is exactly halfway between the two points. You find it by averaging the values and averaging the values:
For and , the midpoint is .
Horizontal and vertical segments
When the two points share an -coordinate, the segment is vertical and its length is just the difference of the -values. When they share a -coordinate, the segment is horizontal and its length is the difference of the -values. In these cases you do not need the full formula, though it still gives the same answer.
Rounding the length
A length is often a surd such as . Leave it exact if the question allows, or round to the requested accuracy (commonly significant figures) if a decimal is asked for. Keep the value exact through the working and round only at the very end, so rounding does not build up errors.
Examples in context
Example 1. Checking a shape. To test whether three points form an isosceles triangle, find the length of each side with the distance formula and compare. If two sides come out equal, the triangle is isosceles. The distance formula turns a geometry question into pure arithmetic.
Example 2. The centre of a diameter. If a circle has a diameter from to , its centre is the midpoint of that diameter: . The midpoint formula locates the centre directly, a useful link to circle work.
Try this
- Cue. Find the length from to . Compute .
- Cue. Find the midpoint of and . Average: .
- Cue. Find the length from to . The points share an , so the length is just .
Exam-style practice questions
Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.
Original3 marksFind the length of the line segment joining and .Show worked answer β
Use the distance formula (from Pythagoras): length .
Differences: and .
Length .
What markers reward: the correct distance formula, the horizontal and vertical differences squared, and the final length. This is a -- triangle, so the answer is exactly .
Original2 marksFind the midpoint of the line segment joining and .Show worked answer β
The midpoint is the average of the coordinates:
midpoint .
What markers reward: averaging the values and the values separately, and giving the answer as a coordinate pair. A common slip is to subtract instead of add, which gives the wrong point.
Related dot points
- Find the gradient of a line through two points and determine the equation of a straight line in the form y = mx + c
A focused answer to the N(A)-Level Mathematics outcome on the equation of a line. Finding gradient from two points, using a point to find the intercept, and writing the equation as y = mx + c.
- Apply Pythagoras' theorem to find a missing side in a right-angled triangle and to solve simple problems
A focused answer to the N(A)-Level Mathematics outcome on Pythagoras' theorem. The relationship between the three sides, finding the hypotenuse or a shorter side, and real problems.
- Represent a vector as a column vector, add and subtract vectors, and multiply a vector by a scalar
A focused answer to the N(A)-Level Mathematics outcome on vectors. Column vector notation, adding and subtracting vectors, scalar multiples, and finding the magnitude of a vector.
- Plot and draw graphs of linear functions y = mx + c, and interpret the gradient and y-intercept
A focused answer to the N(A)-Level Mathematics outcome on linear graphs. Plotting y = mx + c, finding gradient from two points, the meaning of the y-intercept, and reading values from a line.