Desima

Plants That Repel Bugs: 10 to Grow and What Really Works

Updated · First published

10 plants that repel bugs, from basil to rosemary: which pests each one deters, how to grow it, where to plant it, and an honest look at what really works.

The plants most often used to repel bugs are alliums, basil, catnip, chrysanthemums, lavender, lemongrass, marigolds, mint, petunias and rosemary. Most of them work through strong scents that confuse pests looking for their host plants, by acting as decoys, or by attracting predators that eat pests. None of them create a bug-free force field, but planted in the right spots they're a useful, low-effort part of a healthy garden.

Do plants really repel bugs?

Some do, a little, and the honest answer is that the evidence varies a lot from plant to plant. These plants tend to help in one of four ways:

  • Masking: strong-smelling foliage (rosemary, onions, mint) can make it harder for pests to find the crop next to it by scent.
  • Trap or decoy planting: some plants attract pests away from your crops, so you can deal with them in one place.
  • Attracting predators: flowering herbs feed hoverflies, lacewings, parasitic wasps and ladybirds, which then eat aphids and caterpillars. This is often the biggest benefit.
  • Plant chemistry: a few plants contain genuinely insecticidal or repellent compounds, but usually you need to extract and concentrate them to get a strong effect.

That's why these plants work best as part of a wider approach, alongside companion planting and biological pest controls, rather than as a replacement for good garden hygiene.

10 Plants to Repel Bugs in Your Garden infographic showing alliums, basil, catnip, chrysanthemums, lavender, lemongrass, marigolds, mint, petunias and rosemary with the pests each is said to deter

Feel free to share this infographic with a link back to this page.

Quick reference: plants that repel bugs

PlantPests it's associated withSunWhere to use it
AlliumsFlies, aphids, carrot flyFull sunEdges of vegetable beds, between carrots
BasilFlies, mosquitoes, thripsFull sun, warmBeside tomatoes and peppers, pots near doors
CatnipMosquitoes, house flies, mites, cockroachesFull sun to part shadeContained bed or pot, away from crops
ChrysanthemumsMosquitoes, roaches, beetles, ticksFull sunOrnamental borders, pots
LavenderMosquitoes, moths, fliesFull sun, dryPaths, patios, sunny borders
LemongrassMosquitoesFull sun, warmLarge pots on patios and decks
MarigoldsAphids, mosquitoes, root-knot nematodesFull sunMixed through vegetable beds, bed edges
MintMosquitoes, ants, aphidsSun to part shadePots only, near seating areas
PetuniasSquash bugs, beetles, aphidsFull sunEdges of vegetable beds, hanging baskets
RosemaryCabbage moths and loopers, carrot fly, slugs, snailsFull sun, dryNear brassicas and carrots, hedges

1. Alliums

Associated pests (from the infographic): flies and "worms", plus aphids and carrot fly in traditional companion planting.

Alliums include onions, garlic, chives, leeks and ornamental alliums. Their sulfur compounds give them a strong smell, and planting onions or chives between rows of carrots is a long-standing way to make it harder for carrot fly to find the crop by scent. Results in trials are mixed, but alliums take up little space, so it's an easy experiment. Ornamental alliums also bring in pollinators.

How to grow: Full sun and free-draining soil. Plant garlic and ornamental allium bulbs in autumn, and onion sets or chives in spring. Chives are an easy perennial that come back every year.

Where to plant: Along the edges of vegetable beds, between carrots, and around roses.

Caution: All alliums are toxic to dogs and cats, so keep them out of areas where pets dig or graze.

2. Basil

Associated pests: mosquitoes and mosquito eggs, flies, and thrips.

Basil's aromatic oils are the source of its reputation. Basil oil and extracts have shown repellent and larvicidal (larvae-killing) effects in lab studies, but a growing plant releases only a fraction of that. It's a classic companion for tomatoes, and when it flowers, it attracts bees and other beneficial insects.

