What this calculator does
An epicycloid is the curve traced by a point on a circle of radius r that rolls without slipping round the outside of a fixed circle of radius R. When R = k r for a whole number k, the curve closes after one trip round, with k cusps on the fixed circle; the area is the whole region it encloses, fixed circle included. With 1 cusp it is the cardioid, with 2 the nephroid.
Derivation of the formulas
Rolling-circle radius:
$$ r = \frac{R}{k} $$
Area:
$$ A = \pi (k + 1) (k + 2)\, r^2 = \frac{(k + 1) (k + 2)\,\pi R^2}{k^2} $$
Perimeter:
$$ L = 8 (k + 1)\, r = \frac{8 (k + 1) R}{k} $$
Outer radius:
$$ R + 2r $$
Let the rolling circle's centre turn through the angle t round the centre of the fixed circle; it moves on the circle of radius R + r. No slipping means the arcs that have touched are equal, so the rolling circle turns by (R + r)t/r in the same sense. The point is x = (R + r)cos t − r cos((R + r)t/r), y = (R + r)sin t − r sin((R + r)t/r). One arch takes t from 0 to 2π/k; its speed is 2(R + r)|sin(R t/(2r))|, which integrates to 8(R + r)r/R = 8(k + 1)r/k per arch, so L = 8(k + 1)r. Green's theorem, A = ½∮(x dy − y dx), evaluates to π(R + r)(R + 2r) = π(k + 1)(k + 2)r². The farthest point of an arch is where the tracing point is opposite the contact point, R + 2r from the centre.
Solving from what you know
Choose what you know: Radius R of the fixed circle and cusps k; Radius r of the rolling circle and cusps k; Area A and cusps k; Perimeter L and cusps k. The calculator first finds the sizes that define the curve and then computes every other value from the formulas above. Each length is accepted from 0.000001 to 1,000,000,000, each area from 0.000000000001 to 1,000,000,000,000,000,000; anything outside is refused with a sentence that names the range. The number of cusps is a whole number from 1 to 1,000.
Worked example
With the defaults R = 6 and k = 3: r = 2, A = π·4·5·2² = 80π ≈ 251.327412, L = 8·4·2 = 64, and the curve reaches 10 from the centre.
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable. They are shown with up to 6 decimal places; a value below 0.000001 or of 10¹⁵ and more is shown as its plain 12-digit number instead. The unit you pick is a label: lengths are shown in that unit and areas in its square.
Frequently asked questions
Why must the number of cusps be a whole number?
Only when R/r is a whole number k does the tracing point come back to where it started after one trip round the fixed circle, so that the curve closes with k cusps. For other ratios the curve goes on round and does not close after one turn.
Is the cardioid an epicycloid?
Yes: with k = 1 the rolling circle is as large as the fixed one and the curve is a cardioid, A = 6πr² and L = 16r. The cardioid calculator has more options for it.
How accurate are the results?
Results are accurate to at least 9 significant digits for ordinary inputs. When a result depends on the small difference of two nearly equal entries (closer than one part in a million), fewer digits are reliable.
References
J. Dennis Lawrence, A Catalog of Special Plane Curves, Dover Publications, 1972
D. Zwillinger (ed.), CRC Standard Mathematical Tables and Formulas, 33rd edition, CRC Press, 2018