On this page
Ptolemy's theorem is exact for a quadrilateral inscribed in a circle. Ptolemy's inequality covers every other quadrilateral, and in olympiad geometry it often turns a hard question about distances into a short calculation.
What is Ptolemy's inequality?
For any four points A, B, C, D in the plane or in space, AB·CD + BC·DA ≥ AC·BD, as stated in the Wikipedia article on Ptolemy's inequality.
Read it as: the two pairs of opposite sides, multiplied and added, are at least the product of the diagonals. The same article says equality holds when the four points lie in cyclic order on a circle, and in one other case, when they lie on a line in that order. MathWorld states the strict form: for a quadrilateral that is not cyclic, AB·CD + BC·DA > AC·BD.
The equality case is Ptolemy's theorem: if ABCD is a cyclic quadrilateral, AC·BD = AB·CD + BC·AD. Ptolemy (Claudius Ptolemaeus) used the theorem to build his table of chords, a trigonometric table he applied to astronomy, according to that page.
How do you prove Ptolemy's inequality?
The Wikipedia page lists two classic routes: complex numbers and inversion.
Proof 1: complex numbers. Treat the points as complex numbers a, b, c, d. Expanding both sides confirms this identity:
(a − b)(c − d) + (a − d)(b − c) = (a − c)(b − d)
Take the modulus of each side and apply the triangle inequality |z + w| ≤ |z| + |w|:
|a − c|·|b − d| ≤ |a − b|·|c − d| + |a − d|·|b − c|
That is AC·BD ≤ AB·CD + DA·BC. Equality needs z = (a − b)(c − d) and w = (a − d)(b − c) to point in the same direction, so their ratio must be a positive real number. That ratio is a cross-ratio of the four points, and a real cross-ratio means the points are concyclic or collinear. The sign fixes the order: A, B, C, D around the circle.
Proof 2: inversion. Invert about D with radius r. A point P goes to P′ on ray DP with DP·DP′ = r². Similar triangles give A′B′ = r²·AB / (DA·DB), and likewise for the other pairs. Apply the triangle inequality A′B′ + B′C′ ≥ A′C′, then multiply through by DA·DB·DC / r²:
AB·DC + BC·DA ≥ AC·DB
Equality means A′, B′, C′ lie on a line with B′ in the middle. A line not through D comes from a circle through D, so A, B, C, D sit on one circle in that order; if the line passes through D, all four points lie on one line. If inversion is new to you, our explainer on what inversion in a circle does builds the distance formula step by step.
A worked example with a non-cyclic quadrilateral
Take the rectangle A(0, 0), B(4, 0), C(4, 3), D(0, 3). Every rectangle is cyclic. AB = CD = 4, BC = DA = 3, and both diagonals are 5. So AB·CD + BC·DA = 16 + 9 = 25 = AC·BD. Equality, as Ptolemy's theorem promises.
Now lift D to (0, 4). The circle through A, B, C has centre (2, 1.5) and radius 2.5; the new D is √10.25 ≈ 3.20 from the centre, so it is off the circle. Recompute:
AB = 4, BC = 3, DA = 4.
CD = √(4² + 1²) = √17 ≈ 4.123.
AC = 5, BD = √(4² + 4²) = √32 ≈ 5.657.
Left side: AB·CD + BC·DA ≈ 16.492 + 12 = 28.492.
Right side: AC·BD ≈ 5 × 5.657 = 28.284.
The left side wins by about 0.21, a small gap because D moved only a little off the circle.
To practise more problems like this with a step-by-step solver that explains the reasoning, try the Fermi Problem Library.
Where is Ptolemy's inequality used in olympiads?
The signal is a figure with equilateral triangles or a known circle, and a target that adds or compares lengths.
A classic is Problem B2 of the 36th IMO in 1995, listed in John Scholes' IMO 1995 archive: ABCDEF is a convex hexagon with AB = BC = CD and DE = EF = FA, ∠BCD = ∠EFA = 60°, and G, H are interior points with ∠AGB = ∠DHE = 120°; prove AG + GB + GH + DH + HE ≥ CF. The archived solution says the equilateral triangles and quadrilaterals suggest Ptolemy's inequality. On CBGD, where BCD is equilateral, the side lengths cancel and give CG ≤ BG + GD, but that first attempt does not quite reach the target. The fix is to reflect C and F in the line BE: C′AB and F′ED are still equilateral, so the same step gives C′G ≤ AG + GB and HF′ ≤ DH + HE, and CF = C′F′ ≤ C′G + GH + HF′ finishes the proof.
The pattern to remember:
An equilateral triangle XYZ plus any point P: Ptolemy gives PX ≤ PY + PZ, with equality when P lies on the arc YZ of the circumcircle that does not contain X.
A cyclic quadrilateral in the figure: use the equality to turn products of lengths into sums.
Cyclic quadrilaterals turn up across this kind of geometry; the Simson line and its cyclic converse and Feuerbach's nine-point circle are good next reads. If a definition along the way is unclear, the Fermi Concept Library gives every concept in mathematics its own lesson.



