How to Raise a Caterpillar in a Jar

Raising a caterpillar in a jar is straightforward once you get the basics right: find it on a plant, bring some of that same plant home with it, keep the container clean and ventilated, and wait. The whole process from late-instar caterpillar to winged adult can take as little as a few weeks, and it remains one of the most rewarding ways to watch metamorphosis firsthand. But a few details matter more than most guides let on, from matching the right food plant to preventing disease outbreaks that can kill your caterpillar overnight.

Finding a Caterpillar and Its Food Plant

The single most important step happens before you even bring a caterpillar home. When you find one, pay close attention to what plant it is eating. Many caterpillar species are extremely picky eaters, and some will literally starve rather than eat the wrong leaf. Silkworm larvae, for example, feed almost exclusively on mulberry. Research on the silkworm’s genome has shown that a single taste receptor gene, GR66, is responsible for this narrow preference; when researchers knocked out that gene, the larvae suddenly accepted plants they normally refused to touch.1IntechOpen. Functional Morphology of Gustatory Organs in Caterpillars That is an extreme case, but it illustrates the principle: caterpillars come wired for specific plants, and guessing wrong means a dead caterpillar.

Even among closely related species, food preferences can differ sharply. Studies comparing two related Helicoverpa moth caterpillars found that one was a generalist, happily eating many plants, while the other was a specialist that rejected most of the same foods. The difference came down to how their taste neurons responded to certain plant chemicals.2PubMed Central. Plant Metabolites Drive Different Responses in Caterpillars of Two Closely Related Helicoverpa Species You cannot tell a generalist from a specialist just by looking at the caterpillar. The practical takeaway: always collect leaves from the exact plant where you found the caterpillar, and keep a steady supply of that same species throughout the rearing period.

If you are not sure what plant you are looking at, clip a small branch with leaves and photograph both the caterpillar and the plant for later identification. Common beginner-friendly species include monarch caterpillars on milkweed, black swallowtail larvae on parsley or dill, and painted lady caterpillars on thistle. These species are widespread, their host plants are easy to find, and identification is relatively simple.

Setting Up the Container

A wide-mouth glass jar works, but it is not ideal. Caterpillars produce frass (droppings) constantly, and in a sealed jar, moisture builds up fast. A better option is a jar with the metal lid replaced by a piece of mesh or cheesecloth secured with a rubber band, or a small plastic container with holes poked in the top. Ventilation matters because caterpillars breathe through tiny openings along their sides called spiracles, which connect to an internal network of tubes. Research on tobacco hornworm caterpillars has shown that as larvae grow between molts, their rigid spiracles cannot expand, so airflow through the tracheal system becomes increasingly constrained.3Journal of Experimental Biology. Respiratory changes throughout ontogeny in the tobacco hornworm caterpillar, Manduca sexta A stuffy, humid jar compounds that problem. Good airflow keeps your caterpillar breathing well and reduces the chance of mold growing on wet frass or wilting leaves.

Line the bottom of the container with a paper towel. This absorbs excess moisture and makes daily cleaning simple: just swap it out for a fresh one. Remove old leaves and frass every day. It sounds tedious, but it takes under a minute and dramatically reduces the risk of bacterial and fungal growth. Keep the jar out of direct sunlight, which can overheat the interior quickly, especially in glass. A spot with indirect natural light and room temperature is fine for most temperate species.

Keeping Leaves Fresh

Cut stems wilt fast, and caterpillars will often refuse wilted leaves. The simplest trick is to wrap the cut end of each stem in a damp paper towel or place stems in a small vial of water inside the jar. If you use a water vial, plug the opening around the stem with cotton or tissue so the caterpillar cannot crawl in and drown. Even terrestrial caterpillars that land in water accidentally can survive briefly by floating and propelling themselves along the surface, but smaller larvae are at real risk in any standing water inside a container.4PubMed. Active behaviour of terrestrial caterpillars on the water surface

Replace leaves every day or two, depending on how fast they dry out. If you have access to the host plant in your yard or neighborhood, pick fresh cuttings each morning. If the plant is harder to find, you can store cut branches in the refrigerator in a plastic bag with a damp paper towel for a few days, though freshness varies by species. Caterpillars eat an enormous amount in their final instars, so expect to go through a lot of leaves in the last week before pupation.

Disease Is the Biggest Threat

Most caterpillars that die in captivity do not starve. They get sick. The confined, humid environment of a jar creates conditions that favor pathogens that would be diluted or avoided in the wild. One of the most common killers is nuclear polyhedrosis virus, or NPV, a group of viruses that infect many moth and butterfly species. In silkworms, NPV can pass from parent to offspring through the egg, meaning a caterpillar can carry the virus from the moment it hatches without showing symptoms for days.5PubMed. Vertical transmission of nucleopolyhedrovirus in the silkworm, Bombyx mori L. The virus can also spread horizontally when a healthy caterpillar eats leaf material contaminated by an infected one’s frass or body fluids.

