HowCompass to do anything… Browse guides
HowCompass is where practical, editor-reviewed how-to guides come together. Learn how we write. Practical guides, reviewed before publishing. How we write.
Home and garden · Step-by-step guide

How to Get Rid of Fruit Flies: 20 Steps That Actually Work

Fruit flies are not a cleaning failure. They are a ten-day life cycle running in the smallest wet corners of your kitchen. This guide removes the source first, then the adults, then the conditions that invite them back.

A woman in a linen apron holding a bowl of ripe peaches beside an open kitchen window, with tiny fruit flies circling the fruit
The bowl is the bait; the bin, the drain and the recycling caddy are the nursery. Illustration: AI-generated for HowCompass.

The short answer

The short version: find every wet, sugary place where they are laying eggs — overripe fruit, the kitchen bin, the recycling caddy, the drain, the dishwasher filter and any forgotten bottle. Remove or seal those sources today, then set vinegar-and-soap traps at counter height and keep them there for three weeks. Clean drains with an enzyme cleaner rather than bleach, take food waste out every night, and wash the bin itself once a week. Adults live about a month and a generation takes eight to ten days at room temperature, so the traps must stay out long enough to catch the next wave. Expect a real improvement in four days and an empty kitchen in about three weeks.

Generation time8–10 days at 25°C
Adult lifespanAbout 30–50 days
Eggs per femaleUp to 500
Trap duration21 days minimum
Kitchen reset2 minutes nightly
Deep cleanOnce a week
Contents · 20 steps
  1. Diagnose
    1. Confirm they are fruit flies, not drain flies
    2. Walk the kitchen and list every breeding site
    3. Understand the ten-day life cycle
    4. Set a three-week deadline and a daily habit
  2. Remove
    1. Move ripe fruit out of the open
    2. Take food waste out every night
    3. Scrub the bin and the recycling caddy
    4. Clean the drain without bleach
    5. Clear bottles, cans and the compost
    6. Clean the appliance corners that stay damp
  3. Trap
    1. Build a vinegar trap that actually works
    2. Place traps where they actually catch
    3. Add a yeast trap for a heavy infestation
    4. Use sticky strips as a monitor, not a solution
  4. Prevent
    1. Stop the myths that waste a week
    2. Store fruit so it stops attracting them
    3. Seal the waste chain
    4. Run a two-minute kitchen reset
  5. Verify
    1. Protect plants, pet food and open windows
    2. Re-check on day 21 and know when to escalate

Almost every fruit fly guide starts with a jar of vinegar. That is the easy half. A trap catches the adults that are already flying; it does nothing about the eggs laid in the bin liner, the recycling residue or the biofilm inside the drain. Kill only the adults and the next generation emerges in a week, which is why people buy traps, catch hundreds of flies, and still have flies a month later.

This guide works in the opposite order. First you identify what you are dealing with — fruit flies, drain flies and fungus gnats look similar and need different fixes. Then you remove the breeding sites, clean the wet places properly, and only then set traps. The last section is prevention, because a kitchen that produced one generation will produce another unless the conditions change.

The whole job takes about an hour on the first day, two minutes a night for three weeks, and one weekly bin wash. It is the same principle as our deep cleaning guide: work from the source outward, not from the visible mess inward. If you are already changing your kitchen routines, pair this with meal prep for the week so produce is stored before it turns.

Where they breed, and what to fix first
Overripe fruitThe classic source · bananas, peaches, grapes, tomatoes · move to the fridge or eat
Kitchen binWet food and a warm liner · food waste out nightly, bin washed weekly
Recycling caddySweet residue in bottles and cans · rinse, drain, keep dry
DrainsOrganic film and standing water · brush and enzyme cleaner, not bleach
AppliancesDishwasher filter, fridge drip tray, mop bucket · clean the hidden wet parts
Compost and plantsOpen scraps, soggy soil · seal the container, let soil dry between waterings

Fix the top three rows before you buy a trap. In a normal kitchen they account for most of the population, and the remaining rows are what keep a small problem alive after the obvious fruit is gone.

Phase 1

Diagnose

Identify the fly and find the nursery. Four steps: confirm the species, trace every wet and sugary site, understand the ten-day cycle, and put a realistic three-week deadline on the job. This is the part most people skip, and it is why the problem returns.

Confirm they are fruit flies, not drain flies

