← GeoProof

An equilateral triangle is shown. Drag the point P anywhere inside it. From P, a perpendicular segment is drawn to each of the three sides. Viviani's theorem says the three perpendicular lengths always add up to the same total — the triangle's altitude — no matter where P sits. The three lengths and their constant total are shown live, and a stacked bar shows them filling exactly one altitude's worth. An info button opens a drawer explaining the theorem.

d₁ + d₂ + d₃ = altitude h
The three colored lengths always fill exactly one altitude — drag P to see them trade off.