How To Stop Flies From Coming Inside

I'm here to share my experience. If you buy something through our links, we may earn a commission.

How To Stop Flies From Coming Inside

Flies are one of those tiny nuisances that can ruin a peaceful afternoon in the garden or make dinner inside feel less appetizing. I’ve wrestled with them for years — from a small summer invasion around the compost bin to a full-blown kitchen ambush after a family BBQ. Over time I learned a bunch of practical, low-toxicity strategies that actually work. Here’s a full, gardener-friendly guide to keeping flies out of your home.

Understand Why Flies Come Inside

Stopping flies starts with understanding what attracts them. Flies seek food, moisture, warmth, and breeding sites. Open doors and windows, exposed trash, pet bowls, ripe fruit, compost, and clogged drains are all invitations. Once you remove those attractions, you’ll be surprised how quickly fly pressure drops.

Common attractants to remove

  • Uncovered garbage and recycling
  • Overripe fruit left on counters
  • Open pet food and bowls
  • Food scraps in sinks or on counters
  • Compost piles left uncovered or too wet
  • Clogged or smelly drains

Seal the House: Make Entry Hard

Think of your home as a fortress. The fewer gaps, the fewer flies get in.

Doors and windows

  • Install and maintain tight-fitting window and door screens. Replace tears immediately.
  • Use door sweeps and weatherstripping to close gaps beneath and around doors.
  • Install self-closing hinges on frequently used doors or a screen door to intercept flies.

Small openings

  • Seal cracks in window frames, vents, and siding with caulk.
  • Fit mesh over vents and chimney openings — 18×16 or 20×20 mesh keeps most flies out while allowing airflow.
  • Cover pet flaps with a magnetic or tightly sealing option to avoid a fly doorway.

Sanitation: Remove What Attracts Flies

This is the most effective long-term strategy. I always say, “Clean home, fewer flies” — and it’s true. Flies are lazy: remove the easy food and they’ll move on.

Kitchen and indoor tips

  • Empty indoor trash frequently and use bins with tight lids. Keep a small compost pail with a lid in the kitchen for food scraps and empty it often.
  • Store fruit in the fridge or covered bowls — ripe pears and bananas are an open invitation.
  • Clean drains weekly with a brush and hot water or a safe enzymatic drain cleaner to remove organic buildup where drain flies breed.
  • Clean pet areas and remove waste promptly from yards.

Outdoor maintenance

  • Keep the compost pile balanced and covered; turn it regularly so it heats and doesn’t become a breeding ground.
  • Move trash cans away from doors and keep lids sealed.
  • Remove fallen fruit from under trees and harvest promptly.
  • Avoid overwatering plants; standing water is a breeding spot for some flies.

Natural Repellents and Plant Barriers

I love using plants to solve problems — and certain herbs and flowers genuinely deter flies. Plant them near doors, windows, and outdoor entertaining areas.

  • Basil, mint, and lavender — keep in pots by doors or on windowsills.
  • Marigolds and chrysanthemums — decorative and useful in borders.
  • Rosemary and bay — aromatic and great in containers by entrances.

“I keep a pot of basil beside my kitchen door all summer — not only does it smell wonderful, it seems to reduce the number of fruit flies sneaking in.” — from my own garden

Active Control: Traps and Devices

If flies are persistent, use traps as a second line of defense. I prefer low-tox, DIY traps before chemical options.

DIY and household traps

  • Apple-cider vinegar trap: small bowl with a bit of apple-cider vinegar and a drop of dish soap. Flies are attracted and sink.
  • Fruit-bowl funnel trap: put a piece of overripe fruit in a jar, cover with plastic wrap, poke small holes. Flies get in and can’t escape.
  • Sticky paper and fly ribbons near doors and windows for a passive catch.

Electric and mechanical options

  • Electric fly swatters and zappers for immediate knockdown.
  • UV traps positioned away from food prep areas; these are useful in outbuildings and garages.
  • Ceiling fans over patios: flies have trouble flying in strong breezes.

When to Consider Professional Help or Pesticides

For severe infestations, especially inside walls or long-term breeding sites, professional pest control can locate hidden sources. Use pesticides as a last resort and follow label directions strictly. I prefer targeted baits or professional gel treatments to widespread spraying.

Seasonal and Practical Habits That Help

  • Keep doors closed when not in use — set up a routine of closing them quickly after entry.
  • Serve food indoors or keep outdoor food covered with lids or mesh screens.
  • Time outdoor chores like watering for early morning to reduce evening humidity that attracts flies.
  • Inspect screens and seals at the start of fly season and repair immediately.

Final Thoughts

Stopping flies from coming inside is a mix of prevention, cleanliness, and smart barriers. Seal the gaps, remove the attractants, use plants and traps where appropriate, and choose low-tox methods first. I’ve found that a few simple daily habits — storing fruit in the fridge, emptying the compost pail, and keeping a basil pot on the doorstep — make summer evenings far more peaceful.

Try a combination of these approaches and watch which ones work best for your home. With a bit of attention, you can reclaim your kitchen and patio from these persistent little pests.

Nick Wayne

Gardening and lawn care enthusiast

Nicolaslawn