A woman examining tiny flies above a bowl of pears with a magnifying glass in a European kitchen
Fruit flies hover around ripe fruit. Drain flies sit on the drain and look furry.

A five-second identification test

Fruit flies (Drosophila, also called vinegar flies) are small, usually 2–3 mm, with red or dark eyes and a tan-to-brown body. They hover in lazy circles above ripe fruit, land on a glass of wine, and gather on the rim of the bin. If that is what you have, this guide applies.

Two lookalikes need a different plan. Drain flies are fuzzy and moth-like, hold their wings in a heart shape, and rest on the inside of the drain or the shower wall; their larvae live in drain slime. Fungus gnats are thin and mosquito-like, live around overwatered houseplants, and fly in a stop-start pattern near the soil. A drain fly problem will survive every fruit trap you set.

Look at where they land before you look at the fly. Fruit, wine, vinegar and the bin mean fruit flies. The sink, shower or floor drain means drain flies. A plant pot means fungus gnats. If you have all three, treat the fruit-fly source first and read step 8 for the drain.

Do this

Watch where the flies land for one minute. Fruit and bin means fruit flies; drain or plant soil means a different species and a different source.

Walk the kitchen and list every breeding site

A woman with a notebook inspecting the corner of a kitchen bin and a recycling caddy in a European kitchen
Write the list before you clean. The source is usually behind something.

Follow the moisture and the sugar

Take a notebook and walk the room in this order: fruit bowl, bin, recycling, sink and drain, dishwasher, fridge, compost, plants, pet bowls. At each stop ask two questions: is there sugar here? and is there standing water or damp organic matter? A yes to either is a potential nursery.

Open things. Lift the bin liner and look at the base of the container. Pull the recycling caddy out from under the sink and look at the residue in the bottom. Check the fridge drawer where a cucumber turned soft, the drip tray under the vegetable crisper, and the filter at the bottom of the dishwasher. A single forgotten bottle of beer or a bag of potatoes can hold a generation.

Rank the sites A, B or C. A means you can see the source and fix it today. B means it is hidden but reachable, such as the dishwasher filter. C means it is structural, such as a leaking pipe or a compost bin outside. Fix the A sites first; they are usually the majority of the problem.

Do this

Write every sugar or moisture site in the kitchen, then mark each A, B or C. Fix all A sites before you set a single trap.

Understand the ten-day life cycle

A man and a woman looking at a hand-drawn life cycle chart pinned beside a kitchen shelf in a European flat
Egg to adult in about a week. That is why traps must stay out.

Why killing the adults is not enough

At around 25°C, a fruit fly goes from egg to adult in roughly eight to ten days: eggs hatch within about 24 hours, larvae feed for four to five days, and pupae take another four to six. A female can lay several hundred eggs in her life, usually in batches on fermenting fruit or wet organic film.

The practical consequence is simple. If you remove the source today but stop trapping on day four, you catch the current adults and miss the generation that hatches on day eight. This is why the standard advice is to keep traps out for at least three weeks, and why a sudden second wave around day ten does not mean the cleaning failed.

Temperature matters. A cool kitchen slows the cycle; a warm one speeds it up. In summer, or above a warm dishwasher, assume the fast end of the range. The adult lifespan is about a month, so the last survivors can outlive a short campaign even after the breeding sites are gone.

Do this

Mark day 0, day 10 and day 21 on the calendar. Expect a small second wave around day 10; it is the cycle, not a failure.

Set a three-week deadline and a daily habit

A woman marking three dates on a paper calendar on a kitchen wall in a European apartment
Day 0 clean, day 10 check, day 21 decide. Write it down.

One calendar block, three checkpoints

Give the job a finish line. Day 0 is the deep clean and the first traps. Day 10 is a check for the second generation. Day 21 is the decision point: if the kitchen is clear, move to prevention only; if it is not, you have an unidentified source and should repeat the audit in step 2.

Put the daily habit on the same hook as something you already do. Taking the food waste out when you lock the door, or wiping the counter before you go to bed, takes two minutes and is the single most reliable difference between a one-week problem and a two-month one. A reminder on your phone for 21 nights is cheap insurance.

Do not plan a weekly deep clean instead of a daily reset. Weekly cleaning removes what accumulated; the nightly reset removes the fresh sugar and moisture that a female needs tonight. You need both, but the small one is what breaks the cycle.

Do this

Book a 60-minute clean today, a day-10 check and a day-21 review. Add a two-minute nightly reminder for 21 days.

Phase 2

