Epicycloid

Draw epicycloids: the curves a point on the rim of a circle traces as it rolls round the outside of a fixed circle. Choose the fixed and rolling circle as whole numbers, see the cusps, the number of turns before the curve closes, its length and area, and draw the nephroid, the ranunculoid or any ratio from one of 17 presets. Whole-number ratios can also be drawn from straight times-table chords. Watch the circle roll, then download a PDF at real size, a 300 DPI PNG or an SVG for a pen plotter. Nothing is uploaded.

100% private — everything runs in your browser. Everything runs in your browser; nothing is uploaded.

100% private — runs in your browser

Print at 100% (Actual size). The SVG holds the drawing at the size you typed: the curve as one line, each chord as its own line, for a pen plotter, laser or cutter.

Circles

Draw

Lines

Page

Runs in your browser with our own code: nothing you type is uploaded or saved. Every line is worked out from the epicycloid formula by our own code. You may use what you make here, including commercially, with no credit needed.

How to draw and print an epicycloid

  1. Pick a preset or type the fixed circle R and the rolling circle r (whole numbers 1 to 20).
  2. Tick what to draw: the curve, the fixed and rolling circle, the cusps, or times-table chords (whole-number ratios).
  3. Press Animate the rolling to watch the circle roll round.
  4. Pick the colours, line widths, size and paper.
  5. Download the PDF and print at 100% (Actual size), or the SVG for a plotter or cutter.

What you can use it for

  • Maths lessons: roulettes, cusps and ratios
  • Gear and cam lessons: rolling-circle curves
  • Pen plotter and laser art
  • Posters, cards and wall art
  • Times-table circle patterns beyond ×2
  • Logos and badges built from exact curves

The 17 presets

PresetR : rCuspsTurns to closeLengthArea
Cardioid (1:1, 1 cusp)1:11116r6πr²
Nephroid (2:1, 2 cusps)2:12124r12πr²
3:1, 3 cusps3:13132r20πr²
4:1, 4 cusps4:14140r30πr²
Ranunculoid (5:1, 5 cusps)5:15148r42πr²
6:1, 6 cusps6:16156r56πr²
8:1, 8 cusps8:18172r90πr²
12:1, 12 cusps12:1121104r182πr²
3:1 with the rolling circle3:13132r20πr²
3:2 (3 cusps, 2 turns)3:23240r–
5:2 (5 cusps, 2 turns)5:25256r–
5:3 (5 cusps, 3 turns)5:35364r–
7:3 (7 cusps, 3 turns)7:37380r–
7:4 (7 cusps, 4 turns)7:47488r–
1:2 (1 cusp, 2 turns)1:21224r–
Nephroid from chords: times table ×3, 200 points2:12124r12πr²
5 cusps from chords: times table ×6, 300 points5:15148r42πr²

Length and area are in units of the rolling circle radius r. The area is only given for whole-number ratios, where the curve does not cross itself.

Cusps, length and area

k = R / rRatioTimes tableNameLength 8(R + r)Area π(R + r)(R + 2r)
11 : 12Cardioid16r6πr²
22 : 13Nephroid24r12πr²
33 : 14–32r20πr²
44 : 15–40r30πr²
55 : 16Ranunculoid48r42πr²
66 : 17–56r56πr²

All values come from the same formulas the drawing uses and are checked in our tests by numerical integration.

The formula

PartMeaning
(R + r) e^(it)The centre of the rolling circle, going round at distance R + r
− r e^(i(R + r)t/r)The pen on the rim, turning as the circle rolls without slipping
CuspsWhere the pen touches the fixed circle: at t = 2π j q / p
Outer circleThe curve stays inside the circle of radius R + 2r and touches it between cusps

What prints

DownloadWhat is in it
PDFThe page at real size, vector: the drawing, R, r, the length and area for your size, and a check bar
PNG 300 DPIThe same page as a picture
SVG (real size)Only the drawing: the curve as one path, each chord and circle as its own element

For a cutter that needs DXF, use SVG to DXF.

Which tool to use

You wantUse
Rolling-circle curves with sharp cuspsEpicycloid (this page)
The cardioid three ways, with a worksheetCardioid
Gear curves with the pen inside the wheelSpirograph Generator
Two sine waves at right anglesLissajous Curve
Banknote-style line patternsGuilloche Pattern Generator

Different curves: the Spirograph Generator draws gear curves with the pen inside the wheel, the Guilloche Pattern Generator draws interlaced banknote patterns, and the Fractal Generator draws self-similar shapes.

More free tools

Curves, patterns and generative art?

Drawing and print tools that run privately in your browser, with no sign-up and no watermark.

See all free tools →

Frequently asked questions

What is an epicycloid?

The curve traced by a point on the rim of a circle of radius r rolling round the outside of a fixed circle of radius R. Its formula is x = (R + r) cos t − r cos((R + r) t / r), y = (R + r) sin t − r sin((R + r) t / r).

How many cusps does it have?

When R is a whole number k of times r, there are k cusps and the curve closes after one trip round. When R : r reduces to p : q, there are p cusps and the curve closes after the rolling circle goes round q times. The tool shows both, and our tests check them for every ratio up to 12 : 12.

What are the cardioid, nephroid and ranunculoid?

Epicycloids with 1, 2 and 5 cusps: R = r, R = 2r and R = 5r. The nephroid (kidney shape) was named by Richard A. Proctor in 1878 and the ranunculoid after the buttercup genus Ranunculus. The presets only carry these names when the ratio matches.

How long is an epicycloid?

Each arch, from one cusp to the next, is 8r(R + r)/R long, so the closed curve is 8q(R + r), where q is the number of turns (1 for whole-number ratios). The nephroid is 24r long. Our tests check this against a numerical integration.

What area does it enclose?

For a whole-number ratio, π(R + r)(R + 2r): 6πr² for the cardioid and 12πr² for the nephroid. Curves with more than one turn cross themselves, so the tool gives no single area for them.

How do chords make an epicycloid?

Put N points round a circle and join each point n to point (k + 1)n, taking away N as often as needed. The chords outline an epicycloid with k cusps: ×2 gives a cardioid, ×3 a nephroid. The tool checks that every chord touches the curve.

How is this different from a spirograph?

In a spirograph the pen sits in a hole inside the wheel, so the curve has rounded loops. Here the pen is on the rim of the rolling circle, so the curve has sharp cusps where the pen touches the fixed circle.

What happens with a ratio that is not a fraction?

The curve would never close. This tool uses whole numbers for both circles, so every curve it draws is closed and finite.

Can I use it on a pen plotter, laser or cutter?

Yes. The SVG download is the drawing at the real size you typed: the curve is one unbroken path and every chord or circle is its own element, so a plotter draws each in one stroke. For a program that wants DXF, convert the SVG with our SVG to DXF tool.

Is it free?

Yes. There is no sign-up, no watermark and no limit.

Is anything uploaded?

No. Every line is worked out by JavaScript in your browser. Nothing you type is sent anywhere or saved when you close the page.