How to Get Rid of Fruit Flies

Updated October 22, 202612 min read

In this guide19 sections
  1. 1Fruit flies at a glance
  2. 2How to get rid of fruit flies in your house, step by step
  3. 3Are they fruit flies, drain flies or fungus gnats?
  4. 4Why do fruit flies keep coming back?
  5. 5Where do fruit flies come from when there is no fruit?
  6. 6How do you get rid of fruit flies in 2 minutes?
  7. 7How do you get rid of fruit flies overnight?
  8. 8How do you make a fruit fly trap that works?
  9. 9How do you get rid of fruit flies without apple cider vinegar?
  10. 10How do you get rid of fruit flies naturally and quickly?
  11. 11How do you get rid of fruit flies in the drain?
  12. 12How do you get rid of fruit flies in plants?
  13. 13How do you get rid of fruit flies in the kitchen, bathroom or a bedroom?
  14. 14What is the best fruit fly killer?
  15. 15When should you call a pest pro or a plumber?
  16. 16Are fruit flies harmful?
  17. 17How do you stop fruit flies from coming back?
  18. 18Quick answers to common questions
  19. 19Is it hard to get rid of fruit flies for good?

Remove what they breed in, then trap the adults that are left. Traps alone fail because the flies you catch are only part of the problem: eggs and larvae are hiding in a drain, a trash can or a soft potato, and a new batch hatches every few days. Clean the source, set traps for about two weeks, and most kitchens are clear within that time.

Fruit flies at a glance

Question Short answer
What are they? Tiny tan flies, about 1/8 inch long, often with red eyes
What attracts them? Ripe fruit, fermenting liquids, wet garbage, drain film
Fastest way to cut numbers today Vacuum them up, then set vinegar traps tonight
Best long-term fix Find and clean the breeding spot
Time to clear a normal outbreak About 1 to 2 weeks
Do bleach and sprays solve it? No. They only remove the adults you can see
When to call a pro Still flying after 2 weeks of cleaning, or in several rooms

How to get rid of fruit flies in your house, step by step

Start with the source, then trap, then keep the kitchen dry and clean for two weeks. Doing the steps in this order matters, because a trap set next to an untouched breeding spot just keeps catching new flies forever.

Small fruit fly trap set near a kitchen hot spot
A two-week plan that ends the outbreak.
  1. Throw out the food they like. Toss overripe or bruised fruit, open juice and wine, and any soft potatoes or onions. Move ripe produce to the refrigerator.
  2. Check the wet spots. Look at the sink drain, the disposal, the trash and recycling bins, the mop bucket and the area under the fridge.
  3. Scrub, do not just spray. Fruit fly larvae live in a thin, sticky film. A brush and hot soapy water remove it. A spray does not.
  4. Set traps tonight. Put two or three near the places where you see the most flies.
  5. Take out the trash daily. Do this for the whole two weeks, and rinse cans and bottles before they go in the recycling.
  6. Keep going for a week after the last fly. Eggs you missed can still hatch.

Are they fruit flies, drain flies or fungus gnats?

Check the look and the location before you pick a fix. Fruit flies are tan with red eyes and hover over fruit and trash. Drain flies have fuzzy, moth-like wings and sit on the walls near sinks and tubs. Fungus gnats are slim, dark and mosquito-like, and they hang around houseplants. People often search for "fruit flies and gnats" because the three look alike at a glance.

Small tan fruit fly near fruit
Three look-alike flies and the fix for each.
Pest Looks like Usually found What works
Fruit fly Tan body, red eyes, round shape Fruit, trash, drains, spills Remove food and film, then vinegar traps
Drain fly Fuzzy gray wings, moth-like Walls near sinks, tubs, floor drains Scrub the drain pipe, keep it flowing
Fungus gnat Slim, dark, long legs Houseplant soil and pots Let the soil dry, add yellow sticky cards

