Kramizo
Log inSign up free
HomeCIE IGCSE MathematicsAlgebra and Graphs: Length and midpoint of a line segment
CIE · IGCSE · Mathematics · Revision Notes

Algebra and Graphs: Length and midpoint of a line segment

2,032 words · Last updated May 2026

Ready to practise? Test yourself on Algebra and Graphs: Length and midpoint of a line segment with instantly-marked questions.
Practice now →

What you'll learn

Calculating the length and midpoint of a line segment between two coordinate points is a fundamental skill in CIE IGCSE Mathematics coordinate geometry. Questions on this topic regularly appear in Paper 2 and Extended Paper 4, often integrated with other algebra topics such as equation of a line, perpendicular bisectors, or circle theorems. Understanding these concepts enables you to solve problems involving distances, locations of points, and geometric properties in the Cartesian plane.

Key terms and definitions

Coordinate pair — A pair of numbers (x, y) that specifies the exact position of a point on a Cartesian plane, where x represents the horizontal distance and y represents the vertical distance from the origin.

Line segment — The part of a line connecting two specific points, with a defined beginning and end, as opposed to a line which extends infinitely in both directions.

Distance formula — The mathematical formula derived from Pythagoras' theorem used to calculate the straight-line distance between two points: √[(x₂ - x₁)² + (y₂ - y₁)²].

Midpoint — The point that lies exactly halfway along a line segment, equidistant from both endpoints.

Cartesian plane — A two-dimensional coordinate system defined by perpendicular x-axis (horizontal) and y-axis (vertical) that intersect at the origin (0, 0).

Pythagoras' theorem — The relationship in a right-angled triangle where the square of the hypotenuse equals the sum of the squares of the other two sides (a² + b² = c²).

Surd form — An exact answer containing a square root that cannot be simplified to a rational number, such as √17 or 3√5.

Exact value — A mathematically precise answer (often in surd form) rather than a rounded decimal approximation.

Core concepts

Understanding the distance formula

The distance formula calculates the straight-line length between two points A(x₁, y₁) and B(x₂, y₂). This formula derives directly from Pythagoras' theorem:

Distance = √[(x₂ - x₁)² + (y₂ - y₁)²]

To understand why this works, visualize the two points on a coordinate grid:

  • The horizontal distance between the points equals |x₂ - x₁|
  • The vertical distance between the points equals |y₂ - y₁|
  • These form the two shorter sides of a right-angled triangle
  • The line segment AB forms the hypotenuse

Applying Pythagoras' theorem: AB² = (x₂ - x₁)² + (y₂ - y₁)²

Taking the square root of both sides gives the distance formula.

Important points:

  • The order of subtraction doesn't matter because you square the differences ((-3)² = 3² = 9)
  • Always simplify surds where possible in your final answer
  • Check whether the question asks for an exact answer (leave in surd form) or a decimal approximation
  • Units matter — if coordinates represent real measurements (km, m, cm), include units in your answer

Calculating midpoint coordinates

The midpoint M of a line segment connecting A(x₁, y₁) and B(x₂, y₂) has coordinates:

M = ((x₁ + x₂)/2, (y₁ + y₂)/2)

This formula finds the average (mean) of the x-coordinates and the average of the y-coordinates separately. The logic is straightforward: to find the point halfway between two positions, add them together and divide by 2.

Key features:

  • The midpoint always lies exactly on the line segment between the two points
  • Both coordinates are calculated independently using the same averaging process
  • Midpoint coordinates can be negative, positive, zero, or fractional
  • The midpoint divides the segment into two equal parts, each with length half the total distance

Working with negative coordinates and mixed signs

CIE IGCSE questions frequently test your ability to handle negative values correctly:

When calculating x₂ - x₁ where coordinates have different signs:

  • If x₁ = -3 and x₂ = 5, then x₂ - x₁ = 5 - (-3) = 5 + 3 = 8
  • If x₁ = 4 and x₂ = -2, then x₂ - x₁ = -2 - 4 = -6

When finding midpoints with negative coordinates:

  • Add the coordinates algebraically (respecting signs)
  • If x₁ = -6 and x₂ = 4, then (x₁ + x₂)/2 = (-6 + 4)/2 = -2/2 = -1