Remove

Take away the places they lay eggs. Six steps through the kitchen: fruit, bin, recycling, drains, bottles, and the appliance corners that stay damp. Nothing here is decorative. Each step removes a generation's worth of eggs.

Move ripe fruit out of the open

A woman placing a bowl of ripe fruit into a refrigerator while a man wipes the kitchen counter behind her
Ripe fruit on a counter is a landing pad. Put it away for three weeks.

The fridge is a temporary quarantine

For the next three weeks, treat the fruit bowl as a trap rather than a display. Put ripe bananas, peaches, grapes, tomatoes and melons in the fridge, and keep only firm, unripe fruit on the counter. A bowl of overripe fruit can produce hundreds of flies on its own, and the skin is where they lay.

Check every piece daily. One soft peach at the bottom of the bowl is enough to restart the cycle, and it is usually hidden under the good fruit. Move it to the bin outside or eat it; do not put it in the kitchen bin, where it becomes the next nursery.

Wipe the bowl and the counter underneath it. Fruit juice dries to a film that is invisible in normal light and still attractive to flies. A damp cloth with warm water is enough; save the disinfectant for the bin and the drain, where it actually matters.

Do this

Move all ripe fruit to the fridge for 21 days, check the bowl every morning, and wipe the counter and bowl with warm water.

Take food waste out every night

A man tying a kitchen bin liner and carrying it toward the door of a European apartment at dusk
Nightly, not when it is full. The liner is warm and wet.

The bin is the nursery

A kitchen bin with food waste is a warm, humid incubator. Even a liner changed every two days gives a female two days to lay. Switch to daily removal for the next three weeks, ideally after the last meal, and tie the bag before you carry it.

Keep the bin lid closed between uses. An open bin is an invitation, and the flies do not need much of a gap. If your bin has no lid, use a lidded caddy on the counter and empty it into the main bin every night.

Do not leave a full bag beside the door overnight "for the morning". That is the same food waste in a thinner plastic, and it is often the source people cannot find because it is not technically in the kitchen. Take it to the outside bin or the collection point in the same trip.

Do this

Take the food waste out after the last meal every night for 21 days, with the lid closed between uses. No bags left by the door.

Scrub the bin and the recycling caddy

A woman scrubbing the inside of a kitchen bin with a stiff brush and warm soapy water in a European kitchen
The residue on the base is what keeps the cycle alive.

Wash the container, not just the bag

Once a week, take the bin and the recycling caddy outside or into the shower, and wash the container itself with hot water and a stiff brush. Pay attention to the base, the rim and the lid hinge, where juice collects and dries into a film. Replace the liner only after the container is dry.

Use ordinary washing-up liquid, not a bleach pour. The aim is to remove the organic film that larvae feed on, and mechanical scrubbing does that better than any spray. If the bin has a removable inner bucket, wash both parts separately and let them dry fully before reassembly.

Dry the container with a cloth or leave it in the sun for ten minutes. A wet bin recreated the exact conditions you just removed. This is also the moment to check for a cracked base or a missing lid, both of which turn a clean bin back into a nursery within a day.

Do this

Wash the bin and recycling caddy with hot soapy water and a brush once a week, dry them fully, and check for cracks or a missing lid.

Clean the drain without bleach

A woman pouring an enzyme drain cleaner into a kitchen sink drain in a European apartment
Brush the walls of the drain, then let the enzyme work overnight.

Enzyme cleaner beats a bleach pour

Kitchen drains collect a film of fat, soap and food particles, and that film is a food source for fly larvae. Start mechanically: remove the plug or basket, brush the visible walls with a stiff nylon brush, and pull out any hair or food debris you can reach. Then apply an enzymatic drain cleaner according to the label and leave it overnight, when the drain is not in use.

Bleach feels decisive but it is a poor fit for this job. It reacts with the surface film rather than digesting it, it can damage older pipes and seals, and it does not reliably reach the larvae behind the overflow. A bleach pour can also mask the problem for a week while the biofilm rebuilds.

If the drain is slow, fix the slow drain first. Standing water in a sink trap is a permanent wet site, and no amount of trapping will beat a drain that never empties. For a shower or floor drain with fuzzy, moth-like flies, treat it as a drain-fly problem and repeat this step weekly until the flies stop.

Do this

Brush the drain walls, apply an enzyme cleaner overnight, and fix any slow drain. Do not use bleach as the primary treatment.

