# Star Shape Calculator

URL: https://speedycalculator.com/calculators/math/star-shape/
Last updated: 2026-11-08

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

## Inputs

- Star type
- Edge length a (cm, m, mm, in, ft, yd, km, mi)

## Results

- Inner / outer radius ratio
- Outer radius R (tip to centre)
- Inner radius r
- Perimeter
- Area
- Tip angle

## 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)
```

## Explanation

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

- **Star type**
- **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

FieldWhat to enterStar typeChoose one: Pentagram {5/2}, Hexagram {6/2}, Heptagram {7/2}, Heptagram {7/3} …Edge length aUnits: 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.513.29143.7529.9057553.16576.2583.07147.5119.622810212.6627

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

## FAQ

**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

- [Wolfram MathWorld: Star polygon](https://mathworld.wolfram.com/StarPolygon.html)
- [Wolfram MathWorld: Pentagram](https://mathworld.wolfram.com/Pentagram.html)
