Home▸Articles▸Mathematics

The Mathematics of Spirograph: Creating Enchanting Curves

A classic toy that reveals the beauty of parametric equations in action.

mysimulator teamUpdated June 2026≈ 3 min read▶ Open the simulation

What Spirograph Curves Are

Spirograph curves are a type of roulette, specifically hypotrochoids and epitrochoids. These curves are traced by a point attached to a circle that rolls around the inside or outside of another fixed circle. The mathematical equations governing these curves involve parametric representations where the x and y coordinates depend on time t.

The key parameters in generating these curves include the radii R (outer circle) and r (rolling circle), as well as the pen offset d from the center of the rolling circle. These parameters determine the shape, size, and complexity of the resulting curve.

Why It Matters

Understanding spirograph curves is not just for fun; it has applications in various fields such as art, design, and even engineering. For instance, these curves can be used to create intricate patterns in textiles or as a basis for generating complex shapes in computer graphics.

Moreover, the principles behind hypotrochoids and epitrochoids are fundamental in understanding more advanced topics like gear systems and planetary motion.

live demo · related simulation● LIVE

Real-World Examples

Spirograph patterns can be seen in nature, such as the petals of certain flowers or the shapes formed by the sun's rays through a prism. In art, spirographs have been used to create mesmerizing designs and patterns.

In technology, these curves are used in the design of gears where the rolling motion is crucial for smooth operation.

Mathematical Formulas

The parametric equations for a hypotrochoid are given by: x(t) = (R - r) * cos(t) + d * cos(((R - r)/r) * t), y(t) = (R - r) * sin(t) - d * sin(((R - r)/r) * t). Here, R and r are the radii of the fixed and rolling circles respectively, and d is the distance from the center of the rolling circle to the tracing point.

For an epitrochoid, the equations are: x(t) = (R + r) * cos(t) - d * cos(((R + r)/r) * t), y(t) = (R + r) * sin(t) - d * sin(((R + r)/r) * t). These formulas allow for precise control over the shape of the curve.

Frequently asked questions

What is the difference between a hypotrochoid and an epitrochoid?

A hypotrochoid is traced when the smaller circle rolls inside the larger one, while an epitrochoid is formed when the smaller circle rolls outside the larger one.

How do the parameters R, r, and d affect the spirograph pattern?

The parameter R determines the size of the fixed circle, r controls the size of the rolling circle, and d sets the distance from the center of the rolling circle to the tracing point. These values directly influence the shape, complexity, and appearance of the resulting curve.

Can spirograph patterns be used in engineering?

Yes, spirograph principles are applied in the design of gear systems where precise rolling motions are required for smooth operation.

Are there any other types of curves similar to hypotrochoids and epitrochoids?

Yes, other related curves include epicycloids (when the circle rolls on the outside) and hypocycloids (when one circle rolls inside another without slipping).

Try it live

Everything above runs in your browser — open Spirograph — Hypotrochoids & Epitrochoids and change the parameters while it is running. Nothing is installed, nothing is uploaded, the whole model lives in one tab.

▶ Open Spirograph — Hypotrochoids & Epitrochoids simulation

What did you find?

Add reproduction steps (optional)