Regular Polygon Calculator

  • Tested against OpenStax's worked examples and 60 cases worked by an independent program with π to 120 digits
  • Checked by Wayne Bickerton
  • Sources: OpenStax
  • Updated November 11, 2026

A regular polygon has equal sides and equal angles, like a hexagon nut, an octagonal stop sign or a pentagon. Type how many sides it has and how long one side is, and you get its area, perimeter and angles, plus the distances from the center to a side and to a corner.

Area
41.5692 in² Hexagon

A regular hexagon with 4 in sides has an area of 41.5692 in².

Perimeter 24 in
Each interior angle 120°
All interior angles 720°

What is a regular polygon?

A polygon is a flat shape with straight sides. It is regular when every side is the same length and every corner the same angle. Its apothem runs from the center straight to the middle of a side, and its radius from the center to a corner. In a hexagon, the radius equals the side.

Apothem (center to the middle of a side)3.4641 in
Radius (center to a corner)4 in
Exterior angle60°
Interior angle120°

Source OpenStax · Contemporary Mathematics, 10.6 Area (area of a regular polygon) ↗

How to calculate the area of a regular polygon

A = ½ × apothem × perimeter, with apothem = side ÷ (2 × tan(180° ÷ n))

Here it is with your numbers:

  1. perimeter = 6 × 4
  2. perimeter = 24
  3. apothem = 4 ÷ (2 × tan(30°))
  4. apothem = 3.4641
  5. A = ½ × 3.4641 × 24
  6. A = 41.5692 in²

It means the hexagon covers 41.5692 in², and its 6 corners each have an angle of 120°.

Lines from the center to two neighbouring corners make a triangle with an angle of 360° ÷ n at the center. Its height is the apothem, so apothem = side ÷ (2 × tan(180° ÷ n)) and radius = side ÷ (2 × sin(180° ÷ n)).

Source OpenStax · Precalculus 2e, 5.4 Right Triangle Trigonometry ↗

Interior angles of a polygon

The interior angles of any polygon, regular or not, add up to (n − 2) × 180°, because lines from one corner split it into n − 2 triangles. In a regular polygon each angle is that sum divided by n.

ShapeEach angleAll anglesArea, side 1
Triangle60°180°0.433
Square90°360°1
Pentagon108°540°1.7205
Hexagon120°720°2.5981
Heptagon128.5714°900°3.6339
Octagon135°1,080°4.8284
Nonagon140°1,260°6.1818
Decagon144°1,440°7.6942
Dodecagon150°1,800°11.1962

For a side other than 1, multiply the area by the side squared.

Source OpenStax · Contemporary Mathematics, 10.4 Polygons, Perimeter, and Circumference (interior and exterior angles) ↗

FAQs

How do I find the area of a 6-sided shape?

For a regular hexagon, area = ½ × apothem × perimeter, where the apothem is the distance from the center to the middle of a side. With 4 cm sides, the apothem is 2√3 and the perimeter 24, so the area is 24√3, which is 41.5692 cm².

Source OpenStax · Contemporary Mathematics, 10.6 Area (area of a regular polygon) ↗

How do I calculate interior angles?

The interior angles of any polygon with n sides add up to (n − 2) × 180°. In a regular polygon they are all equal, so each is (n − 2) × 180° ÷ n: 135° in an octagon, 120° in a hexagon.

Source OpenStax · Contemporary Mathematics, 10.4 Polygons, Perimeter, and Circumference (interior and exterior angles) ↗

Are all polygons’ interior angles 360°?

No, only four-sided ones. The sum is (n − 2) × 180°: 180° for a triangle, 360° for a quadrilateral, 540° for a pentagon. It is the exterior angles, one at each corner, that always add up to 360°.

How do you find the angles of a polygon?

Count the sides. Each interior angle of a regular polygon is (n − 2) × 180° ÷ n and each exterior angle is 360° ÷ n, so a regular pentagon has 108° inside and 72° outside each corner.

Sources

Related calculators