How to Trap Flies in the House: DIY Traps That Work

The fastest way to trap flies in your house is with a simple bowl of apple cider vinegar and a drop of dish soap. This combination attracts flies with its fermented scent and breaks the surface tension of the liquid so they sink and drown on contact. But the best trap depends on what type of fly you’re dealing with, and getting rid of them for good means finding where they’re breeding.

Identify the Fly First

Not all indoor flies respond to the same bait. The tiny flies hovering around your fruit bowl are almost certainly fruit flies, and vinegar traps work beautifully on them. The small moths you see near bathroom sinks are drain flies, which breed in the slimy buildup inside pipes. Fungus gnats are the ones rising from your houseplant soil every time you water. And the large, buzzing common house fly that got in through a door needs a different approach entirely.

Knowing which fly you have tells you both which trap to build and where to look for the source. A trap alone will catch the adults currently flying around, but if the breeding site stays intact, new flies will keep emerging for weeks.

The Vinegar and Dish Soap Trap

This is the go-to for fruit flies and works within minutes. Pour about half an inch of apple cider vinegar into a small bowl, jar, or cup. Add a single drop of dish soap and set it near the problem area. The soap is the critical ingredient. Vinegar alone has enough surface tension that fruit flies can land on it and take off again. The soap disrupts that tension, so flies that touch the surface break through and drown.

White vinegar works too, though it’s slightly less attractive to fruit flies because it lacks the fruity fermentation compounds. If you use white vinegar, add three to four drops of dish soap instead of one. Replace the vinegar every two to three days as it loses potency, or whenever the surface is covered with dead flies.

You can boost the trap by covering the bowl with plastic wrap and poking small holes in it with a toothpick. Flies crawl through the holes easily but struggle to find their way back out. This funnel effect isn’t strictly necessary if you’re using dish soap, but it does prevent flies from landing on the rim and flying away without touching the liquid.

The Bottle Funnel Trap

For larger house flies and bottle flies, a funnel trap creates a one-way entrance they can’t escape. Cut the top third off a plastic bottle and invert it into the bottom portion so it forms a cone pointing downward. Tape the seam so there are no gaps along the edge.

Fill the bottom with bait. A piece of overripe fruit or a splash of fruit juice works for fruit flies. For house flies, something with a stronger smell is more effective: a small piece of raw meat, a tablespoon of sugar dissolved in warm water, or even a bit of fish. House flies are attracted to protein-based decay, not just sweet fermentation.

Place the trap wherever you’re seeing the most activity. Flies enter through the wide opening of the funnel, follow the scent downward through the narrow neck, and then can’t navigate back out. Check and empty it daily in warm weather, since protein baits spoil quickly and can create their own odor problem.

Trapping Drain Flies and Fungus Gnats

Drain flies breed in the organic film that coats the inside of sink drains, floor drains, refrigerator drip pans, air conditioner condensate pans, and even the tracks of sliding glass doors. Vinegar traps will catch some adults, but the real fix is cleaning the breeding site. Pour boiling water down the drain, then scrub inside the drain opening with a stiff brush. A drain-cleaning gel left overnight dissolves the biofilm where larvae live.

Fungus gnats breed in wet potting soil. You’ll notice them most after watering houseplants. Yellow sticky traps, the small adhesive cards sold at garden centers, are the most effective option here. Place them just above the soil surface. The gnats are drawn to the yellow color and stick on contact. Letting the top inch of soil dry out between waterings also kills larvae, which need consistent moisture to survive.

UV Light Traps for Persistent Problems

Plug-in fly traps that use ultraviolet light are effective against house flies, bottle flies, and many other flying insects. These devices use UV-A bulbs that peak around 350 to 368 nanometers, a wavelength range that’s highly attractive to flies but invisible to most people as anything more than a faint purple glow. Flies approach the light and are either caught on a sticky glue board inside the unit or pulled in by a small fan.

Glue board models are quieter and better suited to kitchens and living spaces than the electric “zapper” style, which can scatter insect fragments. Place UV traps away from competing light sources and at a height of three to six feet, where flies tend to cruise. They work around the clock and are especially useful when you can’t pinpoint the breeding source.

Why Traps Alone Won’t Solve the Problem

A female house fly lays hundreds of eggs, and at typical room temperature (around 75°F), those eggs develop into new adults in roughly 14 days. That means even a single overlooked breeding site can produce a fresh wave of flies every two weeks. Traps catch the adults you can see, but the larvae developing out of sight will replace them.

The breeding sites are often not obvious. Beyond the usual suspects like trash cans and fruit bowls, flies breed in places most people never check:

  • Floor drains in basements, laundry rooms, and bathrooms
  • Sink overflow holes, the small opening near the top of bathroom sinks
  • Refrigerator drip pans underneath the unit
  • Garbage disposal splash guards, where food debris collects on the underside
  • Cracked floor tiles in kitchens, where moisture and food residue seep underneath
  • Potted plant soil that stays consistently damp
  • Forgotten produce like a potato or onion that rolled behind a bin

Finding and eliminating the source is what actually ends a fly problem. Traps are the tool you use to knock down the adult population while you do that detective work.

Keeping Flies From Coming Back

Once you’ve cleared the current infestation, a few habits prevent the next one. Take kitchen trash out before it sits overnight, especially in summer. Rinse bottles and cans before they go in the recycling bin, since the residue is a powerful attractant. Store ripe fruit in the refrigerator rather than on the counter. Run the garbage disposal with cold water for 15 to 20 seconds after each use to flush debris through.

For drain maintenance, a weekly flush of boiling water down each kitchen and bathroom drain keeps biofilm from building up to the point where flies can breed in it. If you have houseplants, bottom-watering (setting the pot in a tray of water and letting the soil absorb moisture from below) keeps the top layer of soil drier and less hospitable to fungus gnat larvae.

Screens on windows and doors are the simplest physical barrier. Check for tears, and make sure the seal is tight around the frame. Flies can squeeze through surprisingly small gaps, especially around sliding doors and garage entries.