Homemade Fly Trap Indoor: Best Baits That Work

A small jar, some apple cider vinegar, and a few drops of dish soap can trap dozens of flies within hours. That’s the simplest version, but the best trap depends on which flies you’re dealing with. Fruit flies, house flies, fungus gnats, and drain flies all respond to different baits and trap designs. Here’s how to build the right one.

Identify Your Fly First

The tiny flies buzzing around your kitchen aren’t all the same species, and a trap that works perfectly for one type may do nothing for another. A quick look at size, color, and behavior tells you what you’re dealing with.

Fruit flies are about 1/8 inch long with stout, rounded bodies and distinctive red eyes (though some species have dark eyes). They hover around fruit bowls, trash cans, and anywhere sugary or fermented liquids have spilled. They breed in overripe bananas, rotting onions, spoiled potatoes, and even spilled wine or beer. They don’t bite.

Fungus gnats are smaller (1/16 to 1/8 inch), with slender bodies, long legs, and a mosquito-like silhouette. They fly weakly around houseplants and hover near your face or computer screen. Their larvae live in moist potting soil, feeding on roots and fungi. If the tiny flies seem to come from your plants, these are your culprit.

Phorid flies look similar in size to fruit flies but have a distinct hump-backed shape and are tan to dark brown. Their giveaway behavior: they run across surfaces in short bursts before flying, earning the nickname “scuttle fly.” They breed in drains, garbage disposals, decaying organic matter, and even wet soil in potted plants.

House flies are the large, familiar gray flies that land on food and walls. They’re much bigger than the others, and their larvae (maggots) hatch from eggs in as little as 8 to 20 hours. Under warm conditions, a house fly can go from egg to adult in under two weeks, which is why a small problem can explode quickly.

The Apple Cider Vinegar Trap

This is the go-to for fruit flies and the easiest trap to make. Pour about 1/4 cup of apple cider vinegar into a jar or small bowl. Add 3 to 5 drops of liquid dish soap and give it a gentle swirl. The vinegar mimics the smell of fermenting fruit, which fruit flies can’t resist. The dish soap breaks the surface tension of the liquid so flies sink and drown instead of landing on top and flying away.

Set the jar near the problem area: next to a fruit bowl, by the kitchen sink, or beside the trash can. You can leave it open or cover it with plastic wrap and poke 5 to 8 small holes with a toothpick. The plastic wrap version traps flies that make it through the holes, preventing escape, but an open jar with dish soap works nearly as well since flies can’t stay on the surface. Replace the vinegar every 2 to 3 days or when it gets cloudy with dead flies.

The Inverted Bottle Trap

For house flies or a heavier infestation, a bottle trap creates a one-way entrance that flies can’t figure out how to escape. Take a clean plastic bottle (a standard water or soda bottle works fine) and cut the top third off. Flip the top piece upside down so it forms a funnel pointing into the bottom of the bottle, then tape the edges together.

For the bait, mix 1/2 cup of apple cider vinegar, 1/2 cup of water, and 2 tablespoons of white sugar. Add 5 to 10 drops of dish soap. Pour the mixture into the bottle. Flies follow the scent through the funnel opening, land on the liquid, and can’t navigate back out through the narrow opening. Place the trap near windows, doors, or wherever flies congregate. A clear bottle lets you monitor how full it’s getting.

This design works for both fruit flies and house flies, though house flies respond better to slightly different baits (more on that below).

Alternative Baits That Work

Apple cider vinegar isn’t your only option. Several household items produce the fermentation smell that draws flies in.

  • Red wine or beer: Leftover wine or a brown/amber ale works as a direct substitute for vinegar. The fruity, yeasty aroma is highly attractive to fruit flies. Pour it into a jar, add dish soap, and cover with punctured plastic wrap. Stale or flat drinks work just as well as fresh ones.
  • Overripe fruit: A slice of browning banana or a chunk of soft peach placed inside a bottle trap or covered jar releases a strong attractant as it decomposes. This is especially effective when combined with a splash of vinegar.
  • Sugar and yeast: Dissolve a tablespoon of sugar in warm water and add a pinch of active dry yeast. As the yeast ferments the sugar, it produces carbon dioxide and alcohol, both of which attract flies. This takes about 30 minutes to activate but keeps working for days.

For house flies specifically, which are drawn to protein as well as sugar, a small piece of raw meat or fish in the bottle trap can be effective. This gets smelly fast, though, so it’s best reserved for garages, utility rooms, or areas with good ventilation.

Trapping Fungus Gnats

Vinegar traps catch some fungus gnats, but the most effective approach targets them where they live: in the soil of your houseplants. Yellow sticky traps (inexpensive cards coated with adhesive, available at garden stores) placed just above the soil surface catch adult gnats as they emerge. They’re drawn to the yellow color.

To kill larvae already in the soil, let your plants dry out more between waterings. Fungus gnat larvae need consistently moist soil to survive, and even a few extra dry days can break their cycle. You can also cover the top inch of soil with a layer of sand or fine gravel, which prevents adults from laying eggs. For a vinegar-based approach, set a shallow dish of apple cider vinegar with dish soap right next to the affected plant. It won’t eliminate the larvae, but it reduces the adult population so fewer eggs get laid.

Where to Place Traps

Placement matters almost as much as the trap itself. Flies navigate primarily by smell, so traps work best within a few feet of the breeding source. For fruit flies, that usually means the kitchen counter near fruit, the sink, or the recycling bin where bottles and cans sit. For house flies, place traps near windows (where flies tend to cluster toward light) and near garbage cans.

Multiple small traps outperform one large one. Three jars spread across your kitchen cover more area and intercept flies from different directions. If you’re not catching anything after 24 hours, move the trap. Sometimes shifting it just a couple of feet, from one side of the sink to the other, makes a noticeable difference.

Eliminate the Source, Not Just the Flies

Traps reduce the visible population, but they won’t solve the problem if flies keep breeding faster than you can catch them. Fruit flies can lay around 500 eggs at a time, and their lifecycle from egg to adult takes roughly a week in warm conditions. House flies are similarly prolific, with larvae reaching adulthood in as little as 6 to 10 days when temperatures are favorable.

Take 10 minutes to find and remove the breeding source. Check for forgotten fruit at the back of the counter, a potato going soft under the sink, or residue in the bottom of your trash can. Clean drains by pouring boiling water down them, since organic buildup in pipes is a common breeding ground for phorid flies and dark-eyed fruit flies. Rinse recyclables before they go in the bin, and wipe up spills of juice, wine, or beer immediately.

Once the breeding source is gone, your traps will clean up the remaining adults within 3 to 5 days. Without new flies hatching, the problem resolves on its own as the current generation dies off.

Essential Oils as a Supplement

If you’d rather repel flies than trap them, certain essential oils can help keep them away from specific areas. Thyme oil has been found to be a particularly effective repellent against house flies. Eucalyptus oil also shows strong insect-repelling properties. Add a few drops to a cotton ball and place it near doorways or windows, or mix 10 to 15 drops into a spray bottle of water and mist countertops.

These won’t solve an active infestation on their own, but they work well as a second line of defense alongside traps, keeping flies away from food prep areas while the traps do the heavy lifting nearby.