Home & Cleaning 6 min read Easy 6 steps

How to Get Rid of Fruit Flies

Trap fruit flies, eliminate their breeding source, and prevent them from coming back. The complete method that works in 24 to 48 hours.

Published · Last updated
Clean kitchen counter with fresh fruit in a bowl

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.

A single female fruit fly can lay up to 500 eggs in her lifetime, and those eggs hatch within 24 to 30 hours. The entire lifecycle from egg to reproducing adult takes just 8 to 10 days. This is why a small problem on Monday becomes an infestation by the weekend. They are not coming from outside. They are breeding inside your home.

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.

What you’ll need

Apple cider vinegar, dish soap, and a small jar or bowl for traps. Plastic wrap if you prefer the covered trap method. A thorough cleaning of your kitchen takes care of the rest.

1

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.

2

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 in order of likelihood. Overripe fruit on the counter, which is where to look first. 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. 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.

3

Store all fruit properly

Move ripe and ripening fruit into the refrigerator. Fruit flies cannot reproduce in cold temperatures. Bananas, peaches, tomatoes, avocados, and melons are the biggest attractants. If you prefer fruit at room temperature, use a mesh fruit cover or a sealed container with ventilation holes too small for flies (available at kitchen stores for under $10). 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.

4

Clean drains and garbage disposal

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 PVC, which is rated to a maximum operating temperature of 140°F against boiling water at 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.

5

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. An open trash can is an open invitation.

6

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. These are small habits individually, but together they remove every condition fruit flies need to breed.

With traps in place and the breeding source removed, you should see a dramatic reduction within 24 to 48 hours. 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. The entire infestation should be gone within a week. If fruit flies persist beyond that, 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.

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) work well. They 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, and they are not more effective. Either works fine. The key is using traps in combination with source elimination, not traps alone.

The most commonly missed breeding sources are 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.

Like this?

We write one of these every week.

Subscribe for one useful thing a week. Read it over coffee, skip the rest.