The plants most often used to repel bugs are strong-smelling herbs and flowers: lavender, basil, mint, rosemary, lemongrass, catnip, marigolds and the onion family. Their aromatic oils mask the scents insects use to find food and can put some pests off laying eggs, so they deter bugs rather than eliminate them. Planted in groups around beds and seating areas, they reduce pest pressure; they won’t replace screens or a mosquito net, and the evidence that living plants keep mosquitoes away is limited.

Dealing with a particular pest? The pest-repelling plant finder shows which plants deter, trap or attract predators of aphids, slugs, cabbage worms, flea beetles and more, with an honest note on how well each works.

Chart: which plant repels which pest

The table below sums up all 15 plants. “Pests deterred” lists the insects each plant is traditionally grown to discourage. For most of them the evidence is gardeners’ experience rather than controlled trials, so treat it as a guide.

PlantPests deterredWhere to plantSun
LavenderMoths, flies, fleas, mosquitoesPath edges, patios, dry sunny bordersFull sun
BasilFlies, mosquitoes, thripsPots by doors, beside tomatoes and peppersFull sun
CatnipMosquitoes, flies, flea beetlesPots or a corner bed away from vegetablesFull sun to part shade
LemongrassMosquitoesLarge pots on patios (frost-tender)Full sun
Marigolds (French)Root-knot nematodes, whitefliesEdges and gaps of vegetable bedsFull sun
ChrysanthemumsBeetles, ants, ticksBorders around bedsFull sun
MintAnts, aphids, flea beetles, mosquitoesContainers only, it spreadsFull sun to part shade
RosemaryCabbage moths, carrot flies, slugsBeside brassicas and carrots, sunny edgesFull sun
Alliums (chives, garlic, onions)Aphids, carrot flies, Japanese beetlesBetween carrots, lettuce and rosesFull sun
PetuniasAphids, asparagus beetles, tomato hornwormsBed edges, hanging basketsFull sun
NasturtiumsAphids and cabbage caterpillars (as a trap crop)A few feet from the crop you want to protectFull sun to part shade
SageCabbage moths, carrot fliesNear brassicas and carrotsFull sun
ThymeCabbage moths, whitefliesBed edges, between paving stonesFull sun
Lemon balmMosquitoes, gnatsPots near seating, it self-seedsFull sun to part shade
DillAttracts aphid predators (ladybirds, hoverflies, wasps)Among cabbages and lettuceFull sun

What the research says about each plant

Most “pest-repelling plant” lists repeat traditional advice. The table below rates each claim by what extension services and published studies have actually found, so you can put your effort into the plants with real support. “No trials found” means none of the sources listed at the end of this guide reports a test of that claim; it doesn’t prove the plant does nothing.

PlantPests it’s said to deterEvidenceWhat has been found
French marigoldRoot-knot nematodes, whiteflies, flea beetles, Colorado potato beetleGood, with conditions (nematodes); mixed (insects)Suppresses root-knot nematodes when grown as a dense cover crop at the same site at least two months before the vegetable, every season; interplanting is unreliable (UF/IFAS). A few studies found fewer thrips on tomatoes and less cabbageworm damage. Multiple studies found it does not deter Colorado potato beetle, and there is little support for flea beetles (UMN).
NasturtiumAphids and flea beetles (as a trap crop), squash bugs, cabbage wormsSome evidenceResearch supports fewer squash bugs, and Iowa studies found less squash bug, cucumber beetle and cabbageworm damage (UMN). Works as a trap crop for aphids and flea beetles if you check and clear it often (WSU).
ThymeCabbage moths and caterpillarsSome evidenceWith sage, reduced diamondback moth on Brussels sprouts in a greenhouse; with onion and nasturtium, reduced cabbage looper and cabbageworm damage on broccoli in an Iowa study (UMN).
SageCabbage moths, carrot fliesSome evidence (cabbage moths)Reduced diamondback moth on Brussels sprouts in a greenhouse study (UMN). No trials found for carrot flies.
BasilThrips, flies, mosquitoesSome evidence (thrips); no trials found (flies, mosquitoes)A few studies found basil reduced thrips on tomatoes in the field and greenhouse (UMN).
Alliums (onions, chives, garlic)Aphids, carrot flies, cabbage worms, flea beetlesMixedOnion reduced cabbage looper and cabbageworm damage in Iowa studies; there is little research behind using green onions against flea beetles (UMN). No trials found for carrot flies or aphids.
CatnipMosquitoes, flies, flea beetlesLab onlyConcentrated nepetalactone oil repelled mosquitoes in a laboratory tube test at about a tenth of the dose of DEET needed (Iowa State, 2001). Living plants weren’t tested.
Citronella plant (Pelargonium ‘citrosum’)MosquitoesTested: didn’t workIn a field test, people treated with citrosa were bitten as often as untreated people (Matsuda et al., 1996).
LavenderMoths, flies, fleas, mosquitoesNo trials foundTraditional use.
LemongrassMosquitoesNo trials found (living plant)Its oil is related to citronella oil, but no source here tests the living plant.
MintAnts, aphids, flea beetles, mosquitoesNo trials foundTraditional use.
RosemaryCabbage moths, carrot flies, slugsNo trials foundTraditional use.
ChrysanthemumBeetles, ants, ticksNo trials found (living plant)The insecticide pyrethrin comes from dried pyrethrum flowers; that doesn’t make a growing plant a repellent.
PetuniaAphids, asparagus beetles, tomato hornwormsNo trials foundAnecdotal.
Lemon balmMosquitoes, gnatsNo trials found (living plant)Traditional use.
DillAttracts aphid predators rather than repelling pestsIndirectGiving predators such as hoverflies (syrphid flies) flowers and habitat helps reduce aphids (UMN).

The pattern is clear: the best-supported plants work by trapping pests (nasturtium), confusing them with mixed planting (thyme, sage or onion beside cabbages), feeding predators (dill and other flowers) or suppressing nematodes as a cover crop (marigold). Plants grown to repel mosquitoes have the weakest support.

The 15 plants that repel bugs

1. Lavender

Lavender’s scent is traditionally used to put off moths, flies and fleas, though we found no trials backing this, and bees love its flowers. It thrives in hot, dry, sunny spots with free-draining soil. Hang bunches of dried flowers in wardrobes to deter clothes moths.

2. Basil

Basil is said to discourage flies and mosquitoes close to the plant. The better evidence is for thrips: a few studies found fewer thrips on tomatoes grown with basil. Keep a few pots by the kitchen door or near seating, and grow it beside tomatoes. It’s a classic kitchen-garden companion. The leaves release their scent when brushed or warmed by the sun.

3. Catnip

Catnip contains nepetalactone, a compound that has repelled mosquitoes well in laboratory tests when used as a concentrated oil. A growing plant gives off far less, so expect a modest local effect at best. Cats will roll in it and flatten it, and it self-seeds, so give it a spot where that doesn’t matter.

4. Lemongrass

Lemongrass is rich in citral, a lemon-scented oil related to the citronella used in candles and sprays. (Most commercial citronella oil comes from citronella grass, a close relative.) It needs warm summers. In cool climates, grow it in a large pot and bring it indoors before the first frost.

5. Marigolds

French marigolds are the classic vegetable-bed border. Their roots release compounds that suppress root-knot nematodes, which is the best-supported claim on this list. The effect is strongest when a dense block of marigolds is grown for a season and then dug in. Their scent is also said to put off whiteflies. Don’t rely on them against Colorado potato beetles: several studies found no effect.

6. Chrysanthemums

The natural insecticide pyrethrin is extracted from the dried flowers of the pyrethrum daisy, a type of chrysanthemum. A living plant doesn’t release enough to kill insects, but chrysanthemums are traditionally planted as a border to deter beetles and ants. They are toxic to cats and dogs.

7. Mint

Peppermint and spearmint have a strong scent that ants and aphids are said to avoid, though we found no trials testing it. Mint spreads aggressively through underground runners, so always grow it in a pot. If you want it in a bed, sink the pot into the soil with its rim showing.

8. Rosemary

Rosemary is grown near cabbages, broccoli and carrots to mask their scent from cabbage moths and carrot flies. It’s a woody perennial in mild climates (roughly USDA zones 7–10, or anywhere without long hard frosts). Once established it needs very little water.

9. Alliums

Chives, garlic, onions, leeks and ornamental alliums release strong sulphur compounds. Onions planted beside cabbage-family crops reduced caterpillar damage in Iowa studies; the other uses below are traditional. A row of onions or leeks between carrot rows is an old trick for confusing carrot flies, which find their target by smell. Chives under roses are a traditional defence against aphids. Alliums are toxic to dogs and cats, so keep them away from where pets dig.

10. Petunias

Petunias have sticky hairs on their stems and leaves that can trap small insects. Gardeners plant them to discourage aphids, asparagus beetles and tomato hornworms, though the evidence is anecdotal. They’re easy, colourful and flower all summer in beds or hanging baskets.

11. Nasturtiums

Nasturtiums work as a trap crop rather than a repellent. Aphids and cabbage white butterflies prefer them to many vegetables, so a patch a few feet away draws pests off your main crop. Check them often and remove heavily infested leaves. The leaves and flowers are edible.

12. Sage

Like rosemary, sage has a strong, resinous scent and is planted near brassicas and carrots to confuse cabbage moths and carrot flies. In a greenhouse study, sage and thyme reduced diamondback moths on Brussels sprouts. Let it flower and the bees will follow.

13. Thyme

Low-growing thyme is planted along bed edges and between paving to discourage cabbage moths and whiteflies. It loves the same hot, dry, sunny conditions as lavender and rosemary.

14. Lemon balm

Lemon balm contains citronellal, another lemon-scented compound, and crushed leaves rubbed on skin are a traditional mosquito deterrent. Like mint, it self-seeds and spreads, so a pot near seating is the easiest way to grow it.

15. Dill

Dill doesn’t repel pests itself. Its flat flower heads attract ladybirds, hoverflies and tiny parasitic wasps, whose larvae eat aphids and caterpillars. Including a few “insect-attracting” plants like dill alongside the repellent ones gives you natural pest control. A bee-friendly garden works on the same principle.

Do plants really repel mosquitoes?

Be careful here. Concentrated plant oils can repel mosquitoes: catnip’s nepetalactone did so in laboratory tests at a small fraction of the dose of DEET. That is a long way from a plant in a pot. A living plant releases only a small amount of scent into the air. When researchers tested the “citrosa” mosquito plant outdoors, people near it were bitten as often as people without it (Matsuda et al., 1996). Brushing or crushing the leaves helps briefly.

For mosquitoes, the measures that work best are getting rid of standing water where they breed (saucers, buckets, blocked gutters), using a fan on the patio, and using a registered repellent on your skin. Mosquito-repelling plants are a pleasant addition on top of those, not a replacement.

How to get the most out of pest-repelling plants

  1. Plant in groups, not singles. One basil plant does very little. A cluster of three to five gives off far more scent.
  2. Put them where the pests are. Grow them right beside the crops you want to protect, or right next to where you sit. A lavender bed at the far end of the garden won’t help your patio.
  3. Brush the leaves. Most of these plants release their oils when touched or warmed. Plant them along paths where you’ll brush past.
  4. Mix in companions. Our companion planting guide shows which vegetables grow well together, and the companion planting chart lets you check pairings crop by crop.
  5. Match the sun. Almost all of these need full sun (6+ hours a day). The garden sunlight guide shows which vegetables share the same light needs.

Many of these plants are also useful in the kitchen or for home remedies. See healing herbs for your garden, or browse more guides on our gardening hub.

Frequently asked questions

What plants keep bugs away from a vegetable garden?

Marigolds, nasturtiums, alliums (onions, chives, garlic), rosemary, sage, thyme and basil are the most common choices. Plant them along bed edges and between crops. Add flowers like dill or sweet alyssum to attract insects that eat aphids and caterpillars.

What is the best plant to repel mosquitoes?

Lemongrass, catnip, lavender, basil and lemon balm are the most popular. All of them contain oils that repel mosquitoes in concentrated form, but as living plants their effect is small and very local. Remove standing water and use a fan or skin repellent for reliable protection.

Do citronella plants keep mosquitoes away?

The “citronella plant” sold in garden centres is usually a scented geranium with a lemony smell. Analysis found no oil from the citronella grasses in it, and in a field test it gave no reduction in mosquito bites compared with no treatment (Matsuda et al., 1996).

What are the best patio plants that repel bugs?

For pots on a patio or deck, choose lavender, basil, lemongrass, rosemary, lemon balm and mint. All grow well in containers, and keeping them close to where you sit makes the most of their scent.

Are bug-repelling plants safe for pets?

Not all of them. Alliums, chrysanthemums and lemongrass are toxic to cats and dogs, and catnip attracts cats. If pets share your garden, check each plant before you buy and keep the risky ones out of reach.

Sources

The figures and claims in this guide were checked against these sources.

  1. Companion planting in home gardens . Natalie Hoidal, University of Minnesota Extension (reviewed 2026). Summarises the research on marigolds, nasturtiums, basil, thyme, sage, onions and trap crops.
  2. Marigolds (Tagetes spp.) for Nematode Management (ENY-056) . UF/IFAS Extension, EDIS. Marigolds suppress root-knot nematodes only when grown as a cover crop at the same site, at least two months before the crop.
  3. Essential oil analysis and field evaluation of the citrosa plant 'Pelargonium citrosum' as a repellent against populations of Aedes mosquitoes . Matsuda BM et al., Journal of the American Mosquito Control Association 12(1):69–74, 1996. Field test: no significant difference in bites between citrosa-treated and untreated people.
  4. Catnip repels mosquitoes more effectively than DEET . American Chemical Society news release on Iowa State University research (Peterson and Coats), via ScienceDaily, 2001. Laboratory tube test of nepetalactone oil, not of living plants.
  5. Trap Cropping . Kathy Wolfe, WSU Extension, 2020. Nasturtiums as a trap crop for aphids and flea beetles; check and clear trap plants often.

Some links on this page may be affiliate links — if you buy through them we may earn a small commission at no extra cost to you. We only link to gear we'd genuinely use ourselves.