Regular Polygon, Ellipse and Triangle Calculator
Enter a polygon's number of sides and side length, an ellipse's semi-axes, a triangle's three sides and a circle radius to get areas, perimeters, radii and angles.
Runs in your browser. Your files never leave your device. See how to check
…
How to do it
- 1Enter the polygon
Number of sides and side length.
- 2Enter the ellipse
Semi-axes a and b.
- 3Enter the triangle
Three side lengths.
- 4Enter a circle radius
For circle values.
- 5Read the results
Areas, perimeters, radii and angles.
About this tool
Some plane shapes have surprisingly tricky formulas. A regular hexagon's area needs trigonometry, an ellipse's perimeter has no exact elementary formula at all, and a triangle known only by its sides needs Heron's formula. This calculator handles these classic cases in one place, with the extra values often needed in design and homework: inradius and circumradius, interior angles, diagonals and eccentricity.
Who this is for
Students, teachers, designers, woodworkers, tilers and engineers.
Regular polygons
For n sides of length s: - area = n s² / (4 tan(π/n)), - inradius (apothem) = s / (2 tan(π/n)), - circumradius = s / (2 sin(π/n)), - interior angle = (n − 2) × 180° / n, - number of diagonals = n(n − 3)/2. A regular hexagon with 5 cm sides has an area of 64.95 cm² and its circumradius equals its side.
Ellipses
Area is simply πab. The perimeter requires an elliptic integral; Srinivasa Ramanujan's second approximation, P ≈ π(a + b)(1 + 3h/(10 + √(4 − 3h))) with h = ((a − b)/(a + b))², is extremely accurate. Eccentricity e = √(1 − b²/a²) measures how flat the ellipse is.
Triangles from three sides
Heron's formula: area = √(s(s − a)(s − b)(s − c)) with s the semi-perimeter. The inradius is area/s and the circumradius abc/(4 × area). Angles follow from the law of cosines. The sides must satisfy the triangle inequality.
Circles
Area πr², circumference 2πr, diameter 2r.
Practical uses
- Hexagonal pavers and tiles: area per tile from the side length. - Elliptical tables and garden beds: edging length from the perimeter. - Plots of land measured by their sides: area by Heron.
Good practice
Use one length unit; areas come out in that unit squared. For irregular polygons, split into triangles and use Heron for each.
Polygons in nature and design
Honeycomb cells are regular hexagons because hexagons tile the plane with the least perimeter for a given area. Octagons appear in stop signs and gazebos, pentagons in footballs combined with hexagons.
How close is a polygon to a circle?
As n grows, a regular polygon approaches its circumscribed circle. A 100-sided polygon already has 99.93 % of the circle's area, which is how Archimedes estimated π with 96-sided polygons.
Tiling
Only triangles, squares and hexagons tile a floor on their own; their interior angles (60°, 90°, 120°) divide 360° exactly.
Worked example
A regular hexagon with side 5 has area 64.95, inradius 4.33 and interior angles of 120°, with 9 diagonals. An ellipse with semi-axes 5 and 3 has area 47.12 and perimeter 25.527. A 3-4-5 triangle has area 6, inradius 1 and circumradius 2.5, with a right angle.
Limits
Ideal Euclidean shapes; not a land-survey tool or official measurement.
Worked example
A 5-3 ellipse has a perimeter of 25.527 by Ramanujan's formula.
Quick facts
- Category: Math & Science
- Works in your browser, no sign-up, no upload.
- Your input stays on your device.
- Available in English.
- Content last reviewed:
- Official source: Regular polygon A = ns²/(4 tan(π/n)), inradius and circumradius, interior angle (n − 2)·180°/n, diagonals n(n − 3)/2; ellipse area πab and Ramanujan's second perimeter approximation (error about 10⁻⁵ for moderate eccentricity); Heron's formula with in- and circumradius (CRC Standard Mathematical Tables)
Frequently asked questions
How do I find the area of a regular hexagon?
n s²/(4 tan(π/n)), or (3√3/2)s² for a hexagon.
Is there an exact formula for an ellipse's perimeter?
No elementary one; Ramanujan's approximation is extremely accurate.
What is Heron's formula?
Area = √(s(s − a)(s − b)(s − c)) with s half the perimeter.
What is an apothem?
The inradius of a regular polygon.
How many diagonals does a polygon have?
n(n − 3)/2.
Is my data stored?
No. Everything is calculated in your browser.
