Independent Norwegian wildlife news
Norway | Est. 2026

Swallowtail Butterfly: Facts, Habitat, Diet and Behaviour

The swallowtail butterfly species are the show-offs of the butterfly world, more than 550 kinds in the family Papilionidae, and the one this guide follows is the Old World swallowtail, Papilio machaon, a yellow butterfly with black veins and a pair of tails on its hindwings. If you are asking what a swallowtail butterfly is, the short answer is a large, strong-flying butterfly of the family Papilionidae, named for the tail-like extensions on its hindwings, and the Old World swallowtail is the butterfly that gave the whole family its English name, as well as being the type species of the genus Papilio.

This guide covers the swallowtail butterfly family with a named lead species, the Old World swallowtail, Papilio machaon, and it says plainly when a fact belongs to that one butterfly and when it belongs to the family as a whole. The Old World swallowtail is the only swallowtail in most of Europe and the only one in the British Isles. It is a butterfly of sunny meadows and damp fens, of hilltops and river valleys, and this guide follows it from the egg on a milk parsley leaf to the adult sailing over a meadow in summer.

Key takeaways

  • Swallowtail butterflies are a family of more than 550 species, the Papilionidae, found on every continent except Antarctica, and most of them live in the tropics.
  • The lead species of this guide is the Old World swallowtail, Papilio machaon, a yellow butterfly with black veins and tailed hindwings, with a wingspan of 65 to 90 millimetres.
  • Old World swallowtail caterpillars feed on plants of the carrot family, above all milk parsley, fennel, dill and wild carrot, and the adults feed on nectar.
  • The caterpillar defends itself with a forked orange organ, the osmeterium, which shoots out from behind its head and gives off a strong smell when the caterpillar is touched.
  • Papilio machaon is listed as Least Concern, though its British subspecies, Papilio machaon britannicus, is confined to the Norfolk Broads and protected by law.

The swallowtail butterfly species and their relatives

Swallowtail butterflies belong to the order Lepidoptera, the butterflies and moths, and within it they sit in the family Papilionidae, a family named by the French naturalist Pierre André Latreille in 1802. The family holds more than 550 species in about 31 genera, and it is divided into three subfamilies, the Baroniinae, the Parnassiinae and the Papilioninae, with the Old World swallowtail sitting in the Papilioninae, in the tribe Papilionini, alongside the other true swallowtails of the genus Papilio. The genus Papilio was founded by Carl Linnaeus in 1758, and Papilio machaon is its type species, the species against which all the others are measured, named after Machaon, a physician of the Trojan War and a son of Asclepius, who is mentioned in the Iliad. Like the animals in our butterfly guide, swallowtails are butterflies of the day, though they are larger and stronger fliers than most of their cousins, and the tails on their hindwings set them apart at a glance.

The lead species of this guide is the Old World swallowtail, Papilio machaon, also called the common yellow swallowtail, and it is the most widely distributed swallowtail in the world, with roughly 37 subspecies recognised across its range. It is found across nearly all of Europe, North Africa and temperate Asia as far east as Japan, north to the Arctic coast of Scandinavia and Siberia, and on into North America, where it occurs in Alaska, northern and western Canada and parts of the western United States. In Britain it is simply called the swallowtail, and the resident British subspecies, Papilio machaon britannicus, is confined to the fens and grazing marshes of the Norfolk Broads, where its caterpillars feed on milk parsley, and it is the largest and one of the rarest resident butterflies in the country.

A yellow Old World swallowtail butterfly with black veins and tailed hindwings resting on a purple thistle flower in a sunny meadow
The lead species of this guide, at work. An Old World swallowtail, Papilio machaon, feeds on a thistle flower, its yellow wings veined in black and its hindwings drawn out into tails.
Swallowtail butterflies and their relatives at a glance
Type Animal Where it lives Best-known food Wingspan
Family Swallowtail family (Papilionidae) Every continent except Antarctica Nectar and host-plant leaves Up to 25 cm
Genus Swallowtails (Papilio) Worldwide, mostly in the tropics Nectar and carrot-family leaves Up to about 14 cm
Species Old World swallowtail (Papilio machaon) Europe, Asia and North America Milk parsley, fennel and nectar 65 to 90 mm
Species Eastern tiger swallowtail (Papilio glaucus) Eastern North America Tulip tree, cherry and nectar Up to 14 cm
Species Queen Alexandra’s birdwing (Ornithoptera alexandrae) Rainforest of Papua New Guinea Pipevine leaves and nectar Up to 25 cm
Species Homerus swallowtail (Papilio homerus) Jamaica Hernandia leaves and nectar Up to 15 cm

