Swallowtail Butterfly Diet: Food for Caterpillars and Adults
- Swallowtail caterpillars do not eat the same foods as adult butterflies. Caterpillars need the correct host plant leaves, while adults mainly drink nectar.
- Many swallowtail species are picky feeders. Black swallowtail caterpillars commonly eat dill, parsley, fennel, carrot-family plants, and sometimes rue, but other swallowtails use very different plants.
- Adult swallowtails usually feed from nectar-rich flowers with accessible blooms. Flat or clustered flowers in purple, pink, red, orange, and yellow are often attractive.
- If you are raising or supporting swallowtails, the safest approach is to identify the species first and offer fresh, pesticide-free host plants rather than mixed produce or random leaves.
- Typical cost range to support swallowtails at home is about $5-$25 for herb starts or seed packets, and $20-$80+ for a small nectar-and-host-plant garden bed.
The Details
Swallowtail butterflies eat very different foods depending on their life stage. Caterpillars are leaf-eaters, and most species can only develop on specific host plants. Adults usually switch to liquid foods, especially flower nectar. That means a healthy swallowtail diet is not one food item. It is the right plant at the right stage.
For example, black swallowtail caterpillars commonly feed on plants in the carrot family, including dill, parsley, fennel, carrot, celery, Queen Anne's lace, and related herbs. Other swallowtails use different hosts. Eastern tiger swallowtails use trees such as tuliptree, wild black cherry, and ash. Spicebush swallowtails use spicebush and sassafras. Giant swallowtails may use prickly-ash or rue. If the host plant is wrong, the caterpillar may refuse to eat or decline quickly.
Adult swallowtails usually drink nectar from flowering plants rather than chewing leaves. Butterfly-friendly gardens work best when they provide both host plants for caterpillars and nectar plants for adults. Extension guidance also notes that adults are often drawn to bright flower colors and clustered or flat-topped blooms that make feeding easier.
If you find a swallowtail caterpillar outdoors, the safest plan is usually to leave it on the plant where you found it. Moving it to a different herb or offering fruit, lettuce, or random garden leaves can cause feeding failure. Avoid pesticides on both host and nectar plants, since even light exposure can harm caterpillars or adults.
How Much Is Safe?
For swallowtail caterpillars, the question is less about portion size and more about plant accuracy and freshness. They should have continuous access to the correct host plant, because growing caterpillars may feed daily for several weeks. Black swallowtail caterpillars, for example, often feed for about three to four weeks before pupating. Fresh, unwilted, pesticide-free leaves are safest.
Adult swallowtails do best when they can visit nectar sources throughout the day. In a garden setting, that means planting several nectar-rich flowers that bloom across the season instead of relying on one plant. A shallow water source or damp soil area can also help, since many swallowtails also take in moisture and minerals from mud or wet ground.
If you are temporarily caring for a swallowtail indoors, avoid overhandling and avoid crowding multiple caterpillars onto too little plant material. Replace wilted cuttings promptly, keep leaves clean, and make sure the insect can move away from old frass and soggy stems. Indoors, spoilage happens fast.
A good rule is this: offer unlimited access to the correct host plant for caterpillars, and a variety of nectar sources for adults. If you are not sure which swallowtail species you have, identify it before changing the diet.
Signs of a Problem
A swallowtail caterpillar may be having a diet problem if it stops eating, wanders constantly off the plant, becomes weak, shrivels, or dies soon after being moved to a new food source. Refusal to feed is often the first clue that the host plant is wrong. Caterpillars can also struggle if leaves are old, wilted, contaminated, or treated with pesticides.
Adult swallowtails with poor food access may appear weak, less active, unable to sustain flight, or uninterested in flowers. In a garden, repeated visits without successful feeding can suggest the flowers are not a good nectar match, the blooms are too deep, or the area is too dry and hot.
Not every pause in feeding means trouble. Caterpillars often slow down before molting or pupating. However, a caterpillar that is limp, discolored, leaking fluid, or lying off the host plant for long periods is more concerning. Sudden decline after exposure to sprayed plants is especially worrisome.
If you are trying to support wild swallowtails, the best response is usually environmental: confirm the species, replace questionable plant material, remove pesticide exposure, and provide fresh host or nectar plants. If you are seeing repeated die-offs in a managed butterfly setup, consult a local extension office, butterfly educator, or qualified invertebrate specialist.
Safer Alternatives
The safest alternative to hand-feeding swallowtails is planting the right host plants and nectar plants outdoors. For black swallowtails, that often means dill, parsley, fennel, and other carrot-family plants. For other swallowtail species, safer choices depend on the species in your area, such as spicebush, sassafras, tuliptree, wild black cherry, ash, prickly-ash, or pawpaw for other butterfly groups.
For adult swallowtails, choose nectar-rich flowers with staggered bloom times so food is available across spring, summer, and fall. Extension sources recommend mixed plant heights, clustered or flat-topped flowers, and bright bloom colors. Native plants are often the most reliable option because they support both nectar feeding and the broader habitat swallowtails need.
If your goal is conservation rather than indoor rearing, leaving caterpillars on outdoor host plants is usually safer than bringing them inside. Outdoor plants provide natural airflow, normal light cycles, and fewer sanitation problems. You can still protect the area by avoiding pesticides and limiting disturbance.
If you are unsure what species you have, a local extension resource or regional butterfly guide is a better next step than experimenting with different foods. Correct plant matching is the safest feeding strategy for swallowtail caterpillars and adults.
Medical Disclaimer
The information provided on this page is for general informational and educational purposes only and is not intended as a substitute for professional veterinary advice, diagnosis, or treatment. Dietary needs vary by individual animal based on breed, age, weight, and health status. Food tolerances and sensitivities differ between animals, and some foods that are safe for one species may be harmful to another. Always consult your veterinarian before making changes to your pet’s diet. Use of this website does not create a veterinarian-client-patient relationship (VCPR) between you and SpectrumCare or any veterinary professional. If you believe your pet has ingested something harmful or is experiencing a medical emergency, contact your veterinarian or local emergency animal hospital immediately.