How to Get Rid of Fruit Flies and House Flies (and Keep Them Gone)
By Samer Alsayegh · · 13 min read

Key Takeaways
- Traps catch adults, not eggs. Clean the source first.
- One fruit fly can lay about 500 eggs.
- Fruit flies breed in drains, bins, rags, and soft produce.
- Red wine with a splash of vinegar beats plain vinegar as bait.
- Keep traps out for two weeks to cover a full life cycle.
To get rid of fruit flies, find and remove what they breed in, then trap the adults that are left. To get rid of house flies, take away their food, keep them out, and swat or trap the rest. Traps alone won't fix either problem. A single fruit fly can lay about 500 eggs, and those eggs can become adults in about a week, per the University of Kentucky's entomology department.
So if you've set out a bowl of vinegar and the flies keep coming, the trap isn't the issue. The source is. This guide shows you how to find it, kill it, and keep flies from coming back. It's the same approach Ezi Home Services providers use when they clean a kitchen with a fly problem.
How do you tell which flies you have?
Start by naming your fly. Each kind breeds in a different spot, so the fix depends on the bug.
- Fruit flies are about 3 mm long. They have red eyes, a tan front, and a dark rear end. They hover slowly over fruit, trash, and sinks.
- Drain flies look fuzzy, like tiny moths. They sit on bathroom walls near the drain. If you swat one, it turns into a smudge of dust.
- Fungus gnats are thin and dark, with long legs. They hang around houseplants and breed in wet potting soil.
- House flies are much bigger, about 6 to 7 mm. They're grey, with four dark stripes on the back.
- Cluster flies look like slow, sluggish house flies. They show up on sunny windows in the fall.
Location is your best clue. Flies near the fruit bowl are likely fruit flies. Flies near the shower drain are likely drain flies. Flies on the plant shelf are likely gnats.
Why do fruit flies keep coming back?
They keep coming back because traps catch adults, not eggs. The eggs and larvae stay hidden in a wet film somewhere in your kitchen. Each week, a new batch hatches.
The University of Kentucky lists the usual spots. Fruit flies breed in drains, garbage disposals, empty bottles and cans, trash bins, mops, and cleaning rags. All they need is "a moist film of fermenting material." That could be a splash of juice under the fridge or one soft potato at the back of the pantry.
Speed is the other problem. At 25°C, a fruit fly goes from egg to adult in about 10 days. At 28°C, it can take just 7. That's why a warm August kitchen can go from three flies to a cloud in two weeks.
They can also travel. In one study, Caltech researchers found fruit flies can fly up to 15 km in a single trip, and they follow the smell of ferment to find food. A bowl of ripe peaches on the counter is a signal they can pick up from outside.
How to get rid of fruit flies, step by step
Here's the full process. Plan on two weeks, since that covers at least one full life cycle.
1. Find every food source
Check the fruit bowl first. Then look further. Look under potatoes and onions in the pantry. Check the bottom of the recycling bin and the inside of empty wine or beer bottles. Look at the drip pan under the fridge. Sniff the mop.
One overripe banana is enough to sustain a whole colony. If something is soft, leaking, or sour, toss it outside.
2. Clean the drain and disposal
Drains are the spot most people miss. Fruit flies lay eggs in the slimy film that lines the pipe.
Pouring hot water down the drain helps a little, but it won't remove that film. Instead, scrub the inside of the drain with a long, stiff pipe brush. Then flush it with hot water. For a natural way to clear the gunk, see our guide to unclogging and deodorizing a sink drain.
Not sure if the drain is the source? Tape a clear plastic bag over it overnight. The University of Kentucky suggests this test. If you find flies in the bag in the morning, you've found your source.
3. Rinse and empty the bins
Rinse every can and bottle before it goes in the recycling. Empty the kitchen trash and compost caddy every day or two while you fight the flies.
Wash the bins themselves with hot, soapy water. Sticky residue at the bottom of a bin is prime breeding ground.
4. Wash rags, sponges, and mops
A damp rag that smells sour is a nursery for flies. Wash dish rags and mop heads on hot, then dry them fully. Swap old sponges for new ones.
5. Store fruit in the fridge
Keep ripe fruit in the fridge, or in a closed container. This removes the smell that draws flies in. Bananas can go in once they're ripe. The peel darkens, but the fruit inside stays fine.
6. Trap the adults that are left
Now that the source is gone, a trap can finish the job. Set out a small jar with a few centimetres of bait. Roll a sheet of paper into a funnel and set it in the jar's mouth. Flies crawl in but struggle to find the way out.
Keep traps out for two weeks. Swap the bait every few days so it stays strong.
Wine beats plain vinegar: the trap test most guides skip
Most guides tell you to use apple cider vinegar. It works, but research says you can do better.
A Michigan State University team led by Juan Huang tested baits on a close cousin of the kitchen fruit fly. Entomology Today reported on the study. They mixed red wine and vinegar in six ratios, from all wine to all vinegar. Pure wine and an 80:20 wine-to-vinegar mix caught the most flies. Pure vinegar caught the fewest.
Why? Fruit flies aren't really after fruit. They're after the yeast that grows on it. Researchers at Lund University found that fermenting yeast alone draws fruit flies just as well as yeast on fruit. That yeast smell is a blend of alcohol, acetic acid, and fruity esters. Wine has the alcohol and the fruity notes. Vinegar mostly has the acid.
So here's a better bait:
- About 4 parts leftover red wine
- About 1 part apple cider vinegar
- One drop of dish soap
Keep the soap to a single drop. It breaks the surface tension so flies sink, but too much masks the smell. The dregs of a wine bottle work on their own, too.
Why do you have drain flies instead?
If the flies are fuzzy and live by the shower or tub, they're drain flies. Their fix is a little different.
The University of Kentucky says drain flies breed in "the fine slime layer" found in drains, rarely used toilets, basement floor drains, and the drip pan under the fridge. Their life cycle takes about 10 to 15 days at room temperature.
Hot water alone won't work. Drain fly larvae can trap air bubbles and stay underwater for a day or more. The fix is to scrub the slime out of the pipe and trap. Never pour bug spray down a drain.
These flies often show up after a trip, when water hasn't moved through the pipes. Run water in every sink, tub, and toilet once a week, including the basement bathroom.
How to get rid of house flies
House flies don't usually breed inside a clean home. They fly in through open doors and torn screens, then hunt for food.
They're more than a nuisance. A house fly can lay up to 500 eggs, and research has linked the species to more than 100 types of germs, including Salmonella and E. coli. They spread germs when they land on food and dishes.
Here's how to clear them out:
- Fix screens and seals. Patch holes in window and door screens. Add weather stripping where a door doesn't close tight.
- Cover food. Don't leave plates, pet food, or open bins out, inside or on the deck.
- Take out the trash often. Use bins with tight lids. In summer, empty the kitchen bin every day.
- Swat or trap the rest. A swatter and sticky fly strips handle most indoor house flies.
- Clean outside, too. Pet waste, a dirty green bin, and grime in the garbage area all draw flies to the house.
What about UV bug zappers? Research from the University of Florida found UV traps work worse when a room is bright. They're best in dim spaces, like a garage, and less useful in a sunny kitchen.
What about flies on the windows in the fall?
If big, slow flies pile up on sunny windows in September or October, they're likely cluster flies. They're common across Canada.
Health Canada says cluster flies look for winter shelter as the days get shorter. They like the warm south and west sides of a home. Their young live on earthworms outside, so they don't breed in your house. They're also not usually a health risk.
To deal with them, vacuum or swat the flies you see. Then seal cracks around window and door frames with caulk. If you use a spray, check for a PCP number on the label. That number means Health Canada has approved it.
How do you keep flies from coming back?
Once the flies are gone, a few habits keep them gone.
- Don't leave fruit out once it's ripe. Move it to the fridge.
- Wipe spills right away. Juice, wine, and soda are top fruit fly food.
- Freeze food scraps. Keep them in the freezer until bin day. Cold kills fruit fly eggs and stops smells.
- Wash the green bin. Rinse it after each pickup in warm months, and keep it out of direct sun.
- Clean the drains monthly. A quick scrub stops the slime layer from building up.
A clean kitchen is the best fly trap there is. Our guide to the fastest way to clean a kitchen covers the full top-to-bottom routine.
One warning: don't mix bleach with vinegar or other cleaners when you scrub drains and bins. Some mixes release toxic gas. See our list of cleaning chemicals you should never mix before you start.
Methodology
The advice in this guide comes from university and government sources. Fruit fly and drain fly facts come from University of Kentucky Entomology fact sheets. Trap bait results come from the Michigan State University study published in Environmental Entomology, and yeast-odour findings come from Lund University research. Flight range data comes from Caltech.
Cluster fly guidance comes from Health Canada's pest control tips. House fly breeding and germ data come from published insect research. We didn't include claims we couldn't trace to one of these sources.
When to call a professional
Most fly problems end once you find the source. But some kitchens have more going on. There could be grease under the stove, a sticky film behind the fridge, or old spills under the cabinets. These spots are hard to reach on your own.
If you've cleaned and the flies are still there after two weeks, a deep clean can help. Ezi's deep cleaning service covers the inside of appliances, under-appliance gunk, and the corners a weekly wipe skips. For steady upkeep, a regular house cleaning keeps crumbs and spills from piling up. If your bins or deck draw flies, exterior cleaning can help too. And if you have signs of a bigger kitchen mess, here are 9 signs your kitchen needs a deep clean.
Note that a cleaning service isn't pest control. If you see flies tied to a dead animal or a hidden leak, call a licensed pest control company.
The bottom line
Getting rid of fruit flies and house flies comes down to one rule: remove the source first, then trap. Fruit flies breed in drains, bins, and soft produce, so clean those spots and use a wine-and-vinegar trap for two weeks. House flies come from outside, so fix screens, cover food, and swat the rest.
Want a kitchen that gives flies nothing to eat? Book a cleaning with Ezi and let a local service provider handle the deep work.
How To
- 1Find every food sourceCheck the fruit bowl, pantry, recycling, empty bottles, and the drip pan under the fridge. Throw out anything soft, leaking, or sour.
- 2Clean the drain and disposalScrub the inside of the drain with a stiff pipe brush to remove the slimy film. Then flush it with hot water.
- 3Rinse and empty the binsRinse cans and bottles before recycling. Empty the trash and compost caddy every day or two. Wash the bins with hot, soapy water.
- 4Wash rags, sponges, and mopsWash dish rags and mop heads on hot and dry them fully. Replace old sponges.
- 5Store fruit in the fridgeKeep ripe fruit in the fridge or a closed container so the smell doesn't draw flies.
- 6Trap the adults that are leftFill a jar with a few centimetres of red wine and a splash of vinegar. Add one drop of dish soap and a paper funnel. Keep traps out for two weeks.
Frequently Asked Questions
Why do fruit flies keep coming back?
Fruit flies keep coming back because traps catch adults, not eggs. The eggs hide in drains, bins, rags, or soft produce. Find and clean that source, and the cycle stops.
How long does it take to get rid of fruit flies?
Plan on about two weeks. Fruit flies go from egg to adult in about 7 to 10 days in a warm kitchen. Clean the source and keep traps out for two weeks to catch the last batch.
What is the best bait for a fruit fly trap?
Red wine with a little apple cider vinegar works best. A Michigan State University study found pure wine or an 80:20 wine-to-vinegar mix caught the most flies. Pure vinegar caught the fewest. Add one drop of dish soap.
Can fruit flies live in my sink drain?
Yes, fruit flies often breed in sink drains. They lay eggs in the slimy film inside the pipe. Tape a clear bag over the drain overnight. If flies are in it by morning, the drain is the source.
Does boiling water kill drain flies?
No, hot water alone rarely works. Drain fly larvae can trap air and stay underwater for a day or more. Scrub the slime out of the pipe with a stiff brush instead.
Why are there big, slow flies on my windows in the fall?
Big, slow flies on fall windows are usually cluster flies. Health Canada says they come inside to find winter shelter as days get shorter. They don't breed indoors and aren't usually a health risk. Vacuum them and seal gaps around windows.
fruit flies
house flies
drain flies
kitchen cleaning
pest prevention
Explore more
Written by
Home Cleaning · Maintenance
Co-founder of Ezi Services and Draftbase, entrepreneur and builder focused on SaaS, AI, and growth — I turn ideas into scalable businesses using technology, automation, and relentless execution.






