how to get rid of flies at home

Introduction

Flies in the house are more than just annoying. They spread bacteria, contaminate food, and can quickly become an infestation if you ignore them. The good news: you can get rid of flies with a combination of targeted removal, smart prevention, and a few simple tools.

This guide explains why flies appear, the most effective ways to get rid of them, natural remedies you can use, and practical prevention tips to keep them from coming back.

Why Flies Appear in Your Home

To eliminate flies effectively, you need to understand what attracts them. Flies don’t appear “out of nowhere.” They are always following food, moisture, and shelter.

1. Food Sources

  • Uncovered food: Leftovers on the counter, uncovered fruit bowls, pet food, and crumbs attract houseflies and fruit flies.
  • Garbage: Overflowing trash cans, open compost bins, and unsealed garbage bags are prime breeding grounds.
  • Organic waste: Dirty dishes, food scraps in the sink or garbage disposal, and greasy surfaces are magnets for flies.

2. Moisture and Organic Matter

  • Standing water: Wet mops, leaky pipes, trays under potted plants, and clogged drains provide moisture for flies to breed.
  • Rotting material: Overripe fruit, decaying vegetables, and damp organic debris are ideal for fruit flies and fungus gnats.

3. Entry Points

  • Open windows and doors: Flies easily enter through unscreened or frequently opened windows and doors.
  • Gaps and cracks: Spaces around windows, vents, and doors allow flies to get inside.

4. Breeding Sites

  • Trash and compost: Houseflies lay eggs in decaying organic matter.
  • Drains: Drain flies breed in the slime inside kitchen and bathroom drains.
  • Pet waste: Indoor litter boxes or pet accidents provide breeding material.

Once you remove what attracts and sustains flies, they become much easier to control.

5 Proven Methods to Get Rid of Flies

Use several methods at the same time for best results: kill existing flies, destroy breeding sites, and block new flies from entering.

Method 1: Eliminate Breeding Sources

This is the most important step. If you don’t remove the sources, flies will keep coming back.

  • Take out the trash daily: Use trash cans with tight-fitting lids. Rinse them out weekly with hot water and a disinfectant or vinegar.
  • Clean food surfaces: Wipe counters, stovetops, and tables after each meal. Clean up spills immediately.
  • Handle dirty dishes: Don’t leave dishes with food residues overnight. Either wash them or rinse and load into the dishwasher.
  • Secure food: Store fruits, vegetables, and leftovers in the refrigerator or sealed containers. Avoid leaving ripe fruit on the counter.
  • Clean pet areas: Pick up pet waste promptly. Wash pet bowls daily and don’t leave wet food out for long periods.
  • Manage compost: Keep compost bins closed. If indoors, use a sealed compost container and empty it frequently.

Method 2: Use Fly Traps (Store-Bought and Homemade)

Traps are an easy, low-effort way to catch and kill flies continuously.

  • Sticky fly strips: Hang near windows, doors, or problem areas. Replace when full or dusty.
  • UV light traps: Effective for kitchens and living areas. They attract flies with light and trap them on glue boards or electric grids.
  • Homemade vinegar traps (for fruit flies):
    • Pour 2–3 cm of apple cider vinegar into a glass or jar.
    • Add a few drops of dish soap (breaks the surface tension so flies sink).
    • Optionally cover with plastic wrap and poke small holes.
    • Place near fruit bowls, trash, or sink areas.
  • Bottle traps (for houseflies):
    • Cut a plastic bottle in half.
    • Pour a little sugary water, juice, or food scraps mixed with water into the bottom.
    • Invert the top half into the bottom like a funnel and tape together.
    • Place where flies are active and empty regularly.

Method 3: Window and Door Barriers

Physical barriers stop new flies from entering your home.

  • Install or repair window screens: Use fine mesh screens on all windows you open. Patch any holes or tears.
  • Screen doors: Add or repair screen doors on frequently used exterior doors.
  • Seal gaps: Use weatherstripping or door sweeps to close gaps under doors and around frames.
  • Use air curtains (for severe problems): In high-traffic entry areas, an air curtain can help block flying insects by creating a downward air flow.

Method 4: Targeted Sprays and Insecticides