What swallowtail butterflies look like

The Old World swallowtail is a butterfly that is hard to mistake, once you have seen it well. The upper wings are a clear, bright yellow, crossed with black veins and edged with a broad black border, and the hindwings carry a row of blue spots and a single red eyespot, with the inner edge drawn out into a short tail that gives the butterfly its name. The wingspan is 65 to 90 millimetres, and the second summer brood and the southern populations sit at the top of that range, while the high-altitude and Arctic forms are smaller, and some females have a wingspan that reaches beyond 88 millimetres. The underside is paler, with the same pattern showing through, and the body is black with yellow markings, stout for a butterfly, and built for a strong and fast flight.

Close view of an Old World swallowtail butterfly with its wings open, showing yellow wings, black veins, blue spots and a red eyespot on the hindwing
The pattern to learn. With its wings open, the Old World swallowtail shows yellow wings, black veins, blue spots and a red eyespot on each hindwing, above the tail.

The caterpillar is as striking as the adult, though it changes its appearance completely as it grows. The first young caterpillars are black with a white saddle across the middle of the back and a few short bristles, and they sit in the open looking exactly like a bird dropping, which is a disguise that keeps the birds away. After the second or third moult the disguise is abandoned for warning colours, and the mature caterpillar is apple green, ringed with black bands that carry bright orange spots, and it grows to about 45 millimetres through five instars. Behind its head it carries the osmeterium, a fleshy forked organ the colour of a ripe satsuma, and a caterpillar that is touched rears up and everts it in an instant, waving the two prongs and releasing a strong smell of rotting fruit that deters ants, wasps and small birds, though it cannot bite or sting, and it does no real harm to a garden clump of fennel or dill.

Where swallowtail butterflies live

Few butterflies cover so much ground as the Old World swallowtail. It is found across nearly all of Europe, North Africa and temperate Asia as far east as Japan, north to the Arctic coast of Scandinavia and Siberia, and on into North America, where it occurs in Alaska, northern and western Canada and parts of the western United States. It lives in a wide range of open places, in grasslands, on hilltops, in tundra, in forests, in mountains and in other temperate areas, and some populations are found in subarctic and Arctic regions, where few other butterflies can survive. In the mountains it reaches altitudes of up to 3,500 metres, and it is a butterfly of sunny, open ground, not of deep shade.

The habitat depends on the population, and the Old World swallowtail is a butterfly that follows its food plant. In Britain and the Netherlands it lives in damp fens and marshes, where milk parsley grows, and in the Norfolk Broads the British subspecies is confined to a handful of fens and grazing marshes, because that is where its food plant grows. In central Europe and Asia it lives in flower-rich meadows, on road verges, on rough farmland, on river banks and in gardens, wherever the carrot family grows wild. In the far north it lives on the tundra, feeding on hardy northern plants, and in the mountains it lives on alpine meadows and hillsides, where the males gather on hilltops to look for mates. The family as a whole is far wider still, because most swallowtail species live in the tropics, and the greatest diversity is found in Southeast Asia and in East Asia, between 20 degrees north and 40 degrees north.

A yellow swallowtail butterfly flying over a flower-rich meadow with tall grasses and wildflowers in summer sunshine
Open country. An Old World swallowtail sails over a flower-rich meadow, the kind of sunny, open ground it favours across Europe and Asia.
A damp fen in the Norfolk Broads with tall reeds, milk parsley and open water under a wide sky
Home of the rarest swallowtail. The damp fens of the Norfolk Broads, where the British subspecies feeds on milk parsley and is protected by law.

