Jump to


Regular n-gon calculator

- By Dr. Minas E. Lemonis, PhD - Updated: April 24, 2020

This tool calculates the basic geometric properties of a regular n-gon, that is a polygon having n sides and n vertices. Regular polygons are equilateral (all sides equal) and also equiangular (all interior angles equal). The tool can calculate the properties of any regular n-gon, given either the edge length, the inradius, the circumradius, the area, the height or the width. Enter below the shape dimensions. The calculated results will have the same units as your input. Please use consistent units for all input.

Known data:
N =
Geometric properties:
Area =
Perimeter =
Side α =
Ri =
Rc =
Bounding box:
Height h =
Width w =
Angles :
Interior φ =
Central θ =
shape details
Share this
Table of Contents
See also
Properties of Hexagon
Properties of Octagon
Properties of a Rectangle
Properties of a Right-Triangle
Properties of a Circular area
All Geometric Shapes



Theoretical background

Table of contents


N-gon is a polygon with N sides and N vertices. An n-gon, can be either convex or concave, as illustrated in the next figure. A convex polygon has none of its interior angles greater than 180°. To the contrary, a concave polygon has one or more of its interior angles greater than 180°. A polygon is called regular when its sides are equal and also its interior angles are equal. Having only the sides equal is not adequate to guarantee that the interior angles are also equal. As demonstrated in the figure below, many possible polygons can be defined, with equal sides, but unequal interior angles. These polygons are called equilateral. A special case of equilateral polygons is the so called star polygons. Any n-gon that is not regular is called irregular.


The simplest non-degenerate n-gon is the triangle with N=3. N-gons with N<3 are degenerate. The digon with N=2 has two vertices and two edges. The two edges coincide in the plane, resulting in a shape that looks like a linear segment between the two vertices. The monogon, with N=1, has one vertex and one side that connects the vertex with itself. The following table presents the established naming convention for polygons, depending on the number of edges N:

3trigoncommonly called triangle
4tetragoncommonly called quadrilateral
7heptagonor septagon
9nonagonor enneagon
11hendecagonor undecagon

Any n-gon with N>3, can be constructed as an assembly of triangles. In fact the number of triangles required to construct an n-gon is always the same and equal to N-2. Since the sum of interior angles in a triangle is constant to 180° (or \pi ), the sum of the interior angles in an n-gon, either convex or concave is also constant and equal to: (N-2)\pi .

A polygon with N vertices can be constructed by a minimum of N-2 triangles

Properties of regular n-gons

The focus comes to the regular polygons, hereafter. A regular polygon has all its edges equal and all its interior angles equal.


A regular n-gon features N axes of symmetry. All these axes meet at a common point, the center of the n-gon. If N is an even number, half of the axes pass through diagonally opposite vertices and the remaining ones, pass through the midpoints of opposite edges. On the other hand, if N is odd, all the axes of symmetry, pass through a vertex and the midpoint of its opposite edge.

Axes of symmetry in a regular n-gon.

Interior angle and central angle

A regular n-gon has equal interior angles by definition. Since there are N of them, and given that their total sum is (N-2)\pi , as explained earlier, it can be concluded that each interior angle should be equal to:

\varphi={(N-2)\pi\over N}=\pi-\frac{2\pi}{N}

From the last expression, it is seen that the interior angle \varphi should be lower than \pi radians (or 180°). In other words the regular n-gon cannot be concave. The value of \varphi , reaches asymptotically \pi , increasing the number of N.

The central angle \theta , is the angle inside the triangle that is highlighted in the figure below. Specifically, it is the angle between two triangle edges, connecting the center of the n-gon with two successive vertices. The third edge in an edge of the n-gon. There are N central angles, in total, around the common center, therefore each one should be:

\theta={2\pi\over N}

The remaining two angles, in the highlighted triangle, are equal to \varphi/2 (a line passing through the n-gon center and a vertex is a symmetry axis).

