From egg to light

The firefly life cycle

A firefly lives four different lives: egg, larva, pupa and adult. The flashing insect you see on a summer night is only the last few weeks of it. Most of a firefly's life is spent on the ground as a larva, out of sight, and that is the part people most often harm without knowing.

1. Egg: a few weeks in damp ground

After mating, a female firefly lays her eggs in moist places: in damp soil, in moss, under leaves, or on plants near water. In many species the eggs glow faintly, even before anything has hatched. They hatch after about three to four weeks. Eggs dry out easily, which is one reason fireflies are found where the ground stays damp.

AI illustration
Firefly eggs in damp moss, a few glowing faintly. Real firefly eggs are tiny, about half a millimetre across.

2. Larva: the longest stage, up to two years

The larva is a small, flat, segmented hunter, and it is where a firefly spends most of its life: often a year, and up to two years in some species. It lives in leaf litter, soil and rotting wood, and some kinds live in or beside water. Larvae eat snails, slugs and earthworms, which they bite and soften with digestive juices. They grow by shedding their skin several times. Firefly larvae glow too, which is why people often call them glowworms. Scientists think the larval glow is a warning to animals that might eat them, because many fireflies taste bad or are toxic to them.

AI illustration
A firefly larva biting a snail on the damp forest floor, the light at its tail glowing.

3. Pupa: one to three weeks of change

When the larva is fully grown, it makes a small chamber in the soil, or fixes itself to bark or a leaf, and becomes a pupa. Inside, its body is rebuilt into an adult with wings and, in flashing species, a lantern. This takes about one to three weeks. Many pupae glow softly while they change.

AI illustration
A firefly pupa resting in a small chamber in the soil, its legs and short wing pads folded against its body.

4. Adult: a few weeks of light

The adult firefly usually lives for just a few weeks. Its main job is to find a mate. In flashing species, males fly and flash a pattern, and females answer from the grass or a branch with their own flash. Many adults eat little or nothing; some sip nectar or pollen. A few, like some Photuris females, copy another species' flash to lure males and eat them. Not every firefly flashes as an adult: some species are active by day and find each other by scent instead.

AI illustration
An adult firefly, modelled on the common eastern firefly (Photinus pyralis), with its lantern lit on a blade of grass.

5. Mating: the cycle begins again

Finding a mate is what the adult's few weeks are for. When a male's flash pattern is answered by a female of his own kind, he flies down to her, and the pair join, often tail to tail, sometimes staying together for hours. In some species the male also passes the female a small package of nutrients that helps her make eggs. Soon after, she lays her eggs in damp ground, and the cycle starts again.

AI illustration
A mating pair of fireflies, modelled on Photinus, joined tail to tail on a blade of grass.

In the tropics

Where winters are cold, many fireflies finish one life cycle a year, and the adults all appear in the same few weeks of early summer. In warm places like the Philippines, generations can overlap, so adult fireflies may be seen in many months of the year. In mangrove rivers, like the ones at Donsol, synchronous fireflies gather in the same trees night after night and flash together, while their larvae live in the mud and wet ground nearby.

Why the life cycle matters for protecting them

Because a firefly spends most of its life as an egg, larva and pupa on damp ground, protecting fireflies starts there. Leaving some leaves and logs, keeping a few damp, shady spots, and skipping pesticides protects the young, and the snails and worms they eat. Turning off outdoor lights at night protects the adults while they look for a mate. Cutting down mangroves or filling in wet ground removes every stage at once.

Watch the life cycle

See all our firefly videos

Sources: Xerces Society, How You Can Help Fireflies; Firefly Conservation & Research; Sara Lewis, Silent Sparks: The Wondrous World of Fireflies (Princeton University Press, 2016); Lewis et al., A Global Perspective on Firefly Extinction Threats, BioScience (2020).