What swallowtail butterflies eat

The Old World swallowtail caterpillar is a picky eater, and it feeds almost entirely on plants of the carrot family, the Apiaceae, with milk parsley as its favoured food in Britain and the Netherlands, and fennel, dill, wild carrot, parsley and hogweed as its food elsewhere. The female lays her eggs singly on the host plant, usually on a soft young leaflet or on the outer flowers of an umbel, and the young caterpillar eats the leaves of the plant it was born on, while the older caterpillar prefers to eat the flowers. The caterpillar is a fast eater, and it spends its time eating or resting before it resumes eating again. Gardeners sometimes find the caterpillars on a clump of fennel or dill, and they do no real harm to the plant, because they are few and the plant is large.

The adult butterfly feeds on nectar, and it visits the tall flowers of the meadow, hovering over them and sipping with its long proboscis. It frequents thistles, knapweed, buddleia, red valerian, hogweed and wild carrot, and it pauses over flowering herbs to feed, though it is a strong flier and does not stay long at any one flower. The adult also takes minerals from damp ground and from dung, a habit called mud-puddling, which is common in male butterflies and gives them the salts they need for breeding. The caterpillars of the family as a whole feed on a wider range of plants than the Old World swallowtail does, and most kinds depend on only one of five families, the birthworts, the custard apples, the laurels, the carrot family and the rue family, and by eating some of these toxic plants the caterpillars take in poisons that make both the caterpillar and the butterfly distasteful to predators.

A green swallowtail caterpillar with black bands and orange spots feeding on a fennel leaf in a garden
The caterpillar at dinner. A mature Old World swallowtail caterpillar, green with black bands and orange spots, feeds on a fennel leaf.

How swallowtail butterflies behave

The Old World swallowtail is a strong and fast flier, and it spends its days patrolling, feeding and looking for a mate. The males gather on hilltops, a habit called hilltopping, and they patrol the ridge, chasing each other and any passing butterfly, and waiting for a female to arrive, because the hilltop is the meeting place of the species. The females fly lower, over the meadows and the fens, searching for the host plant on which to lay their eggs, and they flutter over the plant, testing it with their feet before they lay a single egg. The butterfly frequently pauses to hover over flowering herbs and sip nectar, and it is a restless feeder, moving from flower to flower and never staying long in one place.

Two yellow swallowtail butterflies chasing each other over a sunny hilltop ridge in summer
Hilltopping. Two males chase each other over a sunny hilltop, where the males of the species gather to patrol and wait for females.

Defence is mostly a matter of being noticed too late and tasted once. The caterpillar starts life looking like a bird dropping, which is a disguise that keeps the birds away, and it ends life in warning colours, green with black bands and orange spots, which tell a predator that it is not worth eating. The osmeterium is the second line of defence, and a caterpillar that is touched rears up and everts the forked orange organ from behind its head, releasing a strong smell of rancid butter and pineapple that drives away ants, wasps and small birds. The adult relies on speed and on the tails, and a bird that snaps at the butterfly often takes only the tail, leaving the butterfly to fly on, which is why so many old swallowtails are seen with a torn or missing tail. Like the animals in our monarch guide, Old World swallowtails are day-flying butterflies that warn predators with colour, though the monarch is orange with thick black veins and migrates across North America, while the Old World swallowtail is yellow with fine black veins and wanders rather than migrates.

A swallowtail caterpillar rearing up with its forked orange osmeterium extended from behind its head on a green leaf
The hidden weapon. A swallowtail caterpillar rears up and extends its forked orange osmeterium, the organ that releases a strong smell to drive predators away.

Breeding and life cycle

The Old World swallowtail has one generation a year in the north and at altitude, two in most of central Europe, and up to three around the Mediterranean and in warm parts of Asia, which gives it a flight season from April to September. In the north the single generation is on the wing from late May to early July, and the butterfly that emerges in spring is the one that will lay the eggs for the next year. The female flutters over the host plant and lays her eggs singly, usually on a soft young leaflet or on the outer flowers of an umbel, choosing an isolated plant that stands clear of the surrounding vegetation, where the caterpillar will be warmer. The egg is spherical and greenish yellow, and it hatches in about a week, though the time depends on the warmth of the weather.