A vinegar trap catches fruit flies well. It does little for gnats in a pot of soil, which is why the right ID saves you weeks.

Why do fruit flies keep coming back?

Because their life cycle is fast. A female lays eggs on fermenting food or wet film, the larvae hatch and feed there, and in warm kitchens a new adult can appear in roughly one to two weeks. A single female can lay hundreds of eggs over her lifetime, and estimates run as high as 400 to 500. Killing the flies you can see leaves the next generation waiting in the pipe or the bin.

Fruit flies near fermenting fruit
Egg to adult takes about one to two weeks.

That is why the plan runs for two weeks and not two days. Cooler rooms slow the cycle down, so a cold garage clears slower than a warm kitchen.

Where do fruit flies come from when there is no fruit?

From a breeding spot you have not looked at yet. Fruit flies lay eggs on any damp, fermenting residue, not only on ripe fruit. Eggs can also arrive on produce you bring home, and they are too small to see. A clean-looking kitchen can still hide a sticky drain, a sour sponge or a forgotten bag of potatoes.

Kitchen sink drain where fruit flies can breed
Nine places where fruit flies breed unseen.

Check them in the order shown. The drain, the disposal and the trash can cause most outbreaks. In the garage or basement, add old bottles, a compost pail and a wet floor drain.

How do you get rid of fruit flies in 2 minutes?

You cannot end a whole infestation in two minutes, but you can wipe out the flies in the room in that time. A vacuum is the fastest tool. A soap spray is the second.

  • Vacuum. Use a handheld vacuum or a hose attachment and suck the flies off the air, the counter and the window. Empty the canister or bag outside right away, since the flies can crawl back out.
  • Soap spray. Fill a spray bottle with water and a squirt of dish soap, about a teaspoon per cup. Spray the flies directly. The soap coats their wings and they drop. It is safe around people and pets when you keep it off the stove.
  • Rubbing alcohol. Some people spray 70% rubbing alcohol on flies, and it works quickly. It is flammable, so keep it away from the stove and any flame, keep it off food, and test a hidden spot first because it can mark some surfaces.

Then set a trap. A fast knockdown buys you an hour or two, not a solution, because the breeding spot is still producing flies.

How do you get rid of fruit flies overnight?

Set several traps at dusk, next to the busiest spots, and clean the likely source before you go to bed. Fruit flies fly to the smell of fermenting liquid, so a jar of vinegar near the fruit bowl or the sink often has dozens of flies by morning. How much you catch depends on how big the source is, and a big outbreak needs more than one night.

For the best overnight result:

  • Put the trap within a foot or two of where the flies gather.
  • Turn off or cover other food smells that compete with the bait.
  • Use two or three traps in different spots, not one in the middle of the room.
  • Clear the sink and counters first. A pile of dishes is a better bait than your trap.

How do you make a fruit fly trap that works?

Pour about half an inch of apple cider vinegar into a jar, add one or two drops of dish soap, and cover it with plastic wrap that has small holes poked in it. The vinegar smells like fermenting fruit, so flies go in. The soap breaks the surface of the liquid, so they sink instead of landing and flying out.

Jar trap with plastic wrap and apple cider vinegar bait
How a jar trap catches fruit flies.

A paper cone works too. Roll a sheet into a funnel, tape it, and drop it into the jar with the tip pointing down and a small opening at the bottom. Flies go in and cannot find the way back.

If your trap is not catching anything, check three things:

  • Too much soap. A big squirt covers the smell. Use a drop or two.
  • Distance. Flies cannot smell a trap across the room. Put it beside the problem.
  • Competition. A fruit bowl or open bottle nearby is a better lure. Remove it.

Some people add a pinch of sugar to the vinegar for extra scent. Vinegar alone is often enough, and "in 2 minutes" claims for vinegar are optimistic: expect some flies in the first hour and more overnight.

How do you get rid of fruit flies without apple cider vinegar?

