Checking a regular polygon side count from an interior angle
If you know one interior angle of a convex regular polygon, you can count its sides. Subtract the angle from 180 degrees and divide 360 by the result.
Exterior turns add up to one full circle
Walk once around the boundary of a convex polygon and you turn at each corner by the exterior angle, the amount by which your heading changes. After the last corner you face the way you started, so the turns add to 360 degrees. In a regular polygon every corner is the same, which makes every turn the same size. The interior angle and the exterior angle at a vertex lie along a straight line, so they are supplementary and sum to 180 degrees. Put those two facts together and the number of sides is 360 divided by the exterior angle, which is 360 divided by (180 minus the interior angle).
Working the 150-degree case
Start with an interior angle of 150 degrees. The basic calculator gives the exterior turn 180 − 150 = 30. Then 360 divided by 30 is 12, so the polygon has twelve sides, a dodecagon. The reasoning has only two arithmetic steps, and each one has a clear meaning: the first converts the angle you were given into the angle you turn, the second asks how many such turns make a full circle. Because both steps use plain subtraction and division, they are also easy to repeat on paper when you want an independent check of a calculator.
Checking forward with the polygon angle tool
To confirm a recovered side count, run the formula the other way. The polygon angle calculator with n = 12 returns a regular interior angle of 150 degrees and an interior angle sum of 1,800 degrees. The sum agrees with the rule (n − 2) × 180, which is 10 × 180. A regular polygon has equal angles, so each one is 1,800 / 12 = 150. Seeing the original angle come back is the confirmation that the recovered whole number is the right one. If the forward angle differs from the one given, the subtraction or division above has an error in it.
More polygons to test the rule
An interior angle of 135 degrees gives an exterior turn of 45 and 360 / 45 = 8 sides, a regular octagon whose angle sum is 1,080. An angle of 108 degrees gives a turn of 72 and five sides, the pentagon, with sum 540. An angle of 60 degrees gives a turn of 120 and three sides, the equilateral triangle. At the other end, an angle of 170 degrees gives a turn of 10 and 36 sides, and 178 degrees gives a turn of 2 and 180 sides. As the interior angle approaches 180 degrees, the side count grows without limit and the polygon approaches a circle.
Require a valid whole side count
The recovered number must be a whole number of at least three. Take an interior angle of 100 degrees. The turn is 80, and 360 / 80 = 4.5, which cannot be a number of sides. No regular polygon has an interior angle of 100 degrees. The calculation did not fail, but it correctly reported that the angle does not belong to any regular polygon. The angles that do work are those for which 360 divided by (180 minus the angle) comes out as an integer, such as 60, 90, 108, 120, 135, 140 and 144. A side count below three has no polygon either, so anything from 0 to 2 signals bad input.
Why the angle must be below 180
An interior angle of 180 degrees makes the exterior turn zero, and dividing 360 by zero has no meaning, which fits the geometry because there is no corner. An angle above 180 degrees would describe a reflex corner, and then the formula would return a negative exterior turn and a negative side count. In a convex polygon every interior angle is less than 180. Keeping the input between 0 and 180, and in practice above 60 for a regular polygon, avoids these cases. The smallest regular interior angle is the 60 degrees of the triangle.
Convex and regular are both required
The inversion assumes the polygon is regular, so all angles are equal, and convex, so the turns all go the same way. A polygon with a single angle of 150 degrees might be irregular, with other angles of different sizes, and then its side count could be anything. A star polygon is not convex, and its turns are larger and not all the same direction in the sense used here. So when a problem gives one angle and asks for the side count, the word regular should appear in it. Without that word, the angle alone cannot determine the number of sides.
Using the result in practice
Knowing the side count lets you find other things. The sum of the interior angles follows from (n − 2) × 180, the central angle from 360 / n, and the number of diagonals from n(n − 3) / 2. For the 12-sided figure that is 1,800 degrees, 30 degrees and 54 diagonals. Tile layouts, gear teeth, bolt patterns and nuts are regular polygons or close to them, and the angle at which pieces meet determines the count. Hexagons fit around a point with three at 120 degrees, which is why 120 recovers six sides, and why a hexagonal nut has six flats. A stop sign is a regular octagon, with 135-degree interior angles, and a regular pentagon appears in the floor plan of some buildings. In each case the interior angle on the drawing leads back to the side count by the same two steps.
Measured angles and ideal polygons
The calculation describes an ideal planar polygon with straight sides and equal angles. Rounded corners, tolerances and measured angles with some error are outside it. A measured angle of 149.8 degrees would give 360 / 30.2, about 11.92, which rounds to 12 but is not exactly 12. When the angle comes from a physical measurement, round the side count to the nearest integer, then run the forward check to see whether the exact angle for that count is close to what you measured. For 12 sides the exact angle is 150 degrees, so a reading within a degree supports the count, while a reading of 143 or 157 degrees points to a different shape or a poor measurement. The model also covers only the interior angle at a vertex, so an angle measured between a side and a diagonal needs conversion first.
Reproduce the checks
Exterior turn
Open the Basic calculator and enter:
- First number
180- Operation
subtract- Second number
150
Expected output:
Result
30The two angles are supplementary.
Side count
Open the Basic calculator and enter:
- First number
360- Operation
divide- Second number
30
Expected output:
Result
12The turns complete one circuit.
Forward angle check
Open the Polygon Angle Calculator and enter:
- Index or side count
12
Expected output:
regularInterior
150sum
1800The whole side count reproduces the given angle.
References and implementation scope
The examples describe the behavior of the linked Computandum tools. A successful local check does not establish that another application accepts the same format or applies the same limits.
Sources
- MathWorld ↗ · 2026-10-08