Common calculation errors occur when:

  • Subtracting a negative number (remember: minus a negative becomes addition)
  • Adding coordinates with different signs (careful arithmetic with directed numbers)
  • Dividing negative results by 2 for midpoints

Simplifying surds in distance calculations

CIE mark schemes require exact answers in surd form for many questions. After calculating the distance, you must simplify:

Simplification rules:

  1. Factor the number under the square root into prime factors
  2. Extract perfect square factors
  3. Simplify: √(a² × b) = a√b

Examples:

  • √18 = √(9 × 2) = 3√2
  • √50 = √(25 × 2) = 5√2
  • √72 = √(36 × 2) = 6√2
  • √12 = √(4 × 3) = 2√3

When the question specifies "give your answer correct to 3 significant figures," calculate the decimal value using a calculator.

Finding unknown coordinates using distance or midpoint

Reverse problems appear regularly on CIE papers where you know:

  • The distance between two points and one coordinate
  • The midpoint and one endpoint
  • Part of the coordinates for points with given properties

For midpoint problems:

If M(3, 5) is the midpoint of AB and A is (1, 2), find B(x, y):

Using (1 + x)/2 = 3, solve: 1 + x = 6, so x = 5

Using (2 + y)/2 = 5, solve: 2 + y = 10, so y = 8

Therefore B = (5, 8)

For distance problems:

If the distance from A(2, 3) to B(x, 5) equals 5 units:

√[(x - 2)² + (5 - 3)²] = 5

Square both sides: (x - 2)² + 4 = 25

(x - 2)² = 21

x - 2 = ±√21

x = 2 + √21 or x = 2 - √21

These problems often require algebraic manipulation and solving equations, integrating coordinate geometry with algebraic skills.

Applications in geometric problems

Distance and midpoint calculations frequently appear within larger geometric contexts:

Perpendicular bisectors: The midpoint formula identifies where the perpendicular bisector crosses the line segment. Combined with gradient calculations, this determines the bisector's equation.

Circle problems: The distance formula verifies whether a point lies on a circle by checking if its distance from the centre equals the radius.

Quadrilateral properties: Calculating midpoints of diagonals proves whether a quadrilateral is a parallelogram (diagonals bisect each other) or shows symmetry properties.

Triangle problems: Finding the length of all three sides using the distance formula allows classification of triangles (isosceles, equilateral, right-angled) using properties like equal sides or Pythagoras' theorem.

Worked examples

Example 1: Finding distance in exact form

Question: Point A has coordinates (-2, 5) and point B has coordinates (4, -3). Calculate the exact distance AB. [3 marks]

Solution:

Using the distance formula: AB = √[(x₂ - x₁)² + (y₂ - y₁)²]

Substitute the coordinates: AB = √[(4 - (-2))² + (-3 - 5)²]

Simplify the brackets: AB = √[(4 + 2)² + (-8)²]

Calculate: AB = √[6² + (-8)²] = √[36 + 64] = √100

AB = 10 units

Mark scheme: [1 mark for correct substitution into distance formula, 1 mark for correct calculation inside the square root (100), 1 mark for final answer 10]

Example 2: Finding a midpoint with fractional coordinates

Question: The coordinates of points P and Q are P(-5, 8) and Q(3, -1).

(a) Find the coordinates of M, the midpoint of PQ. [2 marks] (b) Calculate the length PQ, giving your answer correct to 3 significant figures. [3 marks]

Solution:

(a) Using the midpoint formula: M = ((x₁ + x₂)/2, (y₁ + y₂)/2)

x-coordinate: (-5 + 3)/2 = -2/2 = -1

y-coordinate: (8 + (-1))/2 = 7/2 = 3.5

M = (-1, 3.5)

(b) Using the distance formula: PQ = √[(3 - (-5))² + (-1 - 8)²]

PQ = √[(3 + 5)² + (-9)²]

PQ = √[8² + (-9)²] = √[64 + 81] = √145

Using a calculator: √145 = 12.041...

PQ = 12.0 units (3 s.f.)