Use anything that smells like fermenting fruit: a splash of red or white wine, a little flat beer, or a few chunks of overripe banana mashed with a spoon of water. Add a drop of dish soap and cover the container the same way as for a vinegar trap. These traps do not match the strength of apple cider vinegar every time, but they work well enough.

Bait How to use it Notes
Apple cider vinegar Half an inch in a jar, 1 or 2 drops of soap Usually the strongest
Red or white wine A splash in a glass or jar, plus soap Good when you have an open bottle
Flat beer A shallow cup, plus soap Works, but smells
Ripe fruit Mashed banana or apple with a little water, plus soap Works, usually less strongly than vinegar
Plain water, oil or fresh juice Not recommended Weak, because it does not ferment

White vinegar is a weak bait for most people. If that is all you have, add a small piece of fruit to it.

How do you get rid of fruit flies naturally and quickly?

Cleaning and traps are the natural fix, and they are also the quickest one that lasts. You do not need a chemical to end an outbreak. Remove food, scrub wet film, trap adults and keep the kitchen dry. A vacuum and a soap spray handle the flies you can see in the meantime.

A natural routine for the first week looks like this:

  1. Throw out or refrigerate all ripe produce.
  2. Scrub the drain and the bin with hot soapy water.
  3. Set two or three jar traps with vinegar or wine.
  4. Vacuum visible flies in the morning and evening.
  5. Take out the trash every day.

Skip scented oil sprays and candles. They may drive flies away for a while, but they do not remove the source.

How do you get rid of fruit flies in the drain?

Scrub the pipe with a stiff brush, then flush it with hot water. Larvae feed on the film that lines the inside of a drain, so liquid cleaners and bleach often skim past it. Drain flies and fruit flies both use this film, and the same cleaning fixes both. This covers kitchen sinks, bathroom sinks, tubs and floor drains.

Person scrubbing a kitchen drain pipe wall
Test the drain, then scrub the pipe wall.
  1. Do the tape test. Tape clear plastic wrap over the drain opening overnight. If flies are stuck under it in the morning, the breeding is in that drain.
  2. Scrub. Use a bottle brush or a drain brush on the pipe walls and the underside of the drain flange. Remove any slime you can reach.
  3. Flush. Pour very hot water down slowly. If your pipes are PVC or you are unsure, use the hottest tap water instead of boiling, since some plumbers advise against boiling water on plastic joints.
  4. Use an enzyme cleaner if needed. Enzyme drain products break down organic film. Follow the label, and use them overnight when the drain is not in use.
  5. Repeat for a week. Do this daily until the flies stop.

Bleach and ammonia do not clear the film, and mixing cleaners can release dangerous fumes. For a garbage disposal, scrub under the rubber flap with a brush and dish soap, and run cold water while it is on. If the flies keep coming from a drain after several rounds, ask a plumber to check for a slow drain, a dry trap or a leak.

How do you get rid of fruit flies in plants?

Most "fruit flies" in a plant pot are fungus gnats, and the fix is to let the soil dry. Their larvae live in constantly damp potting soil. Water only when the top inch or two is dry, and the cycle breaks in a few weeks. If rotting fruit, compost or coffee grounds are in the pot, remove them, since those can attract real fruit flies.

  • Let the soil dry. Water from the bottom, empty the saucer, and wait until the top inch or two is dry.
  • Use yellow sticky cards. Press them into the soil. They catch adults and show you how big the problem is.
  • Treat the soil with Bti. Soak a mosquito-dunk-style product in water and water the plants with it, following the label. It targets larvae and is considered safe for people and pets when used as directed.
  • Add a dry top layer. A half inch of coarse sand makes the soil surface less friendly for egg laying.
  • Repot if it is bad. Replace heavily infested soil with fresh, well-draining mix and wash the pot.

Expect three to four weeks of reduced watering before the gnats are gone. A vinegar trap does not help much for gnats in soil.

