Why Are Moths Attracted to Light? What Flight Data Shows

Black-and-ivory linocut illustration of moths circling a small glowing window in looping flight paths at night.

Moths pile up at lights mostly because a lamp traps them once they are close; they rarely aim for the bulb. A flying moth keeps its back turned toward the brightest part of its view, which in nature is the sky. A lamp beside or below it hijacks that reflex, so the moth banks around it, stalls, or flips and dives. High-speed 3D tracking published in 2024 showed this across 10 insect orders. How a moth first gets close from farther away is still an open question.

Why are moths attracted to light?

Artificial light does pile up insects, and anyone with a porch lamp knows it. What the 2024 study by Samuel Fabian and colleagues changed is the explanation for what happens once they arrive. The team filmed wild insects around lights at Monteverde in Costa Rica with paired cameras on two field trips, in early 2022 and in May 2023, and flew moths and dragonflies fitted with tiny markers through a motion-capture arena. Most of the 477 field videos showed moths and other Lepidoptera, but beetles, flies, wasps, mayflies and caddisflies showed the same patterns.

Up close, the insects rarely flew at the bulb. They tilted their upper side, the dorsum, toward it, and their flight ran mostly at right angles to the source. Three older explanations make different predictions, and the flight data can be checked against each of them.

Theory What it predicts What the 3D flight data showed
Escape to the light Straight flights toward the brightness, as toward a gap in the leaves Few direct approaches; most flight ran perpendicular to the lamp
Moon compass error An inward spiral, with the same side always facing the lamp No spirals; orbit direction flipped in 25 of 37 trials when the lit bulb was switched
Heat seeking A pull toward warm sources LEDs give off almost no infrared and still trap huge numbers of insects
Dorsal light response Back tilted toward the light, producing orbits, stalls and flips Matches the recorded flights, and a simple steering model reproduces them

The authors call dorsal tilting the most plausible explanation for why insects gather at lights. They also say plainly that they did not test how far away a light starts to act on an insect, and that responses vary between species.

What is the dorsal light response?

On most natural nights the brighter half of the world is overhead. A flying insect can hold itself level by keeping its back toward that brighter half, and this reflex, the dorsal light response, is known from many insect groups. That works because the sky is huge and always overhead.

A small lamp at head height or below breaks that geometry. When the insect tilts its back toward the lamp, it banks or climbs, the lamp shifts position in its view, and it corrects again. The lab tests showed how much the direction of the light matters. With diffuse ultraviolet light from above, small flies, wasps, mayflies and caddisflies flew up in a rapid, steady way. With the same light from below, every group except vinegar flies tipped over soon after takeoff and crashed into the floor.

Not every insect falls for it. In the lab, oleander hawkmoths flew straight over upward-facing UV and white LED bulbs without flipping, across 71 recorded flights, even though hawkmoths are readily caught by lights in the field. The authors could not say why, and suggest the reflex may be suppressed in some states or tuned to different wavelengths in some species.

Do moths navigate by the moon?

Some moths really do steer by the night sky, so the moon theory was never a wild guess. Moths have been shown to orient by celestial cues, and in 2025 Bogong moths were found to use the starry sky as a compass on a migration of up to 1,000 km to caves in the Australian Alps, combining it with the Earth's magnetic field.

The failure is in using that compass to explain lamps. The idea was that a moth holds a distant light at a fixed angle, and a nearby lamp turns that fixed angle into a spiral that ends at the bulb. The 3D recordings found no such spirals. A compass also needs a moth to keep the lamp on one side, but insects orbiting one light swapped to the opposite direction in 25 of 37 trials when the researchers switched to a second light, and in three videos they reversed direction around the same light. A corrupted compass also cannot explain why insects stall or turn upside down over a lamp. Dorsal tilting explains all three.

Why do moths fly in circles around a light?

The circling is the reflex never finishing its job. The moth keeps rolling its back toward the lamp, the lamp never ends up overhead where the sky should be, and each correction sets up the next. The field videos sorted the results into three patterns:

  • Orbiting: a steady circle around the light with the body banked toward it. It was common in still air under 1 m/s, and a gust of wind usually broke it up.
  • Stalling: a steep climb away from the light that slows until the insect stops making progress.
  • Inverting: flying directly over the light, rolling or pitching upside down, and diving toward the ground. Once below the light, insects often righted themselves, climbed, and flipped again.