Clear bottles, cans and the compost

A woman rinsing glass bottles and placing them in a recycling crate in a European kitchen
A teaspoon of sweet residue is enough for a batch of eggs.

Rinse before you recycle

Bottles, cans and jars with juice, beer, wine or syrup are classic hidden sources. Rinse each container as you finish it, shake out the water, and keep the recycling caddy dry. A caddy that is rinsed once a week but holds wet, sugary containers all week is still a breeding site.

Check the places bottles accumulate: the bottom of the recycling box, the back of the fridge, the crate by the door, and any bag of returns waiting for the shop. A single forgotten beer bottle can keep a small population going for weeks, which is exactly the "I cleaned everything and they came back" pattern.

If you compost indoors, seal the container and empty it outside every two days. If you freeze scraps, use a lidded box and wipe the outside. Outdoor compost is fine, but keep it at least a few metres from the kitchen door and turn it regularly so it does not become an outdoor reservoir.

Do this

Rinse every bottle, can and jar before recycling, keep the caddy dry, and seal or freeze indoor compost. Check the back of the fridge for forgotten bottles.

Clean the appliance corners that stay damp

A woman cleaning the filter of a dishwasher with a small brush in a European kitchen
Dishwasher filter, fridge drip tray, mop bucket. Three places people forget.

The hidden wet places

Four appliance corners account for a surprising share of stubborn infestations. The dishwasher filter collects food and stays warm; remove it, rinse it under the tap, and scrub the sump with a brush. The fridge drip tray under the vegetable drawer collects juice; wipe it and dry it. The mop bucket and the cleaning cloths stay damp for days; empty and dry them after use.

Also check the washing machine detergent drawer, the coffee machine drip tray, and any pet water bowl that sits in a warm corner. The common factor is a small amount of organic matter that never fully dries. If a surface stays damp for more than a day, it belongs on your weekly list.

Run the dishwasher on a hot cycle with a cleaning tablet once, then keep the filter clean weekly. For the fridge, a wipe with warm soapy water is enough; avoid strong bleach inside a food space, and rinse thoroughly if you use a sanitising spray.

Do this

Clean the dishwasher filter, fridge drip tray, mop bucket and cloths today. Add the filter and drip tray to the weekly wash.

Phase 3

Trap

Catch the adults that are already flying. Four steps to build a trap that works, place it correctly, scale it for a heavy infestation, and use sticky strips as a monitor rather than a substitute for cleaning.

Build a vinegar trap that actually works

A woman setting a glass jar filled with amber vinegar beside a bowl of apples in a European kitchen
Apple cider vinegar, a drop of soap, and a jar they can enter but not easily leave.

Cider vinegar, soap, and a narrow mouth

Mix about 200 ml of apple cider vinegar with a teaspoon of sugar and two drops of liquid dish soap in a glass jar or a small bowl. The vinegar mimics fermenting fruit, the sugar adds attraction, and the soap breaks the surface tension so the flies sink instead of standing on it.

Use a jar with a narrow mouth, or cover a wider bowl with a lid that has a small hole. Flies are attracted to the smell, enter through the opening, and then cannot find their way out. A plain open bowl works, but it dries out faster and catches fewer flies per day.

Refresh the trap every three to four days. Once it contains flies, the vinegar is diluted and the surface is covered; an old trap is a museum, not a tool. Pour the contents down the drain, rinse the jar, and make a fresh batch. Do not add wine "for extra attraction" unless you also keep the soap; wine alone is a shallow, easy exit.

Do this

Make a jar with 200 ml cider vinegar, a teaspoon of sugar and two drops of soap. Refresh it every three to four days.

Place traps where they actually catch

A woman placing a small vinegar jar on a kitchen counter near a fruit bowl and bin in a European apartment
Counter height, near the source, out of the direct window light.

Height, light and the flight path

Put traps at counter height, within about a metre of the fruit bowl, the bin or the recycling caddy. Fruit flies cruise low and around the source; a trap on a high shelf or on the floor catches a fraction of what a counter-level trap does.

Place one trap per active zone, not one per room. A kitchen with a fruit counter, a bin and a recycling corner usually needs three. If the flies are concentrated around a particular shelf or a pet bowl, put the trap beside it rather than in the middle of the room.

Keep traps out of direct sunlight and away from a strong fan. Heat degrades the bait and a draught scatters the scent plume. If you have a window open, put the trap between the source and the window, so flies heading for the light meet the trap first.

