AI Tools Free

Regular Polygon Perimeter Calculator

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

Free to useNo sign-upRuns in your browser
Enter your details

Enter the inputs, then select Calculate.

Your result
Enter your details

Result will appear here

How Do You Calculate the Perimeter of a Polygon?

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.

Regular hexagon diagram (n = 6) with equal side lengths s = 2, circumradius R = 2, and apothem a = √3 ≈ 1.732 yielding total perimeter P = 6 × 2 = 12.
Regular hexagon diagram (n = 6) with equal side lengths s = 2, circumradius R = 2, and apothem a = √3 ≈ 1.732 yielding total perimeter P = 6 × 2 = 12.

Perimeter of a Polygon Calculator & Regular n-Gon Reference Table

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)260°0.28867563-sided truss triangle (P = 3s)
Square (4)290°0.50000084-sided square frame (P = 4s)
Regular Pentagon (5)2108°0.688191105-sided pentagon courtyard (P = 5s)
Regular Hexagon (6, preloaded)2 (preloaded)120°0.866025 (√3/2)12Preloaded hexagon (s = R = 2, P = 6s)
Regular Octagon (8)6 ft135°1.207107488-sided gazebo deck fascia trim (48 ft total)
Regular Decagon (10)2.5 m144°1.5388422510-sided pavilion ring beam (25 m perimeter)
Regular Dodecagon (12)5 in150°1.8660256012-sided clock bezel / coin rim (60 in)
Regular Hexadecagon (16)1.5 m157.5°2.5136702416-sided yurt wall perimeter (24 m)
Regular Icosagon (20)3 cm162°3.1568766020-sided machine gear collar (60 cm)
10,000-gon (10000)0.0006283185179.964°1591.5496.283185Archimedes unit-circle limit (2πR ≈ 6.2831853)

How to Calculate Perimeter of a Polygon Step by Step

Follow these three steps to learn how to calculate perimeter of a polygon in the workspace above.

Enter the Number of Sides (#sides)

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

Input and settings
Number of sides (#sides = 6) and Side length (#length = 2) input fields in the Regular Polygon Perimeter Calculator.
Number of sides (#sides = 6) and Side length (#length = 2) input fields in the Regular Polygon Perimeter Calculator.

Enter One Side Length (#length)

Enter the length of a single outer edge s (1e-9 to 1,000,000,000) into Side length (#length, preloaded with 2).

Tool result
Converting apothem a or circumradius R into exterior side length s before multiplying by n.
Converting apothem a or circumradius R into exterior side length s before multiplying by n.

Click Calculate and Save the Result

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.

Review the details
Result panel displaying 12 linear units for preloaded inputs n = 6 and s = 2 alongside Copy result and Clear buttons.
Result panel displaying 12 linear units for preloaded inputs n = 6 and s = 2 alongside Copy result and Clear buttons.

Worked Examples: Perimeter of a Regular Polygon Calculator

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.

Preloaded Regular Hexagon (n = 6, s = 2)

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.

Regular hexagon with 6 equal sides of length 2 producing perimeter P = 12.
Regular hexagon with 6 equal sides of length 2 producing perimeter P = 12.

Octagonal Gazebo Deck Fascia Trim (n = 8, s = 6 ft)

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.

Regular octagon deck plan with n = 8 sides of 6 ft each requiring 48 linear feet of fascia trim.
Regular octagon deck plan with n = 8 sides of 6 ft each requiring 48 linear feet of fascia trim.

Dodecagonal Skylight Curb (n = 12, s = 18.5 in)

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.

12-sided regular dodecagon with side length 18.5 in yielding a 222 in perimeter.
12-sided regular dodecagon with side length 18.5 in yielding a 222 in perimeter.

Finding Polygon Perimeter From Apothem, Circumradius, Area & Interior Angles

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° − α).

Right-triangle breakdown of one regular polygon sector showing how half-side s/2 relates to apothem a and circumradius R via angle π/n.
Right-triangle breakdown of one regular polygon sector showing how half-side s/2 relates to apothem a and circumradius R via angle π/n.

Common Polygon Perimeter Mistakes & Related 2D Geometry Tools

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.

Comparison of an octagonal gazebo's side length s = 3.31 ft versus its flat-to-flat span 2a = 8 ft and corner-to-corner span 2R = 8.66 ft.
Comparison of an octagonal gazebo's side length s = 3.31 ft versus its flat-to-flat span 2a = 8 ft and corner-to-corner span 2R = 8.66 ft.

Frequently Asked Questions About the Regular Polygon Perimeter Calculator

Answers about using Regular Polygon Perimeter Calculator and understanding its results.

What is the formula for the perimeter of a regular polygon?

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.

How do I find the perimeter of a regular polygon given the apothem a?

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.

What is the formula when a regular polygon is inscribed in a circle of radius R?

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

How can I solve for perimeter from polygon area A and apothem a?

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.

How do I find the side length s if I know the perimeter P and number of sides n?

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.

How do you calculate the perimeter of an irregular polygon?

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.

Calculate with your input

Choose another tool for your next calculation, conversion, or text task.

Calculate