Life Cycle

How do caterpillars know when to cocoon?

Caterpillars do not count days. Hormones and body size set off pupation: the caterpillar stops feeding, wanders off and then spins a cocoon or forms a chrysalis.

On this page
  1. Caterpillars do not count days
  2. Juvenile hormone: holding the caterpillar in its larval form
  3. Ecdysone: the moulting and pupating signal
  4. The brain signal and daily timing
  5. Size matters: the critical weight
  6. Wandering before pupation
  7. Cocoon or chrysalis: what the caterpillar does next
  8. When the pupa waits: diapause
  9. Parasites that interfere
  10. Common misconceptions

Caterpillars do not count days or plan ahead. Hormones and body size decide when a caterpillar stops feeding, wanders off and pupates. Juvenile hormone keeps the caterpillar in its larval form. When the caterpillar has grown enough and juvenile hormone falls during the final larval stage, a pulse of another hormone triggers pupation.

Caterpillars do not count days

A caterpillar has no calendar and no plan. Age alone does not trigger pupation. Two caterpillars of the same age may pupate at different times if they have grown at different rates. Size and hormone levels matter far more than age.

Juvenile hormone: holding the caterpillar in its larval form

Two hormones control the decision. The first is juvenile hormone, made in glands near the head. While juvenile hormone levels are high, each pulse of the moulting hormone makes the caterpillar moult into a larger larval stage rather than into a pupa.

Ecdysone: the moulting and pupating signal

The second hormone is ecdysone, produced by the prothoracic glands. Each pulse of ecdysone starts a moult. When juvenile hormone falls in the final larval stage, the next ecdysone pulse triggers metamorphosis into a pupa rather than another larval moult.

The brain signal and daily timing

The brain releases a hormone called PTTH (prothoracicotropic hormone), which stimulates the prothoracic glands to produce ecdysone. In some species, PTTH is released only in a set window of the day. In the tobacco hornworm, Manduca sexta, a common laboratory moth, this happens at night.

Size matters: the critical weight

In the final larval stage, a caterpillar must reach a critical weight before its hormones can trigger pupation. In laboratory studies of Manduca sexta, this is around 5 grams, depending on diet. Once a larva is past that point, a starved larva will still pupate, but it produces a smaller adult.

Wandering before pupation

Once the signal to pupate is given, the caterpillar stops feeding, empties its gut and leaves its food plant to search for a site. A small pulse of ecdysone is involved in starting this wandering. Many larvae change colour at this point, and some turn pinkish or duller, as many hawk-moth caterpillars do. This wandering is normal. The caterpillar is not lost or sick.

Cocoon or chrysalis: what the caterpillar does next

Moth caterpillars spin a silk cocoon, as silkworms do, or dig a chamber in the soil. A silkworm takes two to three days to spin its cocoon. Butterfly caterpillars spin a silk pad, and then shed their final skin to reveal the chrysalis. The Monarch hangs in a J shape for about 12 to 24 hours before its skin splits. For the forms you may find, see cocoon identification.

When the pupa waits: diapause

Day length and temperature at this stage decide whether the pupa enters diapause, a period of dormancy. Short days usually lead to overwintering. This is why some pupae wait for months, while others emerge within a few weeks. For the species involved, see how do moths survive winter.

Parasites that interfere

Some parasitoids interfere with a caterpillar’s hormones and stop it from pupating, so the caterpillar never completes its metamorphosis.

Common misconceptions

  • Caterpillars count days or decide consciously. They respond to hormones and size.
  • Age alone triggers pupation. Size and hormones do.
  • All caterpillars make cocoons. Butterflies form a chrysalis, and many moths pupate bare in the soil.
  • A wandering caterpillar is lost or sick. Wandering is normal before pupation.

For the four stages in context, see the life cycle of a moth. For how a caterpillar’s pupa differs from the caterpillar itself, see larva vs pupa.

The complete guide to life cycle

The Life Cycle of a Moth: Egg, Caterpillar, Pupa and Adult
Read the guide

Keep exploring

Guides from other topics

All topics →