Shapes & spaces

Regular polygon sides from interior angle calculator

Recover the integer number of sides implied by the interior angle of a regular polygon.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

The exterior turn is 180° minus the interior angle. A full walk around a convex regular polygon turns through 360°.

THE FORMULAn = 360/(180−θ)

A worked example

A 150° interior angle corresponds to a 30° exterior turn, so the polygon has 12 sides.

Good to know

The angle must describe a regular polygon with at least three sides.

Recover the side count from the exterior turn

For a convex regular polygon, each exterior turning angle is 180 degrees minus its interior angle θ. Walking once around the boundary accumulates a full turn of 360 degrees. Equal turns therefore satisfy n(180 − θ) = 360, giving n = 360/(180 − θ).

The default interior angle is 150 degrees. Its exterior turn is 30 degrees, so twelve equal turns close the boundary and the polygon has twelve sides. The SVG separates the interior 150-degree angle from the supplementary 30-degree turn at one vertex.

A hundred-and-fifty-degree interior angle leaves a thirty-degree exterior turn150°30°Vertexn = 360° / 30° = 12
Twelve equal turns of 30° make 360°. This is the convex regular polygon with interior angle 150°.

Require an integer side count and a valid regular-polygon angle

An exact angle of 100 degrees would imply 4.5 sides, so it cannot describe a convex regular polygon. The calculator reports No integer side count when the implied integer fails its angle-consistency check. A regular triangle has interior angle 60 degrees, and larger regular polygons have angles approaching 180 degrees from below.

Rounded angle measurements can fail this exact test even when they came from a real regular polygon. For example, a regular heptagon has interior angle 900/7 degrees, about 128.5714286. Entering a short rounded approximation is different from specifying that exact angle. The Regular polygon diagonal count calculator can use the recovered integer n to count diagonals. As θ approaches 180 degrees, a small angle change produces a large side-count change, making precision particularly important.

A few questions, answered

Can this infer sides of an irregular polygon?

No. One interior angle is insufficient when the other angles can differ.

Why are star polygons excluded?

This tool uses the single-turn relation for a convex regular polygon. Star-polygon traversals can have different turning behaviour.

Find your calculator

Start typing to explore the library.