A tiny yellow spherical swallowtail egg laid singly on a green milk parsley leaflet
One egg at a time. A female Old World swallowtail glues a single spherical yellow egg to a milk parsley leaflet.

The caterpillar passes through five instars in about three to four weeks, changing its appearance completely as it grows. The first two instars are black with a white patch across the middle of the back, so that the young larva looks like a bird dropping, and from the third instar the pattern switches to the famous one, a smooth, plump, bright green body encircled on every segment by a velvety black band, with a row of orange or orange-red spots in each band. The head is green with black marks, and the fully grown larva reaches about 40 to 50 millimetres. When it is ready to pupate, the caterpillar leaves the host plant and fixes itself to a stem, a fence, a dead stalk or a wall, with a silk girdle round its middle, and the chrysalis that forms is green or brown, depending on the background, and shaped like a small leaf or a piece of bark.

A green swallowtail chrysalis attached by a silk girdle to a dry plant stem, overwintering
Winter, in miniature. A swallowtail chrysalis hangs from a dry stem by a silk girdle, green or brown to match its background, waiting out the cold months.

Conservation status

Papilio machaon is listed as Least Concern, and as a species it is not threatened, because it is widespread throughout Eurasia and often common, and it is found across a range that stretches from Portugal to Japan and from the Arctic coast to North Africa. The picture is different when the subspecies are looked at one by one, because the British subspecies, Papilio machaon britannicus, is confined to the fens and grazing marshes of the Norfolk Broads, and it is the largest and one of the rarest resident butterflies in Britain. It is protected by law under the Wildlife and Countryside Act 1981, which makes it an offence to kill, injure or take it, and to damage the places where it lives, and its survival depends on the fens being kept wet and the milk parsley being kept growing.

A yellow swallowtail butterfly feeding on a thistle in a protected fen meadow with reeds in the background
Safe for now, but only just. The Old World swallowtail is listed as Least Concern as a species, though its British subspecies survives only in the Norfolk Broads.

The family as a whole holds both the common and the vanishing, and the Homerus swallowtail of Jamaica is the warning. It is one of the largest swallowtails of the Americas, with a wingspan of up to 15 centimetres, and it is listed as Critically Endangered, confined to a few forested slopes in Jamaica, where its food plant is scarce and its habitat is being lost. The Queen Alexandra’s birdwing, the largest butterfly in the world, is listed as Endangered. The Old World swallowtail itself is protected by law in six provinces of Austria and in the Czech Republic, Slovakia, Hungary, Romania and Moldova, where its numbers have fallen, and it is a reminder that a butterfly can be common in one country and rare in the next.

What threatens the Old World swallowtail most is the loss of its habitat and its food plant. The fens of the Norfolk Broads are drained for farming, the meadows are mown or ploughed, and the road verges are sprayed, and each of these takes away the milk parsley and the fennel on which the caterpillar depends. Climate change is a mixed blessing, because warmer summers may help the butterfly in the north, though drier summers may harm its food plant, and the balance is not yet clear. The best help a watcher can give is to leave patches of wild umbellifers growing, to avoid spraying fennel and dill in the garden, and to support the fenland reserves that keep the milk parsley wet and the swallowtail flying. A garden with fennel, dill and buddleia is a garden that can feed a swallowtail, and a fen that stays wet is a fen that can keep one.

Best seasons for swallowtail butterfly watching

The best time to look for the Old World swallowtail is the summer, when the adults are on the wing and the meadows are in flower. In the north of its range there is a single generation a year, on the wing from late May to early July, and that short season is the one to aim for, because the butterfly is at its freshest and the meadow is at its best. Across most of Europe and Asia there are two generations, and in the warm south there are three, giving a flight season from April to September, with the second brood often larger than the first. A sunny day in June or July, with little wind and a temperature above 20 degrees, is the classic time, because the butterfly needs warmth to fly, and it is most active in the middle of the day.