How to grow: Warm temperatures and full sun. Basil is frost tender, so plant out once nights stay above about 10°C (50°F). Pinch out flower heads to keep it leafy, or let a few flower for the insects. Check out our list of the easiest herbs to grow indoors if you want a pot on the windowsill too.

Where to plant: Between tomatoes and peppers, and in pots by doors and outdoor tables where you'll brush past it.

3. Catnip

Associated pests: mosquitoes, house flies, mites and cockroaches.

Catnip contains nepetalactone, the compound cats love. In lab studies, nepetalactone oil has shown strong repellent effects on mosquitoes and cockroaches, comparable to or better than some commercial repellents in those tests. Again, that's the concentrated oil: a catnip plant in the garden repels much less.

How to grow: Easy, hardy perennial in full sun to part shade and average soil. It self-seeds freely and can spread, so cut back flowers before they set seed.

Where to plant: In a pot or a corner where it can't take over, away from seedlings. Be ready for neighborhood cats to roll in it, which can flatten nearby plants.

4. Chrysanthemums

Associated pests: mosquitoes, roaches, beetles and ticks.

The pyrethrum daisy (a type of chrysanthemum) is the original source of pyrethrins, a natural insecticide made from the dried flowers. Ordinary garden chrysanthemums contain much less, and the living plant doesn't spray insecticide into the air, so think of them as a pretty, minor contributor rather than a pest barrier.

How to grow: Full sun, well-drained soil and regular water. Pinch back stems in early summer for bushier plants and more flowers.

Where to plant: Ornamental borders and pots around the garden.

Caution: Chrysanthemums are mildly toxic to cats and dogs. Pyrethrum-based insecticides are highly toxic to fish and to bees, so never use them near ponds or aquaponics systems.

5. Lavender

Associated pests: mosquitoes, moths and flies.

Dried lavender in sachets is a long-standing way to keep clothes moths out of wardrobes. In the garden, the oils are released mainly when you brush past or crush the flowers. The bigger win is that lavender is one of the best plants for bees, so it fits beautifully in a bee-friendly garden.

How to grow: Full sun, poor to average soil and excellent drainage. Lavender hates wet roots and rich soil. Trim lightly after flowering to keep plants compact, but don't cut into old, bare wood.

Where to plant: Along paths, around patios and in hot, dry borders.

6. Lemongrass

Associated pests: mosquitoes.

Lemongrass is a close relative of citronella grass, and both contain lemon-scented oils used in mosquito-repellent products. The leaves release more scent when crushed. A whole clump nearby is pleasant, but it won't keep mosquitoes away on a still evening.

How to grow: A tropical grass that needs sun, warmth and regular water. It's frost tender, so in cool climates grow it in a large pot and bring it in over winter. Start it from a rooted stalk bought from the market.

Where to plant: Big pots on decks and patios. You get to use it in the kitchen too.

7. Marigolds

Associated pests: mosquitoes and aphids, plus root-knot nematodes.

Marigolds have some of the better evidence of any plant on this list, but not for the reason most people think. French marigolds release compounds from their roots that suppress root-knot nematodes, microscopic worms that damage tomato and carrot roots. The effect is strongest when marigolds are grown densely as a cover crop for a full season before the vegetables, not dotted between them. Their flowers also attract hoverflies, whose larvae eat aphids.

On the other hand, marigolds can attract slugs, thrips and spider mites themselves, which can work in your favor as a decoy if you check them regularly.

How to grow: Very easy from seed in full sun and most soils. Deadhead to keep them flowering.

Where to plant: Mixed through vegetable beds and along bed edges. To tackle nematodes, sow a solid block in the problem bed for a season.

8. Mint

Associated pests: mosquitoes, plus ants and aphids in companion planting folklore.

Mint's strong oils (including menthol) have some repellent effect when extracted. Growing mint does little against mosquitoes, but its flowers are excellent for parasitic wasps, hoverflies and bees, which do help with pest control.

