Star Shape Calculator

Quick answer

The star shape calculator finds the outer and inner radius, perimeter and area of a regular star (pentagram, hexagram, heptagram or octagram) from the length of one edge.

Inner / outer radius ratio
0.38196601
Outer radius R (tip to centre)
6.88191
Inner radius r
2.628656
Perimeter
50
Area
53.165676
Tip angle
36

Regular stars appear on flags, badges, Christmas decorations and in architecture. A pentagram {5/2} connects every second vertex of a pentagon; a hexagram {6/2} is two overlapping triangles (the Star of David); octagrams are common in Islamic geometric art.

How to use the Star Shape Calculator

  1. Star type
  2. Edge length a

Results update as you type, and everything is calculated in your browser.

How it works

Pick the star and enter the edge length a, one of the 2n short segments that make up its outline. The ratio of inner to outer radius depends only on the type of star; the size is then fixed by a.

Inputs explained

Field What to enter
Star type Choose one: Pentagram {5/2}, Hexagram {6/2}, Heptagram {7/2}, Heptagram {7/3} …
Edge length a Units: cm, m, mm, in, ft, yd …

What each result means

  • Inner / outer radius ratio = cos([m]×pi÷[n])÷cos(([m] – 1)×pi÷[n])
  • Outer radius R (tip to centre) = [Edge length a]÷sqrt(1 + [Inner ÷ outer radius ratio]^2 – 2×[Inner ÷ outer radius ratio]×cos(pi÷[n]))
  • Inner radius r = [Inner ÷ outer radius ratio]×[Outer radius R (tip to centre)]
  • Perimeter = 2×[n]×[Edge length a]
  • Area = [n]×[Outer radius R (tip to centre)]×[Inner radius r]×sin(pi÷[n])
  • Tip angle = 180 – 360×[m]÷[n]

Example values

How the main result changes when Edge length a changes and everything else stays at the example values above:

Edge length a (cm) Area (cm²)
2.5 13.2914
3.75 29.9057
5 53.1657
6.25 83.0714
7.5 119.6228
10 212.6627

Formula

Star {n/m}: ρ = r/R = cos(mπ/n)/cos((m − 1)π/n) Edge a = R·√(1 + ρ² − 2ρ·cos(π/n)), P = 2n·a, A = n·R·r·sin(π/n)

Worked example

Inputs: Star type: Pentagram {5/2}; Edge length a: 5 cm.
Results: Inner / outer radius ratio = 0.38196601; Outer radius R (tip to centre) = 6.88191 cm; Inner radius r = 2.628656 cm; Perimeter = 50 cm; Area = 53.165676 cm²; Tip angle = 36 °.

Key terms

Star polygon
A figure {n/m} formed by joining every m-th of n points on a circle.

Frequently asked questions

What is the tip angle of a pentagram?

36°.

What does {5/2} mean?

Five points, connecting every second vertex.

Is a hexagram one shape?

It is two overlapping equilateral triangles; its outline is still a regular star.

How is the golden ratio in the pentagram?

Each long segment is φ times the edge length.

Sources

  1. Wolfram MathWorld: Star polygon
  2. Wolfram MathWorld: Pentagram

Cite this calculator

Speedy Calculator. (2026). Star Shape Calculator. Speedy Calculator. https://speedycalculator.com/calculators/math/star-shape/