If you're designing anything with a polygon shape (bolt heads, cams, indexing plates, and so on), you'll need practical values for area, perimeter, apothem, and interior angles before you choose materials, set tolerances, or figure out how to mount the thing. This calculator gives you the basics quickly: just put in the number of sides and side length. It's directly relevant if you're sizing mechanical components, planning cutting paths on a CNC, or spacing out actuator mounts. You'll find the core formulas, a hexagon sample, some technical context, and a direct FAQ below.
What is a regular polygon?
A regular polygon is a flat shape with all sides and all interior angles equal. Classic examples: square, equilateral triangle, regular hexagon.
Simple Explanation
Picture an 8-sided stop sign: every edge and corner identical. That's a regular polygon. Because they're so predictable, you can calculate things like area, perimeter, and apothem with just the number of sides and the side length. That’s enough for most quick engineering work.
📐 Browse all 1000+ Interactive Calculators
Table of Contents
Regular Polygon Diagram
Regular Polygon Calculator
How to Use This Calculator
This calculator is intended for education, concept evaluation, and preliminary design. Results are based on the equations and assumptions described on this page, but cannot account for every real-world load case, tolerance, material property, environmental condition, installation detail, safety factor, code, or regulatory requirement. Verify all inputs, assumptions, units, and results independently before selecting components or using the result in a real application. Safety-critical, structural, medical, lifting, transportation, or regulated applications must be reviewed by a qualified engineer.
- Enter the number of sides (n) — must be a whole number, 3 or greater.
- Enter the side length (s) — any positive value in your chosen units.
- Select your unit system: Metric or Imperial.
- Click Calculate to see your result.
Calculate Regular Polygon Properties
📹 Video Walkthrough — How to Use This Calculator
Regular Polygon Properties Interactive Visualizer
Change the number of sides and side length and see how it alters area, perimeter, apothem, and angles. Useful for a quick check, or to get an intuition for how geometry scales.
AREA
1039 mm²
PERIMETER
120 mm
APOTHEM
17.3 mm
INTERIOR ANGLE
120°
FIRGELLI Automations — Interactive Engineering Calculators
Mathematical Equations
Regular Polygon Formulas
Area Formula:
Use the formula below to calculate regular polygon area.
A = ¼ns²cot(π/n)
Where: A = area, n = number of sides, s = side length, cot = cotangent function
Perimeter Formula:
Use the formula below to calculate regular polygon perimeter.
P = n × s
Where: P = perimeter, n = number of sides, s = side length
Apothem Formula:
Use the formula below to calculate the apothem.
a = s / (2 × tan(π/n))
Where: a = apothem, s = side length, n = number of sides, tan = tangent function
Interior Angle Formula:
Use the formula below to calculate the interior angle of a regular polygon.
θ = (n - 2) × 180° / n
Where: θ = interior angle, n = number of sides
Simple Example
A regular hexagon (6 sides) with a side length of 5 units:
- Area: A = ¼ × 6 × 5² × cot(30°) = 64.95 units²
- Perimeter: P = 6 × 5 = 30 units
- Apothem: a = 5 / (2 × tan(30°)) = 4.33 units
- Interior Angle: θ = (6 − 2) × 180° / 6 = 120°
Technical Guide to Regular Polygon Calculations
Regular polygons are common in engineering design work — you’ll see them in everything from parts to structures to jigs. Getting their properties right matters for jobs like strength calculations, fit checks, and toolpath planning.
Understanding Regular Polygons
A regular polygon keeps every side and every angle equal. This makes their math predictable. Get the side length and number of sides, and the formulas shown here will give you area, perimeter, apothem, and angle straight away. This is often all you need for checks and preliminary layouts.
The properties you’ll use most:
- Area: Space inside the shape.
- Perimeter: Length around the border.
- Apothem: Shortest run from the center to a side — useful in mounting or load calculations.
- Interior Angles: Angle at each corner inside the part.
Engineering Applications
You see regular polygons in mechanical parts: hex bolt heads, shaft couplings, machine tables, and more. Their shape is chosen since it's easy to manufacture, easy to grip or mount, and distributes stresses in predictable patterns. If you’re designing mounts for actuators (like bolt circles or multi-sided plates), these formulas get you the mounting envelope and load points you need for layout and stress checks.
Polygon calculations also show up when programming CNC toolpaths or checking if your design has enough space for screws, features, or clearances. If you’re on the shop floor and you need “does it fit, can the wrench fit, where do I drill,” this is the geometry you really want.
Worked Example: Hexagonal Bolt Head Design
Say you have a hex bolt head with 12mm side length:
Given:
- Number of sides (n) = 6
- Side length (s) = 12 mm
Calculations:
Area:
A = ¼ns²cot(π/n)
A = ¼ × 6 × 12² × cot(π/6)
A = ¼ × 6 × 144 × cot(30°)
A = ¼ × 6 × 144 × √3
A = 374.12 mm²
Perimeter:
P = n × s = 6 × 12 = 72 mm
Apothem:
a = s / (2 × tan(π/n))
a = 12 / (2 × tan(30°))
a = 12 / (2 × 0.577)
a = 10.39 mm
Interior Angle:
θ = (n - 2) × 180° / n
θ = (6 - 2) × 180° / 6
θ = 120°
This gives you the area (useful for stress and force checks), the perimeter (for sizing sockets and tools), and the apothem (important if you’re designing jigs or mounts to go around or inside the head).
Design Considerations
Structural Efficiency: The more sides, the closer you get to a circle, but you still get flat faces for wrenches or mounting. There’s always a balance between machining complexity and strength or grip.
Manufacturing Tolerances: The formulas assume perfect polygons, but real parts never are. Always allow for some play in angles or side lengths, especially if your design needs tight tolerances.
Load Distribution: Apothem isn’t just geometry trivia — it’s critical for knowing where the forces run through your part. It’s especially important in mounts or anything that transfers load from a central point out to the edge (think: bolt heads, wheel hubs, structural plates).
Advanced Applications in Automation
In automation, polygons show up in cams, indexing plates, and in anything that needs repeatable points around a circle. If you’re laying out actuators or rotary systems, you’ll often optimize mounting points based on polygon geometry. These calculations are practical checks: if you adjust the number of sides or side length, you’ll see tradeoffs in area, strength, and fit that matter for assembly and operation.
Optimization Techniques: Often, you’ll iterate in CAD, nudging the sides or lengths for best fit or performance, then run these numbers to make sure area and clearances work before cutting metal or specifying stock sizes.
Related Calculations
Most polygon work links with other geometry — you’ll need circle and triangle calculators, and sometimes jump into force or load distributions. The concepts here are the foundation for more complex designs, so getting these basics right will keep you out of trouble down the line.
The mathematical relationships inherent in regular polygons also apply to compound shapes and complex geometries. Understanding these fundamental calculations provides the foundation for advanced engineering analysis and design optimization.
Frequently Asked Questions
📐 Browse all 1000+ Interactive Calculators →
About the Author
Robbie Dickson
Chief Engineer & Founder, FIRGELLI Automations
Robbie Dickson brings over two decades of engineering expertise to FIRGELLI Automations. With a distinguished career at Rolls-Royce, BMW, and Ford, he has deep expertise in mechanical systems, actuator technology, and precision engineering.
Need to implement these calculations?
Explore the precision-engineered motion control solutions used by top engineers.
