Plants That Repel Flies and Wasps From Your Patio
Discover the best plants that repel flies and wasps from your patio — including basil, lavender, citronella grass, mint, and wormwood. Learn which compounds drive insects away, which species each plant targets, and how to arrange them for maximum effect.
Flies and wasps don’t ruin patios at random. Both are drawn by specific cues — food odours, carbon dioxide, heat, and the chemical signatures of decaying organic matter. The good news is that many of the volatile organic compounds (VOCs) that attract insects to your outdoor space can be actively overridden by the aromatic compounds released by repellent plants. Place the right plants close enough to your seating area and you create a chemical environment that flies and wasps actively prefer to avoid.
The key word is repel, not eliminate. Plants that repel flies work by disrupting the olfactory cues insects use to locate food and breeding sites — not by killing them. That means placement and density matter. A single small pot of basil twelve feet away will do almost nothing; three large pots at table corners will make a measurable difference. This article covers the science behind why these plants work, which species each targets most effectively, and how to deploy them strategically for a fly-free outdoor dining experience.

For a broader strategy that combines repellent plants with physical controls and biological pest management, see our Natural Pest Control for Gardens guide.
How Repellent Plants Work: The Volatile Compound Mechanism
Most aromatic herbs evolved strong chemical defences not for human benefit but to protect themselves from herbivorous insects. The same volatile compounds that give basil its spicy scent and lavender its floral fragrance are neurotoxic or olfactory-disruptive to many fly and wasp species. Here is what the science tells us:
Seasonal Garden Calendar
Know exactly what to plant, prune and sow — every month of the year.
- Linalool (dominant in lavender, basil, coriander): Disrupts the octopamine receptor system in insects — the same target as many synthetic pesticides. House flies exposed to linalool vapour show strong avoidance behaviour. Linalool is a registered active ingredient in EPA-approved biopesticide formulations.
- Eugenol (dominant in basil, clove-scented varieties): A proven insect repellent and feeding deterrent. Research at the USDA Agricultural Research Service has documented eugenol’s effectiveness against both house flies (Musca domestica) and fruit flies (Drosophila spp.).
- Nepetalactone (catnip): According to research published in PLOS ONE, nepetalactone activates the insect olfactory receptor TRPA1, which triggers a pain-like avoidance response in flies. Catnip’s fly-repellent activity against house flies has been shown to exceed DEET in some laboratory concentration comparisons.
- Citronellal and geraniol (citronella grass, lemon balm): Long used commercially in mosquito repellents, both compounds also repel flies and yellow jackets. Geraniol in particular has demonstrated efficacy against yellow jacket wasps (Vespula spp.) in field trials.
- Camphor and 1,8-cineole (rosemary, eucalyptus): Both compounds are volatile enough to create a repellent zone around the plant and are particularly effective against blowflies and paper wasps.
The practical implication: the most effective repellent plants are those you can gently brush or bruise to release additional oils when you sit down to eat. Aromatic activity from intact leaves is real but modest — physically disturbing the plant amplifies the volatile output significantly.
Plant Effectiveness by Fly and Wasp Species
Not all repellent plants work equally against all pest species. This table summarises the most commonly encountered patio pests and which plants target them most effectively:
| Pest Species | Most Effective Plants | Key Repellent Compound | Effectiveness Rating |
|---|---|---|---|
| House fly (Musca domestica) | Basil, catnip, lavender | Eugenol, nepetalactone, linalool | High — well-documented lab and field data |
| Fruit fly (Drosophila spp.) | Basil, rosemary, lavender | Eugenol, camphor, linalool | High around food/drink areas |
| Blowfly / bottlefly (Calliphora spp.) | Lavender, rosemary, tansy | Linalool, camphor, thujone | Moderate — reduces landing frequency |
| Deer fly (Chrysops spp.) | Citronella grass, catnip | Citronellal, nepetalactone | Moderate — best when combined |
| Yellow jacket (Vespula spp.) | Wormwood, spearmint, lemongrass | Thujone, carvone, geraniol | Moderate — deters foragers, not nests |
| Paper wasp (Polistes spp.) | Wormwood, eucalyptus, spearmint | Thujone, eucalyptol, carvone | Moderate — discourages nesting nearby |
| Fungus gnat (Bradysia spp.) | Basil, rosemary, peppermint | Eugenol, camphor, menthol | High — effective in container plantings |

