Triangles

The Fermat Point and the Shortest Network Joining Three Towns

Find the junction that gives the least total road to three towns, with a rotation proof, a construction and an example.

Key takeaways

  • The Fermat point minimizes the sum of the distances to the three vertices of a triangle.
  • When every angle is under 120°, each side of the triangle is seen from that point at exactly 120°.
  • To construct it, put equilateral triangles outward on two sides and join each new apex to the opposite vertex.
  • That joining segment has the same length as the whole minimal network.
  • If one angle is 120° or more, the best point is the vertex at that angle.

To join three towns with the least total length of straight road, build a junction where the three roads meet at 120° to one another. That junction is the Fermat point of the triangle formed by the towns. The one exception: if the triangle has an angle of 120° or more, skip the junction and run both roads into the town at that wide angle.

The result is exact, and its proof uses a single clever rotation that turns a bent three-part route into a path you can straighten.

Stating the problem

Given points A, B and C, find the point P that makes PA + PB + PC as small as possible. P may be anywhere in the plane.

Pierre de Fermat posed a version of this question in the seventeenth century, and Evangelista Torricelli solved it. The point is often called the Torricelli point for that reason.

Notice that this is not asking for a point equally distant from the towns. The circle center that does that job, and the balance point of the triangle, generally give a longer total.

The rotation proof

Take any point P inside triangle ABC. Rotate triangle APB by 60° about B, turning it away from C. Let A move to A′ and P move to P′.

The rotation keeps lengths, so P′A′ = PA and BP′ = BP. Because BP turned through 60° into an equal segment BP′, triangle BPP′ is equilateral. Therefore PP′ = PB.

PA + PB + PC = A′P′ + P′P + PC

The right side is the length of a crooked path from A′ to C. A path between two points is never shorter than the straight segment, so

PA + PB + PC ≥ A′C

The point A′ does not depend on P. It is the third vertex of the equilateral triangle on side AB, drawn outward. So A′C is a fixed floor under every possible network, and the best P is one that reaches it.

Straightening the three roads
1 Pick any junction P Add up PA, PB and PC. 2 Rotate by 60 degrees Turn triangle APB about vertex B. 3 See a bent path The total equals the route from A′ through P′ and P to C. 4 Straighten it The minimum is the straight length A′C. Pick any junction P Add up PA, PB and PC. 1 Rotate by 60 degrees Turn triangle APB about vertex B. 2 See a bent path The total equals the route from A′ through P′ and P to C. 3 Straighten it The minimum is the straight length A′C. 4

Why the angles are 120°

Equality holds when A′, P′, P and C fall in that order on one line.

The equilateral triangle BPP′ then fixes the angles. Angle BPC is the supplement of angle BPP′, so it is 180° − 60° = 120°. Angle BP′A′ is the supplement of angle BP′P, also 120°, and the rotation carries angle BPA to angle BP′A′. So angle APB is 120° too.

The third angle, CPA, is what remains of 360°, again 120°. When all three angles of the triangle are under 120°, such a point exists inside it, and it is the unique minimizer.

The construction

  1. Draw an equilateral triangle outward on side AB, with apex C′.
  2. Draw another outward on side BC, with apex A″.
  3. Join C′ to C, and A″ to A.
  4. The crossing of those two segments is the Fermat point F.

The segment from the apex on the third side to vertex B also passes through F. The three segments have equal length and cross at 60° to one another. For the basic step, see how to build an equilateral triangle on a segment.

Three towns, worked out

Say town A is at (−3, 0), town B at (3, 0) and town C at (0, 8), in kilometers. By symmetry, the junction is on the vertical axis.

At the junction, angle APB is 120°, so each half is 60°. With the midpoint of AB, this makes a 30-60-90 triangle whose leg of 3 faces the 60° angle. The other leg is 3/√3 = √3, about 1.73. So the junction is at (0, √3).

The roads to A and B are each 2√3, and the road to C is 8 − √3. The total is 8 + 3√3, about 13.20 km.

Network Total length (km)
Two long sides, via C about 17.09
Base plus one long side about 14.54
Junction at the circumcenter about 13.69
Junction at the centroid about 13.36
Junction at the Fermat point about 13.20

