How to Get Rid of Fruit Flies: Find the Source, Clean It Up and Trap the Rest
To get rid of fruit flies, find and remove what they are breeding in, clean that spot well, and then trap the adults that are still flying around. The breeding spot is usually ripe fruit, a gunky sink drain, the trash or recycling, or the compost pail. The trap is simple: about half an inch of apple cider vinegar in a small jar with one drop of dish soap. The trap catches the flies you can see, but the cleanup is what stops new ones from hatching.
Do both and most kitchens are fly-free in about one to two weeks. You will probably still see a few stragglers for several days, because eggs that were already laid keep hatching for a while. That is normal and not a sign that anything failed. Keep cleaning and keep the trap fresh until you go several days in a row without seeing a single fly.
Key facts
- Fruit flies are about 1/8 inch long, tan, often with red eyes.
- Eggs can become adults in about a week to 10 days in a warm kitchen.
- Order matters: source first, clean second, trap third.
- Best trap: apple cider vinegar plus one drop of dish soap.
- Expect stragglers for one to two weeks after cleanup.
Free calculator from Home Project Resources
Fruit Fly Source Finder
Pick where you see the most flies. You get the likely source, a 3-step cleanup and a simple trap to catch the rest.
Need more? Open the free Paint Calculator.
The Fruit Fly Source Finder above does the detective work for you. Pick the spot where you see the most flies: the fruit bowl or counter, the sink drain, the trash or recycling, houseplants, the compost pail, or "all over, not sure." You get the most likely source, a three-step cleanup for that spot and the trap that works best there, plus a note on how long to expect a few flies to hang around. If you have flies in two places, run it twice and do both cleanups.
Quick reference: where fruit flies breed and the fix
| Where to look | What you'll find | The fix |
|---|---|---|
| Fruit bowl and counter | Soft bananas, split tomatoes, a moldy grape | Toss it, wash the bowl, fridge the ripe fruit |
| Potato and onion bin | One rotten potato or onion | Toss it, wipe the bin, check the rest |
| Trash and recycling | Peels, sticky jars, film under the bag | Empty, wash the can and lid, rinse recycling |
| Sink drain and disposal | Food film in the pipe and under the flaps | Drain brush, then hot water, daily for a few days |
| Compost pail | Scraps left for days | Empty daily, wash, keep the lid shut |
| Hidden spots | Spills under the fridge, damp sponge, old lunch bag | Clean, dry, replace sponges |
Why fruit flies keep coming back
Fruit flies are tiny, about an eighth of an inch long, tan or light brown, and often have red eyes. They hover slowly around fruit and sinks. A female can lay hundreds of eggs on ripe fruit or other moist, fermenting food, and in a warm kitchen those eggs can turn into adults in about a week to 10 days.
So if you only swat or trap the adults, the next wave is already growing in the banana peel or the drain film. That is why the order matters so much. One soft potato left in the bin can keep a trap busy for weeks.
Step 1: Play detective and find the source
Start where you see the most flies, then work outward. In most kitchens, the culprit is one of the first three spots in the table above: the fruit bowl, the potato and onion bin, or the trash. One squashed grape at the bottom of the bowl is enough. Open the potato bag and sniff. A rotten potato or onion has a smell you will not miss, and it often hides under the good ones.
Next, check the trash can itself, not just the bag. Juice drips through and leaves a sticky film on the bottom and under the lid. Then look at the sink. A slimy film under the stopper is a perfect nursery.
The cup test for drains
Not sure if the drain is the problem? Before bed, tape a clear plastic cup upside down over the drain opening. If there are flies trapped inside in the morning, the drain is a breeding spot.
Step 2: Clean it up without harsh products
You do not need anything strong for this job. Hot water, dish soap and a bit of scrubbing do the work. Toss soft or split fruit, wash the bowl and move ripe bananas, tomatoes and peaches into the fridge for a week or two. Wipe the counters, backsplash and the spots under the toaster with hot, soapy water. Scrub the sink stopper, then scrub inside the drain with a stiff drain brush and flush with lots of hot tap water, once a day for a few days. Run the disposal with cold water and clean under its rubber flaps with an old toothbrush. Finally, take out the trash and compost even if they are not full, and wash the cans and the pail.
One safety note. Never mix drain cleaners with each other or with other products like bleach or vinegar, since some combinations give off dangerous fumes. If you have a slow drain that needs more than a brush and hot water, our guide on how to unclog a drain walks through safe options that will not wreck your pipes. And if the dishwasher has a funky smell at the bottom, the filter may be holding food scraps too, so a quick look at how to clean a dishwasher is worth it while you are in cleaning mode.
Step 3: Set traps for the flies that are left
The classic trap really is the best one. Pour about half an inch of apple cider vinegar into a small jar, glass or bowl. Add one drop of dish soap and stir gently. The soap breaks the surface of the vinegar, so a fly that lands sinks instead of walking away. Cover the top with plastic wrap held on with a rubber band and poke a few small holes with a toothpick. Or roll a sheet of paper into a cone with a small opening at the bottom and set it in the jar, point down.
Place the trap right where you see the most flies, like next to the fruit bowl or beside the sink. Two or three traps around the kitchen work faster than one. Swap in fresh vinegar every few days, and keep going until you see no flies for several days. Out of vinegar? A chunk of very ripe banana under the same cone works too; empty it outside every couple of days.
Fruit flies, drain flies or fungus gnats?
Three small flies show up in kitchens, and each needs a different fix.
Fruit flies have a tan body and often red eyes. They hover slowly around fruit, trash, compost and drains. The fix is to remove the food source and use a vinegar trap. Drain flies are fuzzy and gray with wings shaped like a tiny moth, and they tend to hop and flutter short distances rather than fly. They live in the slime inside sinks, tubs and floor drains, so the fix is scrubbing that gunk out. Fungus gnats are dark, thin and long-legged, a bit like a tiny mosquito, and they hang around potted plants. They breed in damp potting soil, so let the soil dry out between waterings and use sticky cards near the pots.
A worked example: a week in a busy kitchen
Say you have a family kitchen with a fruit bowl, a compost pail and a disposal, and you notice flies on a Monday. That evening you toss two soft bananas and a split peach, wash the bowl, put the rest of the ripe fruit in the fridge, empty and wash the compost pail and take out the trash. You set two vinegar traps, one by the bowl and one by the sink. On Tuesday you scrub the stopper and drain, flush with hot water and clean under the disposal flaps. By Thursday a few flies remain, which are the eggs already laid. You keep up the daily drain scrub, swap the vinegar on Friday, and by about two weeks out the kitchen is clear.
Fruit flies in winter and around the holidays
It feels odd to see fruit flies in December, but they hitch a ride in on produce from the store, and a warm kitchen lets them breed all year. Holiday fruit bowls, baking and fuller trash cans feed them well. If you are dressing up the kitchen for the season, our Christmas kitchen decor ideas are a fun place to start. Just keep any real fruit in your decor, like orange and apple centerpieces, fresh and checked every few days.
A bowl of real pears and grapes on a fall table is an open invitation after a few days, so consider faux fruit, pinecones or gourds. Our Thanksgiving table setting ideas include plenty of looks that do not need anything that can rot.
Mistakes that keep the flies around
The biggest mistake is trapping without cleaning. The second is forgetting the soap. Without that one drop, flies sip the vinegar and fly off again. The third is giving up after two days. Eggs that are already laid will keep hatching for a week or so, so a few flies on day three are expected.
The last one is spraying insect killer in the kitchen. It misses the eggs and puts chemicals near food, kids and pets. If you ever do use a product, read and follow its label exactly and keep it out of reach. For fruit flies, cleaning and traps simply work better.
Keeping fruit flies away for good
Prevention is mostly small habits. Keep ripe fruit in the fridge or buy only what you will eat in a few days, and rinse produce when you bring it home. Rinse jars before recycling, and empty the compost pail every day or two. Scrub the sink drains and the disposal once a week, wipe up spills right away, including under appliances, and swap sponges and dishcloths often so they can dry between uses. I like to add a weekly drain scrub to the same list as other small chores, and our home maintenance checklist is a handy place to keep it. A steamy wipe-out using how to clean a microwave clears splatters too.
If you keep an outdoor compost pile, set it well away from doors and windows, and turn it so fresh scraps get buried. When the finished compost is ready for garden beds, our mulch calculator helps you figure out how many cubic yards you need to cover a bed at the right depth.
Still seeing fruit flies after two weeks?
Look for a hidden source you have not found yet. A sticky spill under the fridge, a forgotten potato in the pantry, a cracked juice jar in a garage fridge or a damp spot under the sink are the usual suspects.
A musty smell under the sink or in a basement can point to damp spots that flies and other bugs love. Our guide to a musty basement smell walks through finding moisture, and the same damp spots can also draw silverfish, so see how to get rid of silverfish if you notice small silvery bugs too. If you are seeing droppings instead of flies, that is a different problem, and how to get rid of mice in the house covers it. You will find more free help and tools on our home page.
Quick answers about fruit flies
What gets rid of fruit flies fast?
Remove what they are breeding in first, like ripe fruit, a dirty drain or old trash. Then set a trap with about half an inch of apple cider vinegar and one drop of dish soap in a small jar. Most of the adults get caught in a day or two, and the rest fade over a week or two as the last eggs hatch.
Where do fruit flies come from?
They usually come in on fruit you bring home from the store, or fly in from outside through a door or a torn screen. Then they lay eggs on ripe fruit, food scraps, drains and trash. A female can lay hundreds of eggs, so a few flies can turn into a cloud in about a week.
How long does it take to get rid of fruit flies?
Usually about one to two weeks. Eggs and larvae already in the source keep hatching for a while, even after you clean. Keep cleaning and keep the traps fresh until you go several days in a row without seeing any. If they are still strong after two weeks, there is a hidden source to find.
Why isn't my fruit fly trap working?
The flies may be breeding somewhere more tempting than your trap, like a drain or a forgotten potato, so find and clean the source first. Make sure you added a drop of dish soap, which breaks the surface so they sink. Also place the trap right where the flies gather, and use fresh vinegar every few days.
Are there fruit flies in my drain?
They can breed in the food film inside drains and on stoppers. Tape a clear plastic cup upside down over the drain overnight. If flies are in it by morning, scrub the drain with a stiff brush and flush it with plenty of hot tap water once a day for a few days, and clean under the disposal flaps.
Why do I have fruit flies in winter?
They come in on produce from the store, and a warm kitchen lets them breed all year long. Holiday fruit bowls, baking, cider jugs and fuller trash cans give them plenty to eat in November and December. Keep ripe fruit in the fridge and take the trash out more often during the holidays.
Is it safe to spray bug killer for fruit flies?
I would skip it in the kitchen. Sprays do not reach the eggs in the source, and they leave chemicals near food, dishes and counters where kids and pets are. Cleaning plus a vinegar trap works better. If you do use any product, follow its label exactly and store it up high, out of reach.
