how to get rid of flies permanently
Introduction
Flies are more than just annoying. They spread bacteria, contaminate food, and can quickly turn a clean home into a frustrating battleground. If you keep killing flies but they keep coming back, the core problem isn’t being solved.
This guide explains exactly how to get rid of flies permanently: why they appear, proven control methods, effective natural remedies, and simple prevention steps. Follow these tips consistently, and you can break the fly life cycle instead of just swatting adult insects.
Why Flies Appear
To eliminate flies long-term, you need to understand what attracts them. Flies don’t just show up at random; they follow food, moisture, heat, and breeding sites.
1. Food Waste and Organic Matter
- Exposed food: Fruits, vegetables, meat, sugary drinks, and leftover meals attract houseflies and fruit flies.
- Garbage: Overfilled trash cans, unsealed bags, and spilled garbage juice are ideal feeding and breeding areas.
- Pet waste: Uncleaned litter boxes or pet feces in the yard are powerful attractants.
- Compost: Open or poorly managed compost piles draw flies easily.
2. Moisture and Standing Water
- Clogged drains: Drain flies (also called moth flies) breed in the slime inside pipes.
- Leaky pipes and damp mops: Moist materials provide a place for eggs and larvae.
- Outdoor puddles and dirty birdbaths: Attract various fly species.
3. Warmth and Shelter
- Warm indoor temperatures: Speed up fly breeding cycles.
- Cracks and gaps: Flies enter through broken screens, gaps around doors and windows, and unsealed vents.
4. Specific Attractants for Different Fly Types
- Houseflies: Generalists attracted to garbage, food, feces.
- Fruit flies: Love overripe fruit, wine, beer, vinegar, and fermenting liquids.
- Drain flies: Thrive in organic sludge in drains and pipes.
- Cluster flies: In cooler climates, they overwinter in wall voids and attics and appear in large numbers on warm days.
Once you identify what’s attracting your flies, you can remove their food source and breeding grounds, which is the key to permanent control.
5 Proven Methods to Get Rid of Flies
For a lasting solution, combine multiple methods. Think of it as a 5-part system: remove attraction, block entry, kill existing flies, destroy breeding sites, and monitor.
Method 1: Remove Food and Breeding Sources
This is the most important step. Without food and breeding sites, flies cannot sustain a population.
- Seal all food:
- Store fruits and vegetables in the fridge or in sealed containers.
- Cover food instantly after cooking; do not leave dishes out to cool uncovered.
- Store pet food in sealed containers and pick up bowls after feeding.
- Handle garbage correctly:
- Use trash cans with tight-fitting lids, inside and outside.
- Take out kitchen trash daily; more often in hot weather.
- Rinse recycle containers (especially sugary drink bottles and cans) before binning.
- Clean trash bins weekly with hot soapy water and, if possible, a disinfectant.
- Clean pet areas:
- Remove dog waste from the yard daily.
- Clean litter boxes frequently and dispose of waste in sealed bags.
- Compost responsibly:
- Use a closed compost bin instead of an open pile if flies are a problem.
- Cover fresh food scraps with dry materials like leaves or shredded paper.
Method 2: Block Entry Points
Stop outdoor flies from getting into your home by sealing their main access routes.
- Install and repair screens:
- Use fine-mesh screens on windows and doors.
- Repair tears, gaps, or loose frames immediately.
- Seal gaps and cracks:
- Use weather stripping around doors.
- Seal gaps around window frames, vents, and utility lines with caulk or foam.
- Limit door-open time:
- Use self-closing hinges or door closers on frequently used doors.
- Consider a magnetic screen door for sliding or patio doors.
Method 3: Use Traps Strategically
Traps reduce the adult fly population quickly. Use them in addition to cleaning and exclusion.
Indoor Traps
- Fly paper / sticky strips:
- Hang near windows, lights, and garbage areas.
- Replace when strips are covered or dusty.
- UV light traps (electric fly killers):
- Attract flies with UV light and trap them on a glue board or zap them.
- Place away from windows and doors (you don’t want to draw flies from outside).
- Fruit fly traps:
- Use either store-bought traps or DIY vinegar traps (details in Natural Remedies below).
- Place near fruit bowls, trash cans, and recycling.
Outdoor Traps
- Baited fly traps:
- Hang attractant traps (commercial bait bags, water traps) away from doors—ideally at least 15–20 feet from the house.
- Follow the manufacturer’s instructions for placement and replacement.
- DIY bottle traps:
- Use a plastic bottle with bait (sugar water, bits of fruit, or fish-based bait) and a funnel top.
- Hang in sunny spots where flies are most active.
Method 4: Target Breeding Sites (Especially Drains)
If you remove adult flies but leave their breeding sites, they will quickly return. This is especially true for fruit flies and drain flies.
Drain Fly Control
- Identify infested drains:
- Look for small, moth-like flies resting near sinks, bathtubs, and floor drains.
- Cover drains with clear plastic overnight; if you see flies trapped underneath in the morning, that drain is a source.
- Clean the pipes:
- Pour a kettle of boiling water down the drain to loosen debris.
- Scrub the inside of the drain pipe with a stiff brush and hot soapy water to remove slime.
- Use an enzyme-based drain cleaner (not just a chemical degreaser) to break down organic buildup.
- Repeat daily for a week, then weekly for maintenance.
Fruit Fly Breeding Control
- Remove breeding items:
- Discard overripe or rotting fruit and vegetables.
- Clean under appliances where spills or food bits might be hidden.
- Rinse mops and cleaning cloths thoroughly and let them dry fully.
- Clean all surfaces:
- Wipe counters and shelves with hot soapy water or a mild disinfectant.
- Clean the inside of trash cans and recycling bins.
Method 5: Use Insecticides Safely (When Needed)
Chemical control should be a last resort and always combined with sanitation and exclusion. It will not work long-term if breeding sites remain.
- Aerosol sprays:
- Use for quick knockdown of visible adult flies.
- Avoid spraying near food, dishes, and children’s play areas.
- Residual sprays (outdoor use):
- Apply to outdoor walls, garbage areas, and fly-resting surfaces according to label instructions.
- Never overuse; follow reapplication intervals strictly.
- Professional pest control:
- For severe, recurring infestations, consider hiring a licensed pest control company.
- They can identify hidden breeding sites and apply targeted treatments.
Natural Remedies to Get Rid of Flies
If you prefer to avoid harsh chemicals, there are effective natural and low-toxicity options. These work best alongside good hygiene and structural fixes.
1. Vinegar and Dish Soap Trap (Fruit Flies)
- Pour about 1/2 cup of apple cider vinegar into a small bowl or jar.
- Add a few drops of dish soap (this breaks the surface tension).
- Optionally cover with plastic wrap and poke small holes, or leave uncovered.
- Place near fruit bowls, trash, or any area with fruit flies.
- Empty and refresh every 1–2 days until flies are gone.
2. Red Wine or Beer Trap
- Pour a small amount of red wine or beer into a glass or jar.
- Add a drop of dish soap.
- Cover with plastic wrap and poke small holes, or leave open.
- Place where fruit flies are most active.
3. Essential Oils as Repellents
Many strong-smelling essential oils can repel flies, though they won’t kill them or solve breeding issues.
- Effective oils: peppermint, eucalyptus, lavender, lemongrass, citronella, clove.
- How to use:
- Mix 10–15 drops of essential oil with 1 cup of water and a teaspoon of vodka or rubbing alcohol (to help mixing) in a spray bottle.
- Shake well and spray around doors, windows, and fly entry points.
- Reapply daily or as the scent fades.
- Safety: Keep away from pets’ faces and sleeping areas; some oils can irritate animals and humans if overused.
4. Herbal Repellent Plants
Certain plants can help repel flies in outdoor areas and near entry points.
- Common fly-repelling plants: basil, mint, rosemary, lavender, bay leaf, marigolds.
- How to use:
- Place potted herbs near windows, doors, and outdoor seating areas.
- Crush leaves occasionally to release more fragrance.
5. Homemade Sugar Water Trap (Houseflies)
- Cut a plastic bottle near the top and invert the top to create a funnel pointing inward.
- Mix sugar and water (optionally add a small amount of yeast) and pour into the bottom part.
- Place the funnel top back on; flies enter and struggle to escape.
- Place outside, away from doors, to draw flies away from your house.
6. Natural Drain Treatment
- Pour 1/2 cup baking soda down the drain.
- Follow with 1 cup white vinegar and let it foam for 10–15 minutes.
- Flush with a kettle of boiling water.
- Repeat several times a week for active drain fly problems, then weekly for maintenance.
Prevention Tips: How to Keep Flies Away Permanently
Long-term control is about habits. Consistent prevention stops flies from re-establishing.
1. Maintain Kitchen Hygiene
- Wash dishes promptly; don’t let them soak overnight with food bits.
- Wipe counters and stovetops after cooking.
- Clean under and behind appliances monthly.
- Keep sink strainers free of food debris.
2. Manage Garbage and Recycling
- Use lined trash bins with tight lids.
- Empty household garbage daily, especially in warm weather.
- Store outdoor bins away from windows and doors.
- Clean bins regularly with hot water and disinfectant.
3. Control Moisture
- Fix leaky faucets and pipes quickly.
- Hang mops and cloths to dry, don’t leave them wet in buckets.
- Ensure bathrooms and kitchens are well-ventilated.
- Address standing water in yards: fill low spots, clean gutters, change water in birdbaths often.
4. Protect Entry Points
- Keep windows and doors closed or screened, especially at dusk when flies are active.
- Inspect and repair screens seasonally.
- Seal gaps around doors, windows, vents, and utility lines.
5. Yard and Outdoor Area Maintenance
- Regularly pick up pet waste.
- Keep grass trimmed and shrubs pruned to reduce resting spots.
- Cover outdoor food during barbecues and picnics.
- Keep compost contained and properly balanced (cover fresh scraps with brown material).
6. Establish a Regular Inspection Routine
- Weekly, check:
- Trash and compost areas for spills or leaks.
- Drains for slime buildup.
- Fruit bowls and plant pots for signs of fruit flies.
- Act immediately at the first sign of increased fly activity.
FAQ
How do I get rid of flies in the house fast?
Combine quick-kill methods with immediate cleanup:
- Close doors and windows, then use a fly swatter or aerosol spray to knock down visible flies.
- Set up sticky traps and vinegar or sugar-water traps immediately.
- Remove exposed food, empty trash, and wipe down surfaces.
This reduces numbers quickly while you address the root causes.
Why do flies keep coming back even after I kill them?
Flies return because their breeding sites and food sources are still available. Eggs and larvae remain in garbage, drains, compost, or pet waste. Unless you eliminate these sources and block entry points, new adults will continually appear.
What smells will keep flies away?
Flies dislike strong scents such as:
- Essential oils: peppermint, eucalyptus, lavender, lemongrass, citronella, clove.
- Herbs and plants: basil, mint, rosemary, bay leaf, marigolds.
These smells can help repel flies, but they are not a full solution. You must also remove food, moisture, and breeding sites.
How do I permanently get rid of fruit flies?
- Throw away overripe or rotting fruits and vegetables.
- Store fresh produce in sealed containers or the fridge.
- Clean spills, sticky spots, and recycling containers thoroughly.
- Set multiple vinegar traps near problem areas until you stop catching flies.
- Maintain these habits even after the flies are gone to prevent new infestations.
Are flies dangerous to health?
Yes. Flies can carry and spread bacteria and pathogens picked up from garbage, feces, and other unsanitary surfaces. When they land on food or food preparation areas, they can contaminate them, increasing the risk of illness.
When should I call a professional?
Contact a pest control professional if:
- You see large numbers of flies repeatedly despite cleaning, trapping, and sealing.
- You suspect a hidden breeding source (e.g., dead animal in a wall, heavy drain infestation) you can’t locate.
- Your business (restaurant, food processing, healthcare) cannot risk ongoing fly issues.
Can I get rid of flies without chemicals?
Yes. For many homes, thorough cleaning, sealing entry points, managing garbage, and using natural traps (vinegar, sugar water) plus physical barriers (screens, traps) are enough to control flies. The key is consistency and removing all sources that support breeding.
By combining sanitation, exclusion, traps, and ongoing prevention, you can break the fly life cycle and keep your home free of flies for the long term.
Want a plan tailored to your home?
Based on your fly type, home situation, and preferences. Get a Personalized Fly Removal Plan to remove flies fast and safely.
Get My Custom Plan