Sharing your parsley, dill and fennel with black swallowtails

The striped caterpillars stripping your parsley are young black swallowtails. How to recognise them, how much they eat, and how to keep herbs and butterflies.

4 min read11 sources

In this note· 7 parts

If something has stripped your parsley, dill or fennel down to the stems, and you find plump green caterpillars banded in black with yellow or orange spots, you’ve met the parsleyworm: the caterpillar of the black swallowtail butterfly, Papilio polyxenes. Extension services write about it as a pest of parsley, and Virginia Tech notes that many people grow parsley on purpose to attract the butterflies. Which it is in your garden is up to you, and you can usually have both the herbs and the butterflies.

Is this the butterfly where you live?

The black swallowtail is mainly a butterfly of eastern North America. Its range runs from southern Canada to northern South America, but in North America it’s most common east of the Rocky Mountains, according to UW-Madison Extension, and Animal Diversity Web says it isn’t commonly found west of them. (Virginia Tech describes it more broadly, as common throughout the United States.)

In the West, a different swallowtail is more likely on the same plants. Animal Diversity Web says the anise swallowtail lives throughout the western United States, from the Rockies to the Pacific, and that sweet fennel is its most common food.

How to recognise the caterpillars

  • Young caterpillars are small, spiny and mostly black, with a white band or “saddle” across the middle. UW-Madison, NC State and Virginia Tech all describe that pale saddle.
  • Older caterpillars are green, banded across each segment with black and spotted with yellow or orange. They grow to about 1½ to 2 inches, UW-Madison says.
  • When disturbed, an older caterpillar pushes out a small, forked orange organ behind its head, called the osmeterium, which gives off a foul-smelling repellent to put off predators. UW-Madison notes it’s harmless to people.

The adult is a black butterfly with yellow, blue, orange and red markings; females are larger and show more blue, according to UW-Madison.

What they eat

The caterpillars feed on the carrot family (Apiaceae). In a vegetable or herb garden that means:

  • parsley, dill and fennel;
  • carrot, celery, parsnip and caraway.

Each of these is named by at least two of NC State, Virginia Tech and UW-Madison. In the wild the caterpillars use Queen Anne’s lace and native golden Alexanders (Zizia aurea). UW-Madison and NC State’s Henderson County office also list common rue, from a different family, the rue family.

You’ll find the garden hosts on Puffberry’s parsley, dill, fennel, carrot and celery pages, and every plant we record as a host under host plants for the black swallowtail.

How much damage do they do?

Sources differ on how bad it gets. NC State warns that each stage eats more than the last, so older caterpillars can wipe out a whole stand of parsley. Virginia Tech says they’ll destroy the tops of plants but are seldom numerous enough to reduce yield, and UW-Madison says they usually aren’t numerous enough to be a real problem.

So it comes down to numbers. A few caterpillars on a big planting may hardly show; several older ones on a small pot of parsley can strip it.

There are two or more generations a year, Virginia Tech says: two to three in North Carolina, according to NC State, and usually two in the upper Midwest, according to UW-Madison, with adults flying from mid-May until late September there.

Keeping both the herbs and the butterflies

Plant extra. Virginia Tech suggests growing a few extra plants to share with the caterpillars and make up for what they eat, and Mississippi State Extension’s advice is the same: plant enough for your table and the caterpillars.

Move them rather than kill them. NC State Extension entomologist Steven Frank suggests tolerating the feeding or moving the caterpillars to another suitable host, and UW-Madison says caterpillars you remove can be moved to suitable host plants outside the garden. One option is a spare parsley, dill or fennel plant set aside for them.

Hand-pick if you must. The caterpillars are conspicuous and easy to pick off, NC State says, though they can keep turning up all season. UW-Madison says hand-picking solves the problem in most gardens.

Skip the spray if you want the butterflies. Insecticides are rarely justified, UW-Madison says. Bt (Bacillus thuringiensis), a bacterial insecticide for caterpillars, kills these too: Virginia Tech and UW-Madison both list it as a control for parsleyworms, and UF/IFAS says butterfly caterpillars are as vulnerable to it as pests are. Spraying parsley with Bt kills the swallowtail caterpillars on it along with any others.

NC State also notes that natural parasites help keep their numbers down.

A note on fennel in California

Fennel feeds swallowtails, but in parts of California it’s an invasive weed. The California Invasive Plant Council rates Foeniculum vulgare as Moderate, meaning substantial but generally not severe ecological impacts, and reports dense populations on Santa Cruz Island and around the San Francisco Bay region. The National Park Service says fennel grows on three of the Channel Islands, where it invades disturbed ground and keeps native plants from coming back.

Cal-IPC also says it’s still unclear whether culinary varieties of fennel are invasive. If you garden in California, weigh that before planting fennel. Cal-IPC’s rating covers California only.

For the expert: what Puffberry records

Puffberry’s black swallowtail host records come mostly from NC State Extension and are marked as holding in the eastern United States. They include dill, fennel, parsley, carrot, celery, parsnip, two golden Alexanders (Zizia aurea and Z. aptera) and great angelica (Angelica atropurpurea). As of November 2026 they reach more than 200 plants and varieties in the catalog, because every parsley, dill, carrot and celery variety inherits its species’ record.

Go plant some

Everywhere this note leads in the catalog, with what's there today.

11 sourcesNC State Extension · Virginia Cooperative Extension · UW-Madison Extension · NC State Extension Entomology · Mississippi State University Extension · Animal Diversity Web · California Invasive Plant Council · Channel Islands National Park · UF/IFAS Gardening Solutions
  1. Parsleyworm | Eastern Black Swallowtail (NC State Extension, James Baker, 2013, revised 2019)content.ces.ncsu.edu
  2. Parsleyworm, pub. 3104-1557 (Virginia Cooperative Extension, Theresa Dellinger and Eric Day, 2022)pubs.ext.vt.edu
  3. Black swallowtail, Papilio polyxenes (UW-Madison Extension, Susan Mahr)hort.extension.wisc.edu
  4. Black swallowtail caterpillars munching on herbs (NC State Extension Entomology, Steven Frank, 2018)entomology.ces.ncsu.edu
  5. Make areas friendly for swallowtail butterflies (Mississippi State University Extension, 2022)extension.msstate.edu
  6. Plants That Host Butterfly Larvae (NC State Extension, Henderson County)henderson.ces.ncsu.edu
  7. Papilio polyxenes (Animal Diversity Web, University of Michigan Museum of Zoology)animaldiversity.org
  8. Papilio zelicaon (Animal Diversity Web, 2023)animaldiversity.org
  9. Foeniculum vulgare (California Invasive Plant Council)cal-ipc.org
  10. Terrestrial invasive plants (Channel Islands National Park, National Park Service)nps.gov
  11. Bt and spinosad (UF/IFAS Gardening Solutions)gardeningsolutions.ifas.ufl.edu