Signs of viral infection include lethargy, a darkening or discoloration of the body, refusal to eat, and sometimes a characteristic liquefaction of the body after death. Research on a related virus in armyworm caterpillars showed that younger larvae were far more vulnerable: early-instar caterpillars died from oral infection at high viral doses, while fourth-instar larvae of the same species often survived the same exposure.6PubMed. Apoptosis is induced in the haemolymph and fat body of Spodoptera exigua larvae upon oral inoculation with Spodoptera litura nucleopolyhedrovirus The practical lesson: smaller caterpillars are more fragile, hygiene is everything, and if you are raising more than one caterpillar, keep them in separate containers so a single sick individual does not infect the rest.

Beyond viruses, bacteria like Pseudomonas and Serratia can cause rapid septicemia in stressed caterpillars, and fungal infections thrive in damp, poorly ventilated enclosures. There is no treatment for most of these diseases in captivity. Prevention, through clean containers, fresh food, and isolation of sick individuals, is the only real defense.

Parasites You Cannot See

Even a caterpillar that looks perfectly healthy when you collect it may already be doomed. Parasitoid flies and wasps lay eggs on or inside caterpillars in the wild, and the larvae develop internally, eventually killing the host. You will not know this has happened until small maggots or cocoons emerge from the caterpillar’s body or the chrysalis fails to produce a butterfly.

A study of wild monarch caterpillars found that roughly 13% carried parasitoid tachinid flies. Caterpillars collected at later stages of development were more likely to be parasitized, probably because they had been exposed to adult flies for longer. Some individual monarchs harbored up to ten fly larvae.7The American Midland Naturalist. Parasitism of Monarch Butterflies (Danaus Plexippus) by Lespesia Archippivora (Diptera: Tachinidae) There is no way to detect or remove these parasites from a living caterpillar. If you bring one in from the wild and it dies or produces fly maggots instead of a butterfly, parasitism is the most likely explanation. Collecting caterpillars at earlier instars slightly reduces (but does not eliminate) this risk.

When the Caterpillar Stops Eating

At some point, your caterpillar will stop eating, begin to wander, and possibly shrink slightly. This is the pre-pupal stage. Butterfly caterpillars typically attach themselves to a surface and form a chrysalis hanging from a silk pad. Moth caterpillars may spin a cocoon on the surface of a leaf, in leaf litter, or underground depending on the species. For moth species that pupate underground, place a few inches of slightly damp potting soil or peat in the bottom of the container so they can burrow.

Do not handle the chrysalis or cocoon unless absolutely necessary. A newly formed pupa is soft and easily damaged. Once it hardens over a day or two, it is more robust, but jostling it can still injure the developing insect inside. Keep the container in a stable location at room temperature with the same ventilation you have been providing. Depending on the species and time of year, the pupal stage can last anywhere from about ten days to several months. Some species overwinter as pupae and will not emerge until spring, even indoors, unless they experience a cold period.

Eclosion and Releasing the Adult

When a butterfly or moth emerges from its chrysalis or cocoon, a process called eclosion, it needs space to expand its wings. The wings come out crumpled and soft. Research on butterfly wing expansion has shown that during eclosion, gas expands within the tracheal tubes inside the wing veins, inflating the wings dramatically: in one species studied, wing area increased by roughly ninefold over about 15 minutes.8IntechOpen. The Role of Microstructures in Eclosion and Wing Expansion of Butterflies If the emerging adult cannot hang freely with its wings pointing downward during this expansion, the wings may dry in a crumpled position and the insect will never fly.

To prevent this, make sure there is a vertical surface inside the container that the adult can cling to: a stick, a piece of rough fabric, or the mesh lid. The adult will pump fluid into its wings, hang still for an hour or more while they dry and harden, and then begin to move. Once the wings are fully expanded and the insect is fluttering, release it outdoors on a warm, calm day. Moths are generally best released at dusk. Butterflies do best in the morning or early afternoon when temperatures are above about 60°F.

Why Captive-Raised Monarchs Are a Special Case

Monarch butterflies are the most commonly raised caterpillar species in North America, and they deserve a specific caution. Research has shown that monarchs raised in captivity, particularly those from commercially sold stock, can lose their ability to migrate. A study at the University of Chicago found that commercially acquired monarchs failed to orient south when reared outdoors in autumn, unlike wild-caught North American monarchs. The commercial population was genetically distinct from wild monarchs and had rounder forewings, a shape associated with non-migratory populations.9PubMed Central. Contemporary loss of migration in monarch butterflies

