Why are moths attracted to light?
Why Are Moths Attracted to Light?
The short answer
Moths aren't truly drawn to light. They keep their backs to the brightest thing, normally the sky, so a nearby bulb tilts them into circles they can't escape.
In this guide (6 sections)
A summer evening, and you flip on the porch light. Within minutes a pale moth arrives and starts its strange dance, looping round and round the bulb, bumping into it, tumbling off and coming straight back for more. It looks like love, or maybe madness. But moths aren't really attracted to light at all. A flying moth stays level by keeping its back toward the brightest thing it can see, which in nature is the sky. A nearby bulb hijacks that reflex, so the moth tilts toward it and gets trapped circling, stalling and flipping around it.
People have used this dance to trap insects since Roman times, and guessed wrong about it almost every time. The real answer only arrived when scientists slowed it down, frame by frame, and it starts with a very simple rule for flying in the dark.
Keep the Bright Side Up
A pilot is flying a small plane over a dark valley on a moonless night. There's no horizon out there, only black below and a faint glow of sky above. So she flies by one simple rule: keep the bright side up. As long as the glow stays over her head, the wings stay level and the plane flies straight.
Then she crosses a hill with a powerful floodlight on top. Suddenly the brightest thing in her world sits off to one side, below her wing. Her rule kicks in, and she rolls the plane to put that glow "overhead." A plane that's banked turns, so she curves toward the light, rolls again to keep it above her, and curves again. She is now flying circles around a hilltop, perfectly obeying a rule that has stopped making sense.

That's the moth at your porch light. A real pilot would glance at her instruments, spot the problem and fly home laughing. The moth has no instrument panel and no moment to think it over. For a moth, keeping the bright side up isn't a decision; it's a reflex built into the way it flies.
Three Ways a Porch Light Wrecks a Flight
For a long time, nobody could track what a moth actually does near a bulb. Insects are tiny and fast, and the action happens at night. Then a team led by Sam Fabian at Imperial College London and Yash Sondhi at Florida International University took high-speed cameras to Monteverde, Costa Rica, and into a motion-capture lab, and tracked hundreds of insect flights in 3D around lights. Their results, published in Nature Communications, changed the story completely.
The insects didn't steer straight at the light. Instead, they kept their backs facing it, the way our pilot keeps the glow overhead. That one habit produced three kinds of disaster, and you've probably seen all three on your own porch.
The endless orbit
A moth flying beside the bulb tilts its back toward it. Tilted wings mean a turn, so the moth swings around the light in a steady circle. It never chose to orbit; it's just banking forever, exactly like the plane over the floodlit hill.
The stall
When a moth flies underneath the bulb, keeping its back to the light means pointing its body upward. It climbs steeper and steeper, losing speed, until it stalls in midair and drops. Then it rights itself and tries again.
The flip
This is the one that makes you wince. When a moth flies over the top of the bulb, the "sky" is suddenly below it. So the moth does what its reflex demands and rolls its back toward the light, which means flipping upside down, and then it crashes. In the lab, a big yellow underwing moth flown over an ultraviolet bulb "immediately flipped upside down," and the team saw the same move over and over. "You watch the videos in slow motion and see it happening again and again," said Yash Sondhi.
The clincher came from a simple swap, tried on honeybees and flies. With ultraviolet light shining down from above, like a real sky, they flew up in a fast but stable way. With the same light glowing up from the floor, they couldn't keep flying: they tilted, flipped over and crashed. The insects and the light were the same; only the direction changed. The bulb itself was never the lure. Its position was the trap.

