Ages

Now you know how fireflies light up!

What next?

Try it yourself ↓

How do fireflies light up?

▶ 5:26 video · Watch on YouTube

  1. 0:00 Start
  2. 0:43 The glow recipe
  3. 1:39 Cold light
  4. 2:29 The on-off switch
  5. 3:30 Secret codes
  6. 4:19 Keep the lights low

Your turn

Make the light yourself

Play with firefly light!

Each lab is one step from the video. Tap, switch and flash, and see what happens.

Each lab isolates one part of the story. The reaction tokens, photon odds and flash codes are simplified models.

Tap the buttons and watch the lights.

1

Sparks in the grass

Fireflies at dusk

Tap the fireflies!

Tap the fireflies to make them flash. Then turn dusk into night.

Tap to trigger flashes, and switch the sky between dusk and night.

Tap a firefly. Blink!

2

The glow recipe

Four components of the reaction

The glow recipe

Switch the ingredients on and off. Which ones does the lantern need?

Remove substrate, O₂, ATP or enzyme: which are required?

Take one away. Does it still glow?

3

Count the photons

Quantum yield ≈ 41%

Run 100 reactions. How many make a photon?

Sample 100 reactions at a 41% quantum yield (Ando et al. 2008).

4

The on-off switch

Nitric-oxide flash control

Press and hold to make the nitric oxide signal. Where does the oxygen go?

Hold to release NO: watch O₂ bypass the mitochondria.

5

Send a flash code

Species-specific flash codes

Blink hello!

Send a code from the male. Which female answers?

Send a code and see who replies, including a Photuris mimic.

Pick a blink. Who blinks back?

6

Lights off, let them go

Light pollution and release

Help the fireflies

Switch the porch light off and on. Then let the jar fireflies go.

Toggle artificial light and watch flash activity; release the captured fireflies.

Turn off the light. Let them fly!

How do fireflies light up?

On warm summer nights, tiny lights blink over the grass. They are fireflies! A firefly is not a fly. It is a beetle.

1. A lamp in its tummy

A firefly has a little lamp at the end of its tummy. Inside, it mixes glow stuff, air, energy and a tiny helper. Mix them all, and it glows!

2. Cool light

Our old light bulbs get very hot. A firefly's light stays cool. Heat would hurt the firefly.

3. Blink, blink!

Fireflies blink to find each other. Each kind has its own blinking code. A boy firefly blinks as he flies, and a girl in the grass blinks back.

Be kind to fireflies: Ask a grown-up to turn off the outside lights at night, so fireflies can see each other blink. If you catch one in a jar, only look for a little while. Then let it fly away, the same night.
Did you know? Baby fireflies glow too! Their glow tells hungry animals: "I taste yucky!"

What makes the northern lights? · How does light travel? · Why do we need lots of kinds of animals? · ← More explainers

How do fireflies light up? The short answer

Fireflies light up with a chemical reaction called bioluminescence: light made by a living thing.4 In a special organ at the end of its belly, called the lantern, a firefly mixes a chemical called luciferin with oxygen. An enzyme called luciferase speeds the reaction up, and ATP, the energy molecule every cell uses, powers it, with help from magnesium.4614 The luciferin turns into a new molecule that is packed with extra energy, and it releases that energy as a flash of yellow-green light.6 The firefly switches the light on and off by controlling how much oxygen reaches the lantern.5

luciferin + oxygen + ATP —(luciferase)→ oxyluciferin + light

What is a firefly, anyway?

Fireflies, also called lightning bugs, aren't flies or true bugs. They are soft-bodied beetles in the family Lampyridae.24 More than 2,200 species have been described around the world, and about 165 live in the United States and Canada.2 Not all of them flash. Some are active in the daytime and find each other by smell. In glow-worm fireflies, the females can't fly and give off a long, steady glow instead of quick flashes.2

A firefly spends most of its life, one to two years, as a larva hunting snails, worms and other small animals in the soil and leaf litter. The flashing adult stage lasts only about three to four weeks, and many adults don't eat at all.1

The glow recipe: luciferin, luciferase, oxygen and ATP

Think of the lantern as a tiny kitchen with four ingredients:

IngredientWhat it isIts job
LuciferinA small chemicalThe "fuel" that ends up giving off light
OxygenFrom the airReacts with luciferin. No oxygen, no light
ATP (with magnesium)The cell's energy moleculeGets luciferin ready to react; magnesium ions help ATP do this job
LuciferaseAn enzyme (a protein helper)Holds luciferin and oxygen together and speeds up the reaction

