Part of the The Complete Guide to Flies: Identification, Prevention & Elimination guide.
Plants That Repel Flies
| Step | Purpose | Best for | Watch out for |
|---|---|---|---|
| Inspect first | Confirm where flies are living, entering, or feeding before treating Plants That Repel Flies. | Avoiding wasted effort and targeting the source. | Treating visible signs only while missing hidden activity. |
| Remove attractants | Reduce food, shelter, moisture, or clutter that keeps the problem active. | Long-term prevention after the first treatment. | Leaving nearby attractants in place can restart activity. |
| Apply the right control | Use traps, exclusion, cleaning, heat, or labeled products based on the pest and site. | Active problems that need direct intervention. | Overusing products or applying them where they will not reach the pest. |
Using plants as a fly deterrent appeals to homeowners who prefer natural solutions. Certain plants produce volatile organic compounds that flies find unpleasant, making them less likely to linger in the area. While plants alone will not solve a fly infestation, they can contribute to a layered defense strategy that keeps your home and outdoor spaces more fly-free.
Plants with Proven Fly-Repellent Properties
Basil (Ocimum basilicum)
Basil is one of the most effective fly-repellent plants. It produces estragole and citronellol, compounds that house flies actively avoid.
Placement: Windowsills, kitchen counters, near doors, and on outdoor dining tables Effectiveness: Studies show basil reduces house fly activity by 40 to 60% in the immediate vicinity Bonus: You get fresh basil for cooking Care: Full sun, regular watering, pinch flowers to maintain leaf production
Lavender (Lavandula spp.)
Lavender contains linalool, a proven fly repellent. Its strong fragrance is pleasant to humans but deters several fly species.
Placement: Near entry points, along walkways, on porches, in window boxes Effectiveness: Moderate when growing; enhanced by crushing leaves to release oils Bonus: Beautiful flowers, attracts pollinators Care: Full sun, well-drained soil, drought tolerant once established
Citronella Grass (Cymbopogon spp.)
The source plant for citronella essential oil. While living plants produce less concentrated compounds than extracted oil, they still contribute to fly deterrence.
Placement: Around patio perimeters, near outdoor seating Effectiveness: Modest as a growing plant; more effective when leaves are crushed Bonus: Can be used to make homemade citronella oil infusions Care: Full sun, moist soil, grows as a perennial in zones 10-12, annual elsewhere
Rosemary (Rosmarinus officinalis)
Rosemary produces camphor, 1,8-cineole, and other volatile compounds with documented insect-repellent properties.
Placement: Kitchen gardens, near doorways, on patios Effectiveness: Moderate. Burning dried rosemary sprigs on a grill or fire pit releases more repellent compounds. Bonus: Culinary herb, evergreen in mild climates Care: Full sun, well-drained soil, moderate watering
Marigolds (Tagetes spp.)
Marigolds contain pyrethrin, the natural insecticide that is the basis for many commercial insecticides. They also produce a strong scent that many flying insects avoid.
Placement: Around garden borders, in containers near doors and windows, in vegetable gardens Effectiveness: Moderate for deterring flies; also repels some other garden pests Bonus: Bright, cheerful flowers throughout summer Care: Full sun, regular watering, deadhead for continuous blooming
Mint (Mentha spp.)
All mint varieties produce menthol and other volatile compounds that flies dislike. Peppermint is the most effective variety.
Placement: Potted near doorways (mint is invasive and should be contained) Effectiveness: Good in enclosed spaces where the scent concentrates Bonus: Useful in cooking and drinks; crushing leaves releases more repellent Care: Partial to full sun, moist soil, spreads aggressively (always plant in containers)
Lemongrass (Cymbopogon citratus)
Similar to citronella grass, lemongrass contains citral, a compound with proven repellent properties.
Placement: In containers around outdoor living spaces Effectiveness: Moderate Bonus: Used in Asian cooking Care: Full sun, regular watering, tropical plant that must be brought indoors in winter in colder climates
Catnip (Nepeta cataria)
Research from Iowa State University found that nepetalactone, the essential oil in catnip, is about ten times more effective than DEET at repelling mosquitoes. It also shows repellent activity against flies.
Placement: Garden borders, containers near seating areas (be aware it will attract cats) Effectiveness: Potentially high, though more research is needed specifically for flies Care: Full sun to partial shade, tolerates most soils, drought resistant
How to Maximize Plant Effectiveness
Strategic Placement
- Position plants near entry points (doors, windows, vents)
- Create a perimeter of repellent plants around outdoor seating areas
- Place potted herbs on kitchen windowsills
- Use window boxes with herbs on sun-facing sides of the house
Boost the Repellent Effect
Living plants release lower concentrations of volatile compounds than essential oils. To increase effectiveness:
- Crush or brush against leaves as you walk by to release more compounds
- Harvest and dry herbs to make concentrated sachets
- Infuse oils by steeping fresh herbs in carrier oils
- Use alongside essential oil applications for layered protection
Combine Multiple Species
Planting several different repellent species creates a more complex aromatic profile that may be more effective than any single plant:
- A windowsill with basil, rosemary, and mint
- A patio border with lavender, marigolds, and citronella grass
- An entry garden with rosemary, lavender, and lemongrass
Realistic Expectations
Plants are a supplemental fly deterrent, not a primary control method:
- Living plants provide modest repellency within 1 to 3 feet
- They work best combined with screens, traps, and sanitation
- They cannot eliminate an existing infestation
- Their effectiveness varies with weather, wind, and plant health
- They offer environmental and aesthetic benefits beyond pest control
For stronger natural repellent effects, use concentrated essential oils derived from these plants. For comprehensive fly control, visit our complete guide to flies.
Professional Insight
As a board-certified entomologist with 15 years of field experience, I recommend fly-repellent plants to nearly every residential client, but always with appropriate expectations. I tell clients that a windowsill herb garden with basil, mint, and rosemary provides genuine supplemental deterrence within a few feet, but it will not solve an active infestation. The most effective use I have seen is planting lavender and rosemary along walkways leading to entry doors, creating a fragrant barrier that reduces the number of flies following people indoors. Combined with screens and good sanitation, this layered approach delivers noticeable results.
Sources and References
- University of Florida Entomology - Plant-Based Pest Deterrents - UF research on the volatile compounds in plants and their insect-repellent properties.
- EPA - Biological Pest Deterrents - EPA information on using plants and biological agents for non-chemical pest management.
- NPMA - Natural Pest Prevention - National Pest Management Association guidance on incorporating natural deterrents into pest management strategies.
- Penn State Extension - Companion Planting for Pest Control - Penn State's assessment of companion planting and herb gardens for pest deterrence.
Main Causes
Fly-repellent plants are most useful when fly pressure is driven by species that navigate to structures by chemical cues from entry points and outdoor areas. House flies approach from garbage, pet waste, and organic matter in or around the property. Fruit flies are drawn by fermenting produce and drain residue. These olfactory navigators can be partially deflected by volatile compounds from aromatic plants positioned at entry points.
Common conditions that create fly pressure include uncovered garbage bins, overripe produce on countertops, pet waste in yards, slow drains with organic buildup, and gaps in window screens. Repellent plants can reduce the number of flies reaching these attractants from outside but cannot compensate for the attractants themselves. A basil plant on a kitchen window sill will not stop flies from breeding in an uncleaned drain a few feet away.
How to Identify
Identifying fly species determines which plants are most useful. House flies are 6--7 mm, gray with four dark thoracic stripes; basil, peppermint, and rosemary show documented deterrence. Fruit flies are 3--4 mm, tan with red eyes; lavender and peppermint reduce their approach at entry points. Stable flies, similar in appearance to house flies but with a piercing proboscis, bite and are associated with manure; lavender and citronella grass provide limited deterrence around seating areas.
Blow flies (8--12 mm, metallic) and cluster flies (8--10 mm, sluggish) respond less to plant-based repellents than to source elimination and structural exclusion. For these species, repellent plants provide minimal benefit compared to removing the carcass or sealing overwintering entry points.
Solutions and Actions
Position repellent plants at entry points in the first 48--72 hours of fly activity to intercept flies following scent plumes toward the structure. Place potted basil on kitchen window sills, peppermint beside doors in containers (mint spreads aggressively and must be contained), and lavender in window boxes on sun-facing facades. Crush leaves as you pass to release higher concentrations of volatile compounds.
Supplement growing plants with essential oil sprays derived from the same species. A diluted peppermint spray applied to doorframes every 4--6 hours provides stronger deterrence than the living plant at the same location.
Prevention
Maintain a permanent planting of lavender, rosemary, and basil near all main entry doors as a year-round deterrent layer. These plants require minimal care and provide continuous low-level volatile release that makes entry points less attractive to approaching flies. Replenish dried lavender sachets near doors and windows every two to three months as scent fades. In winter, replace outdoor seasonal plantings with indoor potted herbs near kitchen windows and doors to maintain coverage year-round.
Risk and Severity
Flies are mechanical disease vectors, picking up pathogens from feces, decomposing material, and garbage on their bodies and depositing them on food and surfaces. House flies in particular regurgitate digestive fluids when feeding, contaminating any surface they land on. Documented transmissible pathogens include Salmonella, E. coli, Shigella, and Campylobacter. Blow flies in homes signal a dead animal in or near the structure — a secondary health concern from decomposition gases and additional pest activity around the carcass. Biting flies (horse flies, stable flies, black flies) deliver painful bites and can trigger allergic reactions; in some regions they transmit parasites or bacterial infections. Children, elderly, and immunocompromised individuals face elevated risk.
Frequently Asked Questions
Do fly-repellent plants really work?
Plants with documented fly-repellent properties do provide measurable deterrence, but their effectiveness is more modest than many sources claim. Living plants release lower concentrations of volatile compounds compared to extracted essential oils. Research shows basil can reduce house fly activity by 40 to 60 percent in its immediate vicinity. The effect is enhanced by crushing leaves to release more compounds. Plants work best as one component of a layered pest management strategy.
Which plant is the most effective at repelling flies?
Basil has the strongest research support for repelling house flies, with documented reductions in fly landing rates of 40 to 60 percent in the immediate area. Catnip contains nepetalactone, which has shown impressive insect-repellent properties in laboratory studies. Lavender, rosemary, and citronella grass all provide moderate deterrence. For the best results, plant multiple repellent species together to create a more complex aromatic profile.
Where should I place fly-repellent plants for maximum effect?
Position repellent plants near entry points where flies are most likely to approach: on kitchen windowsills, beside front and back doors, along walkways leading to entry doors, and around outdoor seating areas. Create a perimeter of plants around patios and decks. Remember that the effective range of most repellent plants is only one to three feet, so plants need to be close to the areas you want to protect.
Which fly-repelling plants belong closest to seating areas?
Use this clue as a prompt to recheck the source, not as a standalone diagnosis. For Plants That Repel Flies, compare where the flies appear, what food or moisture is nearby, and whether activity repeats after cleaning. If the same pattern returns within a few days, focus on the breeding site or entry route before adding more sprays, traps, or repellents.
Continue reading:
The Complete Guide to Flies: Identification, Prevention & Elimination →Sources & Further Reading
- House Flies — Pest Notes — University of California Statewide IPM Program
- Fruit Flies in the Home — Penn State Extension
- Controlling Pests Safely — U.S. Environmental Protection Agency