Identify a bug

Black Swallowtail

Papilio polyxenes

Black Swallowtail

Papilio polyxenes
Harmless
Black Swallowtail (Papilio polyxenes)Jay Brasher · CC-BY
Not dangerous

Harmless. No sting, no bite, and nothing on it that irritates skin. The caterpillar can evert a bright orange forked gland that smells unpleasant and does nothing else.

SizeWingspan 70–100 mm
MarkingsBlack wings with two rows of yellow spots — bold in males, faint in females · Iridescent blue scaling across the hindwing, extensive in females
WhereGardens, meadows, roadsides and allotments — anywhere in the carrot family grows.
SeasonSpring through autumn in two or three broods

How to tell it apart

Where you’ll find it

The eastern and central United States, west to the Rockies.

Gardens, meadows, roadsides and allotments — anywhere in the carrot family grows.

Spring through autumn in two or three broods.

How it behaves

Females are darker and bluer than males, and that is not decoration: they resemble the pipevine swallowtail, which is genuinely toxic, and gain protection from the resemblance. The caterpillar goes through a complete change of strategy partway through its life, starting as a black-and-white bird-dropping mimic and finishing as the familiar green-banded larva. Adults nectar widely and are strong, fast fliers.

You’ve found one indoors

If they are on your parsley, that is the deal — a few plants sacrificed gets you butterflies. Move caterpillars to a spare plant rather than destroying them if you need the herbs. They do no damage beyond the foliage they eat.

Common questions

What is eating my parsley?

Almost certainly this, if the caterpillar is green with black bands and yellow dots. It also uses dill, fennel, carrot tops and Queen Anne's lace.

What is the orange forked thing the caterpillar shoots out?

An osmeterium. It everts when the larva is alarmed, smells strongly, and is completely harmless to handle — it will not sting or burn.

Why do the females look so different?

They are mimicking the pipevine swallowtail, which is toxic. More blue and less yellow makes the resemblance closer, so females gain more from it than males do.

Commonly confused with

Keep identifying

Identify another animal from a photo or return to the Butterflies guide.

Previous: Viceroy Butterfly · Next: Pipevine Swallowtail

Where this was checked

Last reviewed 2026-07-30. We identify, we don’t diagnose — what we can and can’t tell you.