Skip to the formula

Distance formula: d = √((x₁ − x₂)² + (y₁ − y₂)²)

The distance formula is length = √((x₂ − x₁)² + (y₂ − y₁)²).

What each letter means

Distance formula in Edexcel 4MA1 and Cambridge 0580

CourseWhere it isTier
Cambridge IGCSE Mathematics (0580)E3.4 Length and midpointExtended only
Paper 2 (no calculator) and Paper 4 (calculator)

Calculator: Cambridge 0580: No calculator on Papers 1 and 2; a scientific calculator is needed for Papers 3 and 4. Algebraic or graphic calculators are not allowed.

Without a calculator: Leave the length as an exact square root or a simplified surd, such as √100 = 10 or √50 = 5√2. 0580 non-calculator papers: what to practise.

When to use it

To find the length of a line segment from the coordinates of its ends. It is Pythagoras on the horizontal and vertical gaps.

Worked example

Find the length of the line segment joining \((-3,5)\) and \((5,-1)\).

  1. \(\sqrt{(5-(-3))^2+(-1-5)^2}=\sqrt{64+36}\)

Answer: \(\sqrt{100}=10\)

Common mistake

Squaring a negative wrongly: (−6)² = 36, not −36. Put negative differences in brackets.

Try one yourself

One quick IGCSE Maths question on the distance formula (length of a line segment). No sign-in needed.

Find the distance between \((1, 2)\) and \((7, 10)\).
Choose your answer · keys 1–4

IGCSE exam-style questions, marked step by step

Our own questions in the style of the 4MA1 and 0580 papers. M1 is a method mark, A1 an accuracy mark that needs the method before it, and B1 a mark that stands on its own. The split is our illustration: how IGCSE mark schemes work.

0580 Paper 2 style (Extended, no calculator), 3 marks

\(A\) is the point \((-2,3)\) and \(B\) is the point \((4,11)\). Work out the length of \(AB\).

  1. Differences: \(4-(-2)=6\) and \(11-3=8\) M1 · both differences
  2. \(AB=\sqrt{6^2+8^2}=\sqrt{100}\) M1 · Pythagoras
  3. \(AB=10\) A1 · answer

Answer: \(10\) units 3 marks in all

0580 Paper 4 style (Extended, calculator), 3 marks

\(P\) is the point \((1,-4)\) and \(Q\) is the point \((7,5)\). Work out the length of \(PQ\), correct to 3 significant figures.

  1. Differences: \(6\) and \(9\) M1 · both differences
  2. \(PQ=\sqrt{6^2+9^2}=\sqrt{117}\) M1 · Pythagoras
  3. \(=10.81\ldots\) A1 · answer to 3 s.f.

Answer: \(10.8\) units 3 marks in all

Where IGCSE students lose marks

From our summaries of the published examiner reports: Cambridge 0580.

Revise it for your IGCSE exam

On your IGCSE Maths course

CourseIn the exam
Edexcel 4MA1 (Higher)Not given: learn it
Cambridge 0580Not given: learn it (Extended only)

From our own IGCSE Maths formula sheets, in our words. Official: Pearson's 4MA1 specification (PDF, Appendix 5) · Cambridge's 0580 syllabus (PDF).

Practise and revise

Distance formula (length of a line segment) formula card: length = √((x₂ − x₁)² + (y₂ − y₁)²). IGCSE Math Revision
Distance formula (length of a line segment) card for IGCSE Maths: download (PNG).

IGCSE Maths FAQ

Is the distance formula (length of a line segment) on the IGCSE formula sheet?

Edexcel 4MA1 (Higher): not given: learn it. Cambridge 0580: not given: learn it (Extended only).

How is the distance formula related to Pythagoras?

The horizontal and vertical gaps between the points are the two shorter sides of a right-angled triangle, so the distance is its hypotenuse.

Is the distance formula Foundation or Higher, Core or Extended?

On Cambridge 0580 it is Extended only (sub-topic E3.4, Length and midpoint), so Core candidates do not need it.

Is the distance between two points on Cambridge IGCSE Core?

No: the length and midpoint of a line segment from its end points is sub-topic E3.4, Extended only (see the table above). Core students still use Pythagoras' theorem on a grid.

Can I use a calculator for distance questions in IGCSE Maths?

Cambridge 0580: No calculator on Papers 1 and 2; a scientific calculator is needed for Papers 3 and 4. Algebraic or graphic calculators are not allowed. Without a calculator, leave the length as an exact square root or a simplified surd, such as √100 = 10 or √50 = 5√2.

Our own wording, examples and card, checked by IGCSE Math Revision. Not produced or endorsed by Pearson Edexcel.