A caterpillar usually takes 1 to 5 days to spin its cocoon once it stops eating and starts wandering. The whole transformation from egg to adult moth, however, runs about 30 to 90 days depending on species, temperature, and day length. The cocoon itself forms in hours, but the caterpillar-to-pupa change inside it takes roughly 10 to 14 days.

The word "cocoon" hides a distinction that matters for timing. Only moths spin silk cocoons. Butterflies form a hardened casing called a chrysalis, which is not a cocoon at all. So the honest answer depends on what you are watching and which species you have. This guide separates the timeline into its real stages, gives numbers where measurements exist, and flags where the popular story breaks down.

Silk extrusion and the spinning window

A cocoon is spun silk, not a shell the caterpillar grows. The caterpillar has a pair of silk glands running the length of its body, each ending in a spinneret on the lower lip. As it approaches its final larval stage, the glands enlarge and fill with a protein gel. When the caterpillar releases the gel and pulls it through the spinneret, the protein stiffens on contact with air into a fiber.

The animal first lays a loose scaffolding of silk, then works in figure-eight motions to build the dense outer layers. A moth caterpillar commonly needs one to two days to finish a cocoon once spinning starts in earnest, with some species finishing in under 12 hours. The freshly made silk is pale and slightly damp, then darkens and tightens as it dries. Larvae that have finished feeding stop moving toward light and start wandering, which is the signal that spinning is imminent.

From egg to adult: quantified context

Timing varies most at the two ends of the cycle: hatching and overwintering. Under warm conditions, eggs hatch in about 3 to 8 days for many common species, and the caterpillar passes through several molts over two to five weeks. The cocoon or chrysalis phase then lasts roughly 7 to 14 days in summer broods.

Temperature drives the pace. Warmer rearing temperatures shorten development while cooler ones stretch it, a relationship that holds across moths and butterflies. Day length matters too: many temperate species enter diapause when autumn light drops, and the insect holds its stage for months rather than weeks. The counterintuitive part is that a summer cocoon can sit empty-looking for two weeks, while a fall cocoon may look identical for six months. Size does not reliably predict duration, and neither does species fame.

Species Larval feeding period Cocoon or chrysalis stage Full egg-to-adult time Notes
Monarch butterfly 9–14 days 8–15 days (chrysalis) 20–35 days Multiple broods per year
Silkworm moth 25–32 days 10–14 days 45–55 days Domesticated, continuous rearing
Luna moth 3–4 weeks 2–3 weeks or overwinter 6–10 weeks or ~10 months Fall cocoons overwinter
Cecropia moth 4–6 weeks 10–14 days summer; all winter 8–10 weeks or ~9 months Large, showy silk cocoon
Painted lady butterfly 5–10 days 7–10 days (chrysalis) 21–35 days Common in classrooms
Woolly bear caterpillar Weeks in fall Overwinters as larva, then pupates in spring Spans two years Pupates after spring feeding
Tomato hornworm moth 3–4 weeks 2–3 weeks; soil pupation 4–7 weeks Pupates underground, no aerial cocoon

The table shows why a single "how long" number misleads. Two animals of similar size can differ by a factor of ten depending on season and species.

The pupa inside: what the cocoon is hiding

The cocoon is a weatherproof wrapper around a separate event: pupation. A moth caterpillar sheds its final skin inside or just before the cocoon, revealing a smooth pupa that cannot crawl or eat. Inside that pupa, most larval tissues break down into a soup of cells and building blocks, and a different set of cells reorganizes them into wings, compound eyes, and reproductive organs. A minority of larval structures are retained and remodeled rather than dissolved.

This internal rearrangement takes on the order of a week or two in warm conditions. The insect does not "sleep" through it; metabolic rate stays active and the animal is vulnerable to heat, drought, and parasites. A cocoon that feels light or rattles is often dead or parasitized, not simply resting. For butterflies, the chrysalis plays the same role without a silk wrapper, though many species anchor the chrysalis with a silk pad and a thin girdle.

A stage-by-stage timeline

A working timeline for a summer moth brood looks like this. Treat each range as typical, not fixed, because rearing temperature and humidity shift every row.

