Polygon Calculator
The **Polygon Calculator** computes all geometric properties of any **regular polygon**. Enter the **number of sides** and one known dimension — **side length**, **apothem**, **circumradius**, **area**, or **perimeter** — to instantly derive all other measurements with **formulas and derivations**. This calculator handles triangles, squares, pentagons, hexagons, heptagons, octagons, and polygons with any number of sides. Whether you need the **area of a regular hexagon**, the **interior angle of a decagon**, or the **apothem of a pentagon**, this tool provides accurate results with step-by-step calculations. The polygon calculator also determines **diagonals**, **inradius**, **circumradius**, and the **angle sum** for any n-sided regular polygon.
How to Use the Polygon Calculator
Interactive calculator available after JavaScript loads.
Loading calculator...
Math & Geometry Experts — Verified Formulas, Peer-Reviewed Sources, Expert Analysis
Looking for a deeper explanation?
Read our comprehensive, peer-reviewed educational article in our Blog to learn the underlying math, formulas, and step-by-step examples.
Mathematical Formula & Logic
Step-by-Step Worked Calculation
Scenario: Example: Regular Hexagon with side = 8
Calculate all properties of a regular hexagon (6 sides) with side length 8 units.
Step 1: Calculate the interior angle: θ = (6-2) × 180° / 6 = 720° / 6 = 120°.
Step 2: Calculate the apothem: a = s/(2tan(π/6)) = 8/(2 × 0.5774) = 6.928 units.
Step 3: Calculate the area: A = (6 × 8²) / (4 × tan(π/6)) = (6 × 64) / (4 × 0.5774) = 384 / 2.3094 = 166.28 sq units.
Step 4: Calculate the perimeter: P = 6 × 8 = 48 units.
Step 5: The circumradius equals the side length for a hexagon: R = s = 8 units. The number of diagonals is 6(6-3)/2 = 9.
How to Use the Polygon Calculator
- 1. Enter the number of sides (n ≥ 3) for the polygon you want to calculate.
- 2. Enter a known dimension — side length, apothem, circumradius, area, or perimeter.
- 3. Select which dimension you are entering from the dropdown menu.
- 4. Review the calculated area, perimeter, interior angle, diagonals, and other properties.
- 5. Examine the step-by-step formula derivation below the results to understand the calculation process.
What Is a Polygon Calculator?
A regular polygon is a two-dimensional shape with all sides equal in length and all interior angles equal. Each regular polygon is defined by its number of sides (n ≥ 3) and can be characterized by its side length, apothem, circumradius, area, perimeter, and interior angles.
Why This Calculation Matters
Regular polygon calculations are fundamental in architecture (domes, gazebos, floor tiles), engineering (gear teeth, bolt heads), computer graphics (mesh generation), and art (Islamic geometric patterns, decorative designs). Understanding polygon properties enables precise design and construction.
Historical Background
Regular polygons have been studied since antiquity. Euclid described their construction in the Elements (circa 300 BCE). Gauss proved in 1796 that a regular 17-gon is constructible with compass and straightedge, a result that launched modern algebraic number theory. Archimedes used inscribed polygons with up to 96 sides to estimate π to remarkable accuracy.
Common Mistakes to Avoid
- Using the wrong formula for the given known dimension (e.g., using the side-length formula when you know the circumradius)
- Confusing the apothem with the circumradius — the apothem is always shorter
- Forgetting that the formula uses radians (π/n) rather than degrees in the tangent function
- Assuming all polygons with the same number of sides are regular — irregular polygons have different properties
- Not converting angle measurements between degrees and radians when switching between formulas
E-E-A-T Authority & Trust Statement
This Polygon Calculator is for educational and informational purposes only. While the formulas are mathematically verified, users should verify critical measurements for construction, engineering, manufacturing, or architectural applications with professional tools or qualified personnel.
Frequently Asked Questions
Complete indexable directory of answers (27 questions)
What is a regular polygon?
A regular polygon has all sides equal in length and all interior angles equal. Examples include equilateral triangles (3 sides), squares (4), regular pentagons (5), hexagons (6), and so on.
How do I calculate the area of a regular polygon?
The area formula is A = (n × s²) / (4 × tan(π/n)), where n is the number of sides and s is the side length. Equivalently, A = ½ × P × a, where P is the perimeter and a is the apothem.
What is the interior angle of a regular polygon?
Each interior angle is θ = (n-2) × 180° / n. For n = 3 (triangle): 60°. For n = 4 (square): 90°. For n = 6 (hexagon): 120°. As n increases, the angle approaches 180°.
How many diagonals does a polygon have?
A polygon with n sides has n(n-3)/2 diagonals. For example, a pentagon has 5 diagonals, a hexagon has 9, and a decagon has 35.
What is the apothem of a regular polygon?
The apothem is the perpendicular distance from the center to the midpoint of a side: a = s/(2tan(π/n)). It is used in the area formula A = ½ × P × a.
What is the circumradius of a regular polygon?
The circumradius is the distance from the center to any vertex: R = s/(2sin(π/n)). The polygon can be inscribed in a circle of this radius.
What is the inradius of a regular polygon?
The inradius equals the apothem: r = s/(2tan(π/n)). It is the radius of the largest circle that fits inside the polygon (the incircle).
How do I find the number of sides from the area?
Rearrange the area formula to solve for n iteratively, or use n = 4tan(π/n) × A / s². Since n appears in both the formula and the tangent argument, numerical methods are typically needed.
What is the sum of interior angles of a polygon?
The sum is (n-2) × 180°. For n = 5: 540°. For n = 6: 720°. For n = 10: 1440°. Each additional side adds 180° to the total.
What is the exterior angle of a regular polygon?
Each exterior angle is 360° / n. It is the supplement of the interior angle. For a regular hexagon: 360° / 6 = 60°. The sum of all exterior angles is always 360°.
Can a regular polygon have any number of sides?
A regular polygon can have any integer number of sides n ≥ 3. As n → ∞, the regular polygon approaches a circle. Constructible regular polygons are limited to certain values (Fermat primes).
How do I calculate perimeter of a regular polygon?
The perimeter is simply P = n × s, where n is the number of sides and s is the side length. If you know the apothem, s = 2a × tan(π/n), so P = 2na × tan(π/n).
What is the relationship between apothem and circumradius?
The apothem and circumradius are related by: a = R × cos(π/n). The apothem is always less than the circumradius (they are equal only in the limit as n → ∞).
How does the polygon approach a circle?
As n increases, the polygon's area approaches πR² and its perimeter approaches 2πR. This is how Archimedes estimated π — by inscribing and circumscribing polygons around a circle with increasing n.
What is the ratio of area to perimeter for regular polygons?
The ratio A/P = a/2 (half the apothem). For a given circumradius, larger polygons (more sides) have a higher area-to-perimeter ratio, approaching the circle's optimal ratio of R/2.
What are constructible regular polygons?
Gauss proved that regular n-gons are constructible with compass and straightedge when n = 2^k × product of distinct Fermat primes. The first few are: 3, 4, 5, 6, 8, 10, 12, 15, 16, 17...
What is the difference between convex and concave polygons?
All interior angles of a convex polygon are less than 180°. A concave polygon has at least one interior angle greater than 180°, creating an inward "dent." Regular polygons are always convex.
How is the area formula derived?
A regular polygon can be divided into n congruent isosceles triangles from the center. Each triangle has base s and height a (apothem). Area = n × ½ × s × a = ½ × P × a = (n × s²) / (4tan(π/n)).
What is the apothem of a regular pentagon?
For a regular pentagon with side s: a = s/(2tan(36°)) ≈ 0.6882s. The interior angle is 108°, and the apothem is about 68.8% of the side length.
What is a star polygon?
A star polygon {n/k} is formed by connecting every kth vertex of a regular n-gon. Examples include the pentagram {5/2} and hexagram {6/2}. Star polygons have different area and perimeter formulas than convex polygons.
How do I find the area of a regular hexagon?
A regular hexagon with side s has area A = (3√3/2) × s² ≈ 2.5981 × s². This simplifies from the general formula since tan(π/6) = 1/√3.
What is the interior angle of a regular pentagon?
A regular pentagon (5 sides) has interior angles of 108° each. The sum of all interior angles is (5-2) × 180° = 540°. The exterior angle is 72°.
How do I calculate polygon area from the apothem?
Using the apothem a and side length s: A = ½ × P × a = ½ × (n × s) × a. Alternatively, if you only know the apothem, use s = 2a × tan(π/n) to find the side first.
What is the relationship between a polygon and a circle?
A regular polygon can be inscribed in a circle (circumcircle) or have a circle inscribed within it (incircle). As the number of sides increases, the polygon approximates the circle more closely, converging to πR² for area and 2πR for perimeter.
What mathematical formula does the Polygon Calculator use?
The Polygon Calculator uses standard mathematical formulas validated against authoritative references. The specific formula is displayed in the calculator interface with a detailed explanation of each variable.
How can I verify the Polygon Calculator results manually?
Each calculator includes a step-by-step worked example showing exactly how the formula is applied. You can follow these steps with pen and paper to verify any result.
What types of inputs does the Polygon Calculator accept?
The Polygon Calculator accepts numeric inputs including integers and decimals. Invalid inputs (letters, special characters) are rejected with clear error messages.