Skip to content

Regular Polygon Calculator (Pentagon, Hexagon, Any n-gon)

Find the area, perimeter, side, circumradius, apothem and angles of any regular polygon from one measurement, or the area of any polygon from its corners.

Calculator Details

Area of the regular hexagon:64.951905See results ↓

A regular polygon (equal sides and angles) or any polygon from its corner coordinates

3 for a triangle, 5 for a pentagon, 6 for a hexagon…

Side length, circumradius (centre to corner), apothem (centre to side), perimeter or area

In any length unit (area in that unit squared)

Your Results

Area of the regular hexagon: 64.951905

Area of the regular hexagon

64.951905

Side 5, perimeter 30

Circumradius R (centre to corner)

5

Apothem a (centre to side)

4.330127

Interior angle

120°

Sum 720°

Exterior and central angle

60°

Diagonals

9

Shape

A regular hexagon (6 sides)

A regular hexagon with side 5 has an area of 64.9519, a perimeter of 30 and interior angles of 120°.

Compare scenarios

Save these inputs as a scenario, change them, and compare the results side by side.

Loading, available in a moment

Detailed Breakdown

Measurements of the regular hexagon
QuantityValue
Sides n6
Side s5
Perimeter n·s30
Circumradius s ÷ (2 sin(π/n))5
Apothem s ÷ (2 tan(π/n))4.330127
Area ½ × perimeter × apothem64.951905
Interior angle (n − 2) × 180° ÷ n120°
Exterior angle 360° ÷ n60°
Diagonals n(n − 3) ÷ 29

How This Calculator Works

How It’s Calculated

From side length (s) = 5: s = 5

A = ¼ × n × s² × cot(π/n) = ¼ × 6 × 5² × cot(180°/6) = 64.951905

Interior angle = (6 − 2) × 180° ÷ 6 = 120°

A regular polygon splits into n identical isosceles triangles meeting at the centre, each with base s and height a (the apothem), so the area is n × ½ × s × a.

Frequently Asked Questions

How do I find the area of a regular polygon?

Use A = ¼ × n × s² × cot(180°/n), or equivalently A = ½ × perimeter × apothem. A regular hexagon with 5 cm sides has an area of 64.9519 cm². The calculator also works from the circumradius, apothem, perimeter or area.

What is the area of a hexagon?

A = (3√3 ÷ 2) × s² ≈ 2.598 × s². For s = 5 that is 64.9519. A regular hexagon is six equilateral triangles, so its circumradius equals its side and its apothem is (√3 ÷ 2) × s = 4.33013.

What is the area of a pentagon?

A = ¼ × √(5(5 + 2√5)) × s² ≈ 1.720 × s². A regular pentagon with 10 cm sides has an area of 172.048 cm², interior angles of 108° and 5 diagonals.

What are the interior angles of a polygon?

The interior angles of any polygon with n sides add up to (n − 2) × 180°. In a regular polygon they are all equal, (n − 2) × 180° ÷ n: 60° for a triangle, 90° for a square, 108° for a pentagon, 120° for a hexagon and 135° for an octagon. The exterior angles always add up to 360°.

What is the apothem?

The distance from the centre of a regular polygon to the midpoint of a side, which is also the radius of its inscribed circle. The circumradius is the distance from the centre to a corner, the radius of the circumscribed circle. For a polygon with many sides the two get very close, and the polygon approaches a circle.

How many diagonals does a polygon have?

n(n − 3) ÷ 2: each of the n corners connects to every other corner except itself and its two neighbours, and each diagonal is counted twice. A hexagon has 9, an octagon 20.

How do I find the area of an irregular polygon?

List the corners’ coordinates in order and use the shoelace formula, A = ½ |Σ (xᵢyᵢ₊₁ − xᵢ₊₁yᵢ)|. For the corners (1, 1), (5, 2), (4, 6) and (0, 4) it gives 15.5 square units. Surveyors use the same formula for land parcels.

Included: regular polygons of 3 to 1,000 sides from the side, circumradius, apothem, perimeter or area (MathWorld “Regular Polygon”), with angles and diagonal counts; and the area, perimeter and centroid of any simple polygon from up to 200 corner coordinates by the shoelace formula, with a warning when the outline crosses itself. Left out: star polygons, polygons with holes, areas on a curved surface (large land parcels in latitude and longitude) and unit conversion (all lengths in one unit you choose).

Regular Polygon Calculator: Area, Side, Apothem and Angles

By FindMySum · Last reviewed

A regular polygon has all its sides the same length and all its angles the same size: the equilateral triangle, the square, the regular pentagon and hexagon, and so on up to shapes with so many sides they look like circles. Because every regular polygon with n sides is the same shape, one measurement fixes everything else. This calculator takes any one of the side, the circumradius, the apothem, the perimeter or the area, and gives all the others with the angles and the number of diagonals. A second mode finds the area of any polygon, regular or not, from the coordinates of its corners.

The measurements

  • Side (s): the length of each edge.
  • Circumradius (R): from the centre to a corner, the radius of the circle through all the corners.
  • Apothem (a): from the centre to the middle of a side, the radius of the circle that touches every side.
  • Perimeter (P): n × s.
  • Area (A): the space inside.

The formulas

A regular polygon with n sides splits into n identical isosceles triangles that meet at the centre. Each has a base s and a height equal to the apothem, and the angle at the centre is 360° ÷ n. Half of one triangle is a right triangle with angle 180° ÷ n at the centre, which gives:

  • R = s ÷ (2 sin(180°/n))
  • a = s ÷ (2 tan(180°/n))
  • A = n × ½ × s × a = ½ × P × a = ¼ × n × s² × cot(180°/n)

And for the angles:

  • interior angle = (n − 2) × 180° ÷ n
  • exterior angle = central angle = 360° ÷ n
  • number of diagonals = n(n − 3) ÷ 2

Worked example: the default hexagon

The calculator opens with a regular hexagon of side 5.

  • Perimeter: 6 × 5 = 30
  • Circumradius: 5 ÷ (2 sin 30°) = 5. In a hexagon the circumradius equals the side, because the six central triangles are equilateral.
  • Apothem: 5 ÷ (2 tan 30°) = 4.330
  • Area: ½ × 30 × 4.330 = 64.95, the same as (3√3 ÷ 2) × 5²
  • Interior angle: 4 × 180° ÷ 6 = 120°; the six angles add up to 720°
  • Diagonals: 6 × 3 ÷ 2 = 9

Common shapes

ShapenInterior angleArea in terms of s
Equilateral triangle360°(√3 ÷ 4) s² ≈ 0.433 s²
Square490°s²
Regular pentagon5108°≈ 1.720 s²
Regular hexagon6120°(3√3 ÷ 2) s² ≈ 2.598 s²
Regular octagon8135°2(1 + √2) s² ≈ 4.828 s²
Regular decagon10144°≈ 7.694 s²

The buttons above the inputs set these shapes in one click; any number of sides from 3 to 1,000 works.

Working backwards

Often you know something other than the side. A stop sign is described by its width across the flats (twice the apothem); a hexagonal gazebo by its overall width corner to corner (twice the circumradius); a tile by its area. Choose what you know and the calculator solves for the side first, then everything else. For instance, a regular pentagon with an area of 100 has sides of 7.624 and a circumradius of 6.485.

Polygons approaching a circle

As n grows, the polygon hugs its circumscribed circle more and more closely. A regular 1,000-gon with sides of 1 has a perimeter of 1,000 and an area of 79,577.21, only 0.0003% less than a circle with circumference 1,000. Archimedes used the same idea, with 96-sided polygons inside and outside a circle, to show that π lies between 3 10/71 and 3 1/7.

Any polygon: the shoelace formula

For a shape that is not regular, such as a lot, a room or a garden bed, list the corners' coordinates in order around the outline. The shoelace formula (also called the surveyor's formula or Gauss's area formula) gives the area directly:

A = ½ |(x₁y₂ − x₂y₁) + (x₂y₃ − x₃y₂) + … + (xₙy₁ − x₁yₙ)|

The name comes from the criss-cross pattern of the multiplications when the coordinates are written in two columns. For the corners (1, 1), (5, 2), (4, 6) and (0, 4):

½ |(2 − 5) + (30 − 8) + (16 − 0) + (0 − 4)| = ½ × 31 = 15.5

The sign before taking the absolute value tells you the direction: positive for counter-clockwise, negative for clockwise. The calculator also gives the perimeter and the centroid, the balance point of the shape, and checks whether the outline crosses itself, which would make the result meaningless.

Tips

  • Keep all lengths in one unit; the area comes out in that unit squared.
  • For the shoelace mode, the corners must be in order around the shape, not in any order.
  • A shape with a hole can be handled by subtracting the hole's area from the outer outline's area.

More questions

Is a rectangle a regular polygon?

Only if it is a square. A regular polygon needs all sides equal and all angles equal; a rectangle has equal angles but not equal sides, and a rhombus has equal sides but not equal angles.

Why are honeycomb cells hexagons?

Of the three regular polygons that tile a flat surface without gaps (triangles, squares and hexagons), the hexagon encloses the most area for a given perimeter. Bees use the least wax for the most storage; Thomas Hales proved in 1999 that the hexagonal grid is the most efficient way to divide a plane into equal areas.

What is the largest angle a regular polygon can have?

Each interior angle is (n − 2) × 180° ÷ n, which gets closer to 180° as n grows but never reaches it. A regular 1,000-gon has interior angles of 179.64°, and to the eye it is a circle.

Does the shoelace formula work for concave shapes?

Yes, as long as the outline does not cross itself and the corners are listed in order around it, in either direction. It fails for self-intersecting outlines (like a figure eight), where parts of the area cancel; the calculator warns when the outline crosses itself.

How do I use the shoelace formula for a piece of land?

Measure or look up the coordinates of each corner in metres or feet on a flat map projection (such as UTM), list them in order, and enter them. For small parcels this matches the surveyed area closely; for very large regions, the Earth's curvature makes a flat formula less accurate.

Sources

This article explains how the calculator works and is general information, not financial, tax, legal or medical advice. Rules change; check the sources above or a qualified professional before you act.

Spotted a wrong result or a bug? Report a problem

May we count your visits with Invoker Analytics? It keeps a random visitor number in your browser. Your calculator inputs are never sent. Privacy policy