
Regular Polygon Area Calculator
Use this regular polygon area calculator to compute the exact 2D area of any regular n-gon (3 to 1,000 sides) from side count n and side length s.
Open toolThe Regular Polygon Perimeter Calculator is a two-dimensional geometry solver that functions as a perimeter of a polygon calculator, polygon perimeter calculator, and perimeter of a regular polygon calculator using P = n × s. Enter #sides (n from 3 to 10,000) and #length (s from 1e-9 to 1,000,000,000) to compute 12-significant-digit linear perimeter locally in your browser.
Enter the inputs, then select Calculate.
Result will appear here
Understanding how do you calculate the perimeter of a polygon depends on whether the polygon is regular (equilateral and equiangular) or irregular. For any polygon, the perimeter is the total linear distance around all of its outer edges. When every side has the exact same length s and all interior angles are equal (see our Polygon Interior Angle Calculator), repeated addition s + s + ... + s simplifies to direct multiplication:
P = n × s = 2na × tan(π / n) = 2nR × sin(π / n)
Here n is the integer number of sides (#sides, from 3 up to 10,000) and s is the length of one side (#length). Once you have the perimeter P, multiplying half the perimeter by the inradius (apothem a; see our Polygon Apothem Calculator) gives the regular polygon's surface area A = (1/2)P · a (see our Regular Polygon Area Calculator). In batch11-tools.js, the solver evaluates n("sides") * n("length") and formats the linear boundary length up to 12 significant digits.
Compare 10 standard regular polygons from an equilateral triangle (n = 3) to a 10,000-sided polygon to see how this perimeter of a polygon calculator evaluates total perimeter (P = n × s) alongside each shape's interior angle and apothem-to-side ratio:
| Polygon Name (#sides = n) | Side Length (#length = s) | Interior Angle ((n − 2)180° / n) | Apothem Ratio (a / s) | Calculated Perimeter (#result-main) | Geometric & Construction Benchmark |
|---|---|---|---|---|---|
| Equilateral Triangle (3) | 2 | 60° | 0.288675 | 6 | 3-sided truss triangle (P = 3s) |
| Square (4) | 2 | 90° | 0.500000 | 8 | 4-sided square frame (P = 4s) |
| Regular Pentagon (5) | 2 | 108° | 0.688191 | 10 | 5-sided pentagon courtyard (P = 5s) |
| Regular Hexagon (6, preloaded) | 2 (preloaded) | 120° | 0.866025 (√3/2) | 12 | Preloaded hexagon (s = R = 2, P = 6s) |
| Regular Octagon (8) | 6 ft | 135° | 1.207107 | 48 | 8-sided gazebo deck fascia trim (48 ft total) |
| Regular Decagon (10) | 2.5 m | 144° | 1.538842 | 25 | 10-sided pavilion ring beam (25 m perimeter) |
| Regular Dodecagon (12) | 5 in | 150° | 1.866025 | 60 | 12-sided clock bezel / coin rim (60 in) |
| Regular Hexadecagon (16) | 1.5 m | 157.5° | 2.513670 | 24 | 16-sided yurt wall perimeter (24 m) |
| Regular Icosagon (20) | 3 cm | 162° | 3.156876 | 60 | 20-sided machine gear collar (60 cm) |
| 10,000-gon (10000) | 0.0006283185 | 179.964° | 1591.549 | 6.283185 | Archimedes unit-circle limit (2πR ≈ 6.2831853) |
Follow these three steps to learn how to calculate perimeter of a polygon in the workspace above.
Type the whole number of equal sides n (3 for a triangle, 5 for a pentagon, 6 for a hexagon, 8 for an octagon, up to 10000) into Number of sides (#sides, preloaded with 6).
Enter the length of a single outer edge s (1e-9 to 1,000,000,000) into Side length (#length, preloaded with 2).
Select Calculate (#primary-action) to compute the 12-significant-digit perimeter in #result-main, then copy or download the output for your bill of materials.
These three worked examples show how the perimeter of a regular polygon calculator handles the preloaded hexagon, an 8-sided wooden gazebo deck, and a 12-sided architectural skylight frame.
With Number of sides = 6 and Side length = 2, multiplying 6 × 2 outputs 12 linear units. In a regular hexagon, the side length s equals the center-to-vertex circumradius R, so a hexagon inscribed in a circle of radius 2 always has perimeter 12.

A carpenter is ordering composite fascia boards to wrap the outer rim of an 8-sided octagonal gazebo where each side measures 6 ft (72 in). Entering 8 in #sides and 6 in #length returns 48 linear feet of perimeter trim.

A sheet-metal fabricator builds a 12-sided regular dodecagon flashing curb with each segment cut to 18.5 in. Entering 12 and 18.5 outputs 222 inches (18.5 ft) of total perimeter flashing.

What if your blueprint or geometry problem does not give the side length s directly? Use these exact conversions to find #length (s) first:
Given Side Count (n) and Apothem (a) or Circumradius (R): The apothem a is the perpendicular distance from the center to the midpoint of a side (for hex nuts and bolts, 2a = F is the width across flats). Right-triangle trigonometry gives s = 2a × tan(180° / n) = 2a × tan(π / n), so the total perimeter is P = 2na × tan(π / n) (compare with our Polygon Apothem Calculator). When a regular n-gon is inscribed inside a circle of radius R, each side is a chord of central angle 360° / n (see our Chord Length Calculator): compute s = 2R × sin(π / n) and enter s into #length to get P = 2nR × sin(π / n).
Given Regular Polygon Area (A) and Apothem (a): Because A = (1/2)P · a, you do not need trigonometry when both A and a are known: simply divide twice the area by the apothem, P = 2A / a. If you know the interior angle α instead of n, recover the side count first via n = 360° / (180° − α).

Check these three frequent pitfalls before relying on your perimeter calculation:
Using P = n × s on an Irregular Polygon or Entering Across-Flats Span (2a): This calculator requires all n sides to have equal length. If you have a non-equilateral triangle, use our Triangle Perimeter Calculator; for an unequal-side parallelogram or rectangle, use our Parallelogram Perimeter Calculator; for an irregular polygon defined by (x, y) vertex coordinates, use our Polygon Area Calculator. Also avoid entering across-flats width (2a) or corner-to-corner diameter (2R) as #length: on an 8-foot flat-to-flat octagon (a = 4 ft), the side length is s = 8 × tan(22.5°) ≈ 3.3137 ft (perimeter 26.51 ft, not 64 ft).
For related polygon and prism calculations, explore our Regular Polygon Area Calculator, Polygon Apothem Calculator, Polygon Interior Angle Calculator, Regular Prism Volume Calculator, Polygon Area Calculator, Triangle Perimeter Calculator, or Parallelogram Perimeter Calculator.


Use this regular polygon area calculator to compute the exact 2D area of any regular n-gon (3 to 1,000 sides) from side count n and side length s.
Open tool
Calculate inradius a = s / (2 tan(π/n)) with this polygon apothem calculator and apothem calculator for hexagons, octagons, pentagons, and regular n-gons.
Open tool
Find one interior angle of a regular polygon in degrees.
Open toolChoose another tool for your next calculation, conversion, or text task.

Use this regular prism volume calculator and hexagonal prism volume calculator to solve V = n·s²·h / (4·tan(π/n)) for 3- to 10,000-sided right prisms.
Open tool
Calculate regular polygon area (pentagon, hexagon, octagon, n-gon) from side length, or irregular polygon area and centroid from (x, y) vertices using the Shoelace formula.
Open tool
Our triangle perimeter calculator computes P = a + b + c and semiperimeter s = P/2 from three side lengths with strict triangle inequality validation.
Open tool
Calculate the perimeter of a parallelogram P = 2(a + b) with this parallelogram perimeter calculator using adjacent sides, diagonal lengths, or vertices.
Open toolAnswers about using Regular Polygon Perimeter Calculator and understanding its results.
Multiply the number of equal sides n by the length of one side s: P = n × s. For example, a regular hexagon (n = 6) with side length s = 2 has a perimeter of 6 × 2 = 12 linear units.
Calculate one side length using s = 2a × tan(180° / n), then multiply by n: P = 2na × tan(180° / n). For a regular hexagon (n = 6) with apothem a = 3, tan(30°) ≈ 0.577350269, so s ≈ 3.464101615 and P ≈ 20.78460969.
Use the chord formula s = 2R × sin(180° / n) to find one side length from the circumradius R, then enter n and s into the calculator: P = 2nR × sin(180° / n).
Since the area of any regular polygon equals half the product of its perimeter and apothem (A = (1/2)Pa), multiply the area A by 2 and divide by the apothem a: P = 2A / a.
Divide the total perimeter P by the number of sides n: s = P / n. For example, if a regular octagon (n = 8) has a perimeter of 48 ft, each side has length 48 / 8 = 6 ft.
For an irregular polygon where the side lengths s₁, s₂, ..., s_n are unequal, add the individual side lengths together manually (P = Σ s_i), or compute the Euclidean distance between consecutive (x_i, y_i) vertices.
Choose another tool for your next calculation, conversion, or text task.