When luciferase brings luciferin and oxygen together, the luciferin turns into a molecule called oxyluciferin. It is made in an "excited" state, with more energy than it can hold. As it settles down, it lets that extra energy go as a particle of light, a photon.6 Most species give off a greenish-yellow light.1 Depending on the species, firefly light ranges from green and yellow-green to yellow, orange-yellow or amber.1516 (Curious about what light actually is? See how light travels.)

Why is firefly light called "cold light"?

An old incandescent light bulb turns only about 10% of its energy into light. The other 90% leaves as heat, which is why you can't hold a bulb that has been on for a while.1 A firefly's reaction loses very little energy as heat, so its light is called cold light. That matters: if the lantern got as hot as a light bulb, the firefly wouldn't survive.5

Is firefly light 100% efficient? You'll often read that "nearly 100%" of the energy becomes light.16 Treat that as a popular claim, not a measurement. What scientists have measured is something slightly different: how often one reaction makes one photon. In 2008, a lab in Japan tested the luciferase of the Big Dipper firefly and found about 41 photons for every 100 luciferin molecules that reacted, under their test conditions (a "quantum yield" of about 41%).7 That's still very high for a chemical light, and the lantern still stays cool. The careful way to say it: very little energy is lost as heat, but not every reaction makes light.

How do fireflies flash on and off?

Since the recipe needs oxygen, a firefly can switch its light by controlling the oxygen supply. Insects don't have lungs. Air travels into their bodies through a network of ever-smaller tubes called tracheoles, which reach right into the lantern.5

For a long time it was a puzzle how some fireflies flash so fast, because the muscles that move air are fairly slow. In 2001, researchers reported evidence that a gas called nitric oxide works as the switch. This is the leading explanation, and scientists are still studying the details:58

  1. Lantern off: the cell's power stations, the mitochondria, sit near the air tubes and use up the oxygen that comes in, so none reaches the luciferin.
  2. Nerve signal: when the firefly flashes, nerves release a chemical messenger (octopamine). Cells that sit between the nerve endings and the light cells can make nitric oxide, and the study found that blocking nitric oxide also blocked the light.
  3. Flash: nitric oxide briefly blocks the mitochondria, so oxygen slips past them to the light-making chemicals.
  4. Off again: nitric oxide breaks down very quickly. The mitochondria start grabbing oxygen again, and the light goes out.

Why do fireflies glow? Flash codes and firefly "language"

Firefly light probably first evolved as a warning to predators, but today adults mostly use it to find a mate.4 Each flashing species has its own flash pattern, so males and females of the same species can recognise each other.1 Usually, males flash while flying and females answer from the ground or low plants.1

A good example is the common "Big Dipper" firefly, Photinus pyralis. At dusk, a male flies about 3 feet (1 metre) above the ground and makes a one-second flash about every five seconds, swooping upward in a "J" shape as he does. A female who likes what she sees waits about two seconds and answers with a half-second flash of her own. The pair keep signalling as he flies down to her.4 Females are choosy: in at least two species, males that flash faster or brighter are more attractive.5

Synchronous fireflies

In Great Smoky Mountains National Park, which is home to 19 firefly species, one species called Photinus carolinus does something spectacular: the males flash in sync.1 A male typically makes a burst of about four to eight quick flashes over a few seconds, then goes dark for several seconds, and groups of hundreds of males blink and pause together.11 Scientists aren't completely sure why. One idea is that the shared dark pauses let males spot the much dimmer females answering.14 The display is so popular that the park runs a lottery for viewing passes each spring.10

The femme fatale fireflies

Many fireflies contain bitter defensive chemicals called lucibufagins, and birds and toads learn to leave them alone. Some big Photuris fireflies can't make these chemicals themselves. So after mating, the females copy the answer flashes of Photinus females. When a hopeful Photinus male flies down, she eats him and takes over his defensive chemicals.4

Why do baby fireflies glow?

The larvae of all firefly species glow.2 Fireflies make defensive chemicals that make them taste bad, and the larvae's glow is a warning to predators: don't eat me.5 Scientists think this warning glow is how firefly light started, long before it became a mating signal.4 (Other animals use light and colour as signals too. See how octopuses change color.)

Are fireflies going extinct?

Fireflies as a group aren't extinct, but many populations are shrinking. In a 2019 survey, firefly experts from around the world ranked habitat loss, light pollution and pesticides as the biggest threats.9 Many species are habitat specialists, and in some species the females can't fly, so a population that loses its meadow or marsh can't simply move.4 Based on official Red List assessments, an estimated 8% of firefly species in the US and Canada are at risk of extinction, and the true number may be higher because many species haven't been studied enough to judge.13

