The short answer
Many night-flying insects use light to tell which way is up. For most of their history, the brightest part of the view was the sky, so keeping their backs toward the brightest light kept them level. A porch light or streetlight breaks that rule, and insects that get close end up circling it, stalling or crashing.
The most effective ways to stop insects gathering at your lights are simple: use outdoor lights less, choose warmer and dimmer bulbs, point fixtures down and shield them, and keep lights away from doors. None of these will bring the number of insects to zero, but together they usually make a noticeable difference.
Why insects fly to lights
The old moon-navigation idea
For a long time, the most popular explanation was that moths steer by keeping the moon at a fixed angle. Because the moon is so far away, holding a steady angle to it would keep a moth flying in a straight line. A nearby bulb, the theory went, tricks the moth into a spiral as it tries to keep that angle. Other ideas included insects being drawn to warmth, or mistaking light for an open escape route.
These ideas were never fully satisfying, and some predictions they make, like neat spirals into the bulb, don’t match what people actually see.
What newer research suggests
A study published in Nature Communications in early 2024 used high-speed and motion-capture cameras to track insects flying near lights, both in the lab and in the field in Costa Rica. The researchers found that insects did not fly straight at the light. Instead, they tilted so their backs faced the bulb. This is called the dorsal light response, and it normally helps a flying insect stay level by keeping its top side toward the bright sky.
Near an artificial light, this reflex causes trouble:
- Insects tend to orbit around the light, because tilting toward it turns them sideways.
- Some stall and climb steeply when they pass above it.
- When light came from below, insects in the experiments sometimes flipped over and dropped.
The researchers noted that their work focused on insects within a few meters of the light, so what draws insects in from farther away is still not fully understood. Still, this research gives a much better explanation for the “trapped” looping flight people see around porch lights.
Which insects are drawn in most
Moths are the classic example, but many other night fliers gather at lights too, including beetles such as June bugs, small flies and midges, mayflies, caddisflies, lacewings and some true bugs. Not every insect is affected the same way. Some daytime insects ignore lights at night because they are resting, and mosquitoes are generally thought to find people mostly by carbon dioxide, body heat and scent rather than by light.
Why it matters, for you and for insects
For homeowners, insects at lights are a nuisance. They collect on doors and windows, slip inside when the door opens, and draw predators such as spiders and, in some areas, geckos or toads.
For the insects, the effect is more serious. An insect stuck circling a light is not feeding, mating or laying eggs, and it is easy prey for bats and birds. Many die of exhaustion by morning. Light at night is considered one of several factors that may contribute to insect declines, along with habitat loss and pesticides. It can also interfere with insects that use light to communicate. Fireflies, for example, rely on their flashes to find mates, and bright yards can make that harder.
How to stop insects gathering at your lights
Use lights less
The most reliable fix is to have outdoor lights off when you don’t need them.
- Motion sensors turn lights on only when someone approaches, so the bulb isn’t glowing all night.
- Timers can switch off decorative or landscape lighting after you go to bed.
- Turn off unneeded fixtures, such as lights that shine on empty walls, trees or the sky.
Choose warmer, dimmer light
Many insects are especially sensitive to ultraviolet, blue and green light, and they see deep yellow, orange and red light less well. In general, warm amber or “warm white” bulbs attract fewer insects than cool white or bluish bulbs. Look for a low color temperature on the package, such as 2700K or below, or a bulb sold as amber. Using the lowest brightness that still lets you see safely also helps.
We go into bulb colors in more detail in our answer to what light do bugs hate the most.
Aim and shield fixtures
A bare bulb that shines in every direction is visible to insects from far away. Fixtures that are fully shielded and point light down toward the ground or path reduce how far the light spreads. Shielding also cuts glare and light shining into neighbors’ windows.
Move lights away from doors and windows
If a light has to be on, consider placing it a short distance from the door, such as on a post along the path, rather than directly above the entrance. Insects then gather away from where people go in and out, and fewer slip inside.
Keep indoor light from leaking out
Bright rooms with open curtains act like a lantern. Closing blinds or curtains in the evening, especially in rooms that face the yard, can reduce the insects that collect on windows and screens.
Seal the entry points
Some insects will still reach your house, so make it harder for them to get in. Repair torn window and door screens, add door sweeps, and seal gaps around doors, windows and pipes. If insects are still turning up indoors in large numbers, the cause may not be your lights at all. Our guide on why does my house have so many insects covers other common reasons.
What about bug zappers and “bug lights”?
Bug zappers use ultraviolet light to lure insects onto an electrified grid. They do kill large numbers of insects, but studies over the years have found that most of the victims tend to be harmless or beneficial insects, and relatively few are biting insects like mosquitoes. A zapper also pulls more insects into your yard than would otherwise be there. For most homes, they are not a good solution.
Yellow “bug lights” are usually somewhat less attractive to insects than ordinary cool white bulbs, but they are not insect-proof. Some research comparing bulb types found that warm-toned LEDs performed as well as or better than a traditional yellow bug light, and that the yellow bulb still attracted certain insects, such as earwigs.
If you want to reduce insects in a garden or yard more broadly, our guide to what are some natural methods of pest control is a better place to start than a zapper.
A quick checklist
- Turn outdoor lights off when not in use, or put them on motion sensors or timers.
- Swap cool white bulbs for warm amber ones, and use the dimmest bulb that works.
- Use shielded fixtures that point down.
- Place lights away from doors where possible.
- Close curtains at night.
- Keep screens and door seals in good repair.
- Skip the bug zapper.
These steps won’t stop every insect, but they cut down on the swarm at your door, and they help the insects outside too.