A butterfly watcher with binoculars standing in a sunny wildflower meadow in June, watching swallowtails
The classic moment. A watcher with binoculars stands in a wildflower meadow in June, when the Old World swallowtail is at its freshest and most active.

The place matters as much as the season, and the hilltop is the place to start. The males gather on the tops of hills and ridges, and a hilltop on a summer day is the most reliable place to find one, because the males patrol there and the females come to meet them. The fens of the Norfolk Broads are the place for the British subspecies, and the best time there is late May and June, when the first generation is flying and the milk parsley is in flower. In the garden, the best time is when the buddleia is in flower, because the butterfly comes to feed, and a garden with fennel, dill and buddleia is a garden that may hold a swallowtail on any sunny day in summer.

Staying safe around swallowtail butterflies

Swallowtail butterflies are not dangerous to people in any way, and the Old World swallowtail has no bite, no sting and no venom, and it does not carry disease. The caterpillar is harmless too, and it is best to look and not touch. The danger in the meadow belongs to the sun and the heat, not to the butterfly, and a watcher should take water, wear a hat, and use sunscreen, because a summer meadow is a hot place. The butterfly itself is the fragile one, and its wings are covered in tiny scales that rub off easily, so a butterfly that is handled may never fly again.

The other rule is to respect the law where it applies, and the British subspecies is the one to remember. Papilio machaon britannicus is protected under the Wildlife and Countryside Act 1981, and it is an offence to take it, to kill it, or to damage its habitat, so a watcher in the Norfolk Broads should keep to the paths, should not pick milk parsley, and should not try to catch the butterfly. The best way to see one is to stand still in the fen, with binoculars, and to let the butterfly come to you, because a swallowtail that is left alone will feed in the open and give a better view than one that has been chased. Take photographs, take notes, and leave the butterfly and its food plant where they are.

Swallowtail butterfly watching checklist

Pack light, pick a sunny day, and take this list with you, because a little preparation makes a meadow visit far better, and it keeps the butterflies safe.

  • Pick a sunny, calm day in June or July, with a temperature above 20 degrees, because the butterfly needs warmth to fly.
  • Go to a hilltop, a flower-rich meadow or a fen, and look for thistles, buddleia and the tall flowers of the meadow.
  • Take binoculars, because the butterfly is a strong flier and it often feeds out of reach, and close-focusing binoculars are best.
  • Carry a field guide or a phone with a butterfly guide, so that you can tell an Old World swallowtail from a scarce swallowtail.
  • Wear a hat, take water, and use sunscreen, because a summer meadow is hot and there is little shade.
  • Learn the food plants, milk parsley, fennel, dill and wild carrot, because where they grow, the swallowtail follows.
  • Take photographs and notes, and report your sighting to a local butterfly group, because your record may help the scientists.

Frequently asked questions

How big is an Old World swallowtail?

The Old World swallowtail has a wingspan of 65 to 90 millimetres, and the second summer brood and the southern populations sit at the top of that range, while the high-altitude and Arctic forms are smaller. Some females have a wingspan that reaches beyond 88 millimetres, and the butterfly is one of the largest in Europe, though it is far smaller than the Queen Alexandra’s birdwing, the largest butterfly in the world, with females reaching a wingspan of up to 25 centimetres. The caterpillar grows to about 45 millimetres, and the chrysalis is about the size of a small leaf.

What do swallowtail caterpillars eat?

Old World swallowtail caterpillars feed on plants of the carrot family, the Apiaceae, with milk parsley as the favoured food in Britain and the Netherlands, and fennel, dill, wild carrot, parsley and hogweed as the food elsewhere. The young caterpillar eats the leaves of the plant it was born on, and the older caterpillar prefers to eat the flowers. The caterpillar is a fast eater, and it spends its time eating or resting before it resumes eating again, and a garden clump of fennel or dill is often enough to feed one.

How long do swallowtail butterflies live?