The side ratios used here are derived in the special right triangles.

A formula for the length

When all angles are under 120°, the minimal total d can be found from the sides a, b, c and the area K.

d² = (a² + b² + c²)/2 + 2√3·K

In the example, the squared sides are 36, 73 and 73, adding to 182, and K = 24. So d² = 91 + 48√3, which is the square of 8 + 3√3.

A nudge test for the 120° rule

There is a second way to see why the angles must be equal. Move the junction a very small step. Each road gets shorter by about the part of the step that points along it, toward its town, or longer by the part that points away.

Picture an arrow of length 1 from the junction toward each town. If the three arrows added up to something other than zero, stepping in the direction of that sum would shorten the total. So at the best junction, strictly between the towns, the three arrows cancel.

Three arrows of equal length cancel only when they form a closed triangle placed head to tail, and that triangle is equilateral. Turning back to a common starting point, the arrows are spaced 120° apart.

This argument does not replace the rotation proof, since it only describes what a best point must look like. It does explain quickly why other angles can always be improved. For a related style of reasoning, see arguments based on a moving point.

How much road do you save?

Compare the junction with the cheapest plan that has no junction, which uses the two shortest sides. For an equilateral triangle of side 10 km, two sides total 20 km. The Fermat network has three roads of length 10/√3 each, a total of 10√3, about 17.32 km. The saving is about 13.4 percent.

That is the largest saving any three towns can offer. As one angle approaches 120°, the junction slides toward that town and the advantage shrinks to nothing. In the example above, with a base of 6 and long sides near 8.54, the saving over two sides is a little over 9 percent.

Whether such a saving justifies a new junction is a practical question. An extra intersection costs money, and travelers between two particular towns would then take a slightly longer trip than a direct road gives them. The shortest network for builders is not the fastest network for every driver.

The wide-angle case

Suppose the angle at B is 130°. No point inside the triangle can see all three sides at 120°, since angle APC from an interior point is always larger than angle ABC, here already 130°.

The minimum is then at B itself, and the network is just the two roads BA and BC. Moving a junction away from B would add more length to the third road, from the junction to B, than it saves on the other two.

Strings, weights and soap film

A mechanical model makes the angle believable. Drill three holes in a board at the town positions. Tie three strings in one knot, pass each through a hole and hang equal weights. The knot settles where three equal pulls cancel, which requires 120° between them. If one town angle is too wide, the knot is dragged to that hole.

Soap films do something similar. Two clear plates joined by three pins, dipped in dilute soapy water, hold films that meet at 120°. Film tension shrinks the area, and with equal plate spacing, that means shrinking total length. The same angle rule appears in the laws of soap films.

More than three towns

With more points, you may add several junctions. The shortest such network is called a Steiner tree, and at each added junction three links meet at 120°.

Four towns at the corners of a square of side 1 show the gain. Three sides give length 3. Two diagonals with one central junction give 2√2, about 2.83. Two junctions placed symmetrically give 1 + √3, about 2.73.

Finding the shortest network for many points is computationally hard, because the number of possible arrangements explodes. Planners rely on good approximations for large cases.

Limits of the model

Real road, cable and pipe routes depend on terrain, land ownership, traffic and cost per kilometer, and require qualified engineering. If one road must carry far more traffic and costs more per kilometer, the best junction shifts and the angles are no longer equal. This weighted version is studied in location science.

Common questions

Is the Fermat point the same as any other center?

Only in special cases. In an equilateral triangle it coincides with the centroid, incenter, circumcenter and orthocenter.

Why does the rotation use 60°?

Because a 60° turn about B creates an equilateral triangle, converting the length PB into an equal length PP′ that lines up with the other two.

Reflecting instead of rotating solves other shortest-path puzzles, including the shortest loop inside an acute triangle. The outward equilateral triangles also star in Napoleon's theorem.

Written for 4Geometry with AI writing tools and not reviewed line by line by a person. Check anything you rely on against a textbook or primary source. Report an error.

Keep reading

All 57 articles in Triangles →

Latest news on this topic