Napoleon's Theorem
On each side of any triangle, erect an outward equilateral triangle. The three centres of those equilateral triangles always form another equilateral triangle — drag the vertices and watch it hold.
Drag the amber vertices. The three centres of the outward equilateral triangles always form a green equilateral triangle — the side lengths stay equal (230.4 ≈ 230.4 ≈ 230.4).
Napoleon’s theorem: on any triangle, erect outward equilateral triangles; the centres of those three triangles are themselves the vertices of an equilateral triangle. It holds no matter how you drag the original triangle.
What you are seeing
For each side, construct an equilateral triangle pointing outward.
Mark the centre of each of those three triangles.
Those three centres are always the vertices of a new equilateral triangle, regardless of the starting shape.
Why it matters
Napoleon’s theorem is a striking result in triangle geometry and a favourite example of emergent symmetry.
Complexity & details
Each construction is O(1); recomputing on drag is O(1).
Frequently asked questions
Does it work for any triangle?+
Yes, for every triangle, including obtuse and degenerate-adjacent ones.