Old World swallowtail adults live for about two to four weeks in the wild, and they spend most of that time feeding, patrolling and, in the case of the males, defending a patch of hilltop. The whole cycle from egg to adult death takes about a year for the generation that overwinters as a chrysalis, though the summer generations are quicker, and the chrysalis is the stage that passes the winter, attached to a stem by a silk girdle. The caterpillar stage lasts about three to four weeks, through five instars, and the egg hatches in about a week in warm weather.

Are swallowtail butterflies dangerous to people?

No, swallowtail butterflies are not dangerous to people in any way, and the Old World swallowtail has no bite, no sting and no venom, and it does not carry disease. The caterpillar is harmless too, though it carries a forked orange organ, the osmeterium, which shoots out from behind its head when the caterpillar is touched, and gives off a strong smell of rotting fruit that deters ants, wasps and small birds. A watcher should not touch the butterfly, because the scales on its wings rub off easily and a damaged wing can stop it flying, and the danger in the meadow belongs to the sun and the heat, not to the butterfly.

How can you tell an Old World swallowtail from a monarch?

An Old World swallowtail is smaller than a monarch, with a wingspan of 65 to 90 millimetres against the monarch’s 9 to 10 centimetres, and its upper wings are yellow with fine black veins and a black border, while the monarch’s wings are orange with thick black veins and a black border. The swallowtail’s hindwings are drawn out into tails, with blue spots and a red eyespot, while the monarch has no tails at all, and its wings are rounded. The swallowtail wanders across Europe, Asia and North America, while the monarch migrates within North America, and the two are never confused once the tails and the yellow ground colour are learned. Our monarch guide covers that butterfly in full, and it is the place to start if you want to compare the two side by side.

How is this guide different from the butterfly guide?

This guide covers the swallowtail butterflies, a family of more than 550 kinds in the Papilionidae, and it follows one of them, the Old World swallowtail, Papilio machaon, through its whole life, from the egg on a milk parsley leaf to the adult sailing over a summer meadow, while our general butterfly guide covers the whole butterfly order in a single broad sweep, from the garden butterflies that flutter about a single flower to the tropical species that live beyond the reach of frost. That guide is the place to start if you want to know what a butterfly is, while this guide stays with the swallowtails for its whole length, following Papilio machaon through its carrot-family food plants, its green caterpillar with its orange osmeterium, its hilltopping males and its single year of life to the Least Concern status that leaves its fen and its meadow as the things most worth protecting.

This guide also goes further than our starfish guide, which covers a group of about 1,900 kinds of sea animal in the class Asteroidea, led by the common starfish, Asterias rubens, a five-armed hunter of the sea floor that walks on tube feet, prises mussels open with its arms, and can regrow a lost arm. One is a butterfly you meet by daylight in a sunny meadow, and the other is a starfish you meet by torchlight in a rock pool at low tide, and the two could hardly be more different in where they live, how they feed, and how they travel, though both are guides to a whole group rather than to a single animal, and both are led by a named species that stands for the rest.

Conclusion

The swallowtail butterfly is a reminder that an animal does not need to be large to live a remarkable life. A butterfly with a wingspan of only a few centimetres has made its home across Europe, Asia and North America, from the Arctic coast to the Mediterranean, and it survives there not by being fierce, but by being strong, by being adaptable, and by following its food plant wherever it grows. The Old World swallowtail, with its yellow wings and its tailed hindwings, is the butterfly that gave the whole family its name, and it is worth a closer look, because it is more striking and more widely travelled than it looks.

If you go looking for one, go to the meadow on a sunny day in June, go to the hilltop when the sun is high, and watch for the yellow wings with black veins, because that is where the swallowtail is feeding. Find the butterfly that can cross a valley on the wind and spend the winter as a chrysalis on a dry stem, and you will have met the Old World swallowtail, the butterfly that named its family. Look, and leave the milk parsley alone.

Sam Sami

Sam covers wildlife, hunting, nature management, and local wildlife issues in Norway. He enjoys following what is happening in the field and turning it into clear, useful stories.

@SamSami | sam@brandclickx.com | Instagram

Swallowtail Butterfly: Facts, Habitat, Diet and Behaviour