Polygon Interior Angle Calculator: How to Use It, Formula, and Example

A triangle’s angles add up to 180 degrees, and a square’s add up to 360 degrees. After that, most people lose track. A pentagon adds up to 540 degrees, a hexagon to 720 degrees, and an octagon to 1,080 degrees. The pattern is simple once you see it, and the calculator in this guide works it out for you. The Polygon Interior Angle Calculator takes the number of sides and returns the sum of the interior angles, each interior angle of a regular polygon, each exterior angle, and the number of diagonals. It also finds a missing angle in an irregular polygon, if you enter the angles you already know.
What is the Polygon Interior Angle Calculator?
The Polygon Interior Angle Calculator is a free online tool on IrregularShapeCalc.com. There is no download, and no limit on how many polygons you can check. A polygon is a closed shape made of straight sides. A triangle has 3 sides, a quadrilateral has 4, a pentagon has 5, a hexagon has 6, and an octagon has 8. The interior angles are the angles inside the shape, at each corner, between two sides that meet there. The calculator is useful in two situations. The first is a regular polygon, where every side and every angle is the same. For a regular polygon, you only need the number of sides, and the calculator finds the sum of the angles and the size of one interior angle. The second is an irregular polygon, where the angles are not all equal. There, you enter the angles you know, and the calculator finds the missing one. That fixed total is the key idea. No matter how you stretch or squash a pentagon, as long as its sides do not cross, its five interior angles always add up to the same total. Once you know the total, a missing angle is just a subtraction.
How to use the calculator, step by step
1. Choose what you want to find. Decide whether you are working with a regular polygon, where all the angles are equal, or an irregular polygon, where you know some angles and need the missing one.
2. Enter the number of sides. Type the number of sides, called n. It must be a whole number of 3 or more. A triangle is 3, a pentagon is 5, and an octagon is 8.
3. For a regular polygon, calculate at once. With only the number of sides entered, the calculator can give you the sum of the interior angles and the size of one interior angle.
4. For an irregular polygon, enter the angles you know. Type each known interior angle in degrees, one per field, in order around the shape. Leave the unknown angle blank.
5. Press Calculate. The calculator works out the sum of the interior angles first, then the answer you asked for.
6. Read all of the results. Along with the main answer, check the sum of the interior angles and the exterior angle, if the tool shows it.
7. Check the answer. Add your known angles and the missing angle together. The total should match the sum shown.
The formula behind the calculator
The whole calculator rests on one formula, the interior angle sum formula: Sum of interior angles = (n – 2) x 180°. The reason for the n – 2 is easy to see. Pick one corner and draw diagonals from it to every other corner it is not already joined to. Those diagonals split the polygon into triangles, and there are always two fewer triangles than sides. A pentagon splits into 3 triangles, a hexagon into 4, and an octagon into 6. Each triangle has angles that add up to 180 degrees, so the polygon total is the number of triangles times 180 degrees. From that total, the other formulas follow. For a regular polygon, every interior angle is the same, so divide the total equally: Each interior angle (regular polygon) = (n – 2) x 180° / n. The exterior angles of any polygon always add up to 360 degrees, so for a regular polygon each exterior angle is: Each exterior angle (regular polygon) = 360° / n. The interior and exterior angles at the same corner sit on a straight line, so they always add up to 180 degrees. For an irregular polygon, the missing angle is the total minus the angles you know: Missing angle = (n – 2) x 180° – Sum of known angles.
Worked example: a regular octagon
Suppose you need one interior angle of a regular octagon, the eight-sided shape used in stop signs, tiles, and garden planters. Here n is 8, and every angle is equal.
| Step | Calculation | Result |
|---|---|---|
| Number of triangles | n – 2 = 8 – 2 | 6 triangles |
| Sum of interior angles | 6 x 180° | 1,080° |
| Each interior angle | 1,080° / 8 | 135° |
| Each exterior angle | 360° / 8 | 45° |
| Check at one corner | 135° + 45° | 180° |
So a regular octagon has interior angles that add up to 1,080 degrees, each interior angle is 135 degrees, and each exterior angle is 45 degrees. The check confirms the result, because the interior and exterior angles at one corner add up to a straight line, 180 degrees. It also works for an irregular polygon. Suppose you measured four angles of a pentagon and got 90, 110, 120, and 95 degrees. The pentagon total is (5 – 2) x 180°, which is 540°. The known angles add up to 415 degrees, so the missing angle is 540° – 415°, which is 125°.
Common uses
- School geometry — check homework on polygons, practise the sum formula, and find missing angles.
- Tiling and flooring — work out the corner angle of a hexagonal or octagonal tile so the pattern meets neatly.
- Woodwork and frames — find the mitre angle for a polygonal frame, planter, or display case.
- Building and surveying — check that the measured corners of a plot or room add up to the total they should.
- Design and crafts — plan a regular polygon for a logo, quilt block, garden bed, or decoration.
Tips for an accurate result
- Count the sides carefully. The most common mistake is counting a shape as a hexagon when it has seven sides.
- Use interior angles, not exterior angles. An interior angle is measured inside the shape.
- Keep every angle in degrees. Do not mix degrees and radians in the same calculation.
- Remember that the total only works for a simple polygon. The sides must not cross each other. A star shape follows different rules.
- Add the angles back together as a check. The angles you enter plus the missing angle should equal (n – 2) x 180 degrees.
Frequently asked questions
Try the calculator
Ready to find your own angle? Open the free Polygon Interior Angle Calculator, enter the number of sides, and get the sum of the interior angles, each interior angle, and the missing angle in seconds.






