Polygons, Ellipses and Triangles: Area and Perimeter Formulas
How to find a regular polygon's area, an ellipse's perimeter with Ramanujan's formula and a triangle's area from three sides, with radii and angles.

Polygons, Ellipses and Triangles: Area and Perimeter Formulas
Squares and circles are easy. But what is the area of a hexagonal tile, the perimeter of an oval table or the area of a triangular plot when only the sides are known? This guide covers three classic problems of plane geometry, and you can solve them with the polygon, ellipse and triangle calculator.
Regular polygons
A regular polygon has all sides and angles equal. For n sides of length s:
- area = n s² / (4 tan(π/n)),
- perimeter = n s,
- apothem (inradius) = s / (2 tan(π/n)),
- circumradius = s / (2 sin(π/n)),
- each interior angle = (n − 2) × 180° / n,
- number of diagonals = n (n − 3) / 2.
| Shape | Interior angle | Area for side 1 |
|---|---|---|
| Triangle | 60° | 0.433 |
| Square | 90° | 1 |
| Pentagon | 108° | 1.720 |
| Hexagon | 120° | 2.598 |
| Octagon | 135° | 4.828 |
A hexagon's circumradius equals its side, so six equilateral triangles fit inside it.
Tiling
Only equilateral triangles, squares and regular hexagons tile a plane alone, because their angles divide 360° exactly. Bees build hexagonal cells because hexagons enclose the most area for the least wall length among these.
Ellipses
An ellipse with semi-axes a and b has area πab, a beautifully simple formula. Its perimeter, however, has no exact formula in elementary functions; it needs an elliptic integral. The Indian mathematician Srinivasa Ramanujan found an approximation that is astonishingly accurate:
P ≈ π (a + b) (1 + 3h / (10 + √(4 − 3h))), with h = ((a − b) / (a + b))².
For a = 5 and b = 3 it gives 25.5270, matching the exact value to five decimal places. The simpler formula 2π√((a² + b²)/2) gives 25.91, an error of about 1.5 %.
The eccentricity e = √(1 − b²/a²) describes how stretched the ellipse is: 0 for a circle, close to 1 for a long thin ellipse.
Triangles from three sides
Heron of Alexandria gave a formula for the area of any triangle from its sides a, b and c:
s = (a + b + c) / 2, area = √(s (s − a) (s − b) (s − c)).
From the area follow the inradius (area / s) and the circumradius (abc / (4 × area)). The angles come from the law of cosines. A 3-4-5 triangle has area 6, inradius 1 and circumradius 2.5, and its largest angle is exactly 90°.
The three sides must satisfy the triangle inequality: each side shorter than the sum of the other two.
Practical uses
- Tilers estimate hexagonal tiles per square metre.
- Carpenters cut edging for oval tables and mirrors.
- Surveyors and gardeners measure irregular plots by splitting them into triangles.
- Designers draw octagonal gazebos and stop signs.
Using the calculator
- Enter the number of sides and side length of a polygon.
- Enter the semi-axes of an ellipse.
- Enter three triangle sides.
- Enter a circle radius.
- Read areas, perimeters, radii and angles.
Ellipses in the real world
Planetary orbits are ellipses with the Sun at one focus, as Kepler discovered. Whispering galleries use the reflecting property of an ellipse: sound from one focus converges on the other. Oval running tracks, by contrast, are rectangles with semicircular ends, not ellipses.
Quick checks
A regular polygon's area always lies between the area of its inscribed and circumscribed circles. If a result falls outside, check the input.
Irregular shapes
Split any polygon into triangles from one vertex and add their Heron areas. For a quadrilateral, one diagonal is enough, but you must measure it.
Limits
The formulas apply to flat Euclidean shapes. Large land areas on the Earth's curved surface need geodetic methods.


