Why Moths Fly to Light
Old explanations, the constant-angle "moon compass" model and its spiral, and the 2024 evidence that light traps insects by upsetting their sense of which way is up.
Prerequisites: Moth Anatomy.
Many night-flying moths circle lamps and settle nearby. Why do they do this? A 2024 study found that, once close to a light, flying insects often turn their backs towards it. Under a natural night sky, keeping the bright sky above helps them stay upright. A nearby lamp confuses that rule, making them bank and circle. This explains much of the flight seen near lights, though moths may respond differently before they get close.
The puzzle
“Like a moth to a flame” suggests a simple attraction, but the behaviour is odd for an attraction. Moths rarely fly straight into a light from far away. They arrive close to it, then circle, dive, climb steeply and stall, or drop to the ground and settle. Mark–release–recapture experiments with two British noctuid moths, the large yellow underwing (Noctua pronuba) and the heart and dart (Agrotis exclamationis), found that a 125 W mercury vapour lamp influenced moths only within about 3 m (Baker and Sadovy 1978). A light trap therefore catches mainly moths that happen to pass close by, which is also what makes moth trapping a useful sampling method.
Three explanations have been popular:
- Transverse orientation (the moon compass). A moth keeps a distant light source at a fixed angle to its flight direction, which lets it fly straight. A lamp breaks the rule because it is close. This is the most famous hypothesis and has a neat mathematical consequence, described below.
- Escape to the light. A startled insect flies towards brightness, because open sky is usually brighter than vegetation.
- Dazzle. Bright light overwhelms night-adapted superposition eyes, so moths near a lamp cannot see their surroundings and settle.
The constant-angle model and its spiral
The transverse orientation idea is easy to state precisely. Suppose a moth always keeps a light at the same angle between its direction of flight and the direction to the light.
If the light is the moon, it is so far away that the direction to it is the same from every point the moth can reach in a night. Keeping a fixed angle to a fixed direction means keeping a fixed heading, so the moth flies in a straight line.
If the light is a lamp a few metres away, the direction to it changes as the moth moves. Put the lamp at the origin and describe the moth’s position by its distance from the lamp and its bearing around it (polar coordinates). Let be distance flown along the path. If the heading makes angle with the line to the lamp, then a short step has a component towards the lamp and sideways around it:
Dividing the first equation by the second removes :
where is the starting distance at bearing . This curve is a logarithmic (equiangular) spiral, the curve that cuts every line through its centre at the same angle.
What the formula says:
- If , then and shrinks with every turn: the moth spirals in to the lamp.
- If , stays at and the moth circles the lamp at a constant distance.
- If , the moth spirals outward and escapes.
From the first equation the total path length to the lamp is , which is finite, even though the spiral winds around the centre infinitely many times. With , a moth starting 1 m from the lamp has to fly about 5.8 m and makes just over three turns before it is within 3 cm of it.
The model shows how a rule that works for the moon could fail near a lamp. But it makes a definite prediction, inward spirals, and until recently nobody had measured the flight paths of insects around lights in enough detail to check it.
What the evidence shows
Samuel Fabian, Yash Sondhi and colleagues (2024) filmed insects around lights with high-speed stereo cameras in the field, at Monteverde in Costa Rica, and with motion capture in the laboratory, reconstructing each insect’s position and body orientation in three dimensions. Their field recordings covered insects from ten orders, moths among them; the laboratory work used moths and dragonflies. Their main findings were:
- Insects did not head straight for the light. Close to it, they tended to fly perpendicular to the direction of the light.
- They consistently tilted their dorsal side (back) towards the light.
- Three repeated patterns appeared: orbiting, circling a light while banked towards it; stalling, climbing ever more steeply until the insect loses speed and stops making headway; and inverting, rolling upside down when flying directly over a light, then diving to the ground.
- They did not see the inward logarithmic spirals that the constant-angle model predicts, and insects held a light on either side of the body, not at one fixed bearing.
- When the light was a broad, diffuse glow from above, like an open sky, insects flew normally and were not trapped.
All three follow from one well-known reflex, the dorsal light response: many flying insects keep their back towards the brightest part of their visual field. Under a natural sky the brightest region is above, so the reflex keeps the insect the right way up, which matters especially in the dark when the horizon is hard to see. A lamp in the middle of the scene becomes the “sky”. The insect banks to keep its back towards the lamp, turns around it, and cannot leave; and an insect that passes over a lamp turns its back downwards, which means flying upside down.
On this view, light does not attract moths so much as trap those that come close. That fits the short range found in trapping experiments. It does not rule out every other effect: lights may also dazzle moths and alter their activity, and different species react differently. The study also does not explain everything about how moths use the moon and stars; some moths really do navigate by celestial cues over long distances (see moth migration), but that is a different behaviour from what happens around a lamp.
Why it matters
Artificial light at night is not only a curiosity for moth-watchers. Moths trapped around lamps are not feeding, mating, or pollinating, and they are easy prey for bats and other predators. Field studies link street lighting to fewer caterpillars nearby and to reduced pollination at night; see moths as pollinators and moth declines. The dorsal-light explanation also suggests a practical point: lights that shine downwards and are shielded, rather than bare bulbs or lights pointing up, should trap fewer insects.
Common misunderstandings
“Moths are attracted to light from far away.” For the moths tested, the effective range of even a bright lamp was a few metres. Light traps sample the moths that pass close by.
“Moths fly into lights because they mistake them for the moon.” This is the transverse-orientation hypothesis. Its spiral prediction is correct mathematics, but 3D flight tracking did not find the spirals, and points to the dorsal light response instead.
“The question is settled.” The 2024 study is strong evidence for one mechanism, but it is one study, and responses to light vary between species, light colours, and conditions.
Further reading
- Samuel T. Fabian, Yash Sondhi, Pablo E. Allen, Jamie C. Theobald, and Huai-Ti Lin, “Why flying insects gather at artificial light”, Nature Communications 15, 689 (2024). doi:10.1038/s41467-024-44785-3. Open access.
- Robin Baker and Yvonne Sadovy, “The distance and nature of the light-trap response of moths”, Nature 276, 818–821 (1978).
- Jordan R. Glass, “Artificial skies: why insects get stuck circling lights at night”, Journal of Experimental Biology 227(7), jeb246587 (2024). A short summary of the Fabian et al. study.