Omni calculator
Last updated:

Star Shape Calculator

Table of contents

Star shapes: pointy geometryWhat is the pentagram shape?More than pentagram: different star shapesSome facts about star shapes!How to use our star shape calculatorFAQs

Twinkle, twinkle, little star... our star shape calculator will calculate all of the important elements of a star polygon in the blink of an eye!

Here you will learn everything about star-shaped polygons. Well, everything apart from occultism: we deal with geometry, not magic! Keep reading to find out:

  • What are star-shaped polygons;
  • How to build them;
  • What is the pentagram: a down to Earth introduction;
  • Other star-shaped polygons; and
  • How to use our star shape calculator.

We also added some fun facts about these shapes and a challenge: how many triangles are in a pentagram? To the stars, with Omni Star Shape Calculator!

Star shapes: pointy geometry

Star polygons are the shiniest shapes in geometry. By definition, they are:

  • Non-convex;
  • Self-intersecting;
  • Equilateral; and
  • Equiangular polygons.

Let's look at all of these features one by one!

  • Non-convex means that you can draw a line between two points inside the star-shaped polygon that passes outside its perimeter.
  • Self-intersecting means that you can build all the different star shapes starting from a regular polygon and prolonging its vertexes until the extensions cross each other.
  • Equilateral signifies that all the outer sides of the star-shaped polygon have the same length (latus is the Latin for side).
  • Equiangular means that all the angles lying in the same "region" are equal.

The last two attributes of the star polygons automatically qualify them as regular polygons. Of course, you can build irregular star polygons, but they would be impossible to calculate, and we are here for this!

We can uniquely identify every star polygon using the SchlΓ€fli symbol. This symbol consists of a pair of numbers in the form n/m{n/m}, where:

  • nn is the number of corners/sides of the polygon; and
  • mm is its starriness or how many distinct boundaries you can identify around the center.

Let's see how to build a star polygon, and then this notation will be clearer!

How to build a star
The animation shows the construction of a five-pointed star from a regular polygon.

This five-pointed star polygon has the SchlΓ€fli symbol 5/2{5/2}, and it is so important we will deal with it in the next section.

What is the pentagram shape?

Let's meet the VIP (very important polygon) among the star polygons: the pentagram!

What is a pentagram? The pentagram is nothing but a five-pointed star shape. However, humanity covered it with a fair dose of mysticism. It is the first regular star polygon we can build by extending the sides of a polygon (try to do that with a square or a triangle, and you will understand), and also one of the most drawn shapes in the world. In particular, you can draw it from a pentagon.

πŸ”Ž You can draw a pentagram without separating the pen from the paper. But you knew this already: everyone draws stars in their lives!

The pentagram got a bad reputation due to its association with evil: don't trust such voices and keep exploring this fascinating shape's geometry!

Here is a pentagram with all the important features highlighted!

A pentagram
Don't worry: the only magical thing in this shape is the math!

You will meet these elements in all the other star polygons in this calculator: pay attention!

You can identify:

  • aa, the distance between two contiguous "points" of the star;
  • bb, the length of the first set of "rays" wounding around the polygon;
  • cc, the side of the original polygon; and
  • ll, the distance from two "points" of the stars belonging to the same side of the polygon.

Note that connecting the points of the star creates a new nn-sided regular polygon with side aa!

Some relationships between those quantities always hold (for every star polygon); others are specific for a given shape. Let's check the general ones first:

  • The "side" of a star is given by the sum l=c+2β‹…bl=c+2\cdot b; and
  • You can calculate the perimeter of the first boundary of an nn-pointed star with the formula:
P=2β‹…nβ‹…b\footnotesize P = 2\cdot n \cdot b

However, there are many more "specific" formulas. Let's see the ones for the pentagram:

l=a⋅φb=aφc=bφ\footnotesize \begin{align*} &l=a\cdot \varphi\\\\ &b=\frac{a}{\varphi}\\\\ &c=\frac{b}{\varphi} \end{align*}

Ο†\varphi is the golden ratio:

Ο†=1+52≃1.618\footnotesize \varphi = \frac{1+\sqrt{5}}{2}\simeq1.618

Only the pentagram among the star polygons has sides that relate to the ratio. Admire the proportions of these quantities:

la=ab=bc=Ο†\footnotesize \frac{l}{a}=\frac{a}{b}=\frac{b}{c}=\varphi