These patterns showed up in fewer than 2 percent of videos recorded in the dark. The researchers then changed only the geometry. Around a UV bulb pointing down, just 1.6 percent of videos showed none of the three patterns. When a UV light shone upward onto a white sheet hung overhead instead, making a glowing false sky, 85 percent of videos showed none of them, and insects flew through the lit corridor normally. What trapped them was the direction the light came from.

Are moths drawn to lights from far away?

Nobody has settled this yet. The 2024 study tracked flights close to the lamp only. Its authors point to a radar-tracking study, posted as a preprint, in which only 2 of 50 moths released 85 m from a light ended their flight there, and conclude that lights may mostly trap insects that happen to pass nearby.

Other work shows that light still has pull at some scale. In a 2025 trapping experiment in Dutch forests, brighter LED traps caught more insects whatever their color, and moths responded mostly to ultraviolet. A fair summary is that brightness matters for how many insects end up at a lamp, while the dorsal light response explains why they cannot leave once they are there.

Do moths fly into flames on purpose?

There is no evidence that moths seek fire. A flame is a small, bright point of light, so the same tilting error is a plausible reason moths blunder into candles, and moths around flames are the image behind the phrase like a moth to a flame. Heat is not the lure: the 2024 paper notes that LED lights, which give off almost no infrared, still trap vast numbers of insects. The experiment used lamps, not open flames, so it does not show that every flight into a fire follows exactly the same sequence.

Do yellow or warm bulbs attract fewer moths?

Usually somewhat fewer, but color alone rarely fixes the problem. Moths respond most strongly to ultraviolet and blue light, and the 2025 Dutch study concluded that longer wavelengths at low intensity are the best bet for reducing attraction, while warning that no single setting suits every insect group. Flies in the same traps went mainly for green and blue. In southern England, streetlights cut moth caterpillar numbers by 47 percent in hedgerows and 33 percent in grass margins compared with matched unlit sites, and the harm was greater under white LEDs than under yellow sodium lamps.

The catch is what happens outside the lab. A 2024 review of insect-friendly lighting weighed the five principles for responsible outdoor lighting promoted by DarkSky International. Spectral tuning is the most studied fix, with dimming second, and the review found that both seem generally ineffective in practice. Shielding and motion sensors looked promising but have barely been tested. The strongest evidence was for the blunt option: removing unnecessary lights reverses their effects on many kinds of insects.

So an amber bulb is better than a cool white one, but the honest order is to turn the light off, then aim and shield it, then put it on a sensor, and treat color as the last lever.

How do you keep moths away from a porch light?

Aim the light down and hide the bulb. The Fabian study recommends cutting unnecessary, unshielded, upward-facing lights and ground reflections. A German field trial found that tailored, shielded streetlights drew 1.3 times as many insects as unlit controls. Conventional bright LEDs drew 7.7 times as many, and 5.4 times after they were dimmed to 18 percent, roughly the same brightness on the ground as the shielded lights. Dimming helped a little, and hiding the light source helped far more.

How the bulb is hidden may matter too. A 2026 field study by Seymoure and colleagues compared bare, shielded and recessed lights, and its title states the result: "Glare more than uplight attracts flying insects to artificial lights." In other words, a bulb you can see directly from the side seems to pull in more insects than light thrown up at the sky.

In practice, that means a fixture that throws a pool of light on the path while the bulb stays out of sight, a motion sensor so it is dark most of the night, and switching it off when nothing needs lighting. If a moth is already circling, turn the lamp off and give it time to leave.

Does light pollution harm moth populations?

The evidence has moved from behavior to population numbers. Beyond the caterpillar losses under English streetlights, an experiment that lit natural habitat for five years found no effect on moth populations in the first two years, then smaller populations than at dark control sites in the last three. Light at night is one of several suspected drivers of moth declines, and one of the few that can be switched off.

How are moths different from butterflies?

Moths get called the lesser butterfly: dustier, browner, and out at the wrong hour. The comparison is misleading. Both belong to Lepidoptera, but the everyday names are not two equivalent scientific categories. Butterflies make up a defined group, while moth is the common label for many remaining lineages. Antennae are the best field clue, and the full set of marks and exceptions is laid out in Moth vs Butterfly.

Why do moths carry so much folklore?

The documented examples cluster around death and bad luck. Butterfly Conservation records the death's-head hawkmoth, with its skull-like mark on the thorax, as a traditional omen of death. Colorado State University notes that the black witch moth is sometimes called mariposa de la muerte, or butterfly of death, in Mexico and is associated there with bad luck.

