B
Species Profile

Black Swallowtail Caterpillar

Papilio polyxenes

Parsleyworm with a secret orange horn
Sari ONeal/Shutterstock.com

Black Swallowtail Caterpillar Distribution

Click a location to explore more animals from that region

Loading map...

Found in 67 locations

a photograph of a black swallowtail caterpillar with visible osmeterium, the scent glands that secrete a foul odor to ward off predators/ The osmeterium are orange and look like horns protruding from its ear. The body of the caterpillar is striped yellow green and black/ Against a background of greenery.

At a Glance

Wild Species
Also Known As parsley caterpillar, parsley worm, carrot caterpillar, rue caterpillar
Diet Folivore
Activity Cathemeral
Lifespan 18 years
Weight 0.003 lbs
Status Not Evaluated
Did You Know?

Full-grown (5th instar) caterpillars reach ~35-45 mm (3.5-4.5 cm) long; early instars are smaller and dark with a white "saddle."

Scientific Classification

The black swallowtail caterpillar is the larval stage of the Black Swallowtail butterfly (Papilio polyxenes), a common North American swallowtail. Larvae are typically green with black bands and yellow spots; when threatened they evert an orange, forked osmeterium that emits a defensive odor.

Kingdom
Animalia
Phylum
Arthropoda
Class
Insecta
Order
Lepidoptera
Family
Papilionidae
Genus
Papilio
Species
polyxenes

Distinguishing Features

  • Green body with repeating black transverse bands dotted with yellow/orange spots (older instars)
  • Orange forked osmeterium (defensive organ) that can protrude from behind the head
  • Feeds primarily on Apiaceae (e.g., parsley, dill, fennel, carrots, Queen Anne’s lace)
  • Earlier instars may be darker; later instars are the classic green-and-black banded form

Physical Measurements

Length
2 in (0 in – 2 in)
Weight
0 lbs (0 lbs – 0 lbs)
Top Speed
0 mph
About 0.56 cm/s

Appearance