Do this

Place one trap at counter height in each active zone: fruit, bin, recycling. Keep them shaded, still, and close to the source.

Add a yeast trap for a heavy infestation

A woman mixing a yeast and sugar bait in a glass jar on a European kitchen counter
Yeast and sugar produce the carbon dioxide that pulls them in from across the room.

When one jar is not enough

A vinegar trap is a local tool. For a heavy infestation, add a yeast trap: one teaspoon of active dry yeast, one teaspoon of sugar and about 250 ml of warm water in a jar, with a drop of soap. The yeast ferments and releases carbon dioxide, which is a strong long-range attractant.

Set the yeast trap in the room with the most flies, not in the cleanest room. Change it every two days, because the fermentation slows and the trap becomes a breeding site if it is left too long. Keep it away from food preparation surfaces and label it so nobody drinks it.

Do not use both a yeast trap and a vinegar trap in the same square metre; they compete rather than combine. Use the yeast trap as the wide net and the vinegar jars as the local checkpoints near each source. Once the count drops below a few a day, retire the yeast trap and keep the vinegar jars.

Do this

For a heavy infestation, add one yeast-sugar trap in the worst room and change it every two days. Use vinegar jars near each source.

Use sticky strips as a monitor, not a solution

A woman hanging a small yellow sticky strip beside a kitchen window in a European apartment
A strip tells you where they are coming from. It will not remove the source.

Traps for counting, not decoration

Yellow sticky strips are useful for monitoring: hang one near a suspected source and count what lands on it over 48 hours. If the strip near the bin fills faster than the strip near the fruit, the bin is the active site. That is diagnostic information a jar cannot give you.

Do not hang strips around the whole kitchen as decoration. They catch beneficial insects outdoors, they are unpleasant around food, and they do not address eggs or larvae. Use one or two indoors, out of reach of children and pets, and replace them when they are covered rather than leaving them up for weeks.

Never rely on an electric zapper or an ultrasonic plug-in for fruit flies. Zappers are designed for larger insects and kill indiscriminately; ultrasonic devices have no reliable evidence for flies. A strip plus a source clean beats both.

Do this

Hang one sticky strip near the suspected source for 48 hours as a count. Remove it after the check; do not cover the kitchen in strips.

Phase 4

Prevent

Change the conditions that invite them back. Three steps that make the kitchen unattractive: store fruit properly, seal the waste chain, and run a two-minute nightly reset that takes less time than swatting.

Stop the myths that waste a week

A woman reading a small handwritten list of cleaning methods beside a kitchen sink in a European apartment
Bleach, zappers and a bare bowl of wine all fail for the same reason: no source removal.

What does not work, and why

Bleach poured down a drain is the most common mistake. It may kill some larvae near the surface, but it does not remove the organic film they feed on, and it can damage pipes and seals. Use a brush and an enzyme cleaner instead (step 8).

A bowl of wine or beer without soap catches a few flies and then becomes a shallow landing pad. Add a drop of soap or use a narrow-mouth jar. Potato and banana "traps" are just more ripe fruit; they attract flies from the neighbourhood and give them a place to lay. Electric zappers and ultrasonic repellers are not effective for this species.

Essential-oil sprays may deter a few adults for an hour, but they do not touch the eggs and larvae and they fade fast. "Just leave the window open" can help clear adults, but only after the indoor source is gone; before that it gives them a route back in. Spend the week on steps 5 to 10 instead.

Do this

Skip bleach, bare wine bowls, potato traps, zappers and ultrasonic devices. Put the time into source removal and a soap trap.

Store fruit so it stops attracting them

A woman arranging fruit in a shallow bowl with a linen cloth in a European kitchen, with a refrigerator behind her
A single layer, airflow, and no overripe piece underneath.

Airflow, ripeness and the fruit bowl rule

After the three-week campaign, you can bring fruit back to the counter, but change the way it sits. Use a single layer in a shallow bowl, keep pieces from touching, and never stack ripe fruit on top of ripe fruit. Airflow slows fermentation and makes it harder for a female to find a quiet, damp patch.

Separate the ethylene producers. Bananas, apples and tomatoes speed the ripening of everything beside them, which is how a bowl becomes overripe overnight. Keep bananas on a hook, apples in the fridge, and tomatoes stem-down at room temperature if you prefer the flavour.