Those are specific traditions attached to specific species, not a universal meaning shared by every culture. A large nocturnal insect arriving at a lit window has been interpreted differently from place to place.

Why does an adult luna moth not eat?

An adult luna moth has vestigial mouthparts and does not feed. It relies on energy stored during the caterpillar stage, so the adult period is short and focused on reproduction. The species' symbolism and the biology behind it are covered in Luna Moth Symbolism.

Quick answers

  • Are moths actually attracted to light? Lights do collect many insects. Up close, 3D recordings show they usually circle the source instead of flying straight at it.
  • Why do moths fly in circles around a lamp? They keep tilting their backs toward the brightest thing in view. With a lamp beside them, that reflex turns into an orbit, a stall, or a dive.
  • Is the moon navigation explanation right? Some moths do navigate by the sky, but the lamp version predicts spirals and one-sided circling, and the flight data showed neither.
  • Do yellow or warm bulbs stop them? They draw fewer moths than white or UV-rich light, but the 2024 review found color changes alone usually fall short. Turning lights off works best; shielding and motion sensors are the next steps.
  • Do moths want to fly into flames? There is no evidence that they seek fire. A flame is a small bright source, but the cited experiment tested lamps, not open flames.

From the archive

The Moths Are Just Goth Butterflies specimen states the case that the section above spends its time complicating, which is roughly where the shop stands on it. The dedicated Moth and Bat Shirts file gathers the nocturnal flyers in one place. The wider night shift, including the plants that poison politely, is kept in the Night Garden.

Sources

  • Fabian, Sondhi, Allen, Theobald and Lin, "Why flying insects gather at artificial light," Nature Communications 15, 2024, article 689. doi.org/10.1038/s41467-024-44785-3. Field and motion-capture recordings, the three flight patterns, the light-switch and white-sheet tests, the hawkmoth exception, the heat argument, the limits on long-range attraction, and the lighting recommendation.
  • Dreyer and colleagues, "Bogong moths use a stellar compass for long-distance navigation at night," Nature, 2025. doi.org/10.1038/s41586-025-09135-3. Star compass and magnetic sense in migrating Bogong moths.
  • Charvalakis, Stavenga, Visser, Spoelstra and Hut, "Intensity and colour of artificial light at night affect insect attraction in a taxon-dependent manner," Insect Conservation and Diversity 18(6), 2025. doi.org/10.1111/icad.12855. Moths most responsive to ultraviolet, flies to green and blue, brighter traps catching more, and the recommendation of longer wavelengths at low intensity.
  • Boyes, Evans, Fox, Parsons and Pocock, "Street lighting has detrimental impacts on local insect populations," Science Advances, 2021. doi.org/10.1126/sciadv.abi8322. Caterpillar declines under streetlights and the stronger effect of white LEDs.
  • Owens, Pocock and Seymoure, "Current evidence in support of insect-friendly lighting practices," Current Opinion in Insect Science 66, 2024, 101276. doi.org/10.1016/j.cois.2024.101276. Spectral tuning and dimming generally ineffective in practice, shielding and motion detectors promising but understudied, and removal of unnecessary light effective.
  • Dietenberger, Jechow, Kalinkat, Schroer, Saathoff and Hölker, "Reducing the fatal attraction of nocturnal insects using tailored and shielded road lights," Communications Biology 7, 2024, article 671. doi.org/10.1038/s42003-024-06304-4. Insect attraction to conventional, dimmed, and shielded streetlights.
  • Seymoure and colleagues, "Glare more than uplight attracts flying insects to artificial lights," Biological Conservation 315, 2026, 111722. doi.org/10.1016/j.biocon.2026.111722. Compares recessed, shielded and bare lights.
  • van Grunsven and colleagues, "Experimental light at night has a negative long-term impact on macro-moth populations," Current Biology, 2020. doi.org/10.1016/j.cub.2020.04.083. Moth populations at experimentally lit sites over five years.
  • University of Florida IFAS Extension, luna moth. Vestigial adult mouthparts, lack of adult feeding, and the resulting short adult life.
  • Colorado State University Extension, black witch moth. The Mexican name mariposa de la muerte and its association with bad luck.
  • Butterfly Conservation, death's-head hawkmoth. The skull-like thorax marking and the traditional omen of death.

Filed under: Field Notes, Moths and Bats