How to Get Rid of Fruit Flies
Trap fruit flies with apple cider vinegar, find and clean out where they breed, and keep them from coming back.
You buy bananas on Monday. By Wednesday, there are tiny flies hovering around them. By Friday, they are everywhere. In the kitchen, the bathroom, circling your wine glass. Fruit flies multiply absurdly fast.
Fruit flies lay their eggs on fermenting food, and Colorado State University Extension says the eggs hatch within 1 to 2 days and the whole life cycle can be finished in 8 days at 85°F. This is why a small problem on Monday becomes an infestation by the weekend. Once a few are in, they breed inside your home, often from eggs that came in on produce.
The solution requires two things at the same time. Kill the existing adults with traps, and eliminate the breeding source so no new ones hatch. Skip either step and they keep coming back.
Apple cider vinegar, dish soap, and a small jar or bowl for traps. Plastic wrap if you want the funnel-style trap in the FAQs. A thorough cleaning of your kitchen takes care of the rest.
Set up apple cider vinegar traps immediately
Pour about half an inch of apple cider vinegar into a small jar, glass, or bowl. Add 2 to 3 drops of dish soap and stir gently. The vinegar attracts fruit flies because it smells like fermenting fruit, which is what they seek for laying eggs. The dish soap breaks the surface tension of the liquid so the flies cannot land on the surface and fly away. Instead, they sink and drown. Place 2 to 3 of these traps around your kitchen, especially near the fruit bowl, sink, and trash can. Replace the vinegar every 2 to 3 days or when it fills with flies.
Find and eliminate the breeding source
This is the step that actually solves the problem. Traps catch adults, but the source keeps producing new ones. Fruit flies breed on any moist, fermenting organic material. Check these locations: overripe fruit on the counter, the kitchen trash can (especially if it has food waste), the garbage disposal and drain (organic residue coats the inside), recycling bins with unwashed bottles or cans, damp mops or sponges left out, spilled juice or wine behind appliances, and compost bins without tight lids. Remove or clean every source you find.
Good to know: The garbage disposal is an easy breeding ground to overlook. Run it with hot water and dish soap for 30 seconds, which is the part that cuts the grease. Then pour half a cup of baking soda followed by half a cup of white vinegar down the drain, let it fizz for 10 minutes, and flush with hot water. The fizz is an acid and a base neutralizing each other into salty water and carbon dioxide gas, so treat it as a loosener. The soap and the flush are what actually clear the film the flies lay their eggs on.
Store all fruit properly
Move ripe and ripening fruit into the refrigerator, where the flies cannot get at it. Ripening bananas, peaches, tomatoes, avocados, and melons all draw them. If you prefer fruit at room temperature, use a mesh fruit cover or a sealed container with ventilation holes too small for flies. Wash fruit when you bring it home from the store. Fruit fly eggs are often already on the surface of produce when you buy it. A rinse with water and a gentle scrub removes them before they hatch in your kitchen.
Clean every drain
Even if you do not see flies near the drain, clean it anyway. Organic residue inside drain pipes is a common breeding ground that is invisible from above. Pour boiling water slowly down each kitchen and bathroom drain, or very hot tap water if your drain pipes are plastic (white PVC or black ABS). Both are rated to a maximum operating temperature of 140°F, and boiling water is 212°F. Follow with the baking soda and vinegar treatment described earlier. For drains you suspect are a major source, use a drain brush (a long, thin brush designed for pipe interiors) to physically scrub the inside walls of the drain opening. Do not use bleach as a first resort. It can kill some larvae but does not remove the organic film they live in.
Take out trash daily and clean the can
During an active fruit fly infestation, take out the kitchen trash every evening. Wash the inside of the trash can with hot soapy water once a week. The residue at the bottom of a trash can, especially under the bag, is a prime breeding spot. Use trash bags that fit properly so waste does not leak below the bag. If your trash can does not have a lid, get one.
Prevent future infestations
Once the current problem is resolved, a few habits prevent recurrence. Eat or refrigerate ripe fruit promptly. Rinse produce when you bring it home. Take trash out daily when it contains food waste. Run the garbage disposal with water every time you use it and clean it weekly. Rinse recyclables before putting them in the bin. Wipe down counters after food preparation. Together they leave the flies nothing to lay eggs on.
With traps in place and the breeding source removed, the number of flies in the air starts dropping as the trap fills. The trap will continue catching adults for several days as the remaining eggs hatch, but without a food source, the new adults head straight for the trap. Colorado State University Extension says numbers should drop within a few days and the infestation can end in about 2 weeks, once the last adults die. If you see no drop after a few days, or fruit flies are still turning up after 2 weeks, you have an undiscovered breeding source. Check the areas listed in the steps above, especially drains and garbage disposal splash guards. Something is fermenting somewhere.
Questions we get asked about this
Answers from experience, not a textbook.
Apple cider vinegar works because it smells like fermenting fruit, which is exactly what fruit flies are looking for. White vinegar has a sharp, acetic smell that does not attract them as effectively. If you do not have apple cider vinegar, red wine or a piece of overripe fruit in the bottom of a jar with a plastic wrap funnel also works. The key is the fermentation scent.
Fruit flies are small (about 1/8 inch), tan or brownish with distinctive red eyes (visible if you look closely). They hover around fruit, drains, and fermented substances. Fungus gnats are darker (black or dark gray), slightly more slender, and hover around potted plants and moist soil. Drain flies are fuzzy, moth-like, and sit on bathroom walls near drains. The trap and elimination method differs slightly for each type, and our guide on how to get rid of gnats covers the potted-plant kind.
Fruit flies can carry bacteria from rotting food to clean surfaces, including E. coli and Salmonella. While the risk of illness from fruit flies specifically is low, they are an indicator that organic material is decaying somewhere in your kitchen, which itself is a hygiene concern. Eliminate them for cleanliness rather than fear of disease.
Commercial fruit fly traps (like Terro and BEAPCO brands) use similar principles to the vinegar trap but with specialized attractants. They are convenient if you do not want to make your own. However, they cost $5 to $10 per pack versus pennies for a homemade vinegar trap. The key is using traps in combination with source elimination, not traps alone.
Check the breeding sources that are easiest to overlook, starting with the garbage disposal splash guard (the rubber flap at the drain opening, which collects food debris on its underside), the drip tray under the refrigerator, a forgotten potato or onion in a pantry bin, an empty wine or beer bottle in a recycling bin, or mop water left in a bucket. Check each of these. Something organic is fermenting somewhere you have not found yet.
Pest Control Pro
How to Get Rid of Ants
How to Get Rid of Fruit Flies
← you’re hereHow to Get Rid of Gnats
How to Get Rid of Mice
How to Get Rid of Roaches