To get rid of fruit flies and kitchen gnats, remove the places where they feed and breed, then use traps to catch the adults that remain. A trap alone rarely solves the problem if ripe produce, damp organic debris, or a drain is still supporting them. Start by identifying where the insects gather and have basic cleaning supplies and a small jar ready.
What You’ll Need
- Dish soap, a scrub brush, and cleaning cloths
- A small jar or cup, apple cider vinegar, and a drop of dish soap for a fruit-fly trap
- A fine-mesh produce cover or a sealed food-storage container
- A flashlight to inspect drains and dark, damp areas
- Optional: yellow sticky cards for monitoring small flying insects near houseplants
Step-by-Step
- Check what kind of insect you have. Fruit flies are usually tan or light brown, often with noticeable red eyes, and cluster around fruit, recycling, or spills. Fungus gnats are dark, slender, mosquito-like insects that often hover around the soil of indoor plants. Drain flies look fuzzy, with broad, moth-like wings, and tend to rest near sinks. Different insects can coexist, so look for where the adults gather rather than relying on appearance alone.
- Remove food that attracts fruit flies. Put ripe or cut fruit in the refrigerator or a sealed container. Throw away overripe produce and any food with larvae or decay. Empty and rinse the compost caddy, take out kitchen rubbish, and wash the bin if it has sticky residue. Rinse bottles and cans before recycling; store them in a closed container and clean any spills beneath it.
- Clean hidden residues. Wipe counters, cabinet edges, and the area beneath small appliances. Check for forgotten potatoes or onions, sticky drink spills, damp cloths, and food scraps under or behind the bin. Wash reusable cleaning cloths and let the sink area dry. Even a small amount of fermenting juice or food residue can keep attracting flies.
- Set a simple fruit-fly trap. Pour about 2–3 tablespoons of apple cider vinegar into a jar or cup and add one drop of dish soap. Set it beside the place where fruit flies gather, out of reach of children and pets. The vinegar attracts them; the soap reduces surface tension so they sink. Replace the mixture every few days or when it fills with insects. Keep food sources removed—the trap is a supplement, not a substitute for cleaning.
- Inspect the sink and drains. Shine a flashlight into the drain opening and check for slime or organic buildup. Scrub the drain throat and accessible sides with a long-handled brush and dish soap, then rinse with hot tap water. Clean the plug, strainer, and overflow opening if accessible. Do not mix drain cleaners or combine bleach with other products. Avoid pouring boiling water into plumbing unless the fixture and pipes are known to tolerate it; it may damage some materials and often will not remove buildup far down a drain.
- Address fungus gnats at the source. If gnats rise from a houseplant, let the top inch or two of potting mix dry before watering again, as appropriate for that plant. Empty saucers after watering and remove dead leaves. Use yellow sticky cards near the soil to catch and monitor adults. If needed, use a product labeled for indoor plants and fungus-gnat larvae, following its label exactly; do not use outdoor pesticides indoors or treat edible plants unless the label specifically allows it.
- Keep the area dry and observe. Repair or report leaks, dry wet sponges and sink mats, and avoid leaving standing water. Keep traps in place and check the suspected source daily. Continue removing food and cleaning for at least one to two weeks, because eggs or larvae already present may develop after the adults are gone.
Common Mistakes
- Relying only on a trap: Traps catch adults but do not remove a breeding source. Keep searching for produce, residue, or damp organic material.
- Assuming every tiny fly is a fruit fly: Plant-soil gnats and drain flies need different source control. Watch where they emerge and gather.
- Pouring chemicals into drains without checking the label: Some products can damage plumbing or create hazardous fumes when mixed. Never combine drain products, bleach, vinegar, or ammonia.
- Overwatering plants while trying to rinse out gnats: Persistently wet soil can encourage fungus gnats. Adjust watering to the plant’s needs instead.
- Leaving the trap uncovered near food: Place it beside the activity, not beside uncovered meals or food-preparation surfaces, and keep it inaccessible to children and pets.
Tips
- Move the vinegar trap if it catches nothing after a day or two; the insects may be breeding somewhere else.
- Use a clear glass or jar and check it daily to see whether the population is falling.
- Keep fruit covered or refrigerated during an infestation, and wash produce before eating.
- Use sticky cards as monitors, not as the only treatment for fungus gnats.
- For drain-fly checks, cover a dry drain opening overnight with a clear cup or tape secured around the edges. Flies appearing inside suggest activity in that drain; do not block a drain that must be used or leave a cover where it could create a hazard.
Troubleshooting
Flies return after traps catch many: A food or breeding source is still present. Recheck the rubbish bin, recycling, compost, produce storage, appliance gaps, and drains. Clean the source and replace the trap.
Vinegar traps catch nothing: The insects may be fungus gnats or drain flies, or the trap may be too far from the activity. Observe whether they rise from plant soil or appear near a drain, then treat that source instead.
Gnats persist around a plant: Check for damp soil, standing water in the saucer, or decaying leaves. Let the soil surface dry between suitable waterings and use sticky cards to track improvement. If several plants are affected, inspect each pot.
Small flies keep appearing near a drain after cleaning: Repeat mechanical scrubbing, including the strainer and overflow where accessible. If the problem continues, a hidden or shared plumbing issue may be involved; contact a qualified plumber or pest professional rather than repeatedly pouring harsh chemicals into the drain.
The infestation is not improving after two weeks: Recheck insect identification and inspect less obvious sources, including a leak, a forgotten food item, or a plant elsewhere in the home. Seek professional help if the source remains unclear or the number of insects is increasing.
Frequently Asked Questions
How long does it take to get rid of fruit flies?
Many infestations improve within several days once the breeding source is removed, but allow one to two weeks for remaining eggs and larvae to stop producing adults. Keep cleaning and trapping during that period.
Does apple cider vinegar kill fruit flies?
It attracts them, and a drop of dish soap helps trap them in the liquid. It will not eliminate eggs or larvae in food, drains, or other breeding sites.
Are kitchen gnats harmful?
Fruit flies and fungus gnats are generally nuisance pests in homes, but keep them away from food and clean food-contact surfaces. Do not eat food that is spoiled or visibly contaminated.
Can I pour bleach down the drain for flies?
Bleach is not a dependable way to remove the organic film where flies may breed, and mixing it with other cleaners can release dangerous gases. Use a brush and soap for accessible buildup, and follow any product label precisely.
Why do fruit flies keep coming back?
They reproduce quickly when fermenting food or damp organic residue remains. A hidden source, such as a bin, drain, spill, or overripe item, can sustain them even when adults are being trapped.
Should I spray insecticide in the kitchen?
Usually, source removal and traps are the practical first choice. If you use a pesticide, choose one labeled for the specific insect and indoor kitchen use, and follow all label directions, including food-surface, ventilation, and re-entry precautions.