Regular Polygon Calculator — Any Number of Sides

Designing a part with a hexagonal cross-section, a bolt pattern, or any symmetric multi-sided profile means you need area, perimeter, interior angles, and apothem — fast and accurately. Use this Regular Polygon Calculator to calculate key geometric properties for any polygon using just the number of sides and side length. It's essential for mechanical component design, structural engineering, and CNC machining. This page includes the formula, a worked example, full technical theory, and a FAQ.

What is a Regular Polygon?

A regular polygon is any closed shape where every side is the same length and every interior angle is equal — think equilateral triangles, squares, hexagons, and octagons. This calculator finds the area, perimeter, interior angles, and apothem for any such shape, from 3 sides up.

Simple Explanation

Imagine cutting a perfectly even shape out of sheet metal — every side exactly the same length, every corner exactly the same angle. That's a regular polygon. The more sides you add, the rounder it looks, until a polygon with hundreds of sides is nearly indistinguishable from a circle. This calculator handles all of that math so you don't have to.

📐 Browse all 1000+ Interactive Calculators

Regular Polygon Geometry Diagram

Regular Polygon Calculator   Any Number of Sides Technical Diagram

Regular Polygon Calculator

How to Use This Calculator

  1. Enter the number of sides (n) — must be a whole number, 3 or greater.
  2. Enter the side length (s) in your chosen unit.
  3. Select Metric (mm) or Imperial (in) to match your project units.
  4. Click Calculate to see your result.

📹 Video Walkthrough — How to Use This Calculator

Regular Polygon Calculator — Any Number of Sides

Regular Polygon Calculator Interactive Visualizer

Watch how changing the number of sides and side length affects area, perimeter, interior angle, and apothem in real-time. See your polygon transform from triangle to near-circle as you increase the sides.

Number of Sides (n) 6
Side Length (mm) 20 mm

AREA

1039.2 mm²

PERIMETER

120 mm

INTERIOR ANGLE

120°

APOTHEM

17.3 mm

FIRGELLI Automations — Interactive Engineering Calculators

Mathematical Equations

Primary Area Formula

Use the formula below to calculate the area of a regular polygon.

A = (ns²) / (4 tan(π/n))

Additional Formulas

Perimeter:

P = ns

Interior Angle:

θ = (n-2) × 180° / n

Apothem:

a = s / (2 tan(π/n))

Circumradius:

R = s / (2 sin(π/n))

Where: n = number of sides, s = side length, A = area, P = perimeter, θ = interior angle, a = apothem, R = circumradius

Simple Example

A regular hexagon (6 sides) with a side length of 10mm:

  • Area: (6 × 10²) / (4 × tan(π/6)) = 259.81 mm²
  • Perimeter: 6 × 10 = 60 mm
  • Interior Angle: (6−2) × 180° / 6 = 120°
  • Apothem: 10 / (2 × tan(π/6)) = 8.66 mm

Complete Technical Guide to Regular Polygons

Understanding Regular Polygon Geometry

A regular polygon calculator is an essential tool for engineers, architects, and designers working with geometric shapes that feature equal sides and equal angles. Regular polygons appear throughout mechanical engineering applications, from gear teeth and fastener heads to structural components and optical systems.

The fundamental principle behind regular polygon calculations lies in their symmetrical properties. Every regular polygon can be divided into n identical triangular sections, each with its vertex at the center. This geometric relationship forms the basis for all area, perimeter, and angular calculations.

Mathematical Foundation

The primary formula A = (ns²)/(4 tan(π/n)) derives from the sum of n identical isosceles triangles. Each triangle has a base equal to the side length s and a height equal to the apothem. The tangent function relates the central angle (2π/n radians) to the triangle's dimensions, creating this elegant mathematical relationship.

This formula works because the apothem equals s/(2 tan(π/n)), and the area of each triangular section equals (1/2) × base × height = (1/2) × s × apothem. Multiplying by n sides gives the total area.

Engineering Applications

Regular polygons are fundamental to mechanical design. Hexagonal bolt heads utilize the 120° interior angles for optimal wrench engagement while minimizing material usage. The high area-to-perimeter ratio of hexagons makes them ideal for efficient space utilization, as seen in honeycomb structures and hex nuts.

In precision machinery, regular polygons help create indexing mechanisms. A 12-sided regular polygon (dodecagon) provides 30° increments for rotary positioning systems. FIRGELLI linear actuators often integrate with rotary systems that rely on regular polygon indexing for precise angular positioning.

Practical Design Considerations

When designing components with regular polygon cross-sections, several factors require attention. The relationship between inscribed and circumscribed circles affects tolerance calculations. A hexagon inscribed in a 10mm circle has sides of approximately 10mm, while a hexagon circumscribing a 10mm circle has sides of approximately 11.55mm.

Material stress concentration occurs at polygon vertices, making fillet radii crucial for high-stress applications. The sharp internal angles of polygons with fewer sides create higher stress concentrations than those with more sides, which approach circular profiles.

Worked Example: Hexagonal Shaft Design

Consider designing a hexagonal shaft with 15mm sides for a mechanical coupling:

Given: Regular hexagon, side length s = 15mm

Calculations:

  • Number of sides: n = 6
  • Area: A = (6 × 15²)/(4 tan(π/6)) = (6 × 225)/(4 × 0.5774) = 1350/2.309 = 584.8 mm²
  • Perimeter: P = 6 × 15 = 90mm
  • Interior angle: θ = (6-2) × 180°/6 = 120°
  • Apothem: a = 15/(2 tan(π/6)) = 15/1.155 = 12.99mm

This hexagonal shaft provides 584.8 mm² of cross-sectional area while maintaining the flat surfaces necessary for torque transmission. The 12.99mm apothem represents the radius of the largest circle that fits inside the hexagon, crucial for clearance calculations.

Advanced Applications in Automation

Modern automation systems frequently employ regular polygons in cam profiles, gear systems, and positioning mechanisms. A regular octagon (8 sides) provides 45° indexing increments, perfect for automated assembly stations requiring eight distinct positions.

In robotic applications, regular polygon path planning helps optimize movement efficiency. The symmetrical properties simplify kinematic calculations and reduce computational overhead in real-time control systems.

Manufacturing and Tolerance Considerations

Manufacturing regular polygons requires understanding how machining tolerances affect geometric properties. A ±0.1mm tolerance on side length creates varying effects on area depending on the number of sides. Triangles show greater area variation than hexagons for the same absolute tolerance.

CNC programming benefits from regular polygon calculator outputs when creating tool paths. The apothem calculation determines the minimum tool radius for internal machining operations, while circumradius calculations affect external machining clearances.

For quality control, coordinate measuring machines (CMMs) use regular polygon calculations to verify geometric accuracy. The calculated interior angles provide reference points for angular measurements, ensuring manufactured parts meet design specifications.

Regular polygon calculators prove invaluable across diverse engineering disciplines. From basic geometric analysis to complex mechanical system design, understanding these fundamental relationships enables more efficient and accurate engineering solutions. Whether you're designing mechanical linkages, planning robotic trajectories, or optimizing material usage, mastering regular polygon calculations enhances your engineering toolkit significantly.

Frequently Asked Questions

What is the minimum number of sides for a regular polygon?
How accurate is the regular polygon area formula?
What's the difference between apothem and radius in a regular polygon?
Why do interior angles approach 180° as sides increase?
How do I calculate a regular polygon if I only know the radius?
What engineering applications commonly use regular polygons?

📐 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.

Share This Article
Tags: