Moths fly toward lights because artificial illumination hijacks a navigation system built for dim, distant cues. The leading explanation is that moths keep a bright point fixed at a constant angle to their body, a strategy that works for the moon but fails for a porch bulb. The result is a spiral that tightens until the moth circles or crashes into the source. The attraction is not affection and not simple confusion; it is a steering rule applied to the wrong kind of light.

The dorsal-light steering rule

Many insects stabilize flight by keeping the sky brighter than the ground. Their dorsal rim, the top edge of the eye and its associated photoreceptors, detects the direction of maximum brightness. In open air, that direction is almost always up, including at night. The moth constantly adjusts its wings and body so the bright half of its visual field stays overhead.

This dorsal-light response is useful on a moonlit night. The moon sits effectively at infinity, so its rays arrive in parallel. A moth flying toward the moon at a fixed angle will keep traveling in a straight line over long distances. An artificial lamp 3 feet away does not behave like an infinite source. Rays diverge steeply from it, so a moth that keeps the lamp at, say, a 45-degree angle above its back must curve continuously to maintain that angle. The curve is not random; it is the geometry of the steering rule.

This model, developed from high-speed flight tracking, explains why moths approach in spirals rather than straight lines. It also predicts that the tighter the spiral gets, the harder the moth must bank, and that some individuals overshoot the light and loop back. The behavior is a control-system failure, not a fatal flaw in the animal.

Light source type and attraction strength

Not all lamps attract moths equally. Attraction depends on the light's spectral output, its intensity, its polarization, and whether it emits ultraviolet. Moths see into the ultraviolet, and many lamps leak UV even when they look white. Mercury-vapor lamps and older fluorescent tubes emit strong UV lines and are notorious for pulling in large numbers.

Light type Typical attraction Why
Mercury vapor Very high Strong UV output plus high visible intensity
Cool-white LED Moderate to high Significant blue peak; some UV leakage
Warm-white LED Low to moderate Little blue and minimal UV
Sodium vapor (low pressure) Low Narrow yellow-orange band, weak UV
Incandescent Moderate Broad spectrum, some UV, low efficiency
Ultraviolet "bug zapper" High for many species Tuned to moth visual sensitivity

The comparison is not absolute. A 2021 field study using synchronized flight tracking found that moths often fly past a near lamp and circle a farther one, which fits a steering rule rather than a simple "fly to the brightest thing" impulse. That detail is counterintuitive: brighter is not always more attractive at close range, because the geometry of the angle matters as much as raw output.

Why the spiral tightens: numbers and thresholds

A moth 10 feet from a lamp that keeps the light 30 degrees above its body must turn through a measurable arc with every wingbeat. If it flies at 10 feet per second, that turn rate can exceed what its wings can sustain, so it slows, stalls, or drops. At 3 feet, the required turn rate roughly triples.

The effect scales with distance. At 30 feet, a moth can hold a nearly straight course because the angle changes slowly. At 6 feet, it must bank hard. At 1 foot, the lamp's rays diverge in almost every direction, and the steering rule demands impossible maneuvers. The spiral is the visible trace of a moth running out of turn-rate margin.

Wingbeat rate matters too. Small moths beat their wings far faster than large silk moths, and faster flight narrows the time available to correct. That is one reason small species often appear more frantic near a bulb. It is also why a porch light does not automatically produce a pile of moths; many species pass by without locking on.

Exposure duration and ambient darkness set the threshold for whether a moth engages the light at all. A lamp that is dim relative to the moon may not dominate the dorsal field. A lamp that is far brighter does. Under a full moon, a strong porch light still draws moths, but the contrast is lower than on a moonless night. These are qualitative relationships; no single wattage threshold applies across species.

Edge cases and exceptions

Some moths are not drawn to light at all. Day-flying species such as the hummingbird moth and many clearwing moths navigate by sun and do not show the night-time attraction. Species that feed on flowers at dusk may approach lamps incidentally while foraging.

Light can also disrupt mating. Females of some species release pheromones while perched, and males flying to a lamp may never find them. The cost is not just collision; it is missed reproduction and lost time that would otherwise go to feeding.

The popular "moth to a flame" phrase overstates the case. Most moths do not dive into fire; they orbit until they exhaust themselves or hit the bulb. Mortality comes from heat, collision, and predation near the light, not from a death wish. Bats learn to patrol streetlights because insects gather there, which turns a lamp into a feeding station.

The navigation-disruption misconception

The most common misconception is that moths are attracted because they think the light is the moon and are "confused." The steering model is more specific: the moth is not trying to reach the moon. It is trying to keep bright light at a fixed angle, and it cannot tell that the angle is impossible because the source is near.

A second misconception is that moths are drawn to heat. Heat can matter for some species, but attraction persists with cool LED lamps that emit little infrared. Light, especially short-wavelength light, is the dominant cue.

A third is that turning off the porch light will "save" moths. Where a light is the only strong source, darkness removes the trap. But streetlights and landscape lighting still attract moths over hundreds of feet. Fixing the immediate bulb helps; it does not solve the wider problem.

Practical actions and thresholds

Swap outdoor bulbs for warm-white LEDs rated 2700 K or lower, which cut the blue and UV output that moths detect. Choose fixtures that direct light downward and behind shields, so little escapes into the sky and sideways. Use motion sensors or timers so lights are off when no one needs them, especially between dusk and dawn. Replace high-UV mercury-vapor or bug-zapper-style traps with targeted methods; zappers kill and attract insects in roughly equal measure. Place porch lighting away from windows and flowering plants to reduce spill onto moth activity.

For field observers, the practical threshold is simple: turn off what you do not need. Where a light must stay on, a warm, shielded, down-directed fixture with a motion sensor reduces attraction and keeps the night sky darker. Nothing reverses the steering rule, but you can remove the cue that triggers it.

Limits of what is known

The dorsal-light model explains spirals and circles well, but it does not explain every approach path. Some moths fly straight into a lamp and stop; others hover. Species differ, and laboratory work cannot fully reproduce natural lightscapes. No 2024 or 2025 study has settled whether other cues, such as polarized light or magnetic fields, modulate attraction at night.

The practical takeaway is a limit as much as a rule. You can predict which lights attract moths more strongly, and you can reduce those lights. You cannot train a moth out of a navigation strategy that evolved over hundreds of millions of years. The science explains the spiral; the fix is to give moths fewer near, bright, UV-rich points to steer by.