Knowing this, we can almost understand why the pentagram got its reputation! It looks like someone really put a lot of thought into such a simple geometric shape. Learn everything about this "magic" number at the golden ratio calculator!

Apart from those golden ratios, there are a couple more relationships holding in a five-pointed star shape:

a=b+cl=a+b\footnotesize \begin{align*} &a=b+c\\ &l=a+b \end{align*}

We can also calculate the value of the perimeter and the area. For the perimeter, use the general formula above, substituting n=5n=5. For the area, a specific formula is needed:

A=5β‹…(5βˆ’25)β‹…a22\footnotesize A=\frac{\sqrt{5 \cdot ( 5-2\sqrt{5} ) \cdot a^2 }}{2}

More than pentagram: different star shapes

Let's check out different star shapes!

If we start from the hexagon (the bestagon), we can build the hexagram. In a hexagram, we can use the following formulas to calculate the various characteristic quantities:

l=aβ‹…3b=a3c=b\footnotesize \begin{align*} &l=a\cdot \sqrt{3}\\\\ &b=\frac{a}{\sqrt{3}}\\\\ &c=b \end{align*}

The factor 3\sqrt{3} comes from the intimate connection between hexagons and equilateral triangles: the angles of such a shape are, in fact, 60°60\degree (visit Omni's equilateral triangle calculator if you want to refresh your knowledge!). When we use this value in a trigonometric function like the tangent, we find tan⁑60°=3\tan{60\degree}=\sqrt{3}. Find out more about hexagon symmetries with our hexagon calculator.

A hexagram with all its element highlighted.

We can calculate the area of a hexagram with the formula:

A=3β‹…b2β‹…32\footnotesize A = 3\cdot b^2 \cdot \frac{\sqrt{3}}{2}

Increase the number of sides and get a heptagram, a seven-pointed star. The heptagram has a particularity: it is the first star-shaped polygon for which we can naturally find a third boundary.

The reason for this peculiarity is that two sides of a heptagon separated by two others can finally meet if prolonged. In the case of a pentagram, the same couple would be a pair separated by a single side (thus a "first-order" ray), while in a hexagram, the same couple is parallel.

When drawing a heptagram then, we meet two star-shaped polygons: a stubbier one, associated with the SchlΓ€fli symbol 7/2{7/2}, and a more slender one with symbol 7/3{7/3}.

The heptagram is the first star shaped polygon with two additional boundaries.

We call the side of the 7/3{7/3} heptagram dd. We can calculate the geometric relationships for both shapes, but we warn you: we will use some trigonometry, and the formulas will start to look "ugly"!

a=2β‹…bβ‹…sin⁑(180βˆ’(360/7)2)c=2β‹…bβ‹…cos⁑(3607)\footnotesize \begin{align*} &a = 2\cdot b \cdot \sin{\left(\frac{180-(360/7)}{2}\right)}\\\\ &c = 2 \cdot b \cdot \cos{\left(\frac{360}{7}\right)} \end{align*}

The side of the boundary 7/3{7/3} comes from the formula:

d=l2Γ—cos⁑(180βˆ’2Γ—3607)βˆ’l\footnotesize d = \frac{l}{2\times \cos{\left(180 - 2\times \frac{360}{7}\right)}}-l

The formula for the area requires we compute:

  • The area of a heptagram with a side equal to aa; and
  • Seven times the area of an isosceles triangle with side dd and base aa.
A=(72β‹…a2β‹…d2βˆ’(a2)2)+(74β‹…a2β‹…cot⁑(Ο€7))\footnotesize \begin{align*} &A = \left(\frac{7}{2} \cdot \frac{a}{2}\cdot \sqrt{d^2 - \left(\frac{a}{2}\right)^2}\right)+\\ &\qquad\left(\frac{7}{4}\cdot a^2 \cdot \cot{\left(\frac{\pi}{7}\right)}\right) \end{align*}

To conclude, the last "manageable" star-shaped polygon is the octagram, an eight-pointed star shape with an intriguing figure, rich in angles of 45Β°45\degree. We start drawing it from an octagon, an eight-sided polygon.

An octagram
The elements of an octagram. Can you see the squares?

As for the heptagon, we deal with a shape with three boundaries (we can identify both 8/2{8/2} and 8/3{8/3}). Here are the formulas for the side: don't worry if you see some 2\sqrt{2} factors, blame trigonometry instead!

a=2β‹…bβ‹…sin⁑(135)c=bβ‹…2d=b+c\footnotesize \begin{align*} &a = 2 \cdot b \cdot \sin{(135)}\\ &c= b \cdot \sqrt{2}\\ &d = b+c \end{align*}

As for the heptagram, the fastest way to compute the area involves the separation of the octagram in an octagon with side aa and eight triangles. The formula is:

A=(4β‹…a2β‹…d2βˆ’(a2)2)+(2β‹…a2β‹…cot⁑(Ο€8))\footnotesize \begin{align*} &A = \left(4 \cdot \frac{a}{2}\cdot \sqrt{d^2 - \left(\frac{a}{2}\right)^2}\right)+\\ &\qquad\left(2\cdot a^2 \cdot \cot{\left(\frac{\pi}{8}\right)}\right) \end{align*}

You can build star shapes for any regular polygon: the series continues with the enneagram, the decagram, etc. A generalization of the formulas is hardly helpful since every new odd-numbered polygon is associated with an additional boundary: for the enneagram, we can identify the SchlΓ€fli symbol 9/4{9/4}, for the hendecagram, we have the boundary 11/5{11/5}, and so on.

Some facts about star shapes!

Star polygons are simple shapes, but somehow they keep appearing all around us.

Consider flags, for example. Of the 196196 country flags in the world, 4040 of them contain stars. However, the number of stars rises quickly if you count the shapes: the US flag alone contributes with 50! πŸ˜‰

Burundi's and Israel's flags contain hexagrams. The flag of Jordan depicts a heptagram; the shape was also part of the old Georgian coat of arms. Only Azerbaijan contains an octagram!

Many countries have pentagrams in their flags: there is quite a constellation from the US to Somalia!

An old flag of Australia contained six-pointed stars, while the modern one has both a pentagram and some heptagrams! The designers of the national colors couldn't make up their minds!

Our favorite starred flag is the flag of Nepal: the only non-rectangular flag in the world also has a beautiful 12-pointed star which really makes it stand out!

Star-shaped polygons appear widely through sacred geometry. Do we need to mention the Star of David, a hexagram, or the shared symbolism associated with the pentagram from Hinduism to Neo-paganism?

You can also notice that the constructions of a star-shaped polygon create many triangles, the simplest bi-dimensional shape.

To make the game more entertaining, connect the outside points of the nn-gram! How many triangles are in a pentagram shape?

We counted... 3535, how about you?

How to use our star shape calculator

Our star shape calculator can help you calculate all of the characteristic lengths of the four most common star-shaped polygons:

  • Pentagram;
  • Hexagram;
  • Heptagram; and
  • Octagram.

Select the desired number of sides at the top of the calculator and insert the value of one of the available variables there: we will calculate all the others! For example, you can insert the area, and we will tell you all the other lengths.

⚠️ The cotangent function in the area formulas of heptagrams and octagrams prevents the calculations from running in the inverse direction!


What is a star-shaped polygon?

A star-shaped polygon (n-gram) is a non-convex regular polygon. To build it starting from a regular n-polygon like a pentagon (n = 5), hexagon (n = 6), etc., follow these steps:

  1. Prolong the sides of the starting polygon.
  2. Extend each side until it intersects the prolongation of the next non-adjacent side.

For odd-sided polygons, you can have an intersection between prolongations separated by an increasing number of sides: check all the possibilities!

Are there star-shaped polygons you can't draw without lifting the pen from the paper?

No! If you are dealing with regular star-shaped polygons, you can always find a way to draw the entire shape without lifting the pen from the paper. From time to time, it may be cumbersome, though. Try to follow these tips:

  • Identify the components of the shape: other stars or convex polygons.
  • If there are separated elements, start from an intersection.
  • Retrace an already drawn shape.

What is the perimeter of a pentagram with side 5?

This perimeter is 50. The formula for the perimeter of a pentagram shape is:

perimeter = 10 Γ— side

where side is the length of the side of the "rays" of our star. Since there are five rays, with two sides each, to calculate the perimeter of the pentagram, it suffices to count ten times the length of side.

What is the side of a hexagram built from a hexagon with side 3?

The answer is 3. The hexagram "rays" are nothing but equilateral triangles. In fact, you can consider the hexagram itself as the result of the intersection of two equilateral triangles with side 3 times larger than the side of the hexagram.

This interesting symmetry comes from the extreme regularity of hexagons. Learn more with the star shape calculator at Omni Calculator!


Β© Omni Calculator

Check out 23 similar 2d geometry calculators πŸ“
AreaArea of a rectangleArea of crescent...20 more