Viviani's Theorem and the Constant Sum of Distances in an Equilateral Triangle
See why the three distances from any inside point to the sides of an equilateral triangle always add to its height.
Key takeaways
- In an equilateral triangle, the distances from an inside point to the three sides sum to the height.
- The proof splits the triangle into three smaller ones and adds their areas.
- Outside the triangle the rule still works if distances beyond a side count as negative.
- Equiangular polygons and regular polygons also have a constant sum of distances.
- The theorem explains triangle charts that display three parts of a whole.
Pick any point inside an equilateral triangle and measure its perpendicular distance to each of the three sides. Add the three numbers. The total always equals the height of the triangle, wherever the point is.
Move toward one side and that distance shrinks, while the other two grow by exactly the amount lost. The result is named for Vincenzo Viviani, an Italian mathematician of the seventeenth century who was a pupil of Galileo.
The proof in three triangles
Let the equilateral triangle have side s and height h. Join the interior point P to the three corners. This cuts the figure into three triangles, each having one side of the original as its base.
Their heights, measured from P, are exactly the three distances d₁, d₂ and d₃.
area of whole = area₁ + area₂ + area₃
s·h / 2 = s·d₁/2 + s·d₂/2 + s·d₃/2
h = d₁ + d₂ + d₃ The last step divides by s/2, and it is only possible because all three bases have the same length. That is the one place where "equilateral" is used. The area rule behind it is explained in why a triangle takes half the base times the height.
A proof you can see
Draw through P three lines, each parallel to one side. Around P you now find three small equilateral triangles, one resting on each side of the large one, together with three parallelograms.
The height of the small triangle resting on a side is the distance from P to that side. The bases of the three small triangles, together with the sides of the parallelograms, show that the three small side lengths add to s. Since height is proportional to side in any equilateral triangle, the three heights add to h.
Now each small triangle can be slid and turned so that the heights stack end to end along one altitude. A classroom model made of card makes the stacking very convincing. For the height formula itself, see equilateral triangle height and area.
Worked numbers
An equilateral triangle has side 10. Its height is 5√3 ≈ 8.66. A point inside is 2 units from one side and 3 units from a second. How far is it from the third?
d₃ = 5√3 − 2 − 3 ≈ 3.66 Since the result is positive, such a point exists inside. If you had been told the distances to two sides were 5 and 6, their sum would already exceed the height, so no inside point has them.
The special positions
| Position of P | Distances to the sides | Sum |
|---|---|---|
| Center | h/3, h/3, h/3 | h |
| Midpoint of a side | 0, h/2, h/2 | h |
| A corner | 0, 0, h | h |
| On a side, one quarter along | 0, h/4, 3h/4 | h |
At the center all three distances equal one third of the height, which matches the fact that the centroid lies one third of the way up each median.
Outside the triangle
Let P cross one side to the outside. The triangle on that base now overlaps the other two instead of fitting beside them, so its area must be subtracted. If you count that distance as negative, the equation d₁ + d₂ + d₃ = h survives unchanged.
For example, with h = 8.66, a point 1 unit beyond one side has d₁ = −1, so the other two signed distances add to 9.66. With unsigned distances the sum would be larger than h. In fact the unsigned sum equals h inside and on the triangle, and exceeds h everywhere outside.
The converse
Suppose a triangle has the property that the sum of the three distances is the same for every inside point. Then the triangle is equilateral.
Place P near one corner. The sum is then close to the altitude from that corner, because the other two distances almost vanish. Doing this at all three corners shows that the three altitudes are equal. Since area is half of each side times its altitude, equal altitudes force equal sides.
It follows that in a scalene triangle the sum varies from point to point. It is smallest at the corner with the shortest altitude, which is opposite the longest side.
The isosceles cousin
Drop one equal side and part of the theorem survives. Let AB = AC, and put P anywhere on the base BC. Join P to A. The two small triangles PAB and PAC fill the whole, and their bases AB and AC are equal.
area = AB·d_AB / 2 + AC·d_AC / 2
so d_AB + d_AC = 2·area / AB The right side is the altitude drawn to a leg. So the distances from a base point to the two equal sides add to a constant.
Example. A triangle with sides 5, 5 and 6 has area 12. For every point on the side of length 6, the distances to the two sides of length 5 add to 24/5 = 4.8. At the midpoint they are 2.4 each. At an end of the base they are 0 and 4.8.
An equilateral triangle is isosceles in three ways at once, which is another route to seeing why its property holds so widely.
Beyond the equilateral triangle
The same area argument works for any polygon whose sides are all equal: the distances to the side lines from an inside point of a convex polygon satisfy s·(sum of distances)/2 = area. So the sum is constant in every convex equilateral polygon, including a rhombus.
It also holds in every equiangular polygon, even with unequal sides. A rectangle is the clearest case: the two distances to one pair of sides add to the width, and the other two add to the height. A parallelogram has the property too, for the same reason.
For a regular polygon with n sides, the sum is n times the apothem, the distance from the center to a side. In three dimensions, a regular tetrahedron has a constant sum of distances to its four faces, equal to its height, by splitting it into four pyramids.
A broken stick puzzle
Break a stick of length h at two random places. What is the chance the three pieces form a triangle?
Treat the three pieces as the three distances from a point in an equilateral triangle of height h. Each possible set of pieces is one point. A triangle can be formed only if every piece is shorter than half the stick, because of the rule for three lengths.
The condition "every distance less than h/2" picks out the central triangle formed by joining the midpoints of the sides. It has one quarter of the area. When the two break points are chosen independently and uniformly, the points are spread evenly over the big triangle, so the probability is 1/4. Other ways of breaking the stick give other answers, so the method of choosing must be stated.
Triangle charts
Because three distances always add to the same total, a point in an equilateral triangle can display any three non-negative parts of a whole. Soil scientists use such a chart for percentages of sand, silt and clay, and chemists and geologists use it for three-part mixtures.
A sample with 40 percent sand, 35 percent silt and 25 percent clay sits at distances 0.40h, 0.35h and 0.25h from the three sides assigned to those components. Charts are labeled with differing conventions, so read the arrows on the axes before reading a value. The weights involved are the barycentric coordinates of the point.
The shortest network connection
Viviani's theorem gives a tidy proof about the point F inside a triangle from which all three sides appear under 120°, which exists when every angle of the triangle is less than 120°. Through each corner, draw the line perpendicular to the segment from F. Those three lines form an equilateral triangle.
For F, the distances to its sides are the three segments to the original corners, so their sum equals the new height. For any other point Q inside, each distance to a side is no longer than the segment from Q to the corner lying on that side. So the sum from Q to the corners is at least the height. Thus F gives the smallest total, which is the Fermat point property.
Common mistakes
- Measuring distances to the corners instead of perpendicular distances to the sides.
- Applying the constant sum to an isosceles triangle. There only the two distances to the equal legs have a constant sum, and only for points on the base.
- Forgetting the sign rule outside the triangle.
- Assuming that equal sums mean equal individual distances. Only the total is fixed.
To explore, draw an equilateral triangle with side 12 cm, mark several points, measure the perpendiculars with a set square and compare each sum with the height, 6√3 or about 10.4 cm. Expect differences of a millimeter or so from drawing error, and notice that they do not grow or shrink in any pattern as the point moves.