Calculates the area of an equilateral triangle as (√3 ÷ 4) × side². Its height is (√3 ÷ 2) × side.
An equilateral triangle has three equal sides and three angles of 60 degrees. Because its shape is completely determined, the side length alone gives you both the area and the height.
With the default side , the height is
and the area is
Drop a perpendicular from the top vertex to the base. It cuts the base in half and leaves a right triangle with hypotenuse and legs and . The Pythagorean theorem gives , so . Substituting that into yields .
The height is always shorter than the side, by a factor of . Using the side where the height belongs inflates the area. Note too that the area grows with the square of the side: double the side and the area becomes four times as large. The side must be a positive number.