Light pollution is a special problem for animals that talk with light. More than three-quarters of firefly species in the United States and Canada are active at night or at dusk, and street and porch lights can drown out their signals.3 You can help:

  • Turn off outdoor lights at night, especially in early summer when fireflies are flashing.12
  • "Leave the leaves" and mow less often: leaf litter and long grass shelter larvae and the snails and worms they eat.12
  • Avoid pesticides on lawns and gardens.12
  • When you visit firefly sites, stay on the trails and keep flashlights off or covered.1
  • Watch fireflies rather than keep them. If you do catch one, let it go soon, the same night, where you found it.17

Common misconceptions

"Fireflies are flies." They are beetles, with six legs and hard wing covers. "Lightning bug" isn't quite right either.215
"Firefly light is 100% efficient." Firefly light makes very little heat, but "100%" isn't a measured number. One lab study found about 41 photons per 100 reactions, which counts photons, not energy.7
"The light is electric, like a tiny bulb." It's chemistry: luciferin reacting with oxygen, helped by an enzyme.6
"All fireflies flash." Some adults are active in the day and don't light up at all. Glow-worms glow steadily instead.2
"Every flash means 'come here'." Some flashes are lies: Photuris females fake other species' answers to catch a meal.4

FAQ

How do fireflies light up, in simple words?

Inside a lantern under the end of its belly, a firefly mixes a chemical called luciferin with oxygen. An enzyme called luciferase, plus the cell's energy molecule ATP and a little magnesium, make the reaction happen, and the energy comes out as light. This is called bioluminescence.

Why do fireflies glow?

Adult fireflies mostly flash to find a mate. Each flashing species has its own pattern: males flash while flying, and females answer from the grass. Firefly larvae glow too, as a warning to predators that they taste bad.

Do both female and male fireflies light up?

In flashing species, yes. Males usually flash while they fly and females answer from the ground or plants. In glow-worm fireflies, the flightless females make a long glow. Some day-active fireflies don't light up at all and use scent instead.

Why do fireflies glow only at night?

Most flashing fireflies signal at dusk or at night, when a small flash is easy to see. Fireflies that are active in the day usually don't glow and use smells (pheromones) to find each other instead.

Is firefly light hot?

No. It's called cold light because very little of the energy is lost as heat. You'll often read that it is nearly 100% efficient, but that's a popular claim, not a measurement. One 2008 lab study found that about 41 of every 100 reacting luciferin molecules give off a photon of light.

Why do we no longer see as many fireflies?

Experts rank habitat loss, light pollution and pesticides as the biggest threats. Bright lights at night can drown out firefly flashes, so males and females can't find each other. Turning off outdoor lights at night is one of the easiest ways to help.

Will a firefly light up in a jar?

It may keep flashing for a while, but in a jar it can't find a mate, and an adult firefly only lives a few weeks. Watch it briefly, then let it go the same night, where you found it.

Did this help it click?

Sources

  1. National Park Service, Great Smoky Mountains: Fireflies
  2. Xerces Society, About Fireflies
  3. Xerces Society, Firefly Threats and Conservation Efforts
  4. Clyde Sorenson, North Carolina State University, How Fireflies Glow – and What Signals They're Sending (The Conversation)
  5. Scientific American, How and why do fireflies light up?
  6. Encyclopaedia Britannica, How Do Fireflies Light Up?
  7. Ando Y. et al. (2008), Firefly bioluminescence quantum yield and colour change by pH-sensitive green emission, Nature Photonics 2, 44–47
  8. Trimmer B. A. et al. (2001), Nitric oxide and the control of firefly flashing, Science 292, 2486–2488
  9. Lewis S. M. et al. (2020), A Global Perspective on Firefly Extinction Threats, BioScience 70, 157–167
  10. National Park Service, Great Smoky Mountains Announces Dates for 2026 Firefly Viewing Event
  11. Photinus carolinus (flash pattern summary citing Faust and Copeland & Moiseff), Wikipedia
  12. Fallon C. et al., Xerces Society, Conserving the Jewels of the Night: Guidelines for Protecting Fireflies in the United States and Canada
  13. Xerces Society, Firefly Conservation
  14. Encyclopaedia Britannica, Luciferase (ATP, magnesium and luciferin)
  15. Smithsonian Magazine (2023), The Illuminating Science Behind Fireflies
  16. Missouri Department of Conservation, Fireflies (Lightning Bugs)
  17. Xerces Society (2020), Keeping the Lights Burning: The Status of Fireflies in the United States and Canada