Fruit flies are attracted to the smell of fermentation, especially acetic acid (the compound in vinegar) and ethanol produced by ripening fruit. Killing them requires a two-part approach: traps to eliminate the adults you can see, and sanitation to destroy the breeding sites you can’t. A single female can lay up to 100 eggs per day, and the entire lifecycle from egg to adult takes just 10 to 12 days at room temperature, so speed matters.
Why Fruit Flies Find Your Kitchen
Fruit flies forage for microbes on overripe fruit, relying on their sense of smell to detect acetic acid, the chemical that accumulates as fruit ferments. Vinegar is the end product of that fermentation process, which is why a forgotten banana or a splash of wine draws them in so quickly. They’re also attracted to ethanol, the alcohol produced during early fermentation stages, so beer, wine, kombucha, and even damp mops can pull them toward your kitchen.
Once inside, they don’t just eat. They lay eggs directly on soft, fermenting surfaces: fruit bowls, compost bins, damp sponges, recycling bins with residue, and the thin layer of organic film that builds up inside sink drains. That slime layer inside your pipes is a particularly stubborn breeding ground because it’s out of sight and hard to clean.
Make Sure You’re Dealing With Fruit Flies
Before setting traps, confirm you actually have fruit flies and not one of their lookalikes. Fruit flies are small, tan or brownish, and have distinctive red eyes. Phorid flies look similar but lack the red eyes, have a humped back, and tend to run erratically across surfaces rather than fly, earning them the nickname “scuttle flies.” Drain flies are fuzzy and moth-like. Each type breeds in different places, so misidentifying them means your control strategy won’t target the right source.
The Best DIY Traps
The most reliable homemade trap uses apple cider vinegar and dish soap. Fill a jar with about a quarter cup of apple cider vinegar, then add a few drops of liquid dish soap. The vinegar mimics the fermentation smell that fruit flies can’t resist. The dish soap breaks the surface tension of the liquid, so when flies land on it, they sink and drown instead of standing on the surface.
You can increase the trap’s effectiveness with a few design tweaks:
- Punctured lid method: Screw on a lid and punch a few small holes with a nail. Flies enter but struggle to find their way back out.
- Plastic wrap method: Stretch plastic wrap over the jar, secure it with a rubber band, and poke a few small holes with a fork. Same principle, no lid needed.
- Paper cone method: Roll a piece of paper into a cone and set it point-down in the jar opening. The narrow end lets flies in but creates a barrier to escape.
- Wine bottle method: Leave a small amount of wine in the bottom of a bottle and add a few drops of dish soap. The narrow neck acts as a natural funnel trap with zero prep.
Place traps near the source of the problem: next to fruit bowls, near the sink, by the trash can. One trap in the wrong spot won’t do much. Two or three placed strategically around the kitchen will catch noticeably more flies within a day or two.
Why Traps Alone Won’t Solve the Problem
Traps kill adult flies, but they do nothing about eggs and larvae already developing in your drains, garbage disposal, or other moist organic buildup. With females producing up to 100 eggs daily and eggs hatching in roughly 24 hours, you’ll keep seeing new adults emerge even while your traps fill up. The only way to break the cycle is to eliminate breeding sites at the same time you’re trapping adults.
Cleaning Drains and Breeding Sites
The organic film inside kitchen drains is one of the most common breeding grounds people overlook. Standard cleaning doesn’t always reach it, and some common fixes actually backfire. Bleach won’t kill eggs effectively and can react with grease residues in a way that creates more organic material for larvae to feed on. It can also damage pipes and septic systems over time. Boiling water can help flush some buildup but risks warping PVC pipes.
Enzymatic or gel-based drain treatments work better because they cling to the inside of pipes and break down the organic film where flies lay their eggs. These products typically combine a detergent that dissolves the scum with ingredients that repel flies from returning. Pour them in at night when the drain won’t be used for several hours, giving the product time to work.
Beyond drains, do a thorough sweep of every potential breeding site. Throw out overripe fruit. Empty and rinse recycling bins. Clean under the fridge where produce juice may have dripped. Wash dish rags and sponges. Take out compost more frequently. Even a single wet rag shoved behind the sink can sustain a population.
Commercial Products That Work
If DIY traps and sanitation aren’t enough, commercial options fall into two categories: traps and insecticides.
Plug-in traps use UV light combined with a sticky surface to attract and capture flies passively. These are hands-off and work well as a supplement to vinegar traps, especially in kitchens where you don’t want open containers of liquid sitting out.
For insecticide sprays, look for products based on compounds derived from soil bacteria. These work as both contact and stomach poisons: they overstimulate the insect’s nervous system, causing muscle contractions and paralysis. Affected flies stop feeding within minutes and die within 48 hours. These products are effective against a broad range of insects while being relatively low-toxicity compared to older chemical sprays. Pyrethrin-based sprays offer a plant-derived alternative that kills on contact but breaks down quickly in sunlight.
Neither type of spray addresses eggs and larvae in drains, so pair any spray with drain treatment for a complete approach.
How Long It Takes to Clear an Infestation
With traps, drain treatment, and thorough sanitation running simultaneously, most people see a dramatic drop in fruit fly numbers within three to five days. But because the generation time is 10 to 12 days, you should keep traps active for at least two full weeks to catch any adults that emerge from eggs laid before you started cleaning. Refresh vinegar traps every few days as the bait loses potency, and run a second round of drain treatment about a week after the first.
Once the infestation is gone, prevention is straightforward: store ripe fruit in the refrigerator, rinse bottles and cans before recycling, keep drains clean, and take out kitchen waste regularly. Fruit flies enter through open windows, on grocery store produce, and through any gap they can find. You won’t keep every fly out, but without a fermentation source to breed on, the occasional stray won’t become an infestation.