Regular Polygon Calculator – Angles, Diagonals & Area

Find the interior and exterior angles, angle sum, number of diagonals, area, perimeter, apothem and circumradius of any regular polygon.

Updated · Free · Runs in your browser

Each interior angle —
Shape —
Each exterior angle —
Sum of interior angles —
Number of diagonals —
Area —
Perimeter —
Side length —
Apothem —
Circumradius —
    Was this calculator helpful?

    The formula

    Sum of interior angles = (n − 2) × 180°
    Each interior angle = (n − 2) × 180° ÷ n;  each exterior angle = 360° ÷ n
    Diagonals = n(n − 3) ÷ 2
    Apothem a = s ÷ (2 tan(180°/n));  circumradius R = s ÷ (2 sin(180°/n))
    Area = ½ × perimeter × apothem = n × s × a ÷ 2

    Worked example

    1. A regular hexagon with 10 cm sides (n = 6):
    2. Interior angle = 4 × 180 ÷ 6 = 120°; exterior angle = 60°; sum = 720°.
    3. Diagonals = 6 × 3 ÷ 2 = 9.
    4. Apothem = 10 ÷ (2 tan 30°) = 8.660 cm; circumradius = 10 cm.
    5. Area = 6 × 10 × 8.660 ÷ 2 = 259.81 cm²; perimeter = 60 cm.

    What is a regular polygon?

    A polygon is a flat shape with straight sides. In a regular polygon, every side has the same length and every interior angle is the same, like a square, an equilateral triangle, a stop-sign octagon or the hexagons of a honeycomb. Because of this symmetry, one length and the number of sides are enough to work out everything else: the angles, the area, the perimeter and the distances from the centre to the corners and edges. The angle formulas also apply to the angle sum of irregular polygons.

    Interior and exterior angles

    Any polygon with n sides can be split into n − 2 triangles from one corner, so its interior angles add up to (n − 2) × 180°. A pentagon's angles total 540° and a hexagon's 720°. In a regular polygon, each interior angle is that total divided by n. The exterior angles, formed by extending each side, always add up to 360°, whatever the number of sides, so each one is 360° ÷ n. That's why turning 60° six times takes you round a hexagon, a fact used in robotics, drawing programs and mitre cuts for picture frames.

    Counting diagonals

    A diagonal joins two corners that aren't next to each other. From each of the n corners you can draw a diagonal to n − 3 others (excluding itself and its two neighbours), and each diagonal gets counted twice, once from each end. So the total is n(n − 3) ÷ 2. A triangle has none, a square has 2, a pentagon 5, a hexagon 9 and an octagon 20. The same formula counts the number of handshakes between n people who don't shake hands with their two neighbours at a round table.

    Area, apothem and circumradius

    The apothem is the distance from the centre to the middle of a side, and the circumradius is the distance from the centre to a corner. The area is half the perimeter times the apothem, which comes from splitting the polygon into n identical triangles. As the number of sides grows, a regular polygon gets closer and closer to a circle: a 100-sided polygon with a circumradius of 1 has an area of 3.1395, very close to π. Archimedes used this idea with 96-sided polygons to estimate π accurately more than 2,000 years ago.

    Polygons in design and construction

    Regular polygons appear in tiling, architecture, gazebos, garden beds, nuts and bolts and game boards. Only triangles, squares and hexagons tile a flat surface on their own, since their interior angles divide evenly into 360°. To build a hexagonal or octagonal frame, cut each end of every piece at half the exterior angle: 30° for a hexagon and 22.5° for an octagon. Our miter angle calculator gives the cut angles for frames and crown molding.

    Star polygons

    Joining every second or third corner of a regular polygon creates star shapes such as the pentagram. Their point angles follow the same circle-based formulas.

    For shapes made of triangles, use the triangle solver, which finds every side and angle from three known values. For circles, arcs and sectors, the circle calculator handles the curved version of these formulas, and the volume calculator covers 3D shapes such as prisms, pyramids and cylinders. Combinations of these tools cover most school geometry problems.

    Frequently asked questions

    What is the interior angle of a hexagon?
    Each interior angle of a regular hexagon is 120°, and the six angles add up to 720°.
    How many diagonals does an octagon have?
    20. The formula is n(n − 3) ÷ 2, so 8 × 5 ÷ 2 = 20.
    What do the exterior angles of a polygon add up to?
    Always 360°, for any convex polygon. Each exterior angle of a regular polygon is therefore 360° ÷ n.
    How do I find the area of a regular pentagon?
    Multiply the perimeter by the apothem and halve it. For a 10 cm side, the apothem is 6.88 cm, so the area is 50 × 6.88 ÷ 2 = 172.05 cm².
    What is a 12-sided shape called?
    A dodecagon. Other names include heptagon (7), nonagon (9), decagon (10) and icosagon (20).

    ↑↓ to navigate · Enter to open