Regular Polygon Calculator
Find angles, area, perimeter and diagonals of a regular convex polygon from side count and side length.
Use consistent units. Enter numbers without thousands separators. Invalid input clears all results.
Inputs and results
Choose the matching mode, then read each field label and note. Results use the same length, time, currency or quantity units as the inputs unless a label says otherwise. A negative change means a decrease.
Formula
Interior angle = 180(n-2)/n degrees; exterior angle = 360/n degrees. Diagonals = n(n-3)/2. Perimeter = ns. Area = ns²/[4 tan(π/n)].
Worked example
For a square with n=4 and side 3: interior angle 90°, exterior angle 90°, diagonals 2, perimeter 12 and area 9.
Limits and edge cases
Only regular convex polygons: every side and every interior angle is equal. n must be a whole number at least 3. Star polygons and irregular shapes are not covered. Input length at most 1e12. Decimal calculations use floating-point arithmetic; displayed values are rounded to 12 significant digits. This is an educational tool, not a guarantee about investments or physical systems.
FAQ
Is this valid for any hexagon?
No. The hexagon must be regular.
Does a triangle have diagonals?
No. n=3 gives zero diagonals.
Formula reference
Background mathematics. Explanation and examples on this page are independently written.