We all know that moment. You reach for a banana in the fruit bowl and three or four tiny flies lift off and float around your face. You wave them off, maybe throw out the banana, and next morning there are ten of them. By the weekend they’re in the sink, around the trash can and in your wine glass.
Here’s the quick answer if you’re in a hurry: throw out anything overripe, find the spot where they’re breeding (usually a drain, the trash can or one rotten potato you forgot about), clean it, and set an apple cider vinegar trap for the adults that are left. Give it about two weeks. If new flies keep showing up after that, you missed a breeding spot.
Most guides start and stop at the trap. That’s why the flies keep coming back. A trap catches the adults flying around, but the eggs and larvae sitting in your drain keep hatching, and Texas A&M AgriLife Extension says plainly that “eliminating the breeding site is essential.” Below you will find how to make sure they’re fruit flies, how to find where they breed, how to clean a drain properly, one trap recipe with real amounts, and what to skip.
First, Make Sure They’re Fruit Flies
Four kinds of tiny flies show up in kitchens and bathrooms, and each one needs a different fix. A vinegar trap does little for a fly that’s breeding in your potted plant. Take a close look at one that landed on the counter.
| Fly | Size | What it looks like | Where you see it | What to do |
|---|---|---|---|---|
| Fruit fly | About 1/8 inch | Tan front, darker rear end, usually red eyes | Fruit bowl, trash, sink, wine and beer | Clean the source, vinegar trap |
| Drain fly | 1/16 to 1/5 inch | Gray, fuzzy, looks like a tiny moth, wings held like a roof | Bathroom walls, shower, tub and sink drains | Scrub the drain |
| Fungus gnat | 1/16 to 1/8 inch | Dark, long legs, looks like a small mosquito | Around houseplants and windows | Let the soil dry out, cover it with sand |
| Phorid fly | About 1/8 inch | Humpbacked, tan to black | Drains, trash, broken disposals | Runs in short bursts instead of flying away. Find the source |
Sizes and descriptions come from Texas A&M AgriLife Extension and University of Kentucky Entomology.
Nebraska Extension gives a simple rule: if the flies don’t have red eyes, they’re probably not fruit flies. Look under a bright light or snap a zoomed-in photo with your phone.
Where Fruit Flies Come From
Fruit flies don’t appear out of thin air, even though it feels that way. They get in three ways.
On your groceries. University of Kentucky Entomology and Nebraska Extension both say fruit flies come in on produce as eggs or larvae. Overripe bananas, potatoes, onions and tomatoes are the usual ones. In summer, it’s tomatoes, melons and squash from your garden or the farmers market.
Through screens and doors. Adults are small enough to fit through standard window screens. Kentucky recommends 16-mesh screens. They also slip in around the edges of exterior doors.
From the outside in general. Ohio State’s fact sheet says newly emerged fruit flies can travel up to 6 1/2 miles in 24 hours. One overripe tomato on your counter is enough to bring them in.
Late summer and fall are the worst months. Nebraska Extension even titled their article “Fall Is the Time for Fruit Flies,” because that’s when garden harvests and ripe produce pile up on counters.
Once they’re inside, they breed fast. A female lays about 500 eggs in her life, according to Kentucky, and Ohio State puts the upper number at 2,000. The eggs hatch in about a day. You will see some guides say “500 eggs at a time,” which isn’t right. It’s spread over her whole life.
Find Where They’re Breeding
This is the step that actually ends the problem, and almost nobody tells you how to do it.
Fruit flies lay eggs on anything moist and fermenting. The fruit bowl is the obvious one, but if you threw out the fruit and still have flies, the source is somewhere you’re not looking. Go through this list:
- Drains and garbage disposal. The slimy film inside the pipe is a breeding ground. Floor drains and drains you rarely use are common culprits.
- Pantry potatoes and onions. Kentucky says one rotting potato or onion can keep an infestation going.
- Recycling bin. Unrinsed bottles and cans of wine, beer, soda and juice. Ketchup bottles too.
- Trash can bottom. Juice leaks through the bag and sits under it.
- Mops, rags, sponges and dishcloths. Every extension source names sour, damp mops and rags.
- Under the fridge. Spilled juice under the fridge, and the fridge drip pan (University of Wisconsin).
- Compost pail on the counter.
- Home canning, wine, beer or cider making. Jars that didn’t seal right (Kentucky and Ohio State).
- Pet food bowls and pet waste.
The bag test
If you think it’s the drain or disposal but aren’t sure, use the bag test from University of Kentucky Entomology. Tape a clear plastic food bag over the drain opening before bed. If there are flies inside the bag in the morning, they hatched in that drain. Test each drain in the house, including the bathroom.
The tape test
Texas A&M gives another version. Stick a strip of clear packing tape across the drain, but leave a gap so air still moves. Check it over a day or two. If flies are stuck to the sticky side, you found your source.
Clean the Source
Clean your drain the right way
Here’s what most people get wrong. They pour bleach down the drain and wait. Iowa State Extension says, “There is no benefit to treating drains with bleach or ammonia.” Texas A&M calls bleach and drain cleaner “largely ineffective” against the slime film where the larvae live. The bleach rushes past the film and down the pipe.
What works is scrubbing. Here’s how:
- Pull out the drain stopper or strainer and clean the gunk off it.
- Push a stiff pipe brush (a long, thin one from any hardware store) down the drain and scrub the walls of the pipe as far as it reaches. Twist it as you go.
- Flush with the hottest water from your tap for a minute or two.
- For a garbage disposal, scrub under the rubber splash guard, which is usually the dirtiest spot.
- Repeat every day for a week, then do the bag test again.
If scrubbing doesn’t reach, an enzyme or bacterial drain gel can eat the film. Texas A&M says these usually need repeat use over several weeks. Check the label says it’s safe for septic systems if you have one.
A word about boiling water. Lots of guides tell you to pour boiling water down the drain. Plumber Jason Bryant told Tom’s Guide that boiling water can crack or warp pipes and joints, and that you’re always safe at 140°F or below. Most home water heaters top out around 140°F, so hot tap water is fine. If you use a kettle, let it sit for a few minutes off the boil.
Clean everything else
- Throw out overripe fruit and anything soft in the pantry.
- Put ripe fruit in the fridge until the flies are gone.
- Take out the trash and recycling every day while you have flies. Wipe the inside of the cans and let them dry.
- Rinse bottles and cans before they go in the recycling.
- Wash rags and dishcloths in hot water. Wring mops dry and store them upside down.
- Pull out the fridge and wipe up spills, and empty the drip pan.
- Freeze kitchen scraps or take them straight to an outdoor compost bin, as Nebraska Extension suggests.
Trap the Adults
Once you clean up, the adults still flying around will live for a while and lay more eggs if they find anything. A trap catches them.
The apple cider vinegar trap
This is the recipe from Nebraska Extension and University of Maryland Extension.
- Pour about 1 inch of apple cider vinegar into a small glass or jar. A juice glass or baby food jar works.
- Add one drop of dish soap. The soap breaks the surface so flies sink instead of standing on it.
- Cover the top with plastic wrap and pull it tight with a rubber band.
- Poke 4 or 5 small holes in the wrap with a toothpick.
- Set it near where you see the most flies.
No plastic wrap? Roll a sheet of paper into a cone, leave a small hole at the tip and set it in the jar with the narrow end down. Flies go in and can’t find the way out.
Make 2 or 3 traps if you have a lot of flies. Texas A&M says to change the bait every few days, because old vinegar stops working.
Other baits that work
If apple cider vinegar isn’t catching much, swap the bait. Texas A&M lists red wine, beer, sugar water with a pinch of yeast, a slice of banana and orange slices as attractants. An old wine bottle with a little left in the bottom works as a trap by itself; the narrow neck does the job of the cone.
Store-bought traps
If you don’t want bowls of vinegar on the counter, a few options sell for a few dollars:
- Terro Fruit Fly Trap: about $6 on Amazon.
- Beapco fruit fly traps: about $15 for a pack, pre-filled and lasting about a month each.
- Aunt Fannie’s FlyPunch: about $15.
Prices change often, so check before you buy. These do the same job as the homemade trap. They catch adults, and they don’t touch the breeding site.
Why Your Fruit Fly Trap Isn’t Working
You set up a trap, waited two days, and caught three flies. Here’s what’s going on:
- The bait is old. Swap it every few days.
- The holes are too big. Flies get in and get back out. Make them toothpick-sized.
- It’s in the wrong spot. Put it where the flies gather, not across the room.
- There’s better food nearby. A trap can’t compete with an open trash can or a bowl of ripe peaches. Clean first, then trap.
- They aren’t fruit flies. Drain flies and fungus gnats breed in drains and soil, so trapping adults barely changes their numbers. Go back to the ID table.
What Doesn’t Work
- Bleach or ammonia down the drain. No benefit, according to Iowa State.
- Bug spray on its own. University of Wisconsin says pyrethrin sprays kill adults present at the time but give “no residual control.” Ohio State says they “will do nothing” to the larvae. You spray, the room looks clear, and new flies hatch from the drain the next day.
- Basil, lavender or rosemary plants, and essential oil sprays. Some guides suggest them as repellents. None of the extension sources we checked recommend them, and we couldn’t find good evidence they control fruit flies.
- Fly swatters and bug zappers. They kill a few adults. That’s all.
How Long It Takes
The fruit fly life cycle runs about 8 to 10 days from egg to adult, according to Kentucky, Maryland and Wisconsin extension. In a cool house it can stretch to 15 days (Ohio State).
So here’s what to expect after you clean the source. For the first week, you will still see flies. Those are larvae and pupae that were already in the drain or the trash when you cleaned, and they keep hatching. Nebraska Extension says it “can take a couple weeks” for the rest to die off. If you’re still seeing new flies after two weeks, there’s another breeding spot. Go back to the list and do the bag test on every drain.
Safety Notes
Most of these remedies are mild, but a few need care around kids and pets:
- Hot water: stick to hot tap water or water that’s cooled for a few minutes off the boil. It’s easier on your pipes and on your hands.
- Essential oils: Hill’s Pet Nutrition, citing the ASPCA, says concentrated essential oils “can absolutely be a danger for pets.” Tea tree, peppermint, eucalyptus, cinnamon and citrus oils are on its list of oils toxic to cats.
- Rubbing alcohol: some guides tell you to spray it on flies. It’s flammable, so keep it away from the stove.
- Dish soap and detergent bowls: keep open traps out of reach of toddlers and dogs, and use dish soap, not dishwasher detergent.
- Pyrethrin sprays: read the label. Keep pets, kids and fish tanks out of the room while you spray.
If your pet eats something it shouldn’t, call your vet or the ASPCA Animal Poison Control Center at (888) 426-4435.
When to Call a Plumber or Pest Pro
If you did the bag test on every drain, cleaned every spot on the list and still have new flies after 3 to 4 weeks, the source is probably somewhere you can’t reach. That could be a cracked drain pipe, a broken seal under the floor, or a wet spot inside a wall. A plumber is the right call if the bag test keeps pointing at one drain.
For a pest control company, This Old House puts a one-time visit at $50 to $500, with an average of $171. Housecall Pro gives $100 to $300 for a one-time service. Some pros use Gentrol (s-hydroprene) in drains. It’s an insect growth regulator, and Texas A&M says it “does not kill adult flies” but stops larvae from growing up.
How to Keep Fruit Flies From Coming Back
- Wash fruit and vegetables when you get home from the store.
- Keep ripe fruit in the fridge, especially in late summer and fall.
- Don’t let potatoes and onions sit for weeks. Check the bag once a week.
- Rinse recycling before it goes in the bin.
- Empty the kitchen trash before it smells.
- Scrub the kitchen drain once a week with a pipe brush.
- Hang rags and dishcloths to dry, and wash them often.
- Check your window screens for holes.
FAQ
Why do I have fruit flies but no fruit?
They’re breeding somewhere else. The most common spots are the kitchen drain, the garbage disposal, the bottom of the trash can, a recycling bin with unrinsed bottles, or a forgotten potato or onion. Do the bag test on your drains.
How long do fruit flies live?
Egg to adult takes about 8 to 10 days. The Old Farmer’s Almanac puts the adult lifespan at about two weeks. In that time, one female can lay hundreds of eggs.
Does bleach kill fruit flies?
Not in a way that helps. Iowa State Extension says there’s no benefit to pouring bleach or ammonia down drains. Scrub the drain with a brush instead.
Are fruit flies harmful?
They don’t bite. University of Maryland Extension says they can contaminate food, because they walk on trash and drains and then on your fruit. Throw out any food you see them on.
Why are there fruit flies in my bathroom?
Probably a drain. Check the sink, tub and shower drains with the bag test. If the flies look gray and fuzzy and sit on the walls, they’re drain flies, and the fix is the same: scrub the drain.
What’s the difference between fruit flies and gnats?
Fruit flies are tan with red eyes and hang around food and drains. Fungus gnats are darker, look like tiny mosquitoes and hang around houseplants. Use the ID table above.
Do fruit flies go away on their own?
Sometimes. Iowa State says some people find they disappear without ever finding the source. That usually means the food they were breeding in dried up. It’s faster to find it yourself.
Why do fruit flies keep coming back?
Either there’s a breeding spot you missed, or new ones keep coming in on produce. Do the bag test, rinse new fruit, and keep ripe fruit in the fridge.
Can I use white vinegar instead of apple cider vinegar?
Apple cider vinegar smells more like fermenting fruit, so it works better. If white vinegar is all you have, add a slice of banana to it.
How do I get rid of fruit flies in my drain?
Scrub inside the pipe with a stiff brush, flush with hot tap water, and repeat daily for a week. Skip the bleach. If it keeps happening, try an enzyme drain gel for a few weeks.
Ready to Get Your Kitchen Back?
Start tonight. Throw out anything soft in the fruit bowl and the pantry, tape a bag over your kitchen drain before bed, and set one vinegar trap by the sink. Tomorrow morning, check the bag. That tells you where to scrub.







