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!
Your turn
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.
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!
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?
Run 100 reactions. How many make a photon?
Sample 100 reactions at a 41% quantum yield (Ando et al. 2008).
Press and hold to make the nitric oxide signal. Where does the oxygen go?
Hold to release NO: watch O₂ bypass the mitochondria.
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?
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!
On warm summer nights, tiny lights blink over the grass. They are fireflies! A firefly is not a fly. It is a beetle.
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!
Our old light bulbs get very hot. A firefly's light stays cool. Heat would hurt the firefly.
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.
What makes the northern lights? · How does light travel? · Why do we need lots of kinds of animals? · ← More explainers
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
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
Think of the lantern as a tiny kitchen with four ingredients:
| Ingredient | What it is | Its job |
|---|---|---|
| Luciferin | A small chemical | The "fuel" that ends up giving off light |
| Oxygen | From the air | Reacts with luciferin. No oxygen, no light |
| ATP (with magnesium) | The cell's energy molecule | Gets luciferin ready to react; magnesium ions help ATP do this job |
| Luciferase | An 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.)
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
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
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
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
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
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.)
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:
Keep exploring: what causes the northern lights? · how does light travel? · why is biodiversity important?
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.
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.
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.
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.
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.
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.
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.