Best Plants to Repel Flies From Your Patio
1. Basil (Ocimum basilicum)
Basil is the single most effective fly-repellent plant for a patio context, combining strong volatile output (even from intact leaves), fast growth in summer heat, and practical utility as a culinary herb. Its primary repellent compounds — eugenol, linalool, and estragole — are active against house flies, fruit flies, and fungus gnats. USDA laboratory research has confirmed that house flies avoid areas with concentrated basil volatiles.
For maximum effect, choose large-leafed sweet basil (‘Genovese’) or lemon basil (O. citriodorum), which has higher citral content and broader spectrum activity. Thai basil works as well. Plant in 10–12-inch pots for enough root volume to support large, aromatic plants — larger plants produce more volatile surface area. Place pots directly on the dining table or within 2 feet of seating. Pinch flower buds as they appear to keep plants in vegetative growth and maximise oil content in the leaves. For full growing guidance, see our complete basil growing guide.
2. Lavender (Lavandula spp.)
Lavender’s reputation as a fly deterrent is backed by solid research. Its linalool content — typically 25–45% of the essential oil in English lavender — is the same compound used in many commercial insect repellents. Linalool disrupts insect neurotransmitter function and creates a strong olfactory barrier that house flies, blowflies, and gnats actively avoid. Unlike some repellent plants, lavender releases meaningful quantities of volatiles from intact plants, particularly in heat — a hot summer patio environment actually improves its performance.
English lavender (Lavandula angustifolia) cultivars like ‘Hidcote’ and ‘Munstead’ have the highest linalool concentration. Lavandin hybrids (L.× intermedia) like ‘Provence’ and ‘Grosso’ produce more volatile oil per plant but have a slightly different compound profile. Both work well as patio repellents. Place in full sun at patio edges and beside seating. See our lavender growing guide for planting, pruning, and overwintering tips.
3. Peppermint and Spearmint (Mentha spp.)
Mint is among the most potent fly repellents in the herb garden. Peppermint’s menthol content and spearmint’s carvone are both powerful olfactory disruptors for house flies and fruit flies. University of Florida research has documented fly avoidance in areas treated with mint essential oils. The volatile release rate from mint is exceptionally high compared to other herbs — the plant emits detectable concentrations of menthol at ambient temperatures without any physical disturbance.
Mint spreads aggressively in the ground, so always grow it in containers on a patio. Plant spearmint and peppermint in separate 12-inch pots; they will fill a container in one growing season. The more you brush past or lightly crush the leaves, the more vapour they release. As a bonus, mint in containers near a dining table also deters ants. Keep soil consistently moist — drought-stressed mint loses much of its volatile oil content and effectiveness.
4. Citronella Grass (Cymbopogon nardus or C. winterianus)
Citronella grass — not the ornamental “citronella plant” pelargonium, which has minimal documented efficacy — is the species from which commercial citronella oil is derived. Its citronellal and geraniol content is significantly higher than any other commonly grown patio plant and produces a broad-spectrum repellent effect against flies, mosquitoes, and foraging yellow jackets. A single large container plant (3-gallon or larger) provides meaningful coverage for a standard patio seating area.
Citronella grass is a tender perennial in most US zones — hardy in USDA Zones 10–12, grown as an annual or overwintered indoors in Zones 3–9. In warmer zones (7–9), it may survive mild winters in a sheltered patio position. It grows large (4–6 ft in a single season) and looks dramatic as a focal planter. Full sun is essential for maximum oil production. The repellent effect is strongly enhanced by gently bending or brushing stems as you pass.
5. Rosemary (Salvia rosmarinus)
Rosemary’s camphor and 1,8-cineole content makes it particularly effective against blowflies and stable flies, which are attracted to grills and outdoor cooking areas. Research from Purdue University Extension notes camphor as a significant insect repellent volatile. Rosemary also benefits from the same heat-activation effect as lavender — hot, sunny patio conditions increase terpene release rates, meaning it performs better on the days when you most need fly control.
Upright varieties like ‘Tuscan Blue’ or ‘Blue Spire’ make good structural patio plants; trailing varieties work well in raised planters along patio edges. Full sun and excellent drainage are non-negotiable — rosemary tolerates drought but not wet roots. Keep plants near the grill specifically, where cooking odours would otherwise attract the most flies.
6. Catnip (Nepeta cataria)
Catnip is arguably the most potent fly-specific repellent plant available to home gardeners. A study in PLOS ONE (2021) identified nepetalactone as the active compound that activates the TRPA1 receptor in multiple insect species, including several fly species, triggering an avoidance response. In earlier Iowa State University research, catnip oil showed repellent activity against house flies ten times greater than DEET at comparable concentrations.
The significant caveat: nepetalactone attracts cats intensely. If your patio is visited by cats, grow catnip in a hanging basket or elevated planter out of reach, or use garden catmint (Nepeta × faassenii) instead, which has similar fly-repellent volatile activity but lower nepetalactone concentration and less cat interest. Both are ornamental as well as functional, producing lavender-blue flower spikes through summer.
7. Marigolds (Tagetes spp.)
French marigolds (Tagetes patula) and African marigolds (T. erecta) both produce thiophene compounds and limonene that repel several fly species, particularly fungus gnats and fruit flies. Their repellent effect is lower than basil or mint but they add visual appeal and work well as part of a multi-species patio strategy. More importantly, marigolds are effective deterrents around food growing areas — they are classic companion plants used to protect vegetable gardens from pest flies, aphids, and soil nematodes.
Best Plants to Deter Wasps
Wasp deterrence requires a different approach than fly deterrence. Yellow jackets and paper wasps are primarily attracted to protein and sweet food odours rather than the fermentation cues that draw flies. The plants most effective against wasps contain thujone, carvone, or eucalyptol — compounds that interfere with the chemical communication systems wasps use to locate and mark food sources.
Wormwood (Artemisia absinthium)
Wormwood has the highest thujone concentration of any commonly grown garden plant. Thujone is a GABA antagonist in insects — it interferes with neural transmission and is strongly repellent to yellow jackets and paper wasps at close range. Wormwood is also notably effective against flies as a secondary benefit. It grows well in containers and is hardy in USDA Zones 3–9, making it one of the few wasp-deterrent plants suitable for all US climate zones.
One practical consideration: wormwood contains allelopathic compounds that can inhibit nearby plants if grown in the ground. In containers, this is not a concern. Grow in a dedicated pot and position it at patio entry points or near areas where wasps are most problematic. Silver foliage is architecturally attractive as well as functional.
Spearmint (Mentha spicata)
Spearmint’s carvone content makes it effective against both flies (see above) and foraging wasps. Yellow jackets are particularly sensitive to carvone — it disrupts the chemical marking pheromones they use to signal food sources to nest-mates. Placing spearmint near food preparation and serving areas can interrupt this recruitment process. Use fresh spearmint strategically: a bunch of cut stems left in a jar of water on the table is more immediately effective than a potted plant because the damaged tissue releases higher VOC concentrations.
Lemongrass (Cymbopogon citratus)
Related to citronella grass, lemongrass contains high concentrations of geraniol and citral, both of which have demonstrated repellent activity against foraging yellow jackets. Geraniol in particular interferes with the wasp’s ability to locate sugar-based food sources by overriding the floral and fruit volatile signatures they follow. Lemongrass grows well in large containers in USDA Zones 8–10 (as a perennial) and Zones 3–7 as a summer annual. Its tall architectural form and lemon-citrus fragrance also make it an excellent sensory feature plant for patio gardens.

