What is the Star Shape Calculator?
A star polygon (the familiar 5-pointed star, the 6-pointed Star of David, and so on) is built from n outer points lying on a large circle of radius R and n inner vertices lying on a small circle of radius r. This calculator finds the enclosed area, the length of each edge, and the total perimeter of such a star from just three inputs.
How to use it
Enter the number of points n (3 or more), the outer radius R (center to a point tip) and the inner radius r (center to a valley between two points). The calculator instantly returns the area in square units, the length of one slanted edge, and the perimeter (the star has 2n edges).
The formula explained
The star can be cut into 2n identical triangles, each spanning a half-angle of \(\frac{\pi}{n}\) with sides \(R\) and \(r\). The area of each such triangle is \(\frac{1}{2}\cdot R\cdot r\cdot\sin\!\left(\frac{\pi}{n}\right)\), and there are \(2n\) of them, giving the compact result:
$$A = n \cdot r \cdot R \cdot \sin\!\left(\frac{\pi}{n}\right)$$
The edge connecting an outer point at radius \(R\) to the neighbouring inner vertex at radius \(r\) (offset by angle \(\frac{\pi}{n}\)) has length \(e = \sqrt{\left(R - r\cos\frac{\pi}{n}\right)^{2} + \left(r\sin\frac{\pi}{n}\right)^{2}}\), and the perimeter is \(2n\cdot e\).
Worked example
For a classic 5-pointed star with \(R = 10\) and \(r = 5\):
$$A = 5 \cdot 5 \cdot 10 \cdot \sin(36°) = 250 \cdot 0.587785 \approx 146.95$$square units. The edge length is
$$\sqrt{(10 - 5\cdot\cos 36°)^{2} + (5\cdot\sin 36°)^{2}} = \sqrt{(10 - 4.0451)^{2} + (2.9389)^{2}} \approx \sqrt{35.46 + 8.64} \approx 6.6408$$so the perimeter is \(10 \cdot 6.6408 \approx 66.41\).
Star Area and Perimeter for Common Point Counts
The star has 2n vertices: n outer tips at distance R from the center and n inner vertices at distance r, alternating every π/n radians. It splits into 2n triangles, each with area ½·R·r·sin(π/n), so \(A = n\,R\,r\,\sin(\pi/n)\). Each edge joins one tip to one neighboring inner vertex, so by the law of cosines \(e = \sqrt{R^2 + r^2 - 2Rr\cos(\pi/n)}\) and the perimeter is \(P = 2n\,e\). All rows below use R = 10 (any length unit; area is in squared units).
| n | R | r | r/R | Area A | Edge e | Perimeter 2n·e |
|---|---|---|---|---|---|---|
| 3 | 10 | 4 | 0.4 | 103.923 | 8.718 | 52.307 |
| 3 | 10 | 5 | 0.5 | 129.904 | 8.660 | 51.962 |
| 3 | 10 | 8 | 0.8 | 207.846 | 9.165 | 54.991 |
| 4 | 10 | 4 | 0.4 | 113.137 | 7.709 | 61.674 |
| 4 | 10 | 5 | 0.5 | 141.421 | 7.368 | 58.945 |
| 4 | 10 | 8 | 0.8 | 226.274 | 7.132 | 57.054 |
| 5 | 10 | 4 | 0.4 | 117.557 | 7.161 | 71.609 |
| 5 | 10 | 5 | 0.5 | 146.946 | 6.641 | 66.407 |
| 5 | 10 | 8 | 0.8 | 235.114 | 5.879 | 58.786 |
| 6 | 10 | 4 | 0.4 | 120.000 | 6.835 | 82.021 |
| 6 | 10 | 5 | 0.5 | 150.000 | 6.197 | 74.359 |
| 6 | 10 | 8 | 0.8 | 240.000 | 5.043 | 60.521 |
| 8 | 10 | 4 | 0.4 | 122.459 | 6.488 | 103.802 |
| 8 | 10 | 5 | 0.5 | 153.073 | 5.711 | 91.371 |
| 8 | 10 | 8 | 0.8 | 244.917 | 4.022 | 64.357 |
| 12 | 10 | 4 | 0.4 | 124.233 | 6.223 | 149.352 |
| 12 | 10 | 5 | 0.5 | 155.291 | 5.330 | 127.917 |
| 12 | 10 | 8 | 0.8 | 248.466 | 3.074 | 73.785 |
Worked check (n = 5, R = 10, r = 4): \(A = 5 \cdot 10 \cdot 4 \cdot \sin 36^\circ = 200 \cdot 0.587785 = 117.557\). Edge: \(e^2 = 100 + 16 - 80\cos 36^\circ = 116 - 64.721 = 51.279\), so \(e = 7.161\) and \(P = 10 \cdot 7.161 = 71.609\).
Special cases:
- When \(r = R\cos(\pi/n)\), each inner vertex lies exactly on the straight line between two neighboring tips. The edges become collinear and the shape degenerates into an ordinary regular n-gon, not a star. For R = 10 this happens at r = 5 for n = 3 (the triangle row above: area 129.904 is that of an equilateral triangle with circumradius 10), r ≈ 7.071 for n = 4, r ≈ 8.090 for n = 5, r ≈ 8.660 for n = 6, r ≈ 9.239 for n = 8 and r ≈ 9.659 for n = 12.
- For r between \(R\cos(\pi/n)\) and R, the shape is convex, so it no longer looks like a star. This applies to the rows n = 3, r = 8 (a convex hexagon) and n = 4, r = 8 (a convex octagon).
- Only when r = R do all 2n vertices lie on one circle, giving a regular 2n-gon. The formulas still hold there, e.g. the area of a regular 2n-gon is \(n R^2 \sin(\pi/n)\).
Star Polygon Terms and Variables
- Number of points n
- The number of tips (outer vertices) of the star. It must be a whole number of at least 3 (3 = triangular star, 5 = pentagram-like star, and so on).
- Outer radius R
- The distance from the center to each tip. All tips lie on a circle of radius R.
- Inner radius r
- The distance from the center to each inner vertex. All inner vertices lie on a circle of radius r. For a true star, r must be less than R (and positive).
- Outer vertex (tip)
- A point of the star at distance R from the center, where two edges meet at a convex corner.
- Inner vertex (valley/notch)
- A point at distance r from the center, located halfway in angle (π/n) between two neighboring tips. The interior angle there is reflex (greater than 180°) when the star is concave.
- Edge
- A straight segment joining a tip to an adjacent inner vertex. All edges have the same length \(e = \sqrt{R^2 + r^2 - 2Rr\cos(\pi/n)}\).
- 2n edges
- An n-pointed star has n tips and n inner vertices, so 2n vertices and 2n edges. The perimeter is therefore \(2n \cdot e\).
- Regular star polygon vs. star-shaped concave 2n-gon
- A regular star polygon in the strict sense (such as the pentagram {5/2}) is made by connecting every k-th point on a circle, so its edges cross each other. The shape this calculator measures is different: a simple (non-self-intersecting) concave 2n-gon with alternating vertices on two circles. It is equilateral and equiangular at the tips and at the valleys, but it is not a regular polygon unless r = R.
- Ratio r/R (sharpness)
- A smaller ratio gives thinner, sharper spikes; a ratio near 1 gives blunt points. The shape stays a concave star only while \(r/R < \cos(\pi/n)\). At \(r/R = \cos(\pi/n)\) it becomes a regular n-gon, and above that it is convex.
FAQ
Does this work for any number of points? Yes — enter any \(n \geq 3\). With \(n = 3\) you get a three-pointed star.
What if R and r are equal? The shape becomes a regular \(2n\)-gon (no concave valleys), and the area formula still holds.
What units does it use? Any consistent unit. If \(R\) and \(r\) are in centimetres, area is in square centimetres and perimeter in centimetres.