Global Animal Guide Wildlife Encyclopedia
Firefly glowing yellow-green on a leaf in the dark
Insect Least Concern

Firefly

Lampyridae

Quick answer

Fireflies, also called lightning bugs, are beetles that produce their own light through a chemical reaction in their abdomen. They flash these glowing signals mainly to attract mates on warm summer evenings. Adult fireflies live only a few weeks, while their larvae can spend a year or more developing.

Firefly facts at a glance

Key facts about the Firefly
Scientific name Family Lampyridae
Diet Larvae carnivorous; many adults eat little or nothing
Habitat Meadows, forests, marshes, gardens
Lifespan Adults ~2–4 weeks; larvae up to a year or more
Size About 1–2.5 cm (0.4–1 in)
Light Cold bioluminescent flashes
Conservation status Least Concern (IUCN)
Scientific classification
Kingdom Animalia
Phylum Arthropoda
Class Insecta
Order Coleoptera
Family Lampyridae

Where it lives

Temperate and tropical regions worldwide, especially the Americas and Asia, in meadows, forests, and marshes.

How fireflies glow

Fireflies make light through bioluminescence, a chemical reaction in their lower abdomen that combines a compound called luciferin with oxygen and an enzyme. The result is a highly efficient "cold light" that gives off almost no heat. Fireflies can control the timing of their flashes, switching the glow on and off.

Flashing for mates

The main purpose of a firefly's glow is to find a mate. Each species has its own flash pattern, and males often fly while flashing as females respond from the ground or vegetation. By matching the right pattern, fireflies of the same species can recognize and locate one another in the dark.

Life cycle and diet

Firefly larvae, sometimes called glowworms, live in damp soil or leaf litter and are predators that eat snails, slugs, and worms. After developing for many months, they pupate and emerge as adults. Many adult fireflies eat little or nothing and focus their short lives on reproducing.

Habitat and decline

Fireflies favor warm, humid places such as meadows, woodland edges, and marshes, and they are most active on summer nights. In many areas firefly numbers appear to be falling, with habitat loss, pesticides, and artificial light at night thought to be among the causes.

Frequently asked questions about the Firefly

How do fireflies glow?

Fireflies glow through bioluminescence, a chemical reaction in their abdomen that produces light with almost no heat. They can turn the glow on and off to create flashing patterns.

Why do fireflies light up?

The main reason fireflies flash is to attract mates. Each species has its own pattern, and males and females exchange matching signals to find one another in the dark.

What do fireflies eat?

Firefly larvae are predators that eat snails, slugs, and worms. Many adult fireflies eat little or nothing, living only long enough to mate and lay eggs.

How long do fireflies live?

Adult fireflies usually live only about two to four weeks. They spend much longer, often a year or more, as larvae before becoming flashing adults.

Are fireflies actually flies?

No. Despite the name, fireflies are beetles, not true flies. They belong to the beetle family Lampyridae and are also commonly called lightning bugs.

Why are fireflies disappearing?

Firefly numbers are declining in many places. Habitat loss, pesticide use, and artificial light at night, which can interfere with their flashing signals, are all believed to play a role.