Polygon Interior Angle Calculator
This free interior angles of a polygon calculator answers every common angle question in one place. Enter the number of sides to get the sum of the interior angles, each angle of a regular polygon, the exterior angle, and the number of diagonals. You can also find a missing angle, work out how many sides a regular polygon has from one angle, or enter the corners of an irregular shape and see every interior angle marked on a drawing.
What Are the Interior Angles of a Polygon?
An interior angle is the angle on the inside of a polygon where two sides meet. A triangle has 3 interior angles, a square has 4, a pentagon has 5, and so on: a polygon always has as many angles as sides.
The angle on the outside, between one side and the extension of the next side, is the exterior angle. At every corner, the interior and exterior angles add up to 180°, because together they form a straight line.
A polygon is convex if every interior angle is less than 180°. If at least one angle is more than 180° (a corner that points inward, like the inside corner of an L), the polygon is concave, and that angle is called a reflex angle.
How to Use the Calculator
The calculator has four tabs, one for each common question:
- Number of sides: enter how many sides the polygon has. You get the sum of the interior angles, each interior and exterior angle of a regular polygon, the sum in radians, and the number of diagonals.
- Find a missing angle: enter the number of sides and the angles you already know. If one angle is missing, you get its exact value. If several are missing, you get what they add up to.
- Angles from coordinates: enter the x, y position of each corner of any shape, regular or irregular. The calculator works out every interior angle, marks them on a drawing, and tells you if the shape is convex or concave.
- Sides from one angle: enter one interior or exterior angle of a regular polygon to find how many sides it has.
Every tab has a “Try an example” button and a “Show step-by-step working” panel.
The Formulas Behind the Calculator
Sum of the interior angles
Any polygon with n sides can be split into (n − 2) triangles by drawing lines from one corner. Each triangle’s angles add up to 180°, so:
Sum of interior angles = (n − 2) × 180°
This works for every polygon, regular or irregular, convex or concave.
Each angle of a regular polygon
In a regular polygon all sides and angles are equal, so each one is the sum divided by n:
Each interior angle = (n − 2) × 180° ÷ n
Each exterior angle = 360° ÷ n
The exterior angles of any convex polygon always add up to 360°.
Missing angle
Missing angle = (n − 2) × 180° − (sum of the known angles)
Number of sides from an angle
Turning the exterior angle formula around:
n = 360° ÷ Exterior angle = 360° ÷ (180° − Interior angle)
If the answer isn’t a whole number, no regular polygon has that angle.
Number of diagonals
Diagonals = n × (n − 3) ÷ 2, since each corner connects to every other corner except itself and its two neighbors, and each diagonal is counted twice.
Worked Example 1: The Angles of a Hexagon
A hexagon has 6 sides.
- Sum of interior angles = (6 − 2) × 180° = 720°
- Each interior angle (regular) = 720° ÷ 6 = 120°
- Each exterior angle = 360° ÷ 6 = 60° (and 120° + 60° = 180° ✓)
- Diagonals = 6 × 3 ÷ 2 = 9
This is why honeycomb cells fit together perfectly: three 120° angles meet at each point to make 360°.
Worked Example 2: Finding a Missing Angle
A pentagon has four known angles: 100°, 110°, 95°, and 120°. What is the fifth?
- Sum for a pentagon = (5 − 2) × 180° = 540°
- Known angles = 100 + 110 + 95 + 120 = 425°
- Missing angle = 540° − 425° = 115°
Worked Example 3: Angles of an Irregular Room From Its Corners
A room has five corners at (0,0), (16,0), (16,10), (12,14), and (0,14). One corner is cut off by an angled wall.
| Corner | Interior angle |
|---|---|
| P1 (0, 0) | 90° |
| P2 (16, 0) | 90° |
| P3 (16, 10) | 135° |
| P4 (12, 14) | 135° |
| P5 (0, 14) | 90° |
| Sum | 540° |
The angled wall creates two 135° corners, and the total matches the 540° every pentagon must have. All angles are under 180°, so the room is convex. These are the numbers behind the “Try an example” button on the coordinates tab.
An L-shaped room (six corners) gives five 90° angles and one 270° reflex angle at the inside corner, for a total of 720°, the sum for any hexagon.
Worked Example 4: How Many Sides Does It Have?
Each interior angle of a regular polygon is 140°.
- Exterior angle = 180° − 140° = 40°
- Number of sides = 360° ÷ 40° = 9, so it’s a nonagon
If the angle were 130°, you’d get 360 ÷ 50 = 7.2, which isn’t a whole number, so no regular polygon has 130° angles.
Interior Angles Table (3 to 12 Sides)
| Polygon | Sides | Sum of interior angles | Each interior angle (regular) | Each exterior angle (regular) | Diagonals |
|---|---|---|---|---|---|
| Triangle | 3 | 180° | 60° | 120° | 0 |
| Quadrilateral | 4 | 360° | 90° | 90° | 2 |
| Pentagon | 5 | 540° | 108° | 72° | 5 |
| Hexagon | 6 | 720° | 120° | 60° | 9 |
| Heptagon | 7 | 900° | 128.57° | 51.43° | 14 |
| Octagon | 8 | 1,080° | 135° | 45° | 20 |
| Nonagon | 9 | 1,260° | 140° | 40° | 27 |
| Decagon | 10 | 1,440° | 144° | 36° | 35 |
| Hendecagon | 11 | 1,620° | 147.27° | 32.73° | 44 |
| Dodecagon | 12 | 1,800° | 150° | 30° | 54 |
Each extra side adds exactly 180° to the total.
Regular vs Irregular Polygons
- In a regular polygon, every side is the same length and every angle is the same size, so you can divide the total by n to get each angle.
- In an irregular polygon, the sides and angles differ. The total is still (n − 2) × 180°, but the individual angles can be anything that adds up to it. To find each one, use the “Angles from coordinates” tab.
Our guide to regular vs irregular shapes explains the difference in more detail.
Tips and Common Mistakes
- Count sides carefully. The most common error is using the wrong n, especially for shapes with short sides or bumps.
- Don’t divide by n for irregular shapes. “Each angle = sum ÷ n” only works for regular polygons.
- Remember reflex angles. An inward-pointing corner has an interior angle greater than 180°, and it still counts toward the total.
- Enter corners in order on the coordinates tab, going around the shape in one direction.
- Check your total. If your angles don’t add up to (n − 2) × 180°, one of them is wrong or you’ve miscounted the sides.
Related Calculators
- Irregular Polygon Area Calculator: the area of the same shape from its corners
- Irregular Hexagon Area Calculator and Irregular Octagon Area Calculator
- Area Formulas for All Shapes: a quick reference guide
- Regular vs Irregular Shapes: how the two types differ

3 Comments