Regular polygon calculator

Known value: Circumradius R (m) / Side s (m).

Side s (m)
—
Apothem a (m)
—
Perimeter P (m)
—
Area (m²)
—
Circumradius R (m)
—
Calculation
—

Choose the circumradius or side length in metres. The polygon is regular: all sides and angles are equal. Enter an integer n from 3 to 1,000,000 and a positive length ≤ 10¹² m, with reduced decimal denominator ≤ 10²⁴. Use a decimal point. The inactive length is ignored. Displayed results have up to 12 significant digits; trigonometric values are approximate. The input bounds do not limit derived dimensions.

Perimeters of other shapes

How the calculation works

s=2Rsin(π/n); R=s/(2sin(π/n)); a=s/(2tan(π/n)); P=ns; A=Pa/2

Choose the circumradius or side length in metres. The polygon is regular: all sides and angles are equal. Enter an integer n from 3 to 1,000,000 and a positive length ≤ 10¹² m, with reduced decimal denominator ≤ 10²⁴. Use a decimal point. The inactive length is ignored. Displayed results have up to 12 significant digits; trigonometric values are approximate. The input bounds do not limit derived dimensions.

Frequently asked questions

How is the result calculated?

s=2Rsin(π/n); R=s/(2sin(π/n)); a=s/(2tan(π/n)); P=ns; A=Pa/2

What assumptions apply?

Choose the circumradius or side length in metres. The polygon is regular: all sides and angles are equal. Enter an integer n from 3 to 1,000,000 and a positive length ≤ 10¹² m, with reduced decimal denominator ≤ 10²⁴. Use a decimal point. The inactive length is ignored. Displayed results have up to 12 significant digits; trigonometric values are approximate. The input bounds do not limit derived dimensions.

How precise are the displayed results?

Choose the circumradius or side length in metres. The polygon is regular: all sides and angles are equal. Enter an integer n from 3 to 1,000,000 and a positive length ≤ 10¹² m, with reduced decimal denominator ≤ 10²⁴. Use a decimal point. The inactive length is ignored. Displayed results have up to 12 significant digits; trigonometric values are approximate. The input bounds do not limit derived dimensions.

How we verified this calculator

The calculator is checked against 6 reference cases computed independently of its code. Last passed: .

# Inputs Expected result
1
Known value = Circumradius R (m)
Number of sides n = 3
Circumradius R (m) = 4
Side s (m): 6.92820323028
Apothem a (m): 2
Perimeter P (m): 20.7846096908
Area (m²): 20.7846096908
2
Known value = Circumradius R (m)
Number of sides n = 4
Circumradius R (m) = 4
Side s (m): 5.65685424949
Apothem a (m): 2.82842712475
Perimeter P (m): 22.627416998
Area (m²): 32
3
Known value = Circumradius R (m)
Number of sides n = 5
Circumradius R (m) = 4
Side s (m): 4.70228201834
Apothem a (m): 3.2360679775
Perimeter P (m): 23.5114100917
Area (m²): 38.0422606518
4
Known value = Circumradius R (m)
Number of sides n = 6
Circumradius R (m) = 4
Side s (m): 4
Apothem a (m): 3.46410161514
Perimeter P (m): 24
Area (m²): 41.5692193817
5
Known value = Circumradius R (m)
Number of sides n = 8
Circumradius R (m) = 4
Side s (m): 3.06146745892
Apothem a (m): 3.69551813005
Perimeter P (m): 24.4917396714
Area (m²): 45.2548339959
6
Known value = Circumradius R (m)
Number of sides n = 12
Circumradius R (m) = 4
Side s (m): 2.07055236082
Apothem a (m): 3.86370330516
Perimeter P (m): 24.8466283298
Area (m²): 48

How we test our calculators →

Also try:

Back to category →