It is worthy to mention, that the interior and central angles are supplementary, since their sum is \pi :

\varphi+\theta=\pi-\frac{2\pi}{N}+{2\pi\over N}=\pi

Circumcircle and incircle

In any regular n-gon, a circle can be drawn that passes through all vertices. This is the cirmuscribed circle or circumcircle. The center of this circle is the center of the n-gon. The radius of circumcircle R_c is usually called circumradius.

Another circle can also be drawn, that passes through the midpoints of the n-gon edges. This circle is called inscribed circle or incircle. The radius of incircle R_i is usually called inradius. The incircle is tangent to all N edges and its center is the same with that of the circumcircle. 

Circumscribed and inscribed circles of regular n-gon

The radii of circumcircle, R_c , and incircle, R_i , are related to the length of the edges, \alpha . These relationships can be discovered using the right triangle, with sides: the circumradius, the inradius and half the n-gon edge, which is shown in the next figure. Using basic trigonometry we may find:

\begin{split} R_c & = \frac{a}{2 \sin{\frac{\theta}{2}}} \\ R_i & = \frac{a}{2 \tan{\frac{\theta}{2}}} \\ R_i & = R_c \cos{\frac{\theta}{2}} \end{split}

where \theta the central angle and \alpha the side length. Substituting the equation for the central angle \theta={2\pi\over N} into the last expressions become:

R_c = \frac{a}{2 \sin{\pi\over N}}

R_i = \frac{a}{2 \tan{\pi\over N}}

R_i = R_c \cos{\pi\over N} .

The above formulas reveal that for increasing values of N, the inradius R_i asymptotically tends to the circumradius R_c (because \theta approaches zero, and the cosine of the third equation approaches unity). It can be visualized that for large N's, the polygon looks very circular in shape, and therefore its circumcircle and incircle match more perfectly with the n-gon shape and as a result with each other.



The total area of a regular n-gon can be divided into N identical isosceles triangles, as indicated in the figure below. The height of any of these triangles, perpendicular to the n-gon edge a , is indeed a radius of the incircle, therefore its length is equal to R_i . Therefore, the area of each triangle is \frac{1}{2}a R_i , and as a result, the total area of the N triangles becomes:

A = N\frac{1}{2} a R_i \Rightarrow

A=N a\frac{1}{2}\frac{a}{2 \tan(\pi/N)}\Rightarrow


Alternatively, using the relationship R_i = R_c \cos{\pi\over N} , the n-gon area can be expressed in terms of the circumradius, R_c , this way:

A = N\frac{1}{2} a R_i = \Rightarrow

A=\frac{1}{2}N \left(2R_c \sin{\pi\over N}\right) R_c \cos{\pi\over N} \Rightarrow

A=\frac{1}{2}\ N {R_c}^2\ \sin\left(2\pi\over N\right)

To reach to the last formula, the trigonometric identity \sin{2a}=2\sin{a} \cos{a} was utilized, as well the relationship between R_c and a , which, as seen before, is R_c=\frac{a}{2 \sin(\pi/N)} and in inverted form: a= 2R_c \sin{\pi\over N} .


The perimeter of any N-sided regular polygon is simply the sum of the lengths of all edges:

P = N a .

Bounding box

The bounding box of a planar shape is the smallest rectangle that encloses the shape completely. The bounding box is defined by its height h and width w . For a regular n-gon, the width is parallel to an edge while the height is perpendicular to it. Universal formulas for these dimensions are not possible though. A methodology can be improvised however, based on the value of N.


Depending on N, the height, h , can be equal to:

  • the distance between two opposite edge midpoints, if N is even
  • the distance between a vertex and the midpoint of an opposite edge, if N is odd.

In either case the height h crosses the n-gon center. Therefore:

h=\left\{\begin{array}{ll}2R_i&\textrm{N is even} \\ R_c+R_i &\textrm{N is odd} \end{array}\right.


Depending on N, the width, w , can be equal to either:

  • the distance between two opposite edge midpoints, or
  • the distance between two opposite vertices.

If N is an even number, the width passes through the center of the polygon. This does not happen though, if N is an odd number. Therefore, two cases should be examined:

N is even

In this case, the width passes through the center of the polygon. If N/2 is even too, then the width connects two opposite vertices. If N/2 is odd on the other hand the width connects the midpoints of two opposite edges. In other words:

w=\left\{\begin{array}{ll}2R_i&\textrm{N and N/2 are even} \\ 2R_c &\textrm{N is even, N/2 is odd} \end{array}\right.

N is odd

In this case, the width connects two opposite vertices, in other words it is a diagonal of the n-gon. Since N is odd, N-1 should be even, by default. Depending on the parity of (N-1)/2 (odd or even) though, the diagonal that defines width w can be either above the center of the n-gon or below the it. Specifically:

  • if (N-1)/2 is even, the diagonal of w lies above the center
  • if (N-1)/2 is odd, the diagonal of w lies below the center

The next figure illustrates these two sub-cases. The calculation of w also becomes straightforward if the angle \tau , in the highlighted triangle, is found. This can be done, by counting the number of central angles \theta until we reach the vertex of required diagonal, starting from the top. It is:

\tau=\left\{\begin{array}{ll} \frac{N-1}{4}\theta &\textrm{N is odd, (N-1)/2 is even} \\ \pi-\frac{N+1}{4}\theta &\textrm{N is odd, (N-1)/2 is odd} \end{array}\right.

Substituting \theta = 2\pi/N we get the same result for both sub-cases:


The hypotenuse of the highlighted triangle is equal to the circumradius R_c while the opposite. The edge opposite to to angle \tau , is half the wanted width. Therefore, if the number of the regular n-gon edges is odd, the width can be calculated with the formula:




Example 1

Determine the circumradius, the inradius and the area of a regular 17-gon, with edge length equal to a=6'' .

The circumradius and the inradius, in terms of the edge length a , for the regular n-gon, have been derived in the previous sections. These are:

R_c = \frac{a}{2 \sin{\pi\over N}}

R_i = \frac{a}{2 \tan{\pi\over N}}

Therefore, we have to simply substitute a=6'' and N=17 . Doing so we get:

R_c=\frac{6''}{2 \sin{\pi\over 17}}

The angle \pi/17 is approximately equal to: 180^\circ/17\approx10.588^\circ .

The circumradius is then found:

R_c\approx\frac{6''}{2 \sin{10.588^\circ}}\approx16.327''

Similarly, the inradius is calculated this way:

R_i = \frac{6''}{2 \tan{\pi\over 17}}\approx\frac{6''}{2 \tan{10.588^\circ}}\Rightarrow


Finally, the area of a regular n-gon is given by the following equation:


Substituting a=6'' and N=17 we get:

A = \frac{17(6'')^2}{4\tan{\pi\over 17}} \approx \frac{17(6'')^2}{4\tan{10.588^\circ}}\Rightarrow

A\approx 818.5\ \text{in}^2

Example 2

Calculate the edge length a of the following regular n-gons:

  1. a 9-gon (aka nonagon or enneagon), with area A=560\ \textrm{in}^2
  2. a 12-gon (aka dodecagon) having height h=12''
  3. a 4-gon (aka square) having circumradius R_c=10''
1. Regular 9-gon with given area

The area of a regular n-gon, A , in terms of the side length a , is given by the equation:


Since we are looking for a , we have to rearrange the formula:

a^2 = \frac{4A\tan(\pi/N)}{N}\Rightarrow

a =+\sqrt{ \frac{4A\tan(\pi/N)}{N} }

From the last equation we can calculate the required edge length a , if we substitute A=560\ \textrm{in}^2 and N=9 for the 9-gon:

a =\sqrt{ \frac{4\times 560\textrm{in}^2\tan(\pi/9)}{9} } \approx 9.518\ \textrm{in} .

2. Regular 12-gon with given height

Because N=12, which is an even number, the height h , of the 12-gon is equal to:


The inradius, R_i , is given be the formula:

R_i = \frac{a}{2 \tan{\pi\over N}}


h = 2\frac{a}{2 \tan{\pi\over N}}\Rightarrow

a= h \tan\left(\pi\over N\right)\Rightarrow

a= 12'' \tan\left(\pi\over 12\right)\approx 3.215\ \textrm{in} .

3. Regular 4-gon with given circumradius

The circumradius, R_c , of a regular n-gon is related to its edge length, a , with the following formula:

R_c = \frac{a}{2 \sin{\pi\over N}}


a=2 R_c \sin\left(\pi\over N\right)\

From the last equation we can calculate the wanted edge length a , if we substitute R_c=10'' and N=4 , for the given 4-gon:

a=2\times 10'' \sin\left(\pi\over 4\right) \approx 14.142\ \textrm{in} .

Example 3

Find the edge a_6 of a regular, hexagon having the same area with a regular 15-gon, with edge length a_{15}=16''

The area of a regular n-gon is given by the formula:


Applying this formula specifically, for the hexagon and the 15-gon we get:



It is A_6=A_{15} , which means:

\frac{6{a_6}^2}{4\tan(\pi/6)} =\frac{15{a_{15}}^2}{4\tan(\pi/15)} \Rightarrow


{a_6}^2 =\frac{15{a_{15}}^2}{6}\frac{\tan(\pi/6)}{\tan(\pi/15)} \Rightarrow

{a_6} =+\sqrt{ \frac{15{a_{15}}^2}{6}\frac{\tan(\pi/6)}{\tan(\pi/15)} }

Substituting a_{15}=16'' , to the last equation, we get the wanted edge length, of the regular hexagon:

a_6 =+\sqrt{ \frac{15(16'')^2}{6}\frac{\tan(\pi/6)}{\tan(\pi/15)} }\Rightarrow

a_6\approx 41.69\ \textrm{in}

Regular n-gon cheat-sheet

In the following table a concise list of the main formulas, related to the regular n-gon is included.

Regular n-gon formulas

By calcresource.com

Circumradius: R_c = \frac{a}{2 \sin{\pi\over N}}
Inradius: R_i = \frac{a}{2 \tan{\pi\over N}}
Height: h=\left\{\begin{array}{ll}2R_i&\textrm{N is even} \\ R_c+R_i &\textrm{N is odd} \end{array}\right.

N is even

w=\left\{\begin{array}{ll}2R_i&\textrm{N/2 even} \\ 2R_c &\textrm{N/2 odd} \end{array}\right.

N is odd


Area: A={1\over2}NaR_i=\frac{Na^2}{4\tan(\pi/N)}
Interior angle: \varphi=\pi-\frac{2\pi}{N}
Central angle: \theta={2\pi\over N}

Table of regular n-gon properties

In the following table, some key properties of various n-gons are presented. Included are the interior angle \varphi , the central angle \theta and the ratios, R_c\over a , R_i\over a , A\over a^2 , and A\over R_c where:

  • R_c , the circumradius,
  • R_i , the inradius,
  • a , the edge length,
  • A , the area enclosed by the n-gon

It other words, the presented ratio values in the following table represent the respective properties (circumradius, inradius, perimeter and area), for an n-gon with a=1 , or R_c=1 , for the last ratio.


See also

Properties of Hexagon
Properties of Octagon
Properties of a Rectangle
Properties of a Right-Triangle
Properties of a Circular area
All Geometric Shapes


See also
Properties of Hexagon
Properties of Octagon
Properties of a Rectangle
Properties of a Right-Triangle
Properties of a Circular area
All Geometric Shapes