How to Catch Flies in Your House: Traps That Work

The fastest way to catch flies in your house depends on what type of fly you’re dealing with. Fruit flies, house flies, and drain flies each respond to different traps and baits because they’re attracted to different food sources. A vinegar trap that wipes out fruit flies won’t do much against common house flies, and neither will touch drain flies breeding inside your plumbing. Here’s how to identify what you have and eliminate it.

Identify the Fly First

Before setting any trap, take a close look at what’s buzzing around. The three most common indoor flies look and behave quite differently.

Fruit flies are tiny, about an eighth of an inch, with tan or brownish bodies. You’ll spot them hovering around ripe fruit, recycling bins, open bottles of wine or soda, and anything sweet or fermented. They lay eggs directly on or near these food sources, so a forgotten banana on the counter can produce dozens of flies within days.

House flies are the classic gray fly, about a quarter inch long with four dark stripes running down their midsection. They breed in animal waste and garbage, so they typically enter from outside through open doors and windows. They land on food, counters, and walls seemingly at random.

Drain flies are small, fuzzy, moth-like flies that sit motionless on bathroom walls or near sinks. Their larvae live inside the slimy organic film that builds up in drains and pipes. If you see them mostly near sinks, showers, or floor drains, that’s your culprit.

A few less common visitors: shiny blue or green “bottle flies” usually mean something dead nearby, like a mouse in a wall. Tiny gnats around houseplants are fungus gnats, breeding in overwatered soil. Each of these requires its own approach.

The Best Trap for Fruit Flies

Apple cider vinegar with dish soap is the simplest and most effective fruit fly trap. Pour about a quarter cup of apple cider vinegar into a jar or small bowl, then add a few drops of liquid dish soap. The vinegar smells irresistibly sweet to the flies. Normally they could land on the liquid surface and fly away, but the dish soap breaks the surface tension, so their wings get weighed down and they sink.

You can boost this trap’s effectiveness by covering the jar with plastic wrap and poking a few small holes in it. Flies crawl in through the holes but struggle to find their way back out. In a side-by-side test by The Kitchn, this style of covered vinegar trap caught the most flies compared to open bowls and other DIY setups.

Place traps wherever you see the most activity: near the fruit bowl, by the kitchen trash, next to the sink. Replace the vinegar every two to three days, since it loses its appeal as it dries out or fills with dead flies. Just as important, remove whatever is attracting them. Refrigerate ripe fruit, clean up spills, rinse recyclable bottles and cans, and take out garbage frequently. Without a breeding source, the population collapses within a week or two.

Catching Common House Flies

House flies aren’t attracted to vinegar the way fruit flies are. They respond to different cues, especially carbon dioxide and protein-based smells. For these, you need a different kind of trap.

A DIY bottle trap works well. Cut the top third off a plastic soda or water bottle, just below where the neck widens. Flip that top piece upside down and nestle it into the bottom half so the neck points downward like a funnel. Tape the seam so there are no gaps. For bait, dissolve a tablespoon of sugar in warm water, then add a pinch of active dry yeast. The yeast feeds on the sugar and releases carbon dioxide, which draws house flies in through the funnel. Once inside, they can’t navigate back out through the narrow opening. Make sure the liquid level stays below the funnel’s neck so flies don’t just land and escape.

Sticky fly strips, the old-fashioned ribbons you hang from the ceiling, still work remarkably well for house flies. They’re cheap, nontoxic, and catch flies continuously without any bait replacement. Hang them near windows, light fixtures, or doorways where flies tend to congregate. They’re not pretty, but they’re effective.

For a quicker solution, a standard fly swatter or even a handheld vacuum with a nozzle attachment can take care of a few stray house flies. If you’re dealing with more than a handful, though, traps and prevention will serve you better than chasing individual flies.

Eliminating Drain Flies at the Source

Drain flies are unique because trapping the adults is only half the battle. Their larvae live in the gelatinous organic film that coats the inside of drains, so you need to physically remove that buildup to stop the cycle.

Start by scrubbing the drain with a stiff pipe brush or a long, thin bottle brush. Push it up and down inside the pipe to loosen the slimy layer clinging to the walls. Pay special attention to rubber seals around garbage disposals and sink stoppers, where grime collects. For stubborn clogs deeper in the pipe, a plumber’s snake can dislodge the buildup mechanically.

After scrubbing, flush the drain with an enzyme-based cleaner. Products like Bio-Clean use natural bacteria and enzymes to digest the grease, food particles, and organic waste that drain flies feed on. Unlike chemical drain cleaners, enzyme cleaners continue working over time and won’t damage pipes. A simpler home remedy: pour half a cup of salt, half a cup of baking soda, and one cup of vinegar down the drain. Let it sit overnight, then flush with hot water in the morning. This can kill larvae and break down organic material, though it’s less thorough than mechanical scrubbing combined with an enzyme cleaner.

Once the breeding site is gone, the adults die off within about two weeks. You can catch lingering adults with sticky traps placed near the affected drains.

Using Indoor Sprays Safely

Aerosol fly sprays containing pyrethrins (a compound derived from chrysanthemum flowers) kill flies on contact and are widely available. They work, but they require caution indoors. The most important rule is ventilation. Spraying in a poorly ventilated room concentrates the chemicals in the air you breathe, and people who use foggers (bug bombs) commonly get overexposed by returning to the room too early or failing to air it out.

Dogs are especially sensitive to pyrethrins at high doses, with reactions including drooling, tremors, uncoordinated movement, and difficulty breathing. Cats are even more sensitive. If you use a spray, remove pets from the room, spray briefly, leave the room yourself, and ventilate thoroughly before anyone (including animals) returns. Always follow the timing instructions on the label.

For most household fly problems, traps and source elimination work just as well without the chemical exposure. Sprays are best reserved for a sudden swarm you need to knock down quickly.

Essential Oils as Repellents

Essential oils won’t kill flies, but certain combinations can keep them away from specific areas. Lemongrass oil and star anise oil are two of the most studied options. Used individually, they repel between 34% and 94% of house flies depending on concentration. Combined, they perform significantly better. A blend of 2.5% lemongrass oil and 2.5% star anise oil maintained over 92% repellency for six hours in controlled testing.

The practical application is simple: dilute a few drops into water in a spray bottle and mist it around doorways, windowsills, or outdoor dining areas. Peppermint oil, eucalyptus, and lavender are also commonly used, though they have less rigorous data behind them. These oils need to be reapplied frequently since they evaporate, and they work better as a supplement to traps and sanitation than as a standalone solution.

Preventing Flies From Coming Back

Flies reproduce fast. A house fly egg hatches in 8 to 20 hours, and the larva can develop through all its growth stages in as little as three days under warm conditions. A single female can lay hundreds of eggs in her lifetime, so a small problem becomes a big one quickly if the breeding source isn’t addressed.

The most effective long-term prevention targets what flies need to reproduce. Keep garbage cans tightly sealed and take trash out before it starts to smell. Clean up pet waste in the yard promptly. Store fruit in the refrigerator once it starts to ripen. Rinse bottles and cans before putting them in recycling. Run water through infrequently used drains every week to prevent organic buildup. Fix torn window screens, and keep doors closed or fitted with screen doors during warm months.

If you’re dealing with cluster flies, which are slightly larger than house flies and covered in fine golden hairs, the approach is different. These flies don’t breed indoors. They lay eggs on earthworms outdoors and enter homes in fall seeking warmth to overwinter. Sealing cracks around windows, doors, and eaves in late summer is the most effective way to keep them out.