This finding does not mean you should never raise a monarch caterpillar you found in your garden. Wild-caught monarchs raised under natural light and temperature conditions largely retain their migratory instincts. The concern is mainly with mass-reared monarchs from commercial suppliers, which may have spent many generations in artificial conditions, losing the genetic underpinning for migration. If your goal is to help monarch conservation, the best approach is to plant milkweed and let monarchs breed naturally rather than buying caterpillars or pupae to release.

Broader Risks of Captive Rearing for Conservation

The monarch issue reflects a broader challenge. Captive rearing has been proposed as a tool for recovering endangered butterfly species, but conservation biologists have flagged two major risks: captive-reared individuals may not perform as well as wild ones in the field, and releasing captive stock into wild populations could introduce diseases or harmful genetic variants.10Biological Conservation. Can captive rearing promote recovery of endangered butterflies? An assessment in the face of uncertainty For a hobbyist raising one or two caterpillars at home, the genetic risk is negligible. But if you find caterpillars of a species you suspect is rare or protected, the better move is to leave them in place and report the sighting to a local wildlife agency or entomological society.

For common species, the ecological impact of raising and releasing a few individuals is essentially zero. The value is almost entirely educational, and that value is real. A controlled study of kindergartners who raised caterpillars through inquiry-based projects found that those children developed a measurably stronger understanding of scientific observation and life-science concepts compared to peers who did not participate.11Science Education. Learning science through inquiry in kindergarten Watching metamorphosis happen in a jar on the kitchen counter is one of the few science activities that reliably captivates both five-year-olds and adults.

Common Mistakes and How to Avoid Them

A few errors come up so often they are worth listing directly:

  • Wrong food plant: The caterpillar refuses to eat and dies within days. Always collect the plant you found it on. If you cannot identify the plant, bring a cutting home with the caterpillar and research later.
  • Too much moisture: A sealed jar with wet leaves and frass quickly becomes a petri dish. Ventilate the container and change the paper towel lining daily.
  • Too little moisture: Leaves dry out and the caterpillar dehydrates. Use a damp (not soaking) paper towel around stems or mist the inside lightly every other day. The container should not be dripping wet, but it should not be bone-dry either.
  • Direct sunlight: A glass jar in a sunny window can reach lethal temperatures in minutes. Keep the container in indirect light.
  • Handling the pupa: A chrysalis or cocoon is not a toy. Moving, squeezing, or dropping it can cause fatal injuries to the developing insect inside.
  • No vertical surface for eclosion: Without something to cling to, the emerging adult cannot inflate its wings properly. A rough stick propped at an angle solves this.

What About Artificial Diets

Laboratory researchers sometimes rear caterpillars on artificial diets rather than fresh leaves, and you may see commercial caterpillar food sold for classroom kits. These formulations can work for certain species. In a laboratory comparison of artificial corn-based diets for fall armyworm caterpillars, the best formulations produced survival rates above 90% and development times of about 15 to 16 days from egg to pupa, comparable to results on natural food. A poorly formulated diet, however, nearly halved survival and more than doubled the development time.12Oxford Academic. Artificial Corn-Based Diet for Rearing Spodoptera frugiperda (Lepidoptera: Noctuidae) For most home rearers, fresh host-plant leaves are more practical, more reliable, and free. Artificial diets are worth considering mainly if you are raising painted ladies from a classroom kit that ships with its own food supply, or if you are trying to rear a species whose host plant is difficult to obtain in quantity.

Overwintering Species

Not every caterpillar you collect will emerge as an adult within a few weeks. Many moth species pupate in late summer or fall and do not emerge until the following spring. If you bring in a caterpillar in September and it forms a cocoon, you may be in for a long wait. The pupa needs to experience a period of cold temperatures, usually in the range of 35–45°F for several weeks to several months, to break diapause and trigger adult development. Without this cold period, the pupa may never emerge or may emerge at the wrong time of year.

If you suspect your caterpillar is a fall-pupating species, let it form its cocoon or burrow into soil, then move the container to an unheated garage, shed, or the bottom shelf of a refrigerator (make sure the soil stays very slightly damp, not wet) for the winter. Bring it back to room temperature in spring, and the adult should emerge within a few weeks. This is one of those details that trips up beginners: nothing is wrong with the pupa, it is just waiting for a signal that winter has passed.

For species that are multivoltine, producing several generations per year, the caterpillar you find in midsummer will typically pupate and emerge within two to three weeks. Timing varies widely by species and temperature, so a quick identification of what you are raising helps set expectations. A field guide to caterpillars of your region, or a photo submitted to an online entomology forum, can usually get you a species-level answer within a day.