Pest controlFliesKitchenDrains

Fruit Flies and Drain Flies

FixCode Guide may earn a commission when you buy parts through links on this site, at no extra cost to you.

Quick answer: Small flies come from where they breed: overripe produce, trash, recycling and the gunk inside drains. Flies lay eggs in moist organic material (UC IPM), so removing and cleaning that source is the fix; traps only catch the adults.
⚠ Safety first:

Steps: easiest & free first

  1. Find the sourceFREE · 10 min
    Check produce, the trash and recycling bins, compost, and drains that sit unused.
  2. Toss or refrigerate ripe produceFREE
    Remove what’s overripe and keep fruit in the fridge until the flies are gone.
  3. Clean bins and recyclingFREE
    Take out trash often and rinse cans and bins (EPA Citizen’s Guide: remove food and water).
  4. Scrub the drainFREE · 10 min
    Pull the stopper, scrub the film inside the drain with a brush, and run water. See our slow drain guide if it’s also slow.
  5. Set a simple trapSHOP
    Sticky or bait traps catch adults while you clear the source.
  6. Call a pro or your landlordPRO
    If flies keep coming from a floor drain, a broken pipe or under a floor, there may be a plumbing leak; report it.
⚠ When to call a pro: termites or wood damage; bed bugs; rodents living inside walls, ceilings or attics; wasp, hornet or yellowjacket nests (especially in walls or the ground); or any infestation that hasn’t improved after a few weeks of steady effort. Renters: report pests to your landlord in writing. If you hire a company, EPA’s Citizen’s Guide covers how to choose one. Renting? See what you can fix vs. call your landlord.

Helpful supplies

ItemWhy
Drain brushScrubs the breeding filmCheck price
[PLACEHOLDER – no affiliate link]
Fly trapCatches adults while you cleanCheck price
[PLACEHOLDER – no affiliate link]

Generic categories only; check the product label and your home’s needs before buying.

Sources

  1. UC Statewide IPM – Pest Notes: Flies
  2. EPA – Pesticides and Consumers (Safe Pest Control)
  3. EPA – Citizen’s Guide to Pest Control and Pesticide Safety
  4. EPA – Introduction to Integrated Pest Management
  5. EPA – Introduction to Pesticide Labels
  6. EPA – Reduce Your Child’s Chances of Pesticide Poisoning