Pennyroyal (Mentha pulegium)
Pennyroyal contains pulegone, a compound with strong repellent activity against wasps and a range of fly species. It has historically been used as a household insect repellent — bundles of dried pennyroyal were hung near doors in pre-modern homes to deter flies. A container of pennyroyal at patio edges provides meaningful wasp deterrence and is particularly effective when lightly brushed to release fresh volatiles. Note: pennyroyal essential oil is toxic if ingested in quantity — keep potted plants away from children and pets, and do not use pennyroyal oil undiluted on skin.
How to Arrange Repellent Plants for Maximum Effect
Placement is the variable most gardeners underestimate. The volatile compounds that make these plants effective have a limited radius — typically 2–4 feet for most herbs under normal outdoor conditions. Wind significantly reduces effectiveness. Here is a practical deployment strategy for a standard patio:
- Table perimeter: Two or three large basil pots placed directly on the table corners create a high-concentration VOC zone over the food. This is where fly pressure is highest, and where plant proximity matters most.
- Seating perimeter: Lavender and rosemary in planters along the patio edge provide background deterrence over the full seating area. Space planters every 4–5 feet for continuous coverage.
- Entry points: Wormwood or lemongrass at patio gates or steps deters wasps before they enter the main dining area.
- Near the grill: Rosemary specifically near the grill addresses the peak fly-attraction zone during cooking.
- Upwind positions: If your patio has a prevailing wind direction, place the most aromatic plants slightly upwind — citronella grass, mint — so volatiles drift toward the seating area rather than away from it.
Bruise leaves before sitting down. Walk through the herb plants, lightly squeeze basil leaves, bend mint stems. This releases a concentrated pulse of volatile oils that significantly increases the immediate repellent effect. Repeat every 45–60 minutes during extended outdoor meals.
Combining Repellent Plants With Your Broader Pest Strategy
Repellent plants work best as one layer of a multi-pronged approach. On their own, they reduce fly and wasp pressure meaningfully but rarely eliminate it completely, especially on hot days with strong food odours present. Combine them with:
- Eliminating attractants: Covered food, sealed garbage cans, and prompt removal of spilled sweet drinks reduce the primary attractant signals that overwhelm any repellent plant barrier.
- Physical traps: Yellow jacket traps positioned 30–40 feet away from the patio (not near it — traps attract before they trap) intercept foragers heading toward your space.
- Companion planting in adjacent beds: Extending repellent plants into nearby vegetable or flower beds through companion planting creates a broader insect-management zone around the entire outdoor space. The same plants that protect your patio work in your garden too — see our companion planting guide for how to integrate them into your beds.
This layered approach — repellent plants, attractant removal, and targeted trapping — is the core of an effective natural pest control strategy for outdoor living spaces. For the full framework, see our natural pest control guide.