Stage Typical duration What you see Threshold cue
Egg 3–8 days Small round or oval eggs on a host leaf Darkening near hatch
Early caterpillar 1–2 weeks Small larva, frequent feeding Molts as it outgrows its skin
Late caterpillar 1–2 weeks Full-size larva, heavy feeding Feeding stops; wandering begins
Spinning 12 hours to 2 days Silk scaffolding, then dense layers Cocoon turns opaque and firm
Pupa (inside cocoon) 7–14 days summer Still, darkening shell Adult color visible through silk
Adult emergence Minutes to a few hours Moth pushes out, wings expand Wings dry over 1–2 hours
Diapause (overwinter) 3–9 months Cocoon intact, no change Spring warmth and light trigger eclose

Note that "emergence" is fast but not instant. A moth that has just left the cocoon has crumpled wings and must pump them full of fluid before it can fly, which adds an hour or two of vulnerability. The time from first silk thread to flight-ready adult therefore spans roughly 8 to 16 days in warm weather, even though the cocoon itself was finished in a day or two.

Misconceptions and the real risks

The first misconception is that caterpillars "turn into" cocoons. They do not. A caterpillar is an insect; a cocoon is a structure the insect builds, more like a sleeping bag than a new body. The transformation happens to the animal inside, and the shell is disposable.

The second is that all caterpillars make cocoons. Butterflies make bare chrysalises, and some moth larvae pupate in soil or leaf litter with only sparse silk. If you dug a hornworm out of garden soil and found a smooth brown case, you found a pupa, not a cocoon.

The third is that silk is a single material. Silk from cocoons has been studied for biomedical uses, but raw cocoons also carry risks for anyone handling them carelessly.

Do not handle a cocoon in the first 24 hours; wet silk tears and the larva may be injured. Do not assume a still, silent cocoon is dead; check for a darkening adult or wait past the expected window. Do not keep a fall cocoon in a warm room if it needs winter; warmth can break diapause at the wrong time. Do not peel silk to "see if it is alive" unless you accept killing it; the wrapper is structural. Do not release mass-reared moths outdoors in regions where they are not native.

The counterintuitive detail here is that faster is not better. A cocoon kept too warm can finish in under a week, but the adult may emerge with undersized wings or fail to expand them. Slow, cool development in the normal range produces more robust moths.

Practical steps with thresholds

If you are raising caterpillars or timing an observation, a few concrete moves replace guesswork. Keep the rearing container at 70–80°F for most common summer species, and move it out of direct sun. Provide a textured surface for spinning, such as a paper towel roll or a stick, and keep humidity moderate so the silk does not dry to dust.

Stop handling once the larva refuses food and starts walking the walls. That wandering behavior is the reliable cue, not a calendar date. Mark the date spinning begins and check daily after day 7; most summer pupae darken and show adult features through the silk by day 10 to 14. If nothing changes after 21 days at warm temperature, the pupa is likely dead or in diapause.

One reconciliation matters. You may read that cocoon formation takes "a few days," that pupation takes "about a week," and that the full cycle takes "a month or more." All three can be true at once: the spinning is a day-scale event, the internal reorganization is a week-scale event, and the life cycle is a month-scale event. Keep the stages separate and the numbers stop contradicting each other.

Where the numbers stop

No single measurement covers all caterpillars because the group includes thousands of species with different overwintering strategies and host requirements. Reported durations usually come from a few well-studied species raised in laboratories or classrooms, not from field populations. Temperature and humidity inside a home differ from outdoor conditions, so a classroom rearing may finish faster or slower than the same species in a garden. For unstudied species, the honest statement is that the cocoon takes on the order of days and the pupa on the order of weeks, but exact timing cannot be predicted from the name alone.

A practical limit applies to identification too. Silk cocoons are not diagnostic on their own; shape, attachment point, and host plant identify species better. If the goal is to know when an adult will appear, record the date spinning began, hold temperature steady, and use the seven-to-fourteen-day window as the working estimate rather than a guarantee. That keeps the prediction honest and still useful.