Adopt a two-day rule: any piece that is soft, bruised or leaking goes into the fridge for immediate use or into the outside bin. The fruit bowl is not a museum; it is a rotating supply. A small bowl that is checked daily beats a large display that is checked on Saturday.

Do this

Use a shallow single-layer bowl, separate bananas and apples, and check for soft fruit every day. Any leaking piece leaves the counter immediately.

Seal the waste chain

A man fitting a lid onto a kitchen bin and a woman tying a recycling bag nearby in a European kitchen
A lid, a fresh liner weekly, and no open scraps within 30 cm of the floor.

Liner, lid and the 30-centimetre rule

Three physical details decide whether the waste chain stays sealed. A lid that actually closes, a liner that does not tear, and a bin that is washed often enough that the rim is not sticky. Replace a torn liner immediately; a tear turns the container into a wet site within hours.

Keep floor-level food away from the bin area. Pet bowls, potato bags, onion nets and bread wrappers all attract flies and are often within a metre of the bin. The 30-centimetre rule is practical: anything edible or sugary should not sit open at floor level near the waste.

If you use a counter caddy, empty it nightly and wash it weekly, the same as the main bin. A caddy with a charcoal filter controls smell but does not stop flies; the filter is not a lid. Seal first, filter second.

Do this

Check the bin lid, replace torn liners, and move open pet food, potato bags and bread wrappers off the floor near the bin.

Run a two-minute kitchen reset

A woman wiping a kitchen counter and closing a bin lid in a calm evening kitchen in a European apartment
Two minutes at night beats an hour on Saturday.

The nightly routine that keeps them away

End each day with the same five actions: food waste out, bin lid closed, fruit checked, counters wiped, sink drained. It takes about two minutes and removes the fresh sugar and moisture that a female needs overnight. This is the routine that makes the difference after the initial clean.

Keep the tools where you use them: a cloth under the sink, a small brush by the bin, and a lidded caddy on the counter. Friction is the enemy of a nightly habit; if the cloth is in another room, the counter does not get wiped.

Once a week, add the longer version: wash the bin, rinse the recycling caddy, clean the dishwasher filter, and wipe the fridge drip tray. Put it on the same day as your existing weekly deep clean so it does not become a separate project.

Do this

Do the five-action reset every night: waste out, lid closed, fruit checked, counters wiped, sink drained. Add the weekly deep clean on a fixed day.

Phase 5

Verify

Check the result and know when to escalate. Two steps: a day-21 review that tells you whether the cycle is broken, and the signs that mean drain flies or a professional job rather than another jar of vinegar.

Protect plants, pet food and open windows

A woman checking the soil of a potted herb on a windowsill beside a pet bowl in a European apartment
Soggy soil grows fungus gnats; an open bowl of pet food grows flies. Different species, same lesson.

The other sugar and moisture sources

Houseplants are not a fruit-fly source, but overwatered soil grows fungus gnats, and a mixed infestation makes the kitchen feel unfixable. Let the top two centimetres of soil dry between waterings, use a free-draining mix, and put a light layer of grit on the surface if gnats keep returning.

Pet food is a protein and moisture source. Do not leave wet food down all day; feed at set times, remove what is not eaten within about twenty minutes, and wash the bowl daily. Dry food in an open bag beside the bin is also attractive; store it in a lidded container.

Open windows help only after the indoor source is gone. A window with a ripe fruit bowl on the sill is a fly escalator. Once the kitchen is clean, a daily ten-minute cross-ventilation is useful; before that, it is a distraction from steps 5 to 10.

Do this

Let plant soil dry between waterings, feed pets at set times, wash bowls daily, and store dry food in a lidded container. Ventilate after the source is gone.

Re-check on day 21 and know when to escalate

A woman checking a small notebook beside a clean kitchen counter and a jar trap in a European apartment
Day 21: clear, almost clear, or the wrong species.

Three signs it is time for professional help

On day 21, count what you see in five minutes without a trap. Clear means zero to two flies and none around the bin or drain; keep the nightly reset and retire the traps. Almost clear means a handful near one site; repeat the audit for that site and keep traps for another week. No change means you have not found the source, or you have drain flies rather than fruit flies.

Escalate if any of these is true: the flies are fuzzy and moth-like and sit on the drain (drain flies), the problem returns within three days of every clean, or you find larvae in a wall cavity, a ceiling void or a persistent damp patch. Those are jobs for a pest-control professional or a plumber, not another jar.

