What is an unicursal hexagram?
The unicursal hexagram is a six-pointed star that can be drawn in one stroke without lifting the pen. It runs through the six corners of a regular hexagon with side a: number the corners 0 to 5 around the hexagon, with corner 0 at the top, and the stroke goes 0, 2, 5, 3, 1, 4 and back to 0. Four of its six lines are short diagonals of the hexagon (they skip one corner) and two are long diagonals (they pass through the centre and cross there). Unlike the ordinary hexagram made of two triangles, two short diagonals meet only at the top and the bottom corner; at each of the four side corners a short diagonal meets a long one.
This calculator finds the area of the region bounded by the outer outline of the star, the perimeter of that outline (a polygon with 12 sides), the length of the whole stroke, the lengths of the long and the short diagonals, and the pieces into which the crossings cut each line.
How to use it
Enter the side a of the hexagon. Everything else follows from it; the page refuses a side that is 0, negative or outside 0.000001 to 1,000,000,000, and text that is not a number. Every measure is solved from the values you enter. The length unit is a label only: lengths are shown in that unit and areas in its square. The page shows results rounded to at most 6 decimal places and writes values from 10¹² up as a 12-digit number times a power of ten, such as 1.23456789012 × 10¹², and very small values out in full.
Derivation of the formulas
Put the centre at the origin and corner k at the angle 90° − 60°·k on the circle of radius a (the circumradius of a regular hexagon equals its side). Then the corners are 0 = (0, a), 1 = (√3a/2, a/2), 2 = (√3a/2, −a/2), 3 = (0, −a), 4 = (−√3a/2, −a/2) and 5 = (−√3a/2, a/2). A short diagonal such as 0–2 skips one corner and has the length √3a; a long diagonal such as 2–5 passes through the centre and has the length 2a. The stroke is four short and two long diagonals:
$$L = 4\sqrt{3}\,a + 2\cdot 2a = 4a\left(1 + \sqrt{3}\right)$$Solving the lines in pairs gives the crossings. On the right, the short diagonal 0–2 meets the long diagonal 1–4 at P = (√3a/4, a/4) and the short diagonal 3–1 at M = (a/√3, 0); the short diagonal 3–1 meets the long diagonal 2–5 at Q = (√3a/4, −a/4); the two long diagonals cross at the centre. The left side is the mirror image. So each long diagonal is cut into four pieces of a/2, and each short diagonal, starting from the top or bottom corner, into the pieces √3a/2, √3a/6 and √3a/3 (together √3a).
The outer outline runs through 0, P, 1, M, 2, Q, 3 and the mirror points back to 0: twelve sides, four each of the lengths √3a/2, a/2 and a/√3. Its perimeter and, by the shoelace formula on these twelve corners, its area are
$$P = 4a\left(\frac{\sqrt{3} }{2} + \frac{1}{2} + \frac{1}{\sqrt{3} }\right) = \frac{6 + 10\sqrt{3} }{3}\,a, \qquad A = \frac{5\sqrt{3} }{6}\,a^2$$The same area is the sum of the pieces inside the outline: the two kites at the top and the bottom (√3a²/4 each), and on each side a kite O–P–M–Q (a²/(4√3)) and two small triangles at the side corners (a²/(8√3) each). The values were also checked another way when the page was built: the lines and their crossings were found by a general line-crossing routine, and the outline was traced from the centre as the farthest line on each ray; both give the same lengths, perimeter and area.
Worked example
With the default side a = 4 the region inside the outline has the area 23.094011 square units, the outline is 31.094011 long, the whole stroke 43.712813, each long diagonal 8 and each short diagonal 6.928203.
FAQ
Which area does the page give?
The area of everything inside the outer outline of the star, including the small regions between the crossing lines. It is not the area of the hexagon (3√3a²/2, larger) and not the area of the ordinary hexagram of two triangles.
Why is the outline perimeter shorter than the stroke?
The stroke counts every line in full, including the pieces that lie inside the star; the outline uses only the two end pieces of each line, and the pieces between the crossings lie inside the star.
Which inputs are refused?
A side that is 0, negative or outside 0.000001 to 1,000,000,000, and text that is not a number.
Does the unit change the numbers?
No. Geometry does not depend on the unit, so the unit only labels the results.
How accurate are the results?
Every value is a whole number times a, a fraction of a, or a fraction of a (or of a²) times √3. The lengths 2a and a/2 are exact. Each value with √3 is rounded once to the digits shown, a value exactly halfway being rounded up, and its side of every rounding point is decided exactly from your digits by comparing squares of whole numbers, so every digit shown is correct for every accepted a.
Accuracy and input range
Every value is a whole number times a, a fraction of a, or a fraction of a (or of a²) times √3. The lengths 2a and a/2 are exact. Each value with √3 is rounded once to the digits shown, a value exactly halfway being rounded up, and its side of every rounding point is decided exactly from your digits by comparing squares of whole numbers, so every digit shown is correct for every accepted a.
Enter each length from 0.000001 to 1,000,000,000. Anything outside is refused with a message naming the range.
References
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulae, 33rd ed., CRC Press, 2018, ch. 4 (regular polygons; areas from coordinates)