How do you get rid of fruit flies in the kitchen, bathroom or a bedroom?

Start with where the flies are, because the room hints at the source. The kitchen is mostly food and trash. The bathroom is mostly drains. A bedroom or living room usually means flies carried in on something or breeding in a plant or a forgotten glass.

Room Likely source First fix
Kitchen Produce, trash, sink drain, recycling Clear food, scrub drain, take out trash
Bathroom Sink and tub drains, floor drain Scrub the pipe, flush hot water
Sink area Drain film, wet sponges Replace the sponge, dry the basin
Bedroom or living room Plants, open drinks, flies drifting in Check pots and cups, set a trap
Basement or garage Floor drain, compost, old bottles Clean the drain, remove bottles

What is the best fruit fly killer?

The best killer is a clean source plus a trap, since sprays only kill the flies they touch. Store-bought fruit fly traps use a sweet bait and can work well in place of a jar. Aerosol insecticides labeled for flies knock down adults for a short time, but the breeding spot keeps making more.

If you use a store-bought product:

  • Read the label and follow it exactly, especially around food, pets and kids.
  • Do not spray over food, plates or prep surfaces.
  • Ventilate the room and keep pets out until it dries.
  • Treat it as a short-term fix, then go back to cleaning and traps.

When should you call a pest pro or a plumber?

Call for help when two weeks of real cleaning and trapping have not worked, or when flies appear in several rooms at once. A pest control company can look for hidden sources. A plumber can check a drain that keeps breeding flies, which can point to a clog, a dry trap or a leak. Large outbreaks in a restaurant-style kitchen, a rental or a house with a compost problem often need professional help.

Are fruit flies harmful?

Mostly they are a nuisance, not a danger. They do not bite. They can pick up germs from rotting food and garbage and then land on your food, so keep food covered and throw out anything soft that they were on. Fruit flies in your house do not mean it is dirty. A little ripe fruit and one damp drain are enough to start an outbreak.

How do you stop fruit flies from coming back?

Keep food covered, keep wet spots clean, and break the habit that fed them. These are the changes that matter most:

  • Refrigerate ripe fruit, or eat it quickly.
  • Wash produce when you bring it home, and then dry it.
  • Take out the trash and food scraps every day.
  • Rinse bottles and cans before recycling them.
  • Use a lid on the compost pail and empty it often.
  • Wring out sponges and dish rags, and replace sour ones.
  • Run the garbage disposal with cold water, then clean it weekly.
  • Scrub the drain once a week in hot weather.
  • Do not water houseplants until the soil is dry.

Fruit flies are most common in warm weather, so extra care in summer and early fall pays off.

Quick answers to common questions

How do you get rid of fruit flies in 2 minutes?

Vacuum the flies or spray them with soapy water, then set a vinegar trap. This clears the room quickly, but it does not remove the breeding spot.

How do you get rid of fruit flies overnight?

Set two or three vinegar or wine traps at dusk, close to where the flies gather, and clean the sink and trash first. Many are caught by morning.

What kills fruit flies instantly?

Soapy water sprayed directly on the fly stops it quickly, and rubbing alcohol works fast on surfaces that can handle it. Both only kill the flies they hit.

Where do fruit flies come from when there is no fruit?

Usually from a drain, a trash can, a sponge or a forgotten potato. Eggs can also arrive on groceries.

Are fruit flies harmful?

Rarely, but they can carry germs from rotting food onto your counters. Cover food and clean the source.

Keep reading: where maggots come from, how to get rid of gnats, how to get rid of ants and more pest control guides.

Is it hard to get rid of fruit flies for good?

Not if you find the source. To get rid of fruit flies for good, clean the drain and the bin, trap the adults for two weeks, and keep ripe food and wet residue out of the kitchen. Most outbreaks end within that window. If they do not, the source is hiding somewhere you have not checked, so look again before you buy another spray.

Keep reading