How Do You Get Rid of Fruit Flies for Good?

To get rid of fruit flies, you need to do two things at once: eliminate every breeding source and trap the adults already flying around. Removing fruit from the counter alone won’t solve it, because fruit flies also lay eggs inside drain buildup, garbage disposals, and any moist surface with organic residue. A single female can lay 50 to 75 eggs per day, and the entire life cycle from egg to adult takes as little as one week. That means a small problem becomes a major infestation fast, but it also means you can break the cycle in about two weeks if you’re thorough.

Make Sure They’re Actually Fruit Flies

Three tiny flying insects commonly show up in kitchens and get lumped together, but each one breeds in a different place. Treating the wrong bug means wasting time on the wrong source.

  • Fruit flies are about ⅛ inch long with striped abdomens and either red or dark eyes. They look like miniature house flies and hover around fruit bowls, trash cans, and sink drains. They’re attracted to ripening fruit, sugary liquids, and alcohol.
  • Drain flies are light gray or tan with fuzzy, moth-like wings. They stick close to drains and thrive in dark, damp conditions. If the bugs are hairy and hang out on bathroom walls, you likely have drain flies, not fruit flies.
  • Fungus gnats look more like tiny mosquitoes, with dark bodies and long legs. They hover near potted plants and rarely stray far from moist soil, which is where their larvae develop.

If the bugs are clustering around your fruit bowl, recycling bin, or kitchen sink, you’re dealing with fruit flies. Everything below targets them specifically.

Remove Every Breeding Source

Traps alone won’t fix a fruit fly problem. Adults will keep emerging from eggs already laid in your home, and a female produces roughly 400 to 500 eggs over a 10-day stretch. You have to cut off the supply.

Start with the obvious: any fruit or vegetables sitting on the counter. Ripe bananas, tomatoes, onions, and potatoes are common culprits. Move produce into the refrigerator or into sealed containers. Toss anything that’s soft, bruised, or starting to ferment. Empty your kitchen trash can and recycling bin completely, then wipe the insides with soap and water. Fruit flies will breed on the sticky residue left by a single juice box or beer can at the bottom of a bin.

Next, check the less obvious spots. Wet mops or sponges, a forgotten compost container, a splash of smoothie behind the blender, a damp rag under the sink. Fruit flies need very little organic material to breed. Clean kitchen surfaces thoroughly, especially anywhere food residue tends to accumulate.

Clean Your Drains

This is the step most people skip, and it’s why infestations keep coming back. Fruit flies lay eggs in the slimy organic film that builds up inside kitchen drains and garbage disposals. You can scrub every counter spotless and still have flies hatching from inside your pipes.

Standard sprays and traps kill adult flies but do nothing to the eggs and larvae living in that drain buildup. You need to physically remove or dissolve the film. A few options work:

A gel-based drain treatment designed for fruit flies clings to the inside walls of the pipe and strips away the organic film where eggs are laid. Look for products labeled as drain and fruit fly eliminators. Many use a combination of scum-fighting detergent and essential oils like peppermint. They’re generally safe for septic systems and garbage disposals. The advantage of a thick gel over plain water is coverage: water runs straight down the center of the pipe and can’t coat every surface, leaving patches of biofilm (and eggs) untouched.

Boiling water is a free alternative, but it has limits. It can kill larvae on contact, yet it flows through too quickly to strip away the film entirely. It also poses a real risk to PVC pipes, which are only rated for about 140°F. If your plumbing is PVC, which is common in most homes, repeated boiling water can soften joints and cause leaks. A long-handled drain brush combined with dish soap is a safer mechanical option for scrubbing the top portion of the drain.

Set Up Vinegar Traps

While you’re eliminating breeding sources, traps catch the adults that are already flying around. The simplest and most effective version uses apple cider vinegar and dish soap.

Fill a small jar or cup with about ¼ cup of apple cider vinegar. Add a few drops of liquid dish soap and stir gently. The vinegar smells like fermenting fruit, which is irresistible to fruit flies. The dish soap breaks the surface tension of the liquid so that when the flies land, their wings get wet and they sink instead of sitting on top.

For a more contained trap, cover the jar with a lid and punch a few small holes in it with a nail. The flies follow the scent through the holes but have difficulty finding their way back out. Place traps near the worst hotspots: next to the sink, by the trash can, near the fruit bowl. Two or three traps in different spots work better than one.

Red wine works the same way. If you have an almost-empty bottle, leave it out with the neck exposed. Fruit flies are drawn to the fermenting sugars and get trapped inside.

Commercial Options That Work

If you prefer something off the shelf, plant-based sprays using clove oil, rosemary oil, or peppermint oil kill fruit flies on contact and are safe to use on food-prep surfaces. These ingredients are EPA 25(b) exempt, meaning they’re classified as minimum-risk pesticides. Products using rosemary and cornmint essential oils are widely available at grocery stores.

Pyrethrin-based sprays, derived from chrysanthemum flowers, paralyze the flies’ nervous systems on contact and knock down populations quickly. They shouldn’t be sprayed directly on food, but they’re effective for treating areas around trash cans, windowsills, and other landing spots.

Sticky traps shaped like fruit or placed near problem areas catch flies passively. They won’t solve an infestation on their own, but they reduce adult numbers while your source-elimination work takes effect.

How Long Until They’re Gone

Once you’ve removed all food sources and cleaned the drains, expect the remaining adult flies to die off naturally within about two weeks. That timeline accounts for any eggs or larvae already present completing their development and emerging as adults with nothing left to eat or breed on. At 75°F (a typical indoor temperature), the full life cycle from egg to adult takes roughly 10 days, so two weeks gives you a comfortable buffer.

During that window, keep your traps out and refreshed every few days. Continue storing produce in the fridge and taking out kitchen trash daily. If you’re still seeing flies after two full weeks of strict source removal, there’s a breeding site you haven’t found. Recheck drains, the garbage disposal splash guard (the rubber flaps collect grime underneath), and any hidden spots where moisture and organic material meet. A forgotten potato in a pantry or a juice spill under an appliance is enough to keep the cycle going.

Preventing the Next Infestation

Fruit flies enter homes on produce from the grocery store. Their eggs are often already on the skin of fruit when you buy it. Washing produce as soon as you bring it home reduces the chance of eggs hatching on your counter. Store ripe fruit in the refrigerator rather than in a bowl, especially during warm months when fruit flies are most active.

Keep drains running clean by flushing your kitchen sink and disposal weekly with a brush or enzyme-based cleaner. Rinse cans and bottles before putting them in the recycling bin. Take out compost and trash before it starts to ferment. These small habits remove the conditions fruit flies need to breed, and they’re far easier than fighting an established infestation.