Use chemical solutions sparingly and carefully, mainly when you need quick relief from a heavy infestation.

  • Aerosol fly sprays: Use for immediate kill of visible flies. Ventilate the area afterwards and keep children and pets away until dry.
  • Residual sprays (outdoors): Spray around door frames, window frames, and outdoor trash areas according to label instructions.
  • Insect growth regulators (IGRs): These prevent fly larvae from developing into adults, useful around garbage or barns if the infestation is large.
  • Safety tips:
    • Always read and follow the product label.
    • Don’t spray on food surfaces, dishes, or near open food.
    • Store chemicals out of reach of children and pets.

Method 5: Deep Cleaning Drains and Hidden Areas

Drain flies and fruit flies often breed where you can’t see them. A deep clean removes the biofilm they need to reproduce.

  • Kitchen and bathroom drains:
    • Pour boiling water down the drain once or twice a day for several days.
    • Use a drain brush to scrub the inside of the drain pipe, removing slime and buildup.
    • Apply a drain gel specifically designed to break down organic material (follow product instructions).
  • Under and behind appliances: Pull out the fridge and stove if possible. Sweep up crumbs, food scraps, and sticky spills.
  • Potted plants: If fungus gnats are present, let the top 2–3 cm of soil dry out between waterings and remove any decaying leaves.

Natural Remedies to Get Rid of Flies

If you want to avoid harsh chemicals, several natural options can repel or trap flies effectively.

1. Essential Oils

Certain scents repel flies. Use them in diffusers, sprays, or on cotton balls placed in problem areas.

  • Effective oils: Lavender, eucalyptus, peppermint, lemongrass, citronella, clove.
  • DIY fly repellent spray:
    • Fill a spray bottle with water.
    • Add 10–15 drops of essential oil (or a mix).
    • Optionally add a teaspoon of witch hazel or alcohol to help disperse the oil.
    • Shake and spray around windows, doors, trash areas, and curtains (test fabrics first).

2. Herbs and Plants

Some plants naturally deter flies when placed near doors, windows, or outdoor seating areas.

  • Basil: Flies dislike the smell. Keep potted basil on windowsills and near entrances.
  • Mint: Use pots of mint or bunches of fresh mint leaves.
  • Rosemary and bay leaves: Place sprigs in the kitchen or near open windows.

3. Vinegar and Soap Traps

Especially effective for fruit flies.

  • Apple cider vinegar trap: As described earlier, ACV plus a few drops of dish soap in a small bowl or jar works well.
  • Wine or beer trap: Flies are attracted to fermenting liquids. Leave a small amount of old wine or beer in a bottle with a drop of dish soap; flies will enter and drown.

4. Cucumber or Lemon with Cloves

  • Cucumber slices: Some people find that placing cucumber slices near doors, windows, or trash can help repel flies.
  • Lemon and cloves: Cut a lemon in half and stud it with whole cloves. Place it on the table or near windows to discourage flies.

5. DIY Fly Spray with Vinegar

This can be used on surfaces and around entry points, but not directly on flies like a chemical spray.

  • Mix equal parts water and white vinegar in a spray bottle.
  • Add 10–15 drops of an essential oil (optional).
  • Use to wipe down counters, tables, and around window frames.

Natural remedies work best when combined with good hygiene and physical barriers. They are not a substitute for cleaning and removing breeding sites.

Prevention Tips: How to Keep Flies from Coming Back

Once you’ve reduced the fly population, prevent future infestations with consistent habits.

1. Keep the Kitchen Clean

  • Wipe down counters, stovetops, and tables after use.
  • Clean up spills immediately, especially sugary drinks or sauces.
  • Don’t leave dirty dishes in the sink overnight.
  • Rinse recyclables (cans, bottles, jars) before placing them in recycling bins.

2. Manage Waste Properly

  • Use trash cans with tight-fitting lids.
  • Empty kitchen trash daily or whenever it starts to smell.
  • Keep outdoor garbage bins closed, and place them a distance from doors and windows if possible.
  • Clean trash cans periodically with hot water and disinfectant.