Frequently Asked Questions
Does citronella actually repel flies, or just mosquitoes?
True citronella grass (Cymbopogon nardus) repels both mosquitoes and several fly species, including house flies and fruit flies. The “citronella plant” sold at garden centres (a lemon-scented pelargonium) is not the same species and has much weaker documented repellent activity. For genuine fly repellence, buy plants clearly labelled Cymbopogon nardus or C. winterianus, not the pelargonium.
How many plants do I need for a patio to work?
For a standard 10×12-foot patio, a practical baseline is: 2–3 large basil pots on the table, 4–6 lavender or rosemary planters around the perimeter, and 1–2 citronella grass containers at entry points. Single small plants in distant corners will have negligible effect — density and proximity to the seating area determine effectiveness.
Will these plants get rid of yellow jackets completely?
No. Repellent plants deter foraging yellow jackets and reduce their frequency in your patio area, but they will not eliminate wasps if an active nest is nearby. If you have a nest within 50 feet of your patio, physical nest removal or treatment is necessary regardless of what plants you grow. Repellent plants work on foragers exploring for food, not on nesting behaviour.
Which plant is best for flies specifically on food?
Basil is the most effective single plant for the immediate dining table environment. Its eugenol and linalool volatiles are well-documented against house flies and fruit flies, it grows large in summer heat, and it is safe to have in direct contact with food. Place 2–3 large basil plants directly on the table for the highest concentration deterrence at the point where flies are most problematic.
Do I need to dry or process the plants, or do live plants work?
Live potted plants release volatiles continuously at low levels, with increased output in heat and when physically disturbed. Dried herbs have much lower volatile activity because the essential oils evaporate during drying. Fresh-cut stems placed in water are highly effective — the damaged tissue releases more concentrated volatiles than intact potted plants. For maximum effect: potted plants as a baseline, fresh-cut bunches on the table during meals.
Are any of these plants toxic to dogs or cats?
Pennyroyal is toxic to both dogs and cats if ingested and should not be grown where pets can access it. Lavender is mildly toxic to cats and dogs if consumed in large quantities but is generally considered safe at patio-proximity levels. Basil, rosemary, and mint are generally pet-safe. Wormwood contains thujone, which is toxic to pets if ingested — keep it in elevated containers. Citronella grass is classified as mildly toxic to cats by the ASPCA. Consult your veterinarian if you have pets that regularly graze on plants.
Sources
- USDA Agricultural Research Service. Eugenol and plant-derived essential oils as house fly repellents. ARS.USDA.gov
- Alene Bhat et al. Natural Products for Managing Landscape and Garden Pests in Florida. EDIS, University of Florida IFAS Extension
- University of Minnesota Extension. Yellowjackets and Paper Wasps. University of Minnesota Extension
- Cornell Cooperative Extension. Garden-Based Pest Management Resources. Cornell University College of Agriculture and Life Sciences









