Skip to main content
SingaporeMathsSyllabus dot point

How do we find the length, midpoint and gradient of a line segment between two points?

Calculate the distance between two points, the midpoint of a segment, and the gradient, and apply them to geometric problems

A focused answer to the O-Level E-Maths outcome on distance, midpoint and gradient. The distance formula from Pythagoras, the midpoint formula, the gradient between two points, and their use in geometry.

Generated by Claude Opus 4.88 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to find the distance between two points, the midpoint of the segment joining them, and the gradient of that segment, and to apply these in geometric problems such as showing a shape's properties. These three formulas turn coordinates into lengths, centres and slopes.

The answer

The distance between two points

The distance comes from Pythagoras theorem applied to the horizontal and vertical gaps:

d=(x2βˆ’x1)2+(y2βˆ’y1)2d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

Because the differences are squared, the order of subtraction does not matter for distance.

The midpoint

The midpoint of the segment joining (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2) is the average of the coordinates:

M=(x1+x22,y1+y22)M = \left(\frac{x_1 + x_2}{2}, \frac{y_1 + y_2}{2}\right)

It lies exactly halfway between the two points.

The gradient

The gradient of the segment is the change in yy over the change in xx:

m=y2βˆ’y1x2βˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}

Unlike distance, the order matters here: subtract the coordinates in the same order on top and bottom.

Applying them together

Used together, these formulas verify geometric facts: equal distances show equal sides, equal midpoints show diagonals that bisect each other, and gradient relationships show parallel or perpendicular sides. This is how coordinate geometry proves shapes are squares, parallelograms or right-angled.

Classifying a triangle from its coordinates

Combining the three formulas lets you classify a triangle given its vertices. Compute the three side lengths with the distance formula: all three equal means equilateral, exactly two equal means isosceles, and all different means scalene. To test for a right angle, check whether the gradients of two sides multiply to βˆ’1-1, or equivalently whether the side lengths satisfy Pythagoras. So a triangle with sides 55, 55 and 50\sqrt{50} is isosceles, and because 52+52=505^2 + 5^2 = 50, it is also right-angled. Using distance for the sides and gradient (or Pythagoras) for the angles turns a coordinate triangle into a fully classified shape.

Working backwards from a midpoint

A common twist gives you one endpoint and the midpoint, and asks for the other endpoint. Because the midpoint is the average of the endpoints, you rearrange: if M=(mx,my)M = (m_x, m_y) is the midpoint of A(x1,y1)A(x_1, y_1) and BB, then B=(2mxβˆ’x1,Β 2myβˆ’y1)B = (2m_x - x_1,\ 2m_y - y_1). So if A=(1,2)A = (1, 2) and the midpoint is (4,5)(4, 5), then B=(2(4)βˆ’1,2(5)βˆ’2)=(7,8)B = (2(4) - 1, 2(5) - 2) = (7, 8). Doubling the midpoint and subtracting the known endpoint reverses the averaging, a neat application of the midpoint formula that appears often in E-Maths problems.

Examples in context

Example 1. Proving a parallelogram. Showing that the diagonals of a quadrilateral share the same midpoint proves it is a parallelogram, because the diagonals of a parallelogram bisect each other. The midpoint formula does the work.

Example 2. The centre of a circle. Given the endpoints of a diameter, the midpoint formula finds the centre of the circle, and the distance formula gives the radius. Two coordinate formulas locate the whole circle.

Try this

Q1. Find the distance between (0,0)(0, 0) and (6,8)(6, 8). [2 marks]

  • Cue. 62+82=100=10\sqrt{6^2 + 8^2} = \sqrt{100} = 10.

Q2. Find the midpoint of the segment joining (2,5)(2, 5) and (8,1)(8, 1). [1 mark]

  • Cue. (2+82,5+12)=(5,3)\left(\dfrac{2 + 8}{2}, \dfrac{5 + 1}{2}\right) = (5, 3).

Q3. Find the gradient of the segment joining (1,7)(1, 7) and (4,1)(4, 1). [2 marks]

  • Cue. 1βˆ’74βˆ’1=βˆ’63=βˆ’2\dfrac{1 - 7}{4 - 1} = \dfrac{-6}{3} = -2.

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 distance between the points A(2,1)A(2, 1) and B(7,13)B(7, 13).
Show worked answer β†’

Use the distance formula AB=(x2βˆ’x1)2+(y2βˆ’y1)2AB = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}.

AB=(7βˆ’2)2+(13βˆ’1)2=52+122=25+144=169=13AB = \sqrt{(7 - 2)^2 + (13 - 1)^2} = \sqrt{5^2 + 12^2} = \sqrt{25 + 144} = \sqrt{169} = 13.

The distance is 1313 units.

Markers reward the differences in xx and yy, squaring and adding, and the square root giving 1313.

Original4 marksThe points P(βˆ’3,4)P(-3, 4) and Q(5,βˆ’2)Q(5, -2) are given. Find (a) the midpoint of PQPQ and (b) the gradient of PQPQ.
Show worked answer β†’

(a) Midpoint =(βˆ’3+52,4+(βˆ’2)2)=(22,22)=(1,1)= \left(\dfrac{-3 + 5}{2}, \dfrac{4 + (-2)}{2}\right) = \left(\dfrac{2}{2}, \dfrac{2}{2}\right) = (1, 1).

(b) Gradient =βˆ’2βˆ’45βˆ’(βˆ’3)=βˆ’68=βˆ’34= \dfrac{-2 - 4}{5 - (-3)} = \dfrac{-6}{8} = -\dfrac{3}{4}.

Markers reward averaging the coordinates for the midpoint, and the change in yy over the change in xx for the gradient.

Related dot points