3. Store Food Correctly

  • Refrigerate ripe fruits and leftovers.
  • Use airtight containers for dry goods like sugar, flour, cereal, and pet food.
  • Don’t leave food uncovered on counters or tables.

4. Fix Moisture Problems

  • Repair leaking faucets, pipes, and hoses.
  • Empty standing water from trays under plants and other containers.
  • Allow bathrooms and laundry areas to dry properly by ventilating or using exhaust fans.

5. Maintain Entry Barriers

  • Keep window and door screens intact and closed when possible.
  • Install door sweeps to reduce gaps at thresholds.
  • Close doors quickly instead of leaving them propped open.

6. Regular Home Inspection

  • Check hidden areas monthly: under sinks, behind appliances, in basements and attics.
  • Look for signs of moisture, decay, or accumulated debris that might attract flies.

FAQ About Getting Rid of Flies at Home

1. What is the fastest way to get rid of flies in the house?

Combine quick-kill methods with cleanup: use a fly swatter or aerosol spray to kill visible flies immediately, set up several fly traps around problem areas, and quickly remove food sources (trash, dirty dishes, uncovered food). Close windows and doors or ensure screens are secure to stop new flies from entering.

2. How do I get rid of fruit flies specifically?

Fruit flies are drawn to fermenting fruits and sugary liquids. To get rid of them:

  • Discard overripe or rotting fruits and vegetables.
  • Clean sticky residues on counters, shelves, and near the trash can.
  • Use apple cider vinegar traps with a drop of dish soap placed near sinks, trash, and fruit bowls.
  • Rinse bottles, cans, and recycling items before storing them.

3. Why do I still have flies even after cleaning?

There may be hidden breeding sites you missed, such as:

  • Slime buildup inside drains.
  • Food or organic matter behind or under appliances.
  • Damp, decaying plant matter in potted plants.
  • Outdoor sources right next to the house (garbage, pet waste, compost).

Inspect thoroughly and clean these areas, then maintain traps for several weeks to catch remaining adults.

4. Are flies dangerous to my health?

Yes, flies can carry and spread bacteria and pathogens from garbage, feces, and decaying matter to your food and surfaces. This can potentially cause food poisoning and other illnesses. Keeping flies under control is part of maintaining a hygienic home.

5. Are natural remedies as effective as chemical sprays?

Natural remedies are effective for light to moderate problems and as part of an ongoing prevention strategy. Essential oils, vinegar traps, and plants help repel and catch flies, but they usually work more slowly and less dramatically than chemical sprays. For severe infestations, you may need a combination of deep cleaning, physical barriers, traps, and carefully used insecticides.

6. How long does it take to get rid of a fly infestation?

It depends on the species and severity. If you eliminate breeding sources and set traps, you can significantly reduce houseflies and fruit flies within a few days to a week. Drain flies may take 1–3 weeks to fully disappear because you need to break down the organic slime in drains and wait for existing adults to die off.

7. When should I call a professional pest control service?

Consider professional help if:

  • You see large numbers of flies daily despite thorough cleaning and using traps.
  • There is a strong, unexplained odor, which may point to a hidden dead animal or severe decay.
  • You suspect flies are coming from structural issues (e.g., in walls, crawl spaces, or vents) that you cannot access safely.

8. Do ultrasonic repellents work against flies?

Evidence for ultrasonic pest repellents is weak and inconsistent. Some users report minor benefits, but they should not be your main strategy. Focus on cleaning, physical barriers, and traps first.

9. Is it safe to use fly sprays around children and pets?

Only if used exactly as directed. Always:

  • Keep children and pets out of the room while spraying.
  • Ventilate the area after use.
  • Store sprays and chemicals securely.

If you are concerned, rely more on traps, screens, and natural repellents.

10. Can flies lay eggs in my house plants?

Yes. Fungus gnats, a type of small fly, lay eggs in moist potting soil. To control them:

  • Let the top layer of soil dry between waterings.
  • Remove decaying leaves and plant matter.
  • Use yellow sticky traps near the plants to catch adults.

By combining source removal, effective traps, natural or chemical controls, and consistent prevention habits, you can get rid of flies at home and keep your living space cleaner, safer, and more comfortable.

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