Best Indoor Fly Killers: Traps, Sprays & DIY Methods

The best indoor fly killer depends on which fly you’re dealing with. House flies, fruit flies, drain flies, and fungus gnats all breed in different places, respond to different traps, and require different strategies to eliminate for good. A trap or spray can knock down the adults you see, but lasting control means cutting off the breeding source.

Identify the Fly First

This step matters more than picking the right product. Each common indoor fly has a specific breeding habitat, and no trap will keep up if that source stays active.

  • House flies are the large, buzzy gray flies that land on food and surfaces. They actually breed outdoors in garbage, compost, and animal waste, then come inside through open doors and windows. Sealing entry points and managing outdoor waste are the primary controls.
  • Fruit flies are tiny, tan or brown flies that hover around kitchens. They breed in overripe fruit, rotting vegetables, unrinsed recycling bins, leaky trash cans, and damp mops. Removing these breeding sites is the fastest fix.
  • Drain flies (sometimes called moth flies) are small, fuzzy-winged flies that sit on bathroom or kitchen walls near sinks. They breed in the slimy microbial film that builds up inside drains, septic lines, and condensate pans.
  • Fungus gnats are the tiny dark flies that rise up from houseplant soil when you water. They lay eggs in moist potting mix, where their larvae feed on roots and fungi.

UV Light Traps

Plug-in UV light traps are one of the most popular indoor fly killers, and they work well for house flies and other species attracted to ultraviolet light. These devices use fluorescent bulbs that emit light in the 360 to 370 nanometer range, which is highly attractive to flies. The flies land on an internal glue board or get drawn into a collection tray.

Not all UV traps perform equally. Research from the USDA found that traps fitted with standard blacklight bulbs captured significantly more house flies than those with blacklight blue bulbs, which emit slightly less intense light. Trap design also mattered: open-front traps caught more flies when paired with the brighter bulbs. Interestingly, adding fly pheromone to the glue boards did not improve catch rates in most configurations, and in several cases actually reduced captures. So a simple, well-lit trap with a fresh glue board is all you need.

Place UV traps away from competing light sources and at fly height, roughly 4 to 6 feet off the ground. Keep them out of food preparation areas. When a fly is zapped by a high-voltage electric grid (as opposed to a glue board), the force can blast insect fragments into a fine mist that carries bacteria and viruses the fly was harboring. Those particles can settle on food, utensils, or become airborne. Glue board traps avoid this problem entirely, making them the safer choice for kitchens.

Sticky Traps and Fly Paper

Old-fashioned sticky ribbons and modern window-mounted sticky traps are cheap, chemical-free, and effective for low to moderate fly populations. They catch whatever lands on them, including house flies, fungus gnats, and fruit flies. Bright yellow sticky traps are especially good for fungus gnats near houseplants, since gnats are attracted to the color. These won’t clear a heavy infestation on their own, but they reduce adult numbers and help you monitor whether your source-control efforts are working.

DIY Vinegar Traps for Fruit Flies

Apple cider vinegar traps are the go-to home remedy for fruit flies, and the best version is dead simple: fill a jar with apple cider vinegar, add a few drops of dish soap, and poke small holes in the lid. The vinegar’s fermentation scent draws the flies in. The dish soap breaks the surface tension of the liquid so their wings get wet and they can’t escape.

The lid design makes a big difference. In a side-by-side test of four common DIY setups, a jar sealed with a punctured lid caught at least 50 fruit flies in one week. A jar topped with plastic wrap (holes poked with a toothpick) caught only 8 to 10. A paper cone funneled into a jar caught just a few, and an open wine bottle caught fewer than five. The key is creating openings small enough that flies struggle to find their way back out once inside.

Clearing Drain Flies at the Source

Drain flies are uniquely stubborn because their breeding ground is the organic sludge lining the inside of your pipes. Killing the adults with a spray does nothing if larvae are still developing in that film. The fix is mechanical and chemical, targeting the drain itself.

Start by scrubbing the inside of the drain with a stiff pipe brush to physically remove the slimy buildup. Follow that with an enzyme-based drain cleaner, which digests the organic matter that drain flies depend on. Pouring boiling water down the drain also helps break down buildup and kill larvae on contact. A mix of baking soda and vinegar creates a fizzing reaction that loosens residue, and sprinkling salt and baking soda into the drain overnight can dry out moisture where larvae thrive.

Bleach is a common first instinct, but it’s not the best long-term solution. It can kill larvae on contact, yet it doesn’t fully dissolve the sludge layer. The organic film reforms quickly, and the flies return. Enzyme cleaners break down the material itself, which is why pest control professionals favor them over bleach for drain fly problems.

Indoor Sprays and Insecticides

Aerosol fly sprays provide the fastest knockdown of visible flies. Most indoor formulations use pyrethrins, natural compounds derived from chrysanthemum flowers that are toxic to insects but low in toxicity to people and other mammals. Pyrethrins are found in over 2,000 registered pesticide products, including foggers, aerosol sprays, and dusts.

If pyrethrins contact your skin, you may notice mild irritation or a tingling, numbing sensation. Eye exposure can cause burning, tearing, and blurred vision. When inhaled or swallowed, pyrethrins are absorbed into the body but broken down quickly. In animal studies, more than 85 percent was eliminated through urine or feces within two days. The practical takeaway: use sprays in well-ventilated rooms, keep them away from your face, and avoid spraying near food, dishes, or pet bowls.

Sprays kill the flies they hit but do nothing about the breeding source. They’re best used as a supplement to source control, not a replacement for it.

Controlling Fungus Gnats in Houseplants

Fungus gnats lay their eggs in consistently moist potting soil. The simplest and most effective control is to let the top inch or two of soil dry out completely between waterings. Gnat larvae need moisture to survive, and drying the soil breaks their life cycle. If the infestation is heavy, replacing the pot and soil entirely gives you a clean start. Yellow sticky traps placed near the soil surface catch emerging adults and reduce the population while the soil dries. For persistent problems, applying a soil drench with a product containing a biological larvicide targets the larvae directly without harming the plant.

Choosing the Right Method

  • For house flies: UV light traps with glue boards for ongoing control. Fix screens, keep doors closed, and manage outdoor garbage to reduce the number entering your home.
  • For fruit flies: Remove all overripe fruit, rinse recycling containers, and set out a vinegar trap with a punctured lid. Most infestations clear within a week once the food source is gone.
  • For drain flies: Scrub drains with a stiff brush, follow with enzyme cleaner, and repeat for several days. Adults live about two weeks, so consistent drain treatment outlasts the breeding cycle.
  • For fungus gnats: Let soil dry between waterings and place yellow sticky traps near affected plants.

In every case, the trap or spray handles the adults you see right now, but the breeding source is what sustains the infestation. Eliminating that source is the difference between a temporary fix and actually solving the problem.