No flower reliably repels ants by itself. Some strongly scented plants—such as lavender, peppermint, tansy, and marigolds—are often described as ant repellents, but the evidence is mostly anecdotal and the effect is local and weak. A flowering plant may discourage ants from walking directly over or through it, yet it will not clear an infestation, protect a structure, or stop a trail that leads to food. Treat these plants as mild deterrents and companion-planting curiosities, not as pest control.
Why Some Flowers Are Called Ant Repellents
The idea comes from the essential oils and other volatile compounds that give certain plants their strong scent. Ants rely heavily on chemical trails and touch cues to navigate and recruit nestmates, and concentrated plant oils can disrupt those cues in laboratory settings. Plants release only tiny amounts of these compounds into the air, though, so the dose an ant encounters around a living flower is far lower than what a researcher applies in a petri dish. That gap explains why a lavender hedge might seem to keep ants off a patio edge while doing nothing for a colony nesting under a paving stone a metre away.
Cultural tradition reinforces the idea. In European and North American gardening, tansy, wormwood, pennyroyal, and southernwood have long been tucked into stored clothing or strewn near doorways on the belief that their scent drives insects away. Some of these plants do contain compounds that insects avoid at high concentrations, but the folk practice and the horticultural reality are not the same thing. A plant that smells strong to a human nose is not automatically a barrier to an ant.
How the Effect Actually Works
Ants detect the world through antennae covered in chemical receptors. When they find food, they lay down a pheromone trail that nestmates follow. Anything that masks, breaks up, or overwhelms that trail can confuse foragers. Strong-smelling plants can do this in a limited way: an ant crossing a bed of mint or lavender may lose the trail and wander, and a dense planting can physically slow movement. But the effect is temporary and local. Once the ant reacquires the trail, it continues. And a plant cannot reach a nest hidden in a wall cavity, under a slab, or inside a potted plant.
There is also a physical component. Dense, low-growing plants create a tangle of stems and leaves that ants find harder to traverse than bare soil or paving. That is a barrier effect, not a chemical one, and it works with any dense ground cover, fragrant or not. A thick mat of thyme between stepping stones may reduce ant traffic simply by covering the ground.
Which Plants Are Commonly Listed
Gardeners and extension services often mention the following when the topic of ant-repellent plants comes up. None is a guaranteed control; they are listed because they are the ones most frequently cited.
- Lavender (Lavandula species): aromatic foliage, drought-tolerant, attractive to pollinators.
- Peppermint and other mints (Mentha species): strong menthol scent, spreads aggressively by runners.
- Tansy (Tanacetum vulgare): old-fashioned herb with a pungent camphor-like smell; can be invasive in some regions.
- Marigolds (Tagetes species): often planted as a general pest deterrent; the effect on ants is unproven.
- Wormwood (Artemisia absinthium): bitter, strong-scented foliage; can spread and is toxic if ingested.
- Pennyroyal (Mentha pulegium): low-growing mint with a powerful scent; toxic to pets and people if eaten.
- Catnip (Nepeta cataria): releases nepetalactone, a compound insects detect; effect on ants is not well established.
- Chrysanthemums: contain pyrethrin-like compounds, but the amount in a living flower is not a practical ant control.
How to Choose and Use Them Realistically
If you want to try plants as part of an integrated approach, choose for the growing conditions first and the ant story second. A plant that struggles in your soil or light will not deter anything. Use the following steps to set realistic expectations.
- Identify the ant problem. Are ants trailing indoors, nesting in a pot, or simply foraging in the garden? Only the first two usually warrant action.
- Place strongly scented plants where ant traffic is heaviest—along a foundation edge, beside a doorway, or between paving joints—rather than scattered randomly.
- Plant densely enough to create a physical mat, since the barrier effect is more reliable than the scent effect.
- Keep plants trimmed away from siding and windows so they do not create bridges for ants or other insects.
- Combine plants with non-chemical tactics: sealing cracks, cleaning up crumbs, storing food in sealed containers, and removing standing water.
- Reassess after a season. If ants are still entering the house, plants are not the answer; move to exclusion and, if needed, professional advice.
Common Problems and Misconceptions
The most common misconception is that planting a ring of marigolds or lavender will create an invisible fence. Ants routinely walk over and through these plants. Another is that a plant's essential oil equals the plant itself: a bottle of peppermint oil is concentrated and can be a useful cleaning or deterrent aid, but a peppermint plant releases a fraction of that concentration. A third is that a strong smell means safety. Several plants listed as ant deterrents are toxic if eaten—wormwood, pennyroyal, and tansy among them—and should be kept away from children and pets.
It is also worth distinguishing repellence from control. Repellents make a surface or plant less attractive; they do not kill ants or eliminate colonies. If ants are nesting in a wall, under a floor, or in a compost bin, no flower will reach them. In those cases, the practical route is to remove the attractant, seal entry points, and consult a pest professional for structural infestations.
Plants Versus Other Deterrents
Compared with other approaches, plants are the weakest option but also the least disruptive. Physical barriers such as caulk, weatherstripping, and fine mesh screens are far more effective at keeping ants out of buildings. Cleaning with soap and water removes the pheromone trails that guide foragers. Sticky bands around potted plants can stop ants from reaching aphid colonies on stems. Diatomaceous earth can be used in dry, hidden cracks, though it loses effectiveness when wet and should be kept away from pets and children. Commercial ant baits target the colony itself and are generally more reliable than any plant, but they must be used according to the label and kept out of reach of children and animals.
For gardeners who prefer to avoid chemicals, the most honest framing is that fragrant plants are a pleasant addition to a border and may slightly reduce ant traffic at the margins. They are not a substitute for exclusion or baiting.
Safety and Practical Cautions
Several plants sold as ant deterrents carry real risks. Pennyroyal and wormwood are toxic if ingested, and pennyroyal oil in particular should not be used around pregnant people or pets. Tansy can be invasive and is toxic to livestock. Mint spreads aggressively and can take over a bed. Before planting any of these, check whether they are invasive in your region and whether they are safe around children and animals. Never rely on a plant to control a wasp, bee, or ant problem near a home; if stings or bites occur, seek medical help rather than applying home remedies.
Frequently Asked Questions
Do marigolds really keep ants away?
There is no strong evidence that marigolds repel ants. They are often planted for general garden colour and nematode suppression, but ants will walk past them without difficulty. Treat the claim as folklore rather than a control measure.
Will lavender stop ants coming into my house?
Lavender may make a doorway less attractive at the margins, but it will not stop a trail that leads to food or a nest inside the building. Sealing gaps and removing food sources are far more reliable.
Can I use essential oils from these plants instead?
Essential oils are much more concentrated than living plants, but they are also volatile and can be irritating or toxic if misused. Follow label directions, keep them away from children and pets, and never apply undiluted oils where people or animals may contact them.
What plants actually deter ants?
None is reliably effective on its own. The strongest results come from combining dense planting with physical exclusion, cleaning, and targeted baiting where appropriate.
Are ant-repellent plants safe around pets?
Some are not. Pennyroyal, wormwood, and tansy are toxic if eaten, and several others can cause stomach upset. Check each species against a reliable pet-safety list before planting.