Mark scheme: (a) [1 mark for correct method, 1 mark for both coordinates correct] (b) [1 mark for correct substitution, 1 mark for √145, 1 mark for 12.0 to 3 s.f.]

Example 3: Finding an unknown coordinate

Question: The point M(4, k) is the midpoint of the line segment joining A(1, 7) and B(7, 3). Find the value of k. [2 marks]

Solution:

Using the midpoint formula for the y-coordinate: k = (y₁ + y₂)/2

The y-coordinates of A and B are 7 and 3 respectively.

k = (7 + 3)/2 = 10/2

k = 5

Verification: M should be at ((1 + 7)/2, (7 + 3)/2) = (4, 5) ✓

Mark scheme: [1 mark for correct method using midpoint formula, 1 mark for k = 5]

Common mistakes and how to avoid them

Forgetting to square root at the end of the distance calculation — Students calculate (x₂ - x₁)² + (y₂ - y₁)² and forget to take the square root. The distance is √[(x₂ - x₁)² + (y₂ - y₁)²], not just the sum of squares. Always include the square root symbol in your working.

Sign errors when subtracting negative coordinates — When x₁ = -3 and x₂ = 5, students write x₂ - x₁ = 5 - 3 = 2 instead of 5 - (-3) = 8. Remember that subtracting a negative number means adding: 5 - (-3) = 5 + 3 = 8.

Incorrectly simplifying surds or leaving them unsimplified — Writing √18 as a final answer loses marks when it should be 3√2. Learn to recognize perfect square factors: 4, 9, 16, 25, 36, 49, 64, 81, 100. Always check if the number under the root has any perfect square factors.

Mixing up distance and midpoint formulas — The distance formula involves squaring, adding, then square rooting. The midpoint formula involves adding, then dividing by 2. These are completely different operations. Write out which formula you're using at the start of your solution.

Rounding too early in multi-step problems — If you need to use the midpoint coordinates in a subsequent calculation, keep exact values or many decimal places. Only round to the required number of significant figures or decimal places in your final answer.

Dividing only one coordinate by 2 for midpoint — Students sometimes correctly add both x-coordinates and divide by 2, but forget to repeat this process for y-coordinates. Both coordinates must be averaged independently: ((x₁ + x₂)/2, (y₁ + y₂)/2).

Exam technique for "Algebra and Graphs: Length and midpoint of a line segment"

Always show your formula before substitution — Write "Distance = √[(x₂ - x₁)² + (y₂ - y₁)²]" or "Midpoint = ((x₁ + x₂)/2, (y₁ + y₂)/2)" before inserting numbers. This earns method marks even if your arithmetic is incorrect. Mark schemes award marks for correct method shown clearly.

Read carefully whether the answer should be exact or approximate — Keywords include "exact form" or "in terms of surds" (leave as √17), versus "correct to 3 significant figures" or "1 decimal place" (use calculator for decimal). Giving a decimal when an exact answer is required loses marks, and vice versa.

Set out coordinate substitution clearly — Write A(x₁, y₁) = (-2, 5) and B(x₂, y₂) = (4, 3) before substituting into formulas. This prevents mix-ups and helps you track which number is which, especially with negative coordinates. Clear notation is rewarded by examiners.

Check your answer makes geometric sense — If you calculate a negative distance, you've made an error (distances are always positive). If a midpoint is far from both endpoints visually, recheck your calculation. Quick sketches on the coordinate grid can verify reasonableness.

Quick revision summary

The distance formula √[(x₂ - x₁)² + (y₂ - y₁)²] calculates the length of a line segment between two coordinate points using Pythagoras' theorem. The midpoint formula ((x₁ + x₂)/2, (y₁ + y₂)/2) finds coordinates halfway between two points by averaging x and y separately. Watch for sign errors with negative coordinates, simplify surds for exact answers, and show formulas clearly for method marks. These skills integrate with perpendicular bisectors, circle equations, and geometric proofs in CIE IGCSE Mathematics examinations.

Free for IGCSE students

Lock in Algebra and Graphs: Length and midpoint of a line segment with real exam questions.

Free instantly-marked CIE IGCSE Mathematics practice — 45 questions a day, no card required.

Try a question →See practice bank