Keep the routine, not the campaign. Once the cycle is broken, the nightly two minutes and the weekly bin wash are enough. If you want the seasonal version of this discipline, our weekly meal prep guide and the rest of the home and garden guides run on the same principle: small routines, repeated, beat occasional deep cleans.

Do this

On day 21, count flies for five minutes. Clear: keep the routine. No change or drain flies: repeat the audit or call a professional.

Where it goes wrongFive reasons the flies come back

Every failure below looks like a cleaning problem and is actually a source problem. Check this list before you buy another trap.

  • The trap-only campaign. Traps catch adults, not eggs. Without steps 5 to 10, the next generation emerges around day ten and the problem looks unsolved.
  • The hidden bottle. A single sweet bottle in the recycling, the back of the fridge or a bag by the door can keep a population alive after the kitchen looks clean.
  • The bleach reflex. Bleach does not remove drain biofilm and can damage pipes. Brush and enzyme cleaner are the tools that work.
  • The damp bin. A bin washed but not dried, or a liner changed over a wet base, recreates the nursery within a day.
  • The wrong species. Drain flies and fungus gnats survive fruit-fly traps. Identify first, then choose the source treatment.

Common questionsFruit fly questions, answered plainly

How long does it take to get rid of fruit flies?

Expect a clear improvement in about four days and a broken cycle in about three weeks. The ten-day generation time is why a short campaign fails: you catch the adults, miss the eggs, and see a second wave around day ten.

Why do they come back after I clean?

Almost always a source you did not list: a bottle in the recycling, residue at the base of the bin, a dishwasher filter, a fridge drip tray, or a bag of potatoes. Repeat the walk-through in step 2 and look behind and underneath, not at eye level.

Does bleach kill fruit flies?

It may kill some larvae near the surface of a drain, but it does not remove the organic film they feed on and it can damage pipes and seals. Brush the drain and use an enzyme cleaner overnight instead.

Are fruit flies harmful?

They are mostly a nuisance, but they can transfer bacteria from waste to food surfaces. The practical response is to cover food, wash produce, and clean the surfaces they land on; you do not need to fumigate a kitchen.

Do I need to throw away all my fruit?

No. Move ripe fruit to the fridge for three weeks, discard anything soft or leaking, and keep firm unripe fruit on the counter in a single layer. After the campaign, a shallow bowl checked daily is fine.

What if they are coming from the drain?

If the flies are fuzzy, moth-like and rest on the drain or shower wall, they are drain flies. Brush the drain walls, use an enzyme cleaner, fix slow drains, and repeat weekly. Fruit-fly traps will not solve that population.

ReferencesSources and further reading

  1. University of California IPM — Vinegar flies The identification, life cycle and management reference behind steps 1, 3 and 11.
  2. Penn State Extension — Fruit flies Practical extension guidance on breeding sites, traps and kitchen sanitation.
  3. University of Minnesota Extension — Fruit flies A household-insect guide covering species, sources and non-chemical control.
  4. US EPA — Safe pest control Why source removal and exclusion come before pesticides in a home kitchen.
  5. European Commission — Food waste EU food-waste context and the case for reducing waste at the household level.
  6. Zero Waste Europe Practical household waste-reduction resources, including food storage and composting.
  7. WRAP — Food and drink UK evidence on household food waste, storage and portion planning.
  8. NHS — Food poisoning Hygiene guidance for the surfaces and food that flies can contaminate.

Outbound links checked on 2 November 2026. Guidance changes; confirm current recommendations with the official source before you change anything important.

Go deeperRead next

How we researched this. Species identification, generation time and trap design were checked against the University of California IPM pest note on vinegar flies and extension guidance from Penn State and the University of Minnesota. Source-removal and sanitation steps reflect standard household pest-control practice as described by the US EPA's safe pest-control guidance. Food-storage and waste advice was checked against European Commission food-waste material, WRAP and Zero Waste Europe. Product quantities are deliberately generic because vinegar, soap and yeast concentrations vary; follow the label on any drain cleaner and do not mix cleaning chemicals. Time estimates assume a normal domestic kitchen at roughly 22–25°C; a cooler kitchen will run slower and a warmer one faster. No link in this guide is sponsored. All illustrations were generated with AI for HowCompass and are illustrative. Last checked: 3 November 2026.

HowCompass Home DeskWe test household methods against extension-service and public-health guidance, then write the version that works in a normal kitchen. If a step here does not match your setup, tell us and we will check it.