Home Remedies for Flies That Actually Work

Most fly problems in your home can be solved with a combination of simple traps, natural repellents, and better sanitation habits. The specific remedy depends on what type of fly you’re dealing with, since fruit flies, drain flies, house flies, and fungus gnats all breed in different places and respond to different tactics. Here’s what actually works.

Identify the Fly First

Before you start setting traps, take a moment to figure out what you’re dealing with. Fruit flies are tiny, tan or brown, and hover around ripe produce and trash cans. Drain flies are fuzzy and moth-like, often appearing near sinks or shower drains. House flies are the large, dark gray flies that buzz around windows and doors. Fungus gnats are small and dark, and they tend to hover around potted plants.

Each type breeds in a completely different environment, so a vinegar trap that works beautifully for fruit flies won’t do anything about drain flies living in your plumbing. Matching the remedy to the fly is the single most important step.

Fruit Fly Traps That Work

The classic apple cider vinegar trap is popular for a reason. Pour a shallow layer of apple cider vinegar into a bowl or jar and add a few drops of dish soap. The vinegar smells irresistibly sweet to fruit flies, drawing them in. The dish soap breaks the surface tension of the liquid, so when flies land on it, their wings get weighed down and they drown instead of being able to sit on the surface and fly away.

You can boost the trap’s effectiveness by adding a small amount of yeast to the vinegar, which increases fermentation and makes the scent stronger. Other good bait options include red wine, banana slices, orange slices, or plain apple cider. For a more contained setup, stretch plastic wrap over the top of a jar, poke a few small holes in it, and let flies enter without being able to find their way back out.

Traps alone won’t solve a fruit fly problem if the breeding source is still active. Take out trash regularly, refrigerate or discard overripe fruit, and clean up rotting vegetables. Fruit flies reproduce quickly, so removing the food source is what actually ends the cycle. The traps just catch the adults already flying around.

How to Get Rid of Drain Flies

Drain flies lay their eggs in the moist organic film that builds up inside pipes and drain traps. If you suspect a particular drain, place a strip of clear packing tape across the opening without fully covering it (you need airflow or the flies won’t emerge). Check the tape after a few hours. If you find small flies stuck to it, that drain is a breeding site.

The most effective DIY treatment is a combination of baking soda, vinegar, and hot water. Sprinkle half a cup of baking soda into the drain, then pour in one cup of white vinegar. It will fizz and bubble. Let it sit for about 10 minutes, then flush with very hot water. Repeat this for every drain in the house, including showers, since drain flies can breed in any pipe with organic buildup.

For stubborn infestations, scrub the inside of the drain with a stiff brush to physically remove the bacterial film where larvae live. Pouring hot water alone won’t always dislodge a thick biofilm. Antibacterial drain treatments designed to break down organic material can also help, though they typically require repeat applications over several weeks. One important note: avoid using boiling water if you have PVC pipes, as extreme heat can damage them. Use the hottest water you can get before a full boil.

Controlling House Flies

House flies don’t breed inside your kitchen the way fruit flies do. Their breeding sites are outdoor sources like garbage cans, compost piles, pet waste, and dumpsters. If you’re seeing a surge of house flies indoors, the problem is almost always something outside drawing them close to your home.

Keep outdoor trash in sealed containers with tight-fitting lids. Clean garbage cans and dumpsters regularly, and position them as far from doors and windows as practical. If you compost, make sure the pile is properly maintained and turned. Pet waste and any decaying plant or animal material should be cleaned up promptly. Indoors, a fly swatter is genuinely effective for the occasional house fly. Sticky fly strips hung near windows or light sources can catch multiple flies passively.

Screening windows and sealing gaps around doors makes a bigger difference for house flies than any trap or repellent, since these flies enter from outside. A torn screen is an open invitation.

Fungus Gnats in Houseplants

Fungus gnats breed in damp potting soil. The simplest fix is to let the soil dry out between waterings. These tiny flies need consistent moisture to reproduce, and allowing the top inch or two of soil to dry completely disrupts their life cycle. If the infestation is severe, moving the affected plants outdoors temporarily can help, since the gnats will disperse rather than concentrating in your living space.

For persistent problems where reducing moisture isn’t enough, you may need to repot the plant with fresh soil. Yellow sticky traps placed near the soil surface catch adult gnats and help you monitor whether the population is shrinking.

Plants That Repel Flies

Several common herbs and plants release natural oils that flies find unpleasant. Basil is the most widely used fly-repellent plant. It releases oils with a strong, earthy aroma that deters flies and other insects. Keeping a pot of basil near your kitchen window or outdoor dining area can help, though basil is harder to maintain indoors long-term since it needs plenty of sunlight.

Lavender works well both in the garden and indoors. Its oils are potent enough to discourage flies, and dried lavender bundles placed near doorways or windows add a layer of protection. Mint is another strong option, though it spreads aggressively in garden beds, so keeping it in a pot gives you more control. Crushing the leaves of basil or mint releases their natural scent more intensely, which amplifies the repellent effect.

Place potted repellent plants near windows, doorways, or outdoor seating areas for the best results. They won’t eliminate an existing infestation on their own, but they help discourage new flies from entering your space.

Essential Oil Sprays and Diffusers

Several essential oils have documented insect-repelling properties. Thyme oil has been found to be highly effective as an insecticide against house flies. Eucalyptus oil also shows strong repellent activity against various fly species. Peppermint and lemongrass are other common choices.

You can make a simple spray by adding 10 to 15 drops of essential oil to a cup of water in a spray bottle, shaking well, and misting it around doorways, windowsills, and garbage areas. Reapply every few hours, since the scent fades as the oils evaporate. Diffusers can spread the scent more consistently throughout a room.

Essential Oil Safety Around Pets

If you have cats, be very careful with essential oils. Cats lack a liver enzyme needed to metabolize many of these compounds, making them far more vulnerable to toxicity than dogs or humans. Eucalyptus oil, peppermint oil, tea tree oil, citrus oil, and cinnamon oil are all known to cause poisoning in cats. Symptoms can include drooling, vomiting, tremors, difficulty breathing, and in severe cases, liver failure.

Even passive diffusers can cause respiratory irritation in cats, producing watery eyes, nausea, or labored breathing. Active diffusers that release microdroplets into the air are riskier, because the oil can settle on a cat’s fur and be ingested during grooming. Concentrated essential oils should never be applied directly to cats. If you have cats, stick to plant-based repellents or traps instead, or only diffuse oils in rooms your cat doesn’t access.

Dogs are generally more tolerant of essential oils than cats, but it’s still wise to keep diffusers in well-ventilated areas and watch for signs of irritation like excessive sneezing or lethargy.

Why Sanitation Matters Most

Every fly remedy works better when you eliminate what’s attracting flies in the first place. The Illinois Department of Public Health puts it plainly: eliminating breeding sites is usually sufficient to end a fly infestation, and without thorough sanitation, other control methods are largely ineffective. Traps, sprays, and repellent plants are all supplementary tools. The real solution is removing the organic material flies need to feed and reproduce.

Start with a thorough inspection. Check under appliances for forgotten food spills, look inside garbage disposals, clean recycling bins that held sugary containers, and inspect the drip tray under your refrigerator. Trash should always be kept in sealed bags inside cans with tight lids. Eliminate areas of excessive moisture, including leaky pipes and standing water in plant saucers. Once you remove the source, the adult flies you’re seeing will die off within days, and no new generation will replace them.