Killing flies one by one is a losing game. A single female lays hundreds of eggs. If flies keep reappearing, something in your home is feeding and breeding them, and that is what you actually need to fix.

Why do I suddenly have flies inside?

Flies come in for two reasons: they wandered in through a door or window, or something inside is breeding them. A sudden swarm almost always means a hidden source.

Common indoor breeding grounds:

  • Overripe or rotting fruit on the counter.
  • The kitchen trash, especially with unbagged food waste.
  • Sink and shower drains coated in organic gunk (a classic for drain flies).
  • Damp spots: leaky pipes, soggy potting soil, spilled liquids under appliances.
  • A dead rodent or bird in a wall, attic, or vent (the usual cause of a sudden cluster of large flies).

How do I kill the flies I can see right now?

Start with traps and quick removal while you hunt for the source.

Apple cider vinegar trap (best all-rounder). Pour apple cider vinegar into a bowl or jar, add a drop of dish soap, and cover with plastic wrap. Poke small holes in the top. The smell lures flies in, the soap breaks the surface tension so they sink. This is the single most recommended DIY trap across cleaning and pest forums for good reason: it is cheap and it works.

Fruit-in-a-jar trap. Put a piece of overripe fruit in a jar, add the pierced plastic wrap, and set it near the swarm.

Sticky fly paper or ribbons. Hang them near windows and entry points to catch fliers passively.

Swatter and vacuum. For a fast knockdown, a vacuum hose sucks up resting flies without the mess of swatting.

What natural repellents actually work?

Some scents repel flies and double as pleasant air fresheners.

  • Essential oils: peppermint, eucalyptus, lavender, and lemongrass. Add a few drops to a spray bottle of water and mist entry points, or use a diffuser.
  • Herbs: basil and mint on the windowsill deter flies and are handy in the kitchen.
  • Cloves in citrus: press whole cloves into half a lemon and set it out. A traditional trick that genuinely helps.

Repellents reduce traffic but do not fix a breeding source. Pair them with traps and cleanup.

How do I find and remove the source?

This is the step most people skip, and why the flies keep returning.

  1. Check fruit and the trash first. Bin overripe produce, take out the garbage, and wash the can. Bag all food waste going forward.
  2. Test your drains. Tape a clear plastic bag loosely over a drain overnight. If you catch small flies in the morning, you have drain flies. Clean the drain by scrubbing with a brush and flushing with a mix of baking soda, vinegar, and hot water, or an enzyme drain cleaner. Bleach alone rinses past the film without removing it.
  3. Look for moisture. Fix leaks, dry under appliances, and let overwatered plants dry out. Fungus gnats breed in soggy potting soil.
  4. Sniff out a dead animal. A sudden burst of large, sluggish flies (cluster or blow flies) often means a carcass in a wall, attic, or vent. Follow the smell. Removing it ends the swarm.
  5. Seal entry points. Repair torn window screens and add door sweeps so new flies cannot stroll in.

Which fly do I have?

Identifying the fly narrows the source fast.

Fly type Size and look Likely source
House fly Medium, gray Trash, food, filth
Fruit fly Tiny, tan, red eyes Ripe or rotting fruit, drains
Drain fly Tiny, fuzzy, moth-like Slimy drain buildup
Fungus gnat Tiny, dark, near plants Overwatered houseplant soil
Cluster / blow fly Large, sluggish, sometimes metallic Dead animal in a wall or attic

How do I keep flies from coming back?

  • Take out the trash often and keep the bin lid sealed and clean.
  • Store fruit in the fridge once it starts to ripen.
  • Clean drains regularly with an enzyme cleaner.
  • Wipe spills and crumbs the same day.
  • Fix leaks and dry damp areas.
  • Repair screens and add door sweeps.
  • Keep repellent herbs or oils near entry points.

FAQ

What smell do flies hate the most?

Peppermint, eucalyptus, lavender, lemongrass, and clove. A few drops of these oils in a spray bottle deter flies at doors and windows.

Why do I have flies but no visible food?

The source is likely hidden: a drain coated in organic film, damp potting soil, or a dead animal in a wall. Test drains with the bag trick and check for moisture and odor.

Does the vinegar and dish soap trap really work?

Yes. Apple cider vinegar attracts flies and the drop of dish soap breaks the surface so they cannot escape. It is the most reliable homemade trap.

How do I get rid of drain flies specifically?

Physically scrub the drain to remove the slimy film they breed in, then flush with baking soda, vinegar, and hot water or an enzyme cleaner. Pouring bleach alone rarely works.