Ant repellent plants are strongly scented herbs and flowers whose leaves or roots release oils that ants avoid, but they do not kill a colony and they only protect the small area right around the plant. The detail most people get wrong is that a plant sitting in a pot on the patio does not clear ants from a kitchen 20 feet away. Ants follow scent trails, so a plant only interrupts a trail where its scent is strong enough to mask the pheromone.

Which plants ants actually avoid, and why

Ants navigate by smell. They lay down a pheromone trail between the nest and a food source, and workers follow it. A plant that releases a strong volatile oil — mint, lavender, thyme, rosemary, tansy, wormwood, pennyroyal, catnip, garlic, chives, marigold — can confuse that trail when the leaves are crushed or when the plant is dense and warm in the sun. The effect is local and temporary. Rain, wind and a few hours of heat all reduce it.

The plants below are the ones most often listed as ant repellent, with the caveat that matters for each.

PlantWhere it works bestWhat to know
Peppermint and other mintsAlong door thresholds, under sinks in a pot, around foundationsSpreads aggressively by runners; keep it in a container or it will take over a bed
LavenderSunny borders, paths, dry spots near a patioNeeds full sun and sharp drainage; rots in wet clay soil
Thyme and rosemaryBetween paving stones, at the edge of a stepWoody and low-growing; brush them as you pass to release oil
Tansy and wormwoodGarden edges, away from foot trafficBoth are toxic if eaten; keep away from children and pets, and do not plant where a dog digs
PennyroyalMoist spots near a foundationToxic to pets and people if ingested; not a plant to handle casually
CatnipGarden bordersAttracts cats, which may flatten it; the oil is in the crushed leaf
Garlic and chivesVegetable beds and around a kitchen doorThe sulphur compounds in crushed cloves are the active part; a whole uncrushed bulb does little
MarigoldAnnual borders and vegetable bedsWorks as a companion plant; the roots and leaves are the useful parts, not the flower head alone

None of these plants is a barrier on its own. A row of lavender beside a door will not stop ants that are already nesting in a wall cavity or under a slab. Use plants as the outer layer and deal with the nest separately.

How to place ant repellent plants so they do something

Placement matters more than which plant you choose. Ants enter along edges, so put the plants where the trail runs.

  1. Find the trail first. Watch for 10-15 minutes in the morning or evening and note where the line of ants crosses a threshold, sill or foundation edge.
  2. Put the plant within about 12-18 inches (30-45 cm) of that crossing point. A plant 6 feet away does nothing.
  3. Use a container for mint, pennyroyal and catnip so they do not spread. A 12-inch (30 cm) pot is enough for one mint plant.
  4. Crush a few leaves every few days, or brush the plant as you walk past, to release the oil. An untouched plant releases very little.
  5. Keep the plant healthy. A stressed plant produces less oil, and a dead one shelters ants instead of repelling them.
  6. Repeat on the inside face of the threshold with a small pot of mint or a few cut stems, refreshed every 2-3 days.

For a kitchen windowsill, a small pot of mint or a saucer of crushed mint leaves near the entry point is the practical version. Replace the leaves when the scent fades, usually within a few days.

Where ant repellent plants fall short

A plant is a deterrent, not a control method. The colony is the problem, and the colony is usually outside the plant's reach.

Ants that come indoors for food or water are following a trail from a nest that may be under the foundation, in a wall void, under a paving stone or in a nearby garden bed. A plant on the sill interrupts the last few feet of that trail at best. If the trail keeps reappearing within a day, the nest is still active and the plant is not the answer.

Weather also erodes the effect. Heat and sun increase the volatile oils for a few hours, then they fade. Rain washes crushed leaves clean. Indoors, air conditioning and open windows dilute the scent. Expect to refresh cut material every 2-3 days and to rely on the living plant only while it is actively growing.

Some of the strongest options carry a safety cost. Tansy, wormwood and pennyroyal are toxic if eaten, and pennyroyal oil is especially dangerous to pets and children. Do not rub essential oils on pets or children, and do not leave cut stems where a toddler or a dog can chew them. If you have pets or young children, stick to mint, lavender, thyme, rosemary and marigold.

What to do alongside the plants to clear ants

Plants work as part of a sequence: find the trail, block the entry, remove the food or water source, and treat the nest if it is accessible.

Start by cleaning the trail. Wipe the line with soapy water to remove the pheromone, then dry the surface. Ants will re-lay it if the food source remains, so put away open food, wipe counters, fix a dripping tap and empty the bin regularly. Outside, move a compost bin or woodpile away from the foundation and keep mulch a few inches back from the siding.

Seal the obvious gaps: a bead of caulk along a baseboard, a door sweep, and a screen over a vent. This is the step that stops a new trail forming, and it does more than any plant.

If ants are still coming after sealing and cleaning, look for the nest. A line of ants that vanishes under a paving stone or into a crack in a slab can be treated with an ant bait placed along the trail, following the label. Keep bait away from children and pets, and do not put bait where a pet can reach it. If the nest is inside a wall or under the house and baits do not clear it, call a pest control professional rather than opening the structure yourself.

For a garden bed, keep the repellent plants at the edge and inspect the soil under pots and stones, where ants often nest. Moving a pot that has a nest under it and flushing the area with water can shift the colony without chemicals.

Ant repellent plants for pots, patios and window boxes

Containers are the most practical way to use these plants, because you can move them to the trail and keep spreading types contained.

For a sunny patio, combine lavender, thyme and rosemary in one large pot with gritty, free-draining soil. Water when the top inch (2.5 cm) is dry; all three rot in soggy soil. For a shaded entry, mint and chives do better, but mint needs a pot of its own. For a window box, marigold and catnip give quick cover in one season.

Refresh the scent by pinching back the tips every week or two. That keeps the plant bushy and releases oil at the same time. In winter, when growth slows, cut stems and place them at the entry point, replacing them every few days.

If you are planting in the ground, check the plant's needs first: lavender and rosemary want full sun and sharp drainage; mint and pennyroyal tolerate moisture; marigold is an annual in most US zones and is replanted each year. A plant that struggles will not repel anything.