Regular Polygon Calculator: How to Use It, Formula, and Example

A regular polygon is one of the tidiest shapes in geometry: every side is the same length and every angle is the same size. A square, an equilateral triangle, a regular pentagon, and a regular hexagon are all examples. The trouble is that, once you move past a square, the area is no longer a simple length times width. A hexagon or an octagon needs its apothem, the distance from the centre to the middle of a side. The Regular Polygon Calculator solves that problem. Enter the number of sides and the side length, and it gives you the area, the perimeter, the apothem, the circumradius, and the angles, with the working shown.
What is the Regular Polygon Calculator?
The Regular Polygon Calculator is a free online tool on IrregularShapeCalc.com. There is no download, and no limit on how many polygons you can check. A regular polygon is defined by two numbers: the number of sides, called n, and the length of one side, called s. Because every side and every angle is equal, those two numbers fix the whole shape. From them, the calculator can find the perimeter, the area, the apothem, the circumradius, and the angles. The apothem is the shortest distance from the centre to the middle of any side, drawn at a right angle to that side. It is the radius of the largest circle that fits inside the polygon. The circumradius is the distance from the centre to a corner, the radius of the circle through every corner. A hexagonal tile, an octagonal planter, a gazebo floor, and a stop-sign panel are all regular polygons in everyday life.
How to use the calculator, step by step
1. Enter the number of sides. Type n, the number of sides. It must be a whole number of 3 or more. A triangle is 3, a square is 4, a hexagon is 6, and an octagon is 8.
2. Enter the side length. Type s, the length of one side. Measure it carefully, because the area grows with the square of the side length, so a small error is magnified.
3. Choose your unit. Pick feet, inches, metres, centimetres, or yards, and keep every measurement in that one unit.
4. Press Calculate. The calculator works out the perimeter, the apothem, the circumradius, the angles, and the area, all from the two numbers you entered.
5. Read the area and the perimeter first. The perimeter is the distance around the outside, useful for edging or fencing. The area is the surface inside, useful for tiles, paint, flooring, or soil.
6. Check the apothem and the radius. The circumradius is always larger than the apothem.
7. Use the step-by-step working to verify the result. Compare the apothem and area with the formulas in this guide. If a number looks wrong, recheck the side count first.
The formula behind the calculator
The easiest result is the perimeter. Since all n sides are the same length s: Perimeter = n x s. The angles follow from the number of sides alone. The interior angles add up to (n – 2) x 180 degrees, so each one is that total divided by n: Each interior angle = (n – 2) x 180° / n. Each exterior angle = 360° / n. The area needs the apothem, usually written as a: Apothem = s / (2 x tan(180° / n)). Once you know the apothem, the area is half the perimeter times the apothem, the same idea as splitting the polygon into n identical triangles: Area = 1/2 x Perimeter x Apothem. That can also be written directly in terms of n and s: Area = (n x s²) / (4 x tan(180° / n)). The two area formulas always agree. The circumradius, the distance from the centre to a corner, is: Circumradius = s / (2 x sin(180° / n)). If you check the working on a handheld calculator, make sure it is in degree mode, not radian mode, or the tangent will be wrong.
Worked example: a regular hexagon with side 6
Suppose you have a regular hexagonal garden bed with each side measuring 6 units. Here n is 6 and s is 6.
| Step | Calculation | Result |
|---|---|---|
| Perimeter | 6 x 6 | 36 |
| Each interior angle | (6 – 2) x 180° / 6 = 720° / 6 | 120° |
| Each exterior angle | 360° / 6 | 60° |
| Apothem | 6 / (2 x tan(30°)) = 6 / (2 x 0.5774) | 5.196 |
| Circumradius | 6 / (2 x sin(30°)) = 6 / (2 x 0.5) | 6 |
| Area, apothem method | 1/2 x 36 x 5.196 | 93.53 |
| Area, direct formula | (6 x 36) / (4 x tan(30°)) = 216 / 2.3094 | 93.53 |
The area is 93.53 square units, so a hexagon with 6-unit sides covers about 93.53 square feet if the sides are in feet. The two area methods agree exactly, which is a good check that the apothem is right. As a cross-check, a regular hexagon splits into six equilateral triangles, each with side 6, and six of them give 93.53 again. If the sides were in feet, the perimeter would be 36 feet, useful for edging, and the area would be 93.53 square feet, useful for ordering tiles. At 1 square foot per tile, you would need 94 tiles before waste, and 103 tiles with 10 percent extra for cuts.
Common uses
- Tiling and flooring — find the area of a hexagonal or octagonal tile, or of a room with a regular polygonal floor.
- Gardens and planters — work out the area of a hexagonal or octagonal raised bed for soil or plants, and the perimeter for edging.
- Gazebos and decks — size a regular polygonal deck, and find the distance from the centre to a corner for posts.
- Signs and panels — check the area of a stop sign or an octagonal panel, for paint or printing.
- School geometry — check homework on polygons and practise the apothem and area formulas.
Tips for an accurate result
- Count the sides, then count them again. A heptagon has 7 sides and an octagon has 8, and it is easy to miscount on a drawing.
- Measure one side very carefully. Because the area uses the square of the side length, a side that is 5 percent too long gives an area about 10 percent too large.
- Make sure the shape really is regular. If the sides are not all equal, this calculator does not apply. Use the irregular shape calculator instead.
- Keep the units consistent. Do not enter the side in inches and read the area as square feet without converting.
- Use degree mode on a handheld calculator. The formulas use tan(180° / n) and sin(180° / n) in degrees. In radian mode, the same numbers give a wrong answer.
- Round only at the end. The apothem for a hexagon is 5.196152…, and rounding it to 5.2 early changes the area slightly.
Frequently asked questions
Try the calculator
Ready to measure your own polygon? Open the free Regular Polygon Calculator, enter the number of sides and side length, and get the area, perimeter, apothem, and angles in seconds.






