Last updated: July 15, 2026
Polygon Calculator
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Quick Answer
The Polygon Calculator evaluates a regular polygon from the number of sides n and side length s using Perimeter = n·s, Area = n·s² ÷ (4·tan(π/n)), and Interior angle = (n−2)·180/n. It also returns the exterior angle, sum of interior angles, apothem, and circumradius so the geometry can be checked from multiple connected measurements.
For a regular polygon, multiply n by s for the perimeter, divide 360 by n for the exterior angle, and use the tangent formulas to get apothem and area.
Key Takeaways
- A regular polygon is determined completely by its side count and one side length.
- Perimeter grows linearly as n × s.
- Each exterior angle equals 360 ÷ n, so more sides mean smaller turns.
- Apothem and circumradius are different center distances and should not be swapped.
- Area can be checked with both the tangent formula and ½ × perimeter × apothem.
Creators
Dharmendra SinghReviewers

Creators
Dharmendra SinghReviewers
Formula
Perimeter = n·s; Area = n·s² ÷ (4·tan(π/n)); Interior angle = (n−2)·180/n
Where:
- n=Number of sides
- s=Side length(units)
- P=Perimeter(units)
- A=Area(square units)
- a=Apothem(units)
- R=Circumradius(units)
- \theta=Interior angle(degrees)
Worked Examples
Regular hexagon with side 4
Use a six-sided regular polygon to compute the full property set from one edge length.
- 1Compute perimeter as 6 × 4 = 24.
- 2Use the angle formulas to get an interior angle of 120° and an exterior angle of 60°.
- 3The interior-angle sum is (6 − 2) × 180 = 720°.
- 4Apply the tangent formulas to get apothem 3.464102, area 41.569219, and circumradius 4.
Regular octagon with side 5
An octagon shows how the angle pattern tightens while the area grows with both scale and side count.
- 1Compute perimeter as 8 × 5 = 40.
- 2Use the regular-polygon angle identities to get 135° interior and 45° exterior angles.
- 3The total of the interior angles is (8 − 2) × 180 = 1080°.
- 4The center-based formulas give apothem 6.035534, area 120.710678, and circumradius 6.532815.
Regular pentagon with side 3
A five-sided example is useful because it sits between square and hexagon benchmarks.
- 1Compute perimeter as 5 × 3 = 15.
- 2The interior and exterior angles are 108° and 72° respectively.
- 3The full interior-angle sum equals (5 − 2) × 180 = 540°.
- 4Using the trigonometric formulas gives apothem 2.064573, area 15.484297, and circumradius 2.551952.
Introduction
The Polygon Calculator focuses on regular polygons, where one side length and a whole-number side count determine every major measurement. With n and s, the calculator returns perimeter, each interior angle, each exterior angle, the full sum of interior angles, apothem, area, and circumradius. That makes it useful for geometry homework, drafting, fabrication, and any problem where a symmetric n-sided figure must be checked quickly without losing the relationships that make the formulas meaningful.
What makes a polygon regular
A regular polygon is the special case where every side has the same length and every interior angle has the same measure. That simple condition creates a very rigid figure, which is why one side length and the number of sides are enough to recover so many other properties. When you draw segments from the center to every vertex, the shape breaks into congruent isosceles triangles. Those repeated triangles explain why the perimeter, apothem, area, and circumradius all fit into one neat formula network. The same symmetry also fixes the angle pattern: all exterior angles are equal and always add to 360 degrees, while the interior angles all match one another. This calculator focuses on that regular case only. If a polygon has unequal sides, unequal angles, or both, the formulas here will no longer describe the real figure. Thinking of a regular polygon as a circle-friendly shape is often helpful, because the apothem and circumradius measure how the polygon sits inside and around a central point. Once that picture is clear, the outputs become easier to interpret and verify.
All sides are equal and all interior angles are equal.
The center connects naturally to every vertex and side midpoint.
Exterior angles always share the full 360-degree turn equally.
Regular-polygon formulas do not apply to irregular polygons.
How the main formulas connect
The formulas in a regular polygon are not isolated facts. Perimeter is the easiest piece because it is simply the number of sides multiplied by the common side length. Angle formulas follow from partitioning a polygon into triangles: the sum of the interior angles is (n − 2) × 180, so each interior angle in a regular polygon is that total divided evenly by n. The exterior angle is even simpler because a full turn around the shape is 360 degrees, giving 360 ÷ n for each exterior angle. The apothem and circumradius come from right triangles formed by bisecting one of the central isosceles triangles. In that triangle, trigonometric ratios relate side length to the center distances. Area then follows from either one half times perimeter times apothem or the equivalent tangent formula shown above. Because the formulas reinforce one another, you can often check one output by using another instead of recalculating everything from scratch.
Perimeter scales directly as n × s.
Interior and exterior angles come from one full rotation structure.
Apothem and circumradius come from center-based right triangles.
Area can be checked with both tangent and ½Pa reasoning.
Using the inputs correctly
This calculator needs two inputs: the number of sides n and the common side length s. The side count must be a whole number because a polygon cannot have 5.7 equal sides. It also has to be at least 3, since three sides is the first possible polygon. The side length must be positive and finite, and the unit can be anything you like as long as you stay consistent. If you enter centimeters for the side, the perimeter, apothem, and circumradius will also be in centimeters, while the area will be in square centimeters. Before calculating, it helps to decide whether your shape is truly regular or only approximately regular. Small drafting or measurement errors can make a real object look close to regular without matching the formulas exactly. In classroom work, the inputs usually come from the problem statement. In design or fabrication work, they usually come from a measured edge and a chosen polygon type. Entering those values carefully is the most important step in getting trustworthy outputs.
- 1
Use an integer n with n ≥ 3.
- 2
Enter one positive side length in consistent units.
- 3
Remember that area uses squared units even when lengths do not.
- 4
Confirm the shape is regular before trusting the formulas.
How to interpret each output
The perimeter tells you the total boundary length, which is useful for fencing, trim, cutting paths, or any problem that depends on the outside edge. The interior and exterior angle outputs describe the turning geometry of the polygon and are often the first values checked in geometry homework. The sum of the interior angles is a whole-shape fact, while the single interior angle applies to each corner because the polygon is regular. The apothem measures the distance from the center to the midpoint of a side, so it is especially helpful for area derivations and center-based layouts. The circumradius measures the distance from the center to a vertex, which matters whenever a regular polygon is inscribed in a circle. Area combines side length and angle structure into a two-dimensional result. When you read the outputs together instead of separately, you get a much better sense of the shape’s scale and symmetry than any one number could provide on its own.
Perimeter answers boundary-length questions.
Interior and exterior angles describe corner behavior.
Apothem supports area and center-to-side layout checks.
Circumradius supports inscribed-circle and vertex layout work.
Reference angle pattern from n = 3 to 10
A short reference table makes the regular polygon angle pattern easier to remember. As the number of sides increases, each interior angle grows and each exterior angle shrinks. That trend matches geometric intuition: more sides make the polygon look more like a circle, so each corner opens up while the turn at each vertex becomes smaller. The sum of the interior angles also increases steadily because every extra side adds another 180 degrees to the triangulation count. Reviewing these benchmark cases is useful before an exam because many geometry questions secretly reduce to one of a few familiar polygons. You do not have to memorize every entry, but recognizing the triangle, square, pentagon, hexagon, and octagon values gives you quick mental checks. If a computed angle does not resemble the nearby benchmark in the table, that is often the first clue that a wrong n value or an irregular-shape assumption slipped into the setup.
Interior angle increases as n increases.
Exterior angle decreases as n increases.
Every new side adds 180 degrees to the interior-angle sum.
Benchmarks help catch setup errors quickly.
| Sides n | Interior angle (°) | Exterior angle (°) | Sum of interior angles (°) |
|---|---|---|---|
| 3 | 60 | 120 | 180 |
| 4 | 90 | 90 | 360 |
| 5 | 108 | 72 | 540 |
| 6 | 120 | 60 | 720 |
| 7 | 128.571429 | 51.428571 | 900 |
| 8 | 135 | 45 | 1080 |
| 9 | 140 | 40 | 1260 |
| 10 | 144 | 36 | 1440 |
Useful ratios when side length equals 1
Setting the side length to 1 turns the calculator into a ratio table. That viewpoint is powerful because it separates pure shape behavior from scale. Once you know the apothem, area, and circumradius for a unit-side polygon, you can scale them to any other side length with simple multiplication. Linear outputs such as perimeter, apothem, and circumradius scale directly with s, while area scales with s squared. This means that doubling the side length doubles the perimeter and both radii, but multiplies the area by four. Designers and students often use unit-side values as quick references when sketching or estimating. They also make pattern comparisons easy. For example, a unit hexagon has circumradius 1, which is a memorable special case, while the apothem approaches the circumradius more closely as n increases. The table below captures those reusable ratios so you can estimate first and calculate second.
Unit-side values reveal pure shape behavior.
Perimeter, apothem, and circumradius scale linearly with s.
Area scales quadratically with s.
The gap between apothem and circumradius narrows as n grows.
| Sides n | Perimeter for s=1 | Apothem for s=1 | Area for s=1 | Circumradius for s=1 |
|---|---|---|---|---|
| 3 | 3 | 0.288675 | 0.433013 | 0.57735 |
| 4 | 4 | 0.5 | 1 | 0.707107 |
| 5 | 5 | 0.688191 | 1.720477 | 0.850651 |
| 6 | 6 | 0.866025 | 2.598076 | 1 |
| 8 | 8 | 1.207107 | 4.828427 | 1.306563 |
| 10 | 10 | 1.538842 | 7.694209 | 1.618034 |
Common mistakes and how to avoid them
The most common mistake is using regular-polygon formulas on an irregular shape. If the sides or angles are not all equal, the outputs can look polished and still be completely wrong. Another frequent error is mixing up the apothem and circumradius. They both start at the center, but one ends at a side midpoint and the other ends at a vertex, so they solve different layout problems. Students also forget that the side count must be an integer or they type an exterior angle formula where an interior angle formula belongs. Unit confusion is another major source of trouble: perimeter stays in linear units, but area must be expressed in square units. Finally, rounding too early can distort later steps when you use one computed value to check another. A better workflow is to keep more precision during calculation, then round the displayed results at the end. Most errors disappear once you validate regularity, units, and the role of each measurement before solving.
Do not apply these formulas to irregular polygons.
Apothem and circumradius are different center distances.
Keep angle formulas straight: interior, exterior, and total sum.
Round outputs at the end, not in the middle of a chain.
Where regular polygon properties are used
Regular polygon calculations appear in far more places than a typical geometry chapter suggests. In drafting and computer graphics, polygon dimensions control tiling, logo construction, icons, and radial layouts. In fabrication, the perimeter helps estimate material length while area helps estimate coatings, panels, or floor coverage. In architecture and product design, apothem and circumradius are practical whenever a shape must fit inside or around a circular boundary. Mathematics classrooms use regular polygons to connect arithmetic, trigonometry, angle sums, and symmetry in one setting, which is why these formulas are such common teaching tools. Even advanced topics such as roots of unity and polygon approximations to circles build on the same structure. Because the calculator returns the whole family of related measurements at once, it is useful both for direct answers and for checking work done by hand. That combination of speed and structure is what makes regular polygon formulas valuable long after the first lesson ends.
Use perimeter for cutting, edging, and boundary estimates.
Use area for coverage, material, and layout planning.
Use apothem and circumradius for center-based construction.
Use angle outputs for geometry proofs, sketches, and verification.
Quick Reference Card
Polygon Calculator Cheat Sheet
Quick reference • Polygon Calculator
Perimeter = n·s; area = n·s² ÷ (4·tan(π/n)); interior angle = (n−2)·180/n; exterior angle = 360/nValid range: Use an integer number of sides n ≥ 3 and a positive finite side length s.
Common Values
⚠ Watch Out
- •These formulas apply only to regular polygons.
- •The side count must be a whole number, not a decimal.
- •Area uses square units even when all other lengths are linear.
- •Rounding intermediate values too early can spoil later checks.
Pro Tips
- →Check that interior angle plus exterior angle equals 180 degrees.
- →Use the apothem to verify area with A = ½Pa.
- →Benchmark your answer against familiar cases like square, pentagon, and hexagon.
- →For large n, expect the polygon to behave more like a circle.
FAQs
What does this polygon calculator assume about the shape?
It assumes the polygon is regular, meaning all sides and all interior angles are equal. If the shape is irregular, the outputs will not describe it correctly.
Why must the number of sides be an integer?
A polygon is built from a countable set of straight sides, so n has to be a whole number. Values below 3 or non-integers do not represent valid polygons.
What is the difference between apothem and circumradius?
The apothem runs from the center to the midpoint of a side, while the circumradius runs from the center to a vertex. They are both center distances, but they support different geometric tasks.
Why does the exterior angle always equal 360 divided by n?
Walking once around a polygon makes one complete turn of 360 degrees. In a regular polygon, that turn is split evenly among the n identical exterior angles.
Can I use any unit for the side length?
Yes. The calculator is unit-flexible, so any consistent linear unit works. Perimeter, apothem, and circumradius stay in that unit, while area uses the squared version of it.
How can I check the area result?
You can verify area with either A = ns² ÷ (4 tan(π/n)) or A = ½ × perimeter × apothem. Matching answers from both forms is a strong accuracy check.
Why do polygons with more sides look more circular?
As n grows, each side and vertex spans a smaller part of the surrounding circle. The interior angles widen and the exterior turns shrink, so the outline approaches a circle more closely.