Interior Angle Calculator
Enter the number of sides of a regular polygon to get each interior angle, or enter an interior angle to recover the number of sides.
What this calculator does
Enter the number of sides of a regular polygon and the calculator returns the interior angle at each vertex, in degrees. It also runs in reverse: enter an interior angle and it recovers how many sides the polygon must have. Both directions rely on the same two facts — the angle sum of an n-sided polygon, and the fixed 360-degree turn total around any closed shape.
The formula: angle sum divided by the sides
Any polygon with n sides can be split into n − 2 triangles by drawing diagonals from one vertex. Each triangle contributes 180 degrees, so the interior angles of the whole polygon total (n − 2) × 180 degrees. In a regular polygon all n angles are equal, so dividing that total by n gives each individual angle.
The n in the formula is the number of sides, which equals the number of vertices and the number of angles. A pentagon has n = 5, a hexagon n = 6, and so on — substituting the number of diagonals, triangles, or anything else for n is the most common way this calculation goes wrong.
The angle climbs toward 180 degrees
A triangle has 60-degree interior angles, a square 90, a pentagon 108, a hexagon 120. Each added side pushes the angle up, but by a smaller amount each time: four sides add 30 degrees over the triangle, the fifth adds 18, the sixth adds 12. The angle approaches 180 degrees as a limit but never reaches it, which is why a regular polygon with very many sides looks like a circle while remaining technically flat-sided.
Worked example with the defaults
The calculator loads with a regular hexagon, n = 6. The angle sum is (6 − 2) × 180 = 720 degrees, and each interior angle is 720 ÷ 6 = 120 degrees. Cross-check with the exterior angle: each exterior angle is 360 ÷ 6 = 60 degrees, and 60 + 120 = 180, as supplementary angles must.
Working backward uses the exterior angle. Given an interior angle, the exterior angle is 180 − that value, and the number of sides is 360 ÷ (180 − angle). An interior angle of 135 degrees implies an exterior angle of 45, and 360 ÷ 45 = 8 sides — a regular octagon. An interior angle of 150 degrees gives 360 ÷ 30 = 12 sides, a dodecagon. The regular pentagon answers to 108 degrees (360 ÷ 72 = 5) and the decagon to 144 degrees (360 ÷ 36 = 10), so the common polygons can be identified from their angles alone.
Interior angles by number of sides
| Sides | Angle sum | Each interior angle |
|---|---|---|
| 3 | 180° | 60° |
| 4 | 360° | 90° |
| 5 | 540° | 108° |
| 6 | 720° | 120° |
| 8 | 1080° | 135° |
| 10 | 1440° | 144° |
| 12 | 1800° | 150° |
Each angle-sum entry is (n − 2) × 180, and each per-angle entry is that sum divided by n, so any row of the table can be regenerated from the formula if you need a side count not listed. Note the handy coincidence that a decagon has interior angles of 144 degrees — numerically equal to its angle sum in units of 10 — and that the per-angle column rises in ever smaller steps: 30, 18, 12, 9, and 6 degrees as sides are added.
Solving for the number of sides
Rearranging the formula gives n = 360 ÷ (180 − interior angle). The subtraction converts the interior angle to its exterior partner, which must divide evenly into 360 for a regular polygon to exist. If your angle produces a fractional side count — say an interior angle of 140 degrees, which implies 360 ÷ 40 = 9 but an angle of 142 implies about 6.26 — the shape you measured is not regular, and the calculator’s rounded answer flags the mismatch.
What about irregular polygons?
The angle-sum rule (n − 2) × 180 degrees holds for every simple polygon, regular or not. What fails for irregular shapes is the division step: their individual angles differ, so no single per-angle value exists. This calculator assumes equal sides and equal angles, which is what the regular qualifier means.
Common mistakes
- Reading n as the number of diagonals or triangles instead of the number of sides — the formula uses sides only.
- Reporting the angle sum (n − 2) × 180 as if it were a single angle; a hexagon sums to 720 degrees but each angle is 120.
- Dividing 180 by n directly, which ignores the n − 2 triangle count and gives 30 degrees for a hexagon instead of 120.
- Forgetting the 180 − angle subtraction when working backward from an interior angle to a side count.
- Applying the equal-division step to an irregular polygon whose angles are not actually equal.
Frequently asked questions
What is the interior angle of a regular polygon?
Subtract two from the number of sides, multiply by 180, then divide by the number of sides. For n = 6 that is 720 ÷ 6 = 120 degrees.
What is the interior angle of a hexagon?
A regular hexagon has six sides, so each interior angle is (6 − 2) × 180 ÷ 6 = 120 degrees, and the six angles total 720 degrees.
Can I find the number of sides from the angle?
Yes. Divide 360 by the difference between 180 and the interior angle. An angle of 135 degrees gives 360 ÷ 45 = 8 sides, a regular octagon.
What is the interior angle of a pentagon?
(5 − 2) × 180 ÷ 5 = 540 ÷ 5 = 108 degrees. Its exterior angle is the supplement, 72 degrees.
Why does the formula use n minus 2?
Diagonals from one vertex split an n-sided polygon into n − 2 triangles, each worth 180 degrees, so that product is the total angle budget to share among the n vertices.
What happens to the angle as sides increase?
It rises toward 180 degrees in shrinking steps: 30 degrees per added side around the square, but only 6 degrees per side by the time you reach a dodecagon at 150 degrees.
Is the angle sum the same for irregular polygons?
Yes, (n − 2) × 180 degrees holds for any simple polygon. Only the equal-division step requires the polygon to be regular.
Can a regular polygon have an interior angle of 140 degrees?
Yes. The exterior angle is 180 − 140 = 40 degrees, and 360 ÷ 40 = 9, so a 140-degree interior angle belongs to a regular nonagon. An angle such as 142 degrees, however, yields a fractional side count of about 6.26 and no regular polygon exists for it.
How do interior and exterior angles relate?
They add to 180 degrees at every vertex. A hexagon pairs 120-degree interior angles with 60-degree exterior angles, and the exterior angles always total 360.
Method and sources
- Interior angle of a regular polygon: (n − 2) × 180 / n.