The most effective way to stop insects from swarming your outdoor lights is to switch to LED bulbs, shield your fixtures so light only hits the ground, and reduce how long lights stay on. Each of these changes targets a different part of why insects gather at lights in the first place, and combining them can cut insect attraction dramatically.
Why Insects Swarm Lights
For decades, the leading theory was that insects mistake artificial lights for the moon and spiral inward while trying to navigate. A 2024 study published in Nature Communications offers a more precise explanation: flying insects have an ancient reflex that keeps their back tilted toward the brightest part of the sky. Under natural conditions, this “dorsal light response” helps them stay upright and fly in a straight line. When an artificial light is nearby, that same reflex causes them to continuously steer toward it, trapping them in orbits, spirals, and erratic loops around the fixture.
This means insects aren’t actually “attracted” to your porch light the way they’d be attracted to food. They’re disoriented by it. Their flight control system locks onto the brightest nearby source and won’t let go. That distinction matters because it tells you what actually works: anything that makes your light less visible, less bright, or less disorienting to passing insects will reduce the problem.
Switch to LED Bulbs
Not all bulbs attract insects equally. A field study comparing common outdoor lighting found that LEDs caught roughly four times fewer insects than traditional incandescent (filament) bulbs and about half as many as compact fluorescent bulbs. Out of all insects captured, incandescent bulbs accounted for 54% of the total catch, compact fluorescents pulled in 24%, and the two types of LEDs combined attracted only about 22%. The difference was consistent across insect groups, including biting midges.
Both “warm-white” and “cool-white” LEDs performed similarly in that study, so you don’t need to obsess over the exact color temperature. The bigger factor is ditching older bulb types. If you still have incandescent or CFL bulbs in your outdoor fixtures, swapping them for LEDs is the single easiest change you can make.
Shield Your Fixtures
A light that sprays in all directions is visible to insects from a wide area. Shielded fixtures, designed to aim light downward onto the ground and block it from radiating outward, can dramatically reduce insect attraction. A study testing custom-shielded road luminaires found that when the light source was nearly invisible beyond the lit area, significantly fewer flying insects were drawn in compared to conventional fixtures producing the same brightness on the ground.
The key design features are a hard cutoff that keeps light from spilling above the horizontal plane and shielding that hides the bright source itself from view at a distance. In practical terms, look for “full cutoff” or “dark sky compliant” fixtures. These are widely available for porches, patios, and driveways. The principle is simple: if an insect flying 50 feet away can’t see the glowing bulb, its dorsal light reflex never kicks in.
Reduce Time and Brightness
Every hour your outdoor lights are on is another hour they’re pulling in insects. Motion-sensor switches are one of the most practical upgrades because they keep lights off for most of the night and only activate when someone is actually outside. Dimming also helps. Research on road lighting found that reducing illuminance (the technical term for how much light hits a surface) lowered insect attraction, even when the fixture design stayed the same.
If you use timers, set lights to turn off as early as your schedule allows. Peak insect flight activity varies by species, but most phototactic insects are most active in the first few hours after sunset. Cutting your lights at 10 or 11 PM eliminates a large portion of the overnight draw.
Move Lights Away From Doors
Placement matters as much as the bulb you choose. When a light is mounted right next to your front door, every insect it attracts ends up on your doorframe, and many will fly inside the moment you open up. Moving the light source farther from entry points pulls the swarm away from where you actually walk through.
One effective approach is to mount your brightest fixture on a pole or post 15 to 20 feet from the door and use only a dim, shielded light at the entrance itself. The brighter, more distant light acts as a decoy, drawing insects away from the doorway. If wall-mounted fixtures are your only option, positioning them at least a few feet from the door frame and angling them away from the entrance still helps.
Use Screens With the Right Mesh Size
If you’re sitting on a screened porch and tiny insects are still getting through, the mesh is probably too coarse. Standard window screen blocks houseflies and mosquitoes but lets smaller pests slip past. Here’s what you need depending on the insects in your area:
- Mosquitoes and flies: Standard 18-mesh screen (18 holes per inch) is sufficient.
- Gnats: A 30-mesh screen stops most gnat species while still allowing reasonable airflow.
- No-see-ums and biting midges: These insects are only 1 to 3 millimeters long and require fine mesh with 50 or more holes per inch. Even then, the smallest individuals can sometimes squeeze through.
Finer mesh does reduce airflow, so you may need to balance insect protection against ventilation, especially in hot climates. For a porch with a ceiling fan, the tradeoff is usually worth it.
Skip the Bug Zapper
UV bug zappers feel satisfying. That constant zapping sound makes it seem like they’re solving the problem. But they’re mostly killing the wrong insects. Entomologist Timothy Day estimated that 71 billion non-target insects are killed by bug zappers in the U.S. each year. The majority are beneficial beetles, moths, ants, parasitic wasps, and midges, not the mosquitoes and biting flies people actually want gone. Mosquitoes make up a very small fraction of what zappers catch.
Worse, a zapper’s UV light is intensely attractive to insects, so it can actually increase the total number of bugs in your yard by drawing them in from surrounding areas. If mosquitoes are your main concern, CO2-baited traps are far more targeted. For general insect reduction around lights, the strategies above (LEDs, shielding, motion sensors, placement) work better without collateral damage to pollinators and pest-controlling species.
Putting It All Together
No single fix eliminates every insect around your lights, but stacking several changes gets you close. Start with LED bulbs in shielded, downward-facing fixtures. Add a motion sensor or timer so lights aren’t on all night. Position your brightest light away from doorways. And if you’re dealing with tiny biters on a porch, upgrade to fine-mesh screening. Each layer reduces the number of insects that detect your light, get trapped by it, or make it inside your home.

