Regular Polygon Calculator: Pentagon, Hexagon, Octagon

Enter the number of sides and the side length for a regular polygon’s area, perimeter, interior angle, diagonals, apothem and circumradius.

Your details

Your data stays in your browser

Result

Enter the number of sides and the side, then press “Calculate”.

Analysis and suggestions

Once calculated, this shows what your result means and suggestions based on your numbers.

Behind the result

Enter all lengths in one unit (cm, m or any other); lengths come out in that unit and areas in its square.

Example · المساحة = ن × ل² ÷ (4 × ⁦ظا(180° ÷ ن)⁩) | الزاوية الداخلية = (ن − 2) × 180° ÷ ن | الأقطار = ن(ن − 3) ÷ 2

6 × 4² / (4 tan(180°/6)) = 41.5692

How it is calculated

Comprehensive Calculator Guide

This regular polygon calculator finds the area of any polygon with equal sides and angles from its number of sides and side length: pentagon, hexagon, octagon and the rest. It also gives the perimeter, interior angle, angle sum, number of diagonals, apothem and circumradius. A regular hexagon with side 4 has an area of about 41.57 and 120° angles.

Area from triangles

Join the centre to the vertices and the polygon splits into as many identical triangles as it has sides. Each triangle’s height is the apothem, so area = ½ × perimeter × apothem = n × s² ÷ (4 × tan(180° ÷ n)).

The hexagon is special: its six triangles are equilateral, so its area is (3√3 ÷ 2) × s² ≈ 2.598 × s².

Angles and diagonals

The interior angles add to (n − 2) × 180°, so each is 108° in a pentagon, 120° in a hexagon and 135° in an octagon. The exterior angles always add to 360°.

The number of diagonals is n(n − 3) ÷ 2: 5 for a pentagon, 9 for a hexagon, 20 for an octagon.

How to Use

  1. Enter the number of sides: 5 for a pentagon, 6 for a hexagon, 8 for an octagon.
  2. Enter the side length.
  3. Press “Calculate” to see the area, angles and diagonals.

Formula Used

Area = n × s² ÷ (4 × tan(180° ÷ n)) | Interior angle = (n − 2) × 180° ÷ n | Diagonals = n(n − 3) ÷ 2

Practical Examples

Example 1: hexagon, side 4
Area ≈ 41.57, perimeter 24, angle 120°, 9 diagonals, circumradius 4, equal to the side.
Example 2: pentagon, side 10
Area ≈ 172.05, angle 108°, angle sum 540°, 5 diagonals.
Example 3: octagon, side 5
Area ≈ 120.71, angle 135°, 20 diagonals; the stop-sign shape.

Important Tips

  • If you know a hexagon’s width across the flats, the side is that width ÷ √3.
  • The exterior angle is 360° ÷ n, the quickest route to the interior angle.
  • The more sides, the closer the area gets to the circumscribed circle’s.

Common Mistakes to Avoid

  • Using the formula on an irregular polygon with unequal sides.
  • Taking tan(180 ÷ n) in radian mode.
  • Confusing the apothem (to the middle of a side) with the circumradius (to a vertex).

Frequently Asked Questions

How do I find the area of a hexagon?
About 2.598 × side²; a hexagon with side 4 has an area of about 41.57.
What is the angle of a regular pentagon?
108°, with an angle sum of 540°.
How many diagonals does a polygon have?
n(n − 3) ÷ 2, so an octagon has 20.

Read Also

Results are estimates for educational purposes and may vary depending on your situation and data sources.