Primary Colors
Secondary Colors
Skin Type Smooth, fleshy caterpillar integument with very short, sparse setae; cylindrical body with well-defined segmental annulations; head capsule rounded and typically green with darker markings in later instars.
Distinctive Features
  • Final (5th) instar length commonly ~35-45 mm, occasionally reported to approach ~50 mm under favorable conditions; body stout and evenly cylindrical.
  • Transverse black banding with yellow spots on a green background in later instars is the key garden-identification feature on parsley/dill/fennel (Apiaceae hosts).
  • Defensive organ: orange, forked osmeterium everted from the prothorax when disturbed; accompanied by a strong odor/chemical deterrent; caterpillar is generally harmless to handle (not medically dangerous), though the secretion can be irritating to eyes/mucosa.
  • Feeding context: commonly found on cultivated and wild Apiaceae (e.g., parsley, dill, fennel, celery, carrot tops, Queen Anne's lace).
  • In about 10 to 30 days, depending on temperature and food, the caterpillar makes a smooth, angular chrysalis held by a silk girdle; the pupa may overwinter before the adult Black Swallowtail (Papilio polyxenes) emerges.

Did You Know?

Full-grown (5th instar) caterpillars reach ~35-45 mm (3.5-4.5 cm) long; early instars are smaller and dark with a white "saddle."

The larva typically passes through 5 instars before pupating (a common Papilionidae trait).

When threatened it everts a bright orange, forked osmeterium from behind the head and smears predators with a strong-smelling secretion.

It's a classic garden species: common host plants are Apiaceae herbs/vegetables like dill (Anethum graveolens), parsley (Petroselinum crispum), fennel (Foeniculum vulgare), and carrot (Daucus carota), plus wild "Queen Anne's lace" (Daucus carota).

Young larvae mimic bird droppings (dark body with a pale patch), while older larvae switch to bold green-and-black banding with yellow spots-two different anti-predator looks in one life.

Pupation is done off the host plant: the caterpillar forms a chrysalis held by a silk "girdle" and a silk pad; in much of its range it overwinters as a chrysalis.

In warm conditions, the egg-to-adult cycle can be completed in roughly 1-2 months; the chrysalis may last ~10-20 days in summer broods but can overwinter for many months (timing varies with temperature/latitude).

Unique Adaptations

  • Osmeterium chemical defense: a retractable, forked organ that delivers repellent chemicals and odor; it's especially effective against ants and small predators/parasitoids.
  • Two-stage masquerade: bird-dropping mimicry in early instars reduces detection; later instars' high-contrast banding can function as disruptive camouflage among umbels and stems.
  • Detox toolkit for Apiaceae chemistry: larvae tolerate/biotransform plant defensive compounds common in the carrot family (a well-studied theme in Papilio-host plant coevolution).
  • Silk "girdle" chrysalis attachment: the pupa is anchored upright by a waist-like silk band, helping it stay secure through wind/rain and long overwintering periods.
  • Color-variable chrysalis: pupae can be green or brown/gray, improving camouflage depending on the pupation background (vegetation vs. woody surfaces).

Interesting Behaviors

  • Threat display: when touched or grabbed, the larva rapidly everts the osmeterium, aiming it toward the disturbance; repeated stimulation can trigger repeated eversion.
  • Host-plant fidelity: females lay eggs singly on host leaves/flower heads; larvae usually feed openly on the same plant, moving to fresh foliage as they grow.
  • Feeding pattern shift with age: early instars often chew small holes and stay more hidden; late instars consume large amounts of foliage and are easier to spot.
  • Pre-pupal wandering: when ready to pupate, the caterpillar leaves the host plant and searches for a sheltered vertical surface (fence, stem, wall) to attach the chrysalis.
  • Day-night rhythm: larvae commonly rest along stems/petioles between feeding bouts, relying on banding and stillness for camouflage.

Cultural Significance

Black Swallowtail (Papilio polyxenes) caterpillars, called "parsleyworms", eat herbs like dill, parsley, and fennel. They are raised in classrooms to show egg → larva → chrysalis → adult and are a familiar sign in pollinator-friendly gardens.

Myths & Legends

Linnaeus and other writers named many Papilio swallowtails after Greek and Trojan myth figures. The species name Papilio polyxenes follows that old myth naming, not a modern name that describes it.

Butterflies as souls: in Japanese tradition, butterflies are widely associated with the human soul and with transformation; while not species-specific, swallowtails often appear in art embodying this symbolism.

In Hopi tradition, butterfly images mean renewal and the coming of summer. Public dances and designs use butterflies as symbols of life and change, not referring to any single species.

Irish and European folk belief says butterflies can carry souls or act as messengers; seeing one is an omen of change or a visit from the dead, often told about showy swallowtails.

Conservation Status

NE Not Evaluated

Has not yet been evaluated against the criteria.

Population Stable

Life Cycle

Birth 315 caterpillars
Lifespan 18 years

Lifespan

In the Wild
10–30 years
In Captivity
9–28 years

Reproduction

Mating System Polygynandry
Social Structure Solitary
Breeding Pattern Transient
Fertilization Internal Fertilization
Birth Type Internal_fertilization

Black Swallowtail (Papilio polyxenes) adults mate; larvae do not. Both sexes often mate with multiple partners. Females can store sperm in a spermatheca and lay single eggs on host plants. Courtship is brief; fertilization is internal via a spermatophore. No parental care.

Behavior & Ecology

Social None (solitary larvae) Group: 1
Activity Cathemeral
Diet Folivore Apiaceae foliage-commonly dill (Anethum graveolens) and parsley (Petroselinum crispum) leaves in gardens; in the wild often wild carrot (Daucus carota) leaves/umbels
Seasonal Hibernates

Temperament

Non-social (no cooperative brood care, no coordinated foraging)
Generally non-aggressive toward conspecifics; avoidance/dispersal is typical when encountered
Cryptic and risk-averse; relies on camouflage (bird-dropping mimicry in early instars; green banded pattern in later instars) and remaining motionless when disturbed (Wagner 2005)
Defensive when handled/attacked: everts orange, forked osmeterium; may thrash and regurgitate; defensive display is startle + chemical deterrence rather than social signaling (Scott 1986; Eisner et al., classic papilionid osmeterium studies including P. polyxenes)
Larval duration is typically ~2-3 weeks under warm-season conditions, varying with temperature and host quality; mature (5th instar) length commonly ~3.5-4.5 cm (Wagner 2005; Scott 1986)

Communication

chemical defense display: osmeterium eversion releases volatile deterrents; in Papilio polyxenes, osmeterial chemistry shifts by instar Early instars richer in short-chain acids; later instars richer in host-derived terpenes/monoterpenes), functioning primarily in predator deterrence rather than intraspecific communication (Eisner/Meinwald-era papilionid osmeterium analyses; subsequent chemical ecology work on Papilio spp.
tactile signaling is limited to non-social contexts Defensive thrashing/withdrawal upon touch); no evidence of recruitment/aggregation pheromones in larvae (Wagner 2005
silk use is functional (attachment/resting lines, pre-molt anchoring) rather than communicative; does not form communal shelters typical of some gregarious Lepidoptera

Habitat

Biomes:
Temperate Grassland Temperate Forest Wetland
Terrain:
Plains Valley Hilly Coastal Riverine
Elevation: Up to 8202 ft 1 in

Ecological Role

Specialist larval herbivore/folivore on Apiaceae that converts plant biomass into insect biomass and serves as prey/host for higher trophic levels.

Transfers energy from Apiaceae host plants to predators (birds, spiders, predatory insects) Supports parasitoid communities (tachinid flies and parasitoid wasps commonly attack swallowtail larvae) Contributes to host-plant population dynamics via defoliation (usually localized) Part of native food webs; larval feeding can influence garden/agroecosystems where Apiaceae herbs are grown

Diet Details

Other Foods:
Carrot family plants Garden rue

Human Interaction

Domestication Status

Wild

Papilio polyxenes (black swallowtail) is wild and not domesticated. People meet it when they grow host plants (especially Apiaceae herbs) or raise small numbers for school, outreach, or hobby gardens. Interactions include planting host and nectar plants, classroom or citizen science rearing, occasional herb damage, conservation work, and some collecting rules.

Danger Level

Low
  • Larvae are non-venomous and do not sting. Primary defensive behavior is eversion of an orange, forked osmeterium that can smear a strong-smelling secretion; this may cause mild irritation if it contacts eyes/mucous membranes or sensitive skin (a minor, avoidable hazard with normal handwashing).
  • General allergy risk is low but possible (as with many insects/plant-associated handling).

As a Pet

Suitable as Pet

Legality: Usually legal to keep and raise Black Swallowtail (Papilio polyxenes) in U.S./Canada if taken locally and not from protected land. Sale, large collecting, or transport may need permits. Don't release unless checked for disease or parasites; never outside native range.

Care Level: Easy

Purchase Cost: Up to $25
Lifetime Cost: $10 - $100

Economic Value

Uses:
Education/outreach (life-cycle demonstrations in classrooms/nature centers) Horticulture/ecosystem services (supports native-butterfly gardening; adults are nectar-feeding pollinators) Minor herb-crop/garden impact (larvae can defoliate parsley, dill, fennel, and related plants) Ecotourism/recreation (butterfly watching, gardens)
Products:
  • No direct commodity product; indirect value via educational kits/programs, native-plant and butterfly-garden plant sales, and nature-center programming.

Relationships

Predators 7

European Paper Wasp Polistes dominula
Northern Paper Wasp Polistes fuscatus
Spined Soldier Bug Podisus maculiventris
Chinese Mantis Tenodera sinensis
Green Anole
Green Anole Anolis carolinensis
Blue Jay
Blue Jay Cyanocitta cristata
Tachinid flies Lespesia archippivora

Related Species 7

Anise Swallowtail Papilio zelicaon Shared Genus
Old World Swallowtail Papilio machaon Shared Genus
Giant Swallowtail Papilio cresphontes Shared Genus
Eastern Tiger Swallowtail
Eastern Tiger Swallowtail Papilio glaucus Shared Genus
Spicebush Swallowtail Papilio troilus Shared Genus
Pipevine Swallowtail Battus philenor Shared Family
Two-tailed Swallowtail Papilio multicaudata Shared Genus

Ecological Equivalents 4

Animals that fill a similar ecological role in their ecosystem

Anise Swallowtail Papilio zelicaon Similar larval niche: an Apiaceae-feeding swallowtail caterpillar with an eversible osmeterium used for chemical defense; often uses the same host-plant genera (e.g., Foeniculum, Anethum, Daucus) in gardens and open habitats.
Old World Swallowtail Papilio machaon Ecological analog in Eurasia: an Apiaceae‑feeding Papilio larva with comparable banded green-and-black late-instar patterning and an osmeterium used in defense; occupies a similar trophic role as a specialist herbivore on umbellifers.
Spicebush Swallowtail Papilio troilus Similar predator-avoidance strategies (osmeterium and startle/chemical defenses) and similar developmental ecology to other large Papilio larvae in woodland-edge and garden mosaics, though it specializes on Lauraceae rather than Apiaceae.
Monarch
Monarch Danaus plexippus Comparable functional role as a conspicuous, foliage-feeding larva frequently targeted by birds and parasitoids; relies on chemical defense (toxin sequestration in monarchs versus osmeterial chemicals in Papilio) and is common in anthropogenic habitats such as gardens and field edges.

The black swallowtail caterpillar (Papilio polyxenes), also known as the Eastern black swallowtail caterpillar, and the parsnip swallowtail caterpillar, primarily inhabits wooded areas, meadows, gardens, and other areas which contain a plethora of host plants. The caterpillar is known to feed on a variety of plants from the Apiaceae family, including dill, fennel, parsley, and Queen Anne’s lace. They are native to Eastern North America and can be found in parts of Canada, Mexico, and the United States. Keep reading to learn more about this enchanting animal!

Photograph of a black swallowtail caterpillar. The caterpillar is lime green with black stripes that have yellow markings on them. The caterpillar is on a green stem against a green background

Black swallowtail caterpillars are native to Eastern North America and can be found in parts of Canada, Mexico, and the United States.

Five First-Class Facts About Black Swallowtail Caterpillars

  • Black swallowtail caterpillars have a unique defense mechanism known as “aposematism,” which is the use of bright and contrasting colors to warn predators of their poisonous nature.
  • They change color as they mature, transitioning from a black-and-white striped pattern to a green-and-yellow pattern.
  • The caterpillars have false eyes, known as eyespots, on their bodies that help to deter predators by making them appear larger and more intimidating.
  • Black swallowtail caterpillars have a set of anal prolegs which are unique to the caterpillars. These prolegs are located on the last segment of their body and help them to cling to leaves or branches.
  • Black swallowtail caterpillars have the ability to mimic the appearance and odor of toxic pipevine swallowtail caterpillars, which helps them avoid predators.
Largest caterpillar - spicebush

The caterpillars have false eyes, known as eyespots, on their bodies that help to deter predators by making them appear larger and more intimidating.

Scientific Name

The black swallowtail caterpillar, Papilio polyxenes, shares its scientific name with its adult form, the black swallowtail butterfly. When you consider it for a moment, it is quite logical. The caterpillar will, after all, become a butterfly. The name Papilio polyxenes roughly translates to butterfly(Papilio) very (poly) strange (xena). Looking at the black swallowtail in its larval stage, it would make sense to call it a very strange butterfly. However, it gets its name from the Greek princess Polyxena. Polyxena was the daughter of King Priam. She was sacrificed to appease the ghost of Achilles. A beautiful, stately butterfly seems a fitting tribute to such a brave young woman.

Photograph of a black swallowtail caterpillar. The caterpillar is lime green with black stripes that have yellow markings on them. The caterpillar is on a green stem against a green background.

The black swallowtail caterpillar, Papilio polyxenes, shares its scientific name with its adult form, the black swallowtail butterfly.

Black Swallowtail Caterpillar: Appearance and Behavior

Appearance

The black swallowtail caterpillar is a plump, green caterpillar with black and yellow markings. It has a series of black and yellow diagonal stripes running the length of its body and a large, black saddle on its back. It also has several pairs of black filaments on its hind end, which function as sense organs. These caterpillars can grow up to 2 inches long.

Largest caterpillars - Parsleyworm

Black swallowtail caterpillars can grow up to 2 inches long.

Behavior

The behavior of the black swallowtail caterpillar consists of feeding, growing, and avoiding predators all while on the way to becoming a butterfly. They move around and camouflage themselves, to blend in with their surroundings. They also have a defense mechanism that helps them to deter predators, and once they reach a certain size, they will enter into the pupation process to become an adult butterfly

  • Feeding: The black swallowtail caterpillar is primarily focused on eating and growing. They feed on a variety of host plants such as dill, fennel, parsley, and Queen Anne’s lace.
  • Camouflage: The caterpillars have the ability to camouflage themselves by changing the color and texture of their skin, blending in with their surroundings and avoiding predators.
  • Movement: The caterpillars are relatively slow-moving. They tend to move around mostly at night. They move around on their host plants, eating as much as possible to fuel their growth.
  • Molting: As they grow, the caterpillars will molt, or shed their skin, several times. This process allows them to continue growing and developing.
  • Pupation: Once the caterpillar has reached a sufficient size, it will stop eating and begin the process of pupation, also known as metamorphosis. This process usually takes place on the bottom side of a leaf, where the caterpillar will spin a silk chrysalis and transform into a pupa.
  • Emergence: After a period of time, the adult butterfly will emerge from the chrysalis, and the life cycle will begin again.
The molting larva of a black swallowtail butterfly is visible center frame on a green leaf. It is mostly brown and light is yellow green as it is shedding its skin

As they grow, the caterpillars will molt, or shed their skin, several times

Black Swallowtail Caterpillars: Predators, Threats, Defenses

The black swallowtail caterpillar faces several threats, including habitat loss, pesticide use, and predation by birds, insects, and other animals. In addition, the introduction of non-native plant species can reduce the availability of its host plants, which are necessary for its survival. Climate change can also affect the timing of its life cycle and the availability of its host plants. Additionally, parasitism by flies and wasps can also be a significant threat to black swallowtail caterpillar populations.

Habitat Loss

Habitat loss is a major threat to the black swallowtail caterpillar, as it relies on specific host plants for its survival. Urbanization, agriculture, and logging can all lead to the destruction or fragmentation of natural habitats. The introduction of non-native plant species can also reduce the availability of host plants, which is essential for the survival of the black swallowtail caterpillar.

Photograph of a mountain top that has been destroyed by logging. Brownish red dirt is visible where all of the trees have been clear-cut. Many tree trunks are seen in the center frame. The destroyed mountaintop is dimmed with live, green trees. In the background are mountain tops that have not been destroyed.

Habitat loss is a major threat to the black swallowtail caterpillar.

Climate Change

Climate change can affect the timing of the black swallowtail caterpillar’s life cycle and the availability of its host plants. For example, warmer temperatures can cause the caterpillars to hatch earlier than usual, which can cause them to miss the peak availability of host plants. This can lead to a mismatch between the caterpillars and the plants they rely on for food, and ultimately, lead to a decline in population numbers.

Predation

Predation is another threat to the black swallowtail caterpillar. Birds, insects, and other animals may feed on the caterpillars, which can have a significant impact on population numbers. Black swallowtail caterpillars have a variety of predators, including birds, wasps, and other insects. Some common predators of black swallowtail caterpillars include paper wasps, yellow jackets, and praying mantises. Additionally, other insects such as ladybugs, lacewings, and tachinid flies may also prey on black swallowtail caterpillars.

Two Ladybugs sitting on a green leaf.

Insects such as ladybugs may also prey on black swallowtail caterpillars.

Parasitism

Parasitism is another threat to the black swallowtail caterpillar. Some species of flies and wasps will lay their eggs on or near the caterpillars, and when the eggs hatch, the larvae will feed on the caterpillar. This can have a significant impact on population numbers, as a large number of caterpillars may be killed by parasites.

A Red paper wasps visible in the center from perched on a green leaf. The wasp has a red/brown thorax and a dark brown to black abdomen with a gold stripe tear the tail end.

Red paper wasps are native to the United States of America.

Pesticides and Herbicides

Herbicides and pesticides can have a significant impact on caterpillars’ (and the resulting butterflies’) population numbers. Pesticides are responsible for killing swallowtails outright, while herbicides are more subtle. Herbicides can kill off host plants, leaving caterpillars without sustenance or a place to hang their chrysalis. Glyphosate a broad-spectrum weedkiller, kills more than weeds. It is responsible for killing all sorts of beneficial animals. It permeates the soil, seeping into groundwater, and entering streams and rivers through runoff. Even with this information available widely, the popularity of glyphosate continues to grow. Protection and conservation of habitats through the reduction of pesticide use is a necessary step toward ensuring the survival of black swallowtails.

A “farmer” dressed in what amounts to a hazmat suit spraying a herbicide on a green field. He is wearing a plastic container of herbicide on his back and he has a spray wand in his hand out of which a white mist is emitting. The background is more green fields and tree at a distance.

Herbicides are not good for the environment or the animals (including humans) who live in them.

Defenses

Black swallowtail caterpillars are not toxic to most animals that might prey on them, but they do have a defense mechanism to deter predators. They have a pair of fleshy, orange-colored sense organs called the osmeterium near the front of their body. The osmeterium secrete a horrible-smelling liquid when the caterpillar feels threatened or sense danger. The caterpillars also have the ability to camouflage themselves by changing the color and texture of their skin and blending in with their surroundings to avoid predators. Additionally, they have a unique defense mechanism known as aposematism. Aposematism is the use of bright and contrasting colors animals use to warn predators of their poisonous nature. Sometimes the animals are actually poisonous. However, in the case of black swallowtail caterpillars, they are simply mimicking dangerous animals. ,

a photograph of a black swallowtail caterpillar with visible osmeterium, the scent glands that secrete a foul odor to ward off predators/ The osmeterium are orange and look like horns protruding from its ear. The body of the caterpillar is striped yellow green and black/ Against a background of greenery.

Black swallowtail caterpillars have a pair of fleshy, orange-colored sense organs called the osmeterium near the front of their body which secrete a horrible-smelling liquid when the caterpillar feels threatened or sense danger.

Black Swallowtail: Lifecycle/Lifespan

The lifecycle of a black swallowtail caterpillar, also known as the eastern black swallowtail, includes four stages: egg, larva (caterpillar), pupa (chrysalis), and adult butterfly.

1. Egg: The female black swallowtail lays her eggs on the leaves or stems of plants in the carrot family, such as parsley, dill, and fennel. The eggs are small and round and can be yellow, green, or brown in color.

2. Larva (caterpillar): After a few days, the eggs hatch and the caterpillars emerge. They are black with yellow and blue spots and have a pair of curved black horns on their thorax. The caterpillars feed on the leaves of their host plants for about 2-3 weeks.

3. Pupa (chrysalis): When the caterpillars are fully grown, they form a chrysalis. The chrysalis is usually green or brown and is attached to a stem or leaf by a silk girdle. The pupal stage lasts for about 2 weeks.

4. Adult butterfly: Once the pupal stage is complete, the adult butterfly emerges. The black swallowtail has black wings with a yellow and blue band, and a wingspan of 2-3 inches. Adult butterflies feed on nectar from flowers and lay eggs to begin the cycle again

From its initial larval stage to its death as an adult butterfly takes mere weeks. The lifespan of the creatures is 6-8 weeks.

15 bright orange pipevine swallowtail butterfly eggs ar visible on a yellow-green pipevine stem.

The female black swallowtail lays her eggs on the leaves or stems of plants.

Black Swallowtail Caterpillar: Conservation Status

The conservation status of a species is typically assigned to the adult form of the organism, as they are the reproducing individuals. However, the overall population of the Black Swallowtail butterfly, which the caterpillars will eventually transform into, is considered to be stable and not currently of concern for conservation efforts.

Up Next:

View all 453 animals that start with B

Sources

  1. ufl.edu / Accessed January 19, 2023
  2. pbase.com / Accessed January 19, 2023
  3. wikipedia.org / Accessed January 19, 2023
Kathryn Koehler

About the Author

Kathryn Koehler

Kathryn Koehler is a writer at A-Z-Animals where her focus is on unusual animals, places, and events. Kat has over 20 years of experience as a professional writer and educator. She holds a master's degree from Vanderbilt University. When she is not writing for A-Z-Animals, Kat enjoys puttering in her garden, baking deliciously healthful treats for her family, and playing with her two rescue mutts, Popcorn and Scooter. She resides in Tennessee.

Thank you for reading! Have some feedback for us?


Black Swallowtail Caterpillar FAQs (Frequently Asked Questions)

Black swallowtail caterpillars are native to North America from Southern Canada to Northern Mexico. They spend their lives on and eat leaves.