Why a Moth Can't Feel Which Way Is Up
You might wonder why a moth needs the sky at all. You know which way is up with your eyes closed, because your inner ear senses gravity. A flying insect can't rely on that trick. Its sense organs are minute, and it twists and swerves so fast that every swerve feels like a pull. A housefly travels at hundreds of body lengths per second. "In-flight accelerations are indistinguishable from acceleration due to gravity," Sam Fabian explained.
So insects use light instead. Scientists call it the dorsal light response, the habit of turning the back (the dorsal side) toward the brightest part of the view. In nature, that's a brilliant rule, because the sky is the brightest thing an insect sees, even at night. However dark the evening, the sky above still glows brighter than the ground below.
For an insect in the wild, "brightest" and "up" always meant the same thing.
As the lead researcher put it: "This is a beautiful, robust way to work out which way is up – until we started lighting up the night." To a moth a few feet away, a bulb outshines the night sky, and it sits beside or below the moth. The rule still works perfectly. It's the world that changed around it.
When Light Tells the Wrong Story
That's what makes this so elegant, and so unfair. A moth near a bulb isn't lost in the usual sense. The researchers describe it as a basic flight-stability reflex being hijacked, not a broken map. The moth hasn't lost its map; it has lost track of which way is up.
Real navigators use light very differently. A monarch heading for Mexico reads the sun's position and corrects for the time of day, which is how monarch butterflies navigate 3,000 miles using the sun. Sea turtles go further and carry a magnetic address in their heads, the way sea turtles find the beach where they were born. Those are compasses built for long distances. The moth's reflex is much humbler: a spirit level made of light, there to keep the wings flat for the next few seconds.
Light is also one of nature's most easily hijacked signals, and the porch bulb is far from the only con artist. Some female fireflies copy the flash codes of other species to lure in males and eat them, which is why the firefly femme fatale is nature's spy. The bulb doesn't mean any harm, of course. It just happens to press the same button as the sky.
Myths About Moths and Flames
Myth: Moths love light and fly toward it from far away. The truth: The Imperial team found insects aren't attracted to light from far away but get trapped when they fly close to it.
Myth: Moths mistake your lamp for the moon. The truth: This was a favorite explanation for a long time, with the moon as a kind of compass. The new flight tracks don't fit it, and Jamie Theobald, a biologist on the team, summed it up bluntly: "It turns out all our speculations about why it happens have been wrong."
Myth: Moths come for the warmth. The truth: Heat was another old guess, but LED lights give off almost no heat and still trap huge numbers of insects.
Myth: The light simply blinds them. The truth: Blindness can't explain the pattern in the videos. The insects orbit, stall and flip in predictable ways, all by tilting their backs toward the light.
The Porch Light, Seen Again
Back on your porch, the moth is still circling. It isn't drawn to your bulb, and it isn't foolish. It's obeying the most basic flying rule it has, keep the bright side up, in a world where the brightest thing is now a few inches away.
This is the part that still gets us: the fix could be as simple as the rule. The researchers point out that "the worst is an upward facing or just a bare bulb," and that cutting unnecessary, unshielded, upward-facing lights would help. Shakespeare had Portia quip, "Thus hath the candle singed the moth." Now we finally know why, and a simple shade that keeps the glow from spilling upward could give the sky back to the moths. It's a small change, and a tidy ending to one of the oldest mysteries of summer nights.
Key terms
- Dorsal light response
- The reflex that makes a flying insect turn its back (its dorsal side) toward the brightest part of its view. In nature that is the sky, so it keeps the insect level; a nearby lamp hijacks it.
- Light pollution
- Artificial light that spills into the night where it isn't needed, from streetlamps, houses, arenas and vehicles. It can disorient and trap flying insects.
Sources and further reading
- Why flying insects gather at artificial light (Fabian, Sondhi, Allen, Theobald and Lin, Nature Communications 2024) Nature Communications (abstract via RePEc IDEAS)
- Why flying insects gather at artificial light (preprint, full text) bioRxiv
- Flying insects become disorientated and trapped by artificial light Imperial College London
- Millennia-old mystery about insects and light at night gets new explanation Florida International University
- Why Insects Are Lured to Lights in the Night Scientific American
- Researchers solve mystery of why flying insects gather at artificial light Physics World