How to grow: Sun to part shade and moist soil. Mint spreads aggressively by underground runners, so always grow it in a pot, even if you sink the pot into a garden bed.

Where to plant: Pots near seating areas, where you can crush a leaf or two, and near the kitchen door for cooking.

9. Petunias

Associated pests: squash bugs, beetles and aphids.

Petunias are often listed as pest repellers, but the evidence is mostly anecdotal. Their sticky, hairy stems can trap small insects, and they can attract aphids, which makes them more of a decoy than a repellent. Their flowers do help bring pollinators and beneficial insects into a vegetable garden.

How to grow: Full sun and regular water. Easy from nursery seedlings, and they flower all summer if you remove spent blooms.

Where to plant: Edges of vegetable beds, near beans and squash, and in hanging baskets.

10. Rosemary

Associated pests: cabbage loopers and cabbage moths, carrot fly, slugs and snails.

Rosemary's strong scent is used to mask the smell of carrots and cabbage-family crops from the insects that hunt for them. As with alliums, research results are mixed, and the slug and snail claim is largely anecdotal. It flowers in late winter and spring when few other plants do, which is valuable for bees.

How to grow: Full sun and very well-drained soil. Rosemary is drought tolerant once established and dislikes being overwatered. It handles light frost, but protect it or grow it in a pot where winters are harsh.

Where to plant: Near brassicas and carrots, along paths, or as a low hedge around raised beds.

Plants that repel mosquitoes: what to expect

Mosquito-repelling plants are the most searched part of this topic, and also where expectations most often go wrong. The usual candidates are:

  • Citronella grass: the source of citronella oil.
  • Lemongrass: a close relative with similar lemony oils.
  • Lemon balm: a mint relative rich in citronellal and other lemon-scented compounds. Like mint, it spreads, so grow it in a pot.
  • Catnip: nepetalactone oil performs well in lab tests.
  • Basil, lavender, mint and rosemary: all with oils that show some repellency when extracted.

The honest caveat: a living plant repels far less than the oil extracted from it. The plants release only small amounts of scent, mostly when touched, and it disperses quickly outdoors. In one study, the scented geranium sold as a "mosquito plant" gave no meaningful protection. Crushing leaves onto your skin can give brief, weak protection, but it can also cause skin irritation.

What actually reduces mosquitoes around the house:

  1. Empty standing water every week: saucers, buckets, blocked gutters, birdbaths.
  2. Use a fan on a patio. Mosquitoes are weak fliers.
  3. Use a registered repellent when you're outdoors at dusk, especially in areas where mosquitoes carry disease.

Then grow the aromatic plants because they're useful, attractive and good for pollinators, with any repelling effect as a bonus.

How to get the most from pest-repelling plants

  • Mix plants through the garden rather than planting one block. Scattered strong scents do more to confuse pests.
  • Plant flowers for predators. Herbs left to flower feed the hoverflies, lacewings and wasps that do most of the real pest control.
  • Check decoy plants often and remove the pests they collect.
  • Avoid broad-spectrum sprays, which kill the beneficial insects these plants attract.
  • Keep plants healthy. Stressed, thirsty plants are always more attractive to pests.

FAQ

What plant repels the most bugs?

No single plant repels a wide range of bugs on its own. Marigolds (for nematodes and attracting aphid predators) and strongly scented herbs like rosemary and alliums have the most practical value in vegetable gardens.

Do marigolds keep bugs away?

French marigolds suppress root-knot nematodes when grown densely for a season, and their flowers attract aphid predators. They don't keep most flying insects away and can attract slugs and spider mites.

Does lavender repel mosquitoes?

Lavender oil has some repellent effect, but a lavender plant releases very little scent unless it's brushed or crushed. It's better known for keeping moths out of stored clothes.

Are pest-repelling plants safe for pets?

Not all of them. Alliums are toxic to dogs and cats, and chrysanthemums are mildly toxic to them. Check any plant against a pet poison list before planting where pets roam.