8 Plants That Repel Ants

Peppermint, lavender, rosemary, and spearmint are the most useful starting plants for many homes, while tested aromatic oils have produced 74% to 90% repellency within two hours against destroyer ants. Cinnamon and food-grade diatomaceous earth can strengthen a barrier, but they're adjuncts, not living plants or a universal fix.

The Best Ant Barrier May Already Belong in Your Garden

The popular advice is to spray the moment ants appear. That can be the wrong first move, especially around edible beds, patios, and places where children or pets spend time. Aromatic plants can disrupt trails and make entry points less inviting, but they work best as targeted barriers, not as a cure for every colony.

That distinction matters. A living mint plant releases scent gradually and needs the right placement. Cinnamon powder is a temporary physical and odor barrier. Food-grade diatomaceous earth, or DE, works differently again, by damaging insects that cross the dry powder. Neither substitute addresses a nest established inside a wall, beneath a slab, or beside a persistent moisture source. For broader context on practical, non-spray pest planning, see these expert garden pest solutions.

Where you plant matters as much as what you plant. USDA hardiness zones, winter protection, soil moisture, aggressive spreading, and pet safety all change the recommendation. The evidence also isn't universal across ant species. Research on floral volatiles found that repellency varied by ant species, and roughly a third of 49 plant species tested in a Costa Rican dry forest repelled ants at close range, with no single response applying to every ant. The University of Edinburgh research summary helps explain why a plant that works beside a greenhouse door may disappoint in a kitchen or raised bed.

1. Peppermint

A pot of peppermint beside the back door usually does more work than a plant buried in a border. Mentha × piperita releases a strong menthol-rich aroma near an entry point, while its leaves provide a useful harvest for tea, cooking, and cold drinks. A peer-reviewed review describes the long use of bruised aromatic plants in homes and identifies mint-family oils among widely used insect repellents in its discussion of traditional and modern plant repellents.

Peppermint also earns its place in colder gardens. It can return after winter in many northern growing conditions, while gardeners in warmer regions can keep it productive on a patio with regular watering. Its underground stems spread aggressively, so a large container with drainage holes is usually safer than a loose bed. Set the pot on paving, a stand, or another surface that prevents stems and roots from reaching bare soil.

Give the plant bright light and steady moisture, allowing the soil to drain rather than remain waterlogged. Harvesting the stems keeps fresh foliage within reach and helps you monitor growth before it crowds nearby plants. In colder areas, protect the container from severe winter exposure because roots above ground face more cold than roots in a garden bed.

Choose placement with purpose. Put peppermint beside a back door, outdoor kitchen, greenhouse entrance, or patio route where ants commonly travel. It can provide fresh leaves for household use while making that route less inviting. Avoid scattering pots through vegetable beds, where escaped stems can become a maintenance problem.

Practical rule: Treat peppermint as a movable barrier and harvestable herb, not permanent ground cover.

Peppermint needs light, water, and containment. Cinnamon powder creates a temporary perimeter instead and must be replaced after rain or wind. Use either as a targeted aid, not a solution for a colony established inside a wall, beneath a slab, or beside persistent moisture.

A comparative infographic showing the benefits of peppermint versus cinnamon as natural deterrents for common household ants.

2. Spearmint

Spearmint, Mentha spicata, earns its place as a culinary herb first and an ant-deterrent plant second. Its scent is softer than peppermint's, making it more comfortable near seating areas, outdoor kitchens, and paths where people handle the foliage. The leaves suit Mediterranean dishes, fresh beverages, and cocktails, so placement can serve both garden use and household use.

Evidence for mint oils should not be treated as proof that a living spearmint plant repels ants. An applied-oil study found spearmint and peppermint oil effective against colonies nesting in moist-soil plant pots in laboratory and field trials. A potted plant releases scent less consistently, especially after watering, rain, or heavy harvesting.

Spearmint spreads readily, although it is usually somewhat easier to manage than peppermint. Grow it in a container for patios and walkways, or use a bounded bed where spreading is acceptable. In warm regions it can remain productive for much of the year, colder areas may see winter dieback before regrowth. Choose locally grown starts when possible, since a nursery can offer plants better matched to regional heat, cold, and watering patterns.

Use it where people will use it

Place spearmint near an outdoor table, drink station, or garden path rather than scattering it through vegetable beds. That position keeps the leaves accessible and lets you notice runners before they reach neighboring plants. Southern Appalachian gardeners may value it for regional drinks, while California farm stands and markets often carry culinary-grade starts.

For cultivation details, these spearmint growing tips provide a useful supplement.

If ants are occupying damp nursery pots, adjust the conditions around the plants as well. Move containers away from walls, correct persistent moisture, and inspect pot undersides for sheltering ants. Spearmint may make a route less attractive, but it will not replace sanitation or remove a nest hidden beneath a slab, inside a wall, or beside a constant water source.

3. Cinnamon

Cinnamon isn't a plant you'll grow in most American gardens, but cinnamon powder belongs in this conversation because it can serve as a temporary barrier around plants and entry points. True cinnamon trees in the Cinnamomum genus need tropical conditions, so most gardeners should think of cinnamon as a processed bark product rather than a garden plant.

Use food-grade powder around the outside of a container, along a visible trail, or around the edge of a raised bed. The strong odor can interfere with the trail ants follow, but powder is weather-sensitive. Rain, irrigation, wind, and foot traffic all reduce its usefulness.

Place it where the trail actually runs

A narrow line beside a doorway or around a vulnerable pot is more practical than covering an entire garden. Keep the powder on the soil surface, away from plant crowns and foliage that could hold damp material against stems. If you're using it in a container, avoid treating the recommendation as a universal soil amendment. The useful role here is a surface barrier, not a substitute for sound potting mix.

The plan notes for household use often call for repeated applications, but there isn't verified evidence here to support a fixed reapplication schedule or a measured mixing rate. Apply it again when weather or watering visibly breaks the line, and stop if the powder cakes into a wet layer.

Cinnamon can redirect a trail, but it won't remove the colony.

Cinnamon works best beside a living barrier such as peppermint, spearmint, lavender, or rosemary. It also gives gardeners a quick option while perennial plants establish. Buy a clearly labeled culinary product, and when possible, look for regional spice sellers or farmers market vendors through local sourcing networks.

A small green plant in a terracotta pot with a circular ring of cinnamon around the base.

4. Tansy

Tansy, Tanacetum vulgare, has the look of an old farmstead plant, with fern-like foliage and yellow button flowers. Its pungent scent makes it more appropriate for a perimeter than a kitchen herb garden. A peer-reviewed review of herbal ant repellents lists tansy among herbs traditionally placed near doorways to help discourage ants, along with lavender, sage, spearmint, hyssop, geranium, and southernwood in its discussion of herbal plants.

The safety trade-off is serious. Tansy can be toxic if ingested in quantity, so don't plant it beside children's play areas, pet runs, or edible beds where leaves and flowers could be mistaken for food. It can also spread aggressively and is considered invasive in some states. Check your state's invasive-plant guidance before buying a start.

Reserve it for ornamental edges

Tansy can work along a fence, beside an outbuilding, or around a barn where you want a tough, aromatic border. New England farmstead gardens have long used pungent plants around working structures, while Mid-Atlantic growers may use tansy as an ornamental edge near young fruit trees. That placement keeps the plant useful without putting it in the center of food production.

Space plants 18 to 24 inches apart if you establish a border, then watch the seed heads. Deadheading limits self-seeding. If you want natural propagation, allow only a controlled portion to drop seed and remove volunteers from unwanted areas.

Dried flowers can be used in aromatic arrangements, but drying doesn't make a toxic plant edible. Wear gloves if the foliage irritates your skin, label the planting clearly, and keep children and pets away. Tansy is a strong candidate for a carefully managed boundary, not a casual companion plant.

5. Lavender

Lavender, particularly Lavandula angustifolia, earns its place because it combines a useful aroma with a polished appearance. Its flowers suit sunny borders, walkway edges, containers, and dry gardens, while the fragrant stems can be cut for drying. Lavender also supports pollinators, which gives it a broader garden role than just discouraging ants.

Choose the variety for your climate. English lavender is the safer option for cooler regions, while French types need warmer conditions and good winter protection. The plan's general range is zones 5 to 9, depending on variety, so read the plant label rather than assuming every lavender plant will survive your winter.

Drainage decides success

Lavender dislikes wet feet more than it dislikes dry soil. Give it full sun, fast-draining soil, and enough room for mature width, which can range from 12 to 36 inches depending on the cultivar. In heavy clay, improve drainage with a raised planting position and suitable soil amendments rather than relying on frequent watering.

Water while the plant establishes, then let the soil dry between waterings. Prune in early spring to maintain a compact form, deadhead to encourage continued flowering, and harvest flower stems in the morning for drying or household use.

A vibrant bush of fragrant lavender flowers growing beside a paved walkway in a sunny garden.

Lavender is a good choice when you want the barrier to look intentional. Plant it beside a sunny walkway leading to a door, around a patio, or along the dry edge of a raised bed. It won't block every ant, especially where moisture, food, or a nest draws them in, but it can make the route less attractive.

For another ornamental planting idea that fits a useful garden, visit Shopifarm's guide to mosquito repellent plants.

6. Rosemary

Rosemary, Salvia rosmarinus, is a woody herb that works especially well along paths and sunny vegetable beds. Its needle-like foliage releases a strong aroma when brushed, so a plant beside a walkway can create more practical contact with its scent than one hidden in a back corner.

In warm regions, rosemary can serve as a long-lived shrub. The assigned growing range is zones 8 to 11 year-round, while gardeners in zones 5 to 7 commonly grow it as an annual or in a container that can be protected from hard freezes. In colder areas, a movable pot is often more reliable than an exposed perennial planting.

Match the form to the space

Upright rosemary creates a clearer edge around a garden or pathway. Trailing forms suit containers, retaining walls, and hanging arrangements, but they're less useful as a defined ant barrier. Plant in sandy or rocky soil, or improve heavy clay with materials that increase drainage. Water regularly during the first season, then reduce irrigation once the shrub is established.

Prune lightly through the growing season to harvest fresh tips and encourage branching. In cold climates, avoid major pruning after late August because tender regrowth can suffer winter damage. Position rosemary where you'll naturally brush the foliage, but don't crowd it against a doorway if its texture could scratch passersby.

A rosemary pot near the busiest ant route can move with the season. Northeast gardeners can bring it indoors before severe freezes, while growers in California, Arizona, and southern Texas often use it as a permanent herb and garden plant. Its kitchen value makes the space worthwhile even when ant pressure changes.

For climate-aware cultivation and harvest guidance, use Shopifarm's herb growing guide. Local nurseries can also help you select upright or trailing forms suited to your winter conditions.

7. Pennyroyal

Pennyroyal is a low-growing, mint-like plant with a strong camphor aroma, but it requires more caution than its small size suggests. Creeping pennyroyal, Mentha pulegium, spreads horizontally and is generally treated as hardy to zone 6. American pennyroyal, Hedeoma pulegioides, is an annual in northern climates.

Its traditional use is as a border plant around pathways, storage areas, and outbuildings. That placement makes more sense than putting it directly into a vegetable bed. Pennyroyal needs moisture without waterlogging, and it struggles when allowed to dry severely.

Keep it away from foraging areas

Pennyroyal contains pulegone, so keep it away from children, pets, and anyone who might gather herbs casually. Don't use it as a culinary mint. Plant it along a controlled walkway edge or beside a utility structure, then label it clearly.

Space starts 8 to 12 inches apart for a ground-cover effect. Shearing in late summer keeps the planting dense and reduces seed production. In northern areas, American pennyroyal can function as a seasonal border from spring through frost, while creeping pennyroyal offers a more persistent ground-cover option where it's suitable and legal.

The plant's strongest advantage is coverage. The main disadvantage is management. A spreading aromatic can fill gaps quickly, but it may also move beyond the spot you selected. Check local invasive-plant guidance, especially before planting creeping forms near natural areas.

Specialty herb nurseries and local growers can distinguish the two species more reliably than an unlabeled garden-center tray. Ask about winter behavior, containment, and safe placement before purchasing. Pennyroyal belongs in a deliberate perimeter plan, not an impulse planting beside lettuce.

8. Diatomaceous Earth

Diatomaceous earth is not a plant, but food-grade DE can complement living ant-repellent plants when you need a physical barrier. It's a naturally occurring powder made from fossilized diatoms. Rather than relying on scent, dry DE damages the bodies of insects that cross it and can cause dehydration.

Use food-grade DE only. Don't substitute pool-grade material, and check packaging for food-grade or organic-production labeling such as OMRI approval. Apply a light layer around a container, beside an ant trail, or near a mound, then combine it with a contained aromatic plant such as peppermint, lavender, or rosemary.

Dry conditions matter

DE loses its practical value when rain or irrigation wets it. Reapply after weather breaks the layer, but don't assume a thicker coating will solve the problem. The plan's working application range is 1 to 2 tablespoons per application area, with a suggested repeat interval of 7 to 10 days during peak activity. Because these are application instructions rather than verified performance statistics, follow the product label and local organic-production guidance first.

Wear a dust mask while applying DE, work during calm conditions, and avoid creating airborne clouds. Keep the container dry and sealed between uses. Don't apply it directly to flowers where pollinators are actively visiting, and avoid unnecessary dusting across the whole garden.

DE is an adjunct barrier. It doesn't replace finding why ants are reaching the bed.

A pot of peppermint beside newly transplanted seedlings can make the route less inviting, while a dry DE line adds a physical obstacle at ground level. Organic growers often combine companion planting with such targeted barriers, but persistent colonies still require inspection for nesting sites, moisture, honeydew-producing insects, and structural entry points.

8-Plant Ant-Repellent Comparison

ItemImplementation complexityResource requirementsExpected outcomesIdeal use casesKey advantages
PeppermintModerate, easy to grow but requires containmentMoist soil, partial-full sun, pots or root barriers, zones 3-11High, persistent repellent near plants, ongoing effect with maintenanceContainers near ant entry points, patio pots, protected garden edgesExtremely effective, edible/medicinal harvest, low maintenance once established
SpearmintModerate, similar to peppermint but slightly easier to manageConsistent moisture, containers or barriers, zones 5-9Medium-high ongoing repellent, milder aroma than peppermintCulinary herb beds, mixed herbings, containers near seating areasCulinary quality, ornamental, attracts pollinators
Cinnamon (powder)Low, simple dusting, growing trees = high (tropical)Food-grade cinnamon powder, regular reapplication after rain, trees need zones 11-12Immediate short-term repellent, works within hours to daysQuick perimeter lines, container rims, raised bedsImmediate action, inexpensive, widely available, organic-garden safe
TansyLow-Moderate, easy to grow but needs careful placementHardy zones 3-9, minimal soil requirements, spacing and monitoring to limit self-seedingHigh repellent potency, long bloom seasonPerimeter borders, around outbuildings, non-edible ornamental zonesVery potent repellent, ornamental, drought- and low-input tolerant
LavenderModerate, requires good drainage and full sunWell-draining soil, full sun (6+ hrs), drought conditions preferred, zones 5-9Medium-high persistent repellent, attractive to pollinatorsOrnamental borders, xeriscapes, pathways and near ediblesAttractive, drought-tolerant, safe near food crops
RosemaryModerate, woody shrub, container use in cool zonesWell-draining soil, full sun, zones 5-11 (perennial in 8+), winter protection in cold zonesHigh persistent repellent where established, year-round aroma in warm climatesArchitectural hedges, culinary gardens, containers on patiosLong-lived culinary herb, strong repellent, low maintenance
PennyroyalModerate, low groundcover but toxic and spreadingMoist, well-draining soil, spacing for matting, creeping perennial zones 6-9 (or annual north)High local repellent, suppresses trails and nesting when densePath edges, living borders, non-play/peripheral zonesLow-growing dense cover, powerful localized repellent
Diatomaceous Earth (food-grade)Low-Moderate, easy to apply but requires safety precautionsFood-grade DE, reapply after rain, mask for application, avoid pool-gradeImmediate physical kill on contact, effective when combined with repellent plantsLayered IPM, around mounds, seedling protection, complement to companion plantsKills on contact, OMRI/organic-approved (food-grade), broad pest control

Build a Barrier That Fits Your Garden

The most dependable setup is usually small and intentional. Put contained peppermint or spearmint near an indoor entry, patio door, greenhouse threshold, or outdoor kitchen. Choose lavender or rosemary for a sunny, visible border where drainage is good. Reserve tansy and pennyroyal for clearly labeled perimeter spaces away from children, pets, and edible harvesting.

Match the plant to the site before you shop. Mint wants consistent moisture and aggressive containment. Lavender and rosemary want sun and sharply draining soil. Tender rosemary needs a movable container in colder areas, while lavender selection depends heavily on the cultivar and local winter conditions. Pennyroyal needs moisture but shouldn't sit in saturated ground, and tansy may be restricted or invasive in some states.

Cinnamon and DE can fill the gap while perennial plants establish, but both need attention after rain. Rebuild a visible cinnamon line when weather washes it away. Reapply food-grade DE only according to the product label and safe handling practices, especially when moisture has made the powder ineffective.

A plant barrier also needs monitoring. Follow the trail rather than assuming the plant failed. Ants may be nesting beneath a pot, entering through a foundation crack, farming aphids on a plant, or following a damp route that no aromatic border can overcome. Species matter too. Evidence from plant-volatility research shows that ants don't respond identically to every plant, extract, or scent, so treat these options as targeted tools rather than universal repellents.

Start with one contained herb and observe where ants travel. If the route is sunny and dry, lavender or rosemary may fit better than mint. If the space is damp and close to a door, a movable mint pot may be easier to manage. Add a carefully placed barrier only where activity persists, and keep food, pet bowls, compost, and standing moisture from reinforcing the trail.

Local sourcing makes this plan more reliable. A nearby nursery or farm can identify varieties that handle your USDA zone, summer heat, winter wet, and available light. Use Shopifarm to find regional plant nurseries and farms, compare offerings, and ask growers for starts suited to your garden rather than buying an unlabeled plant that may struggle before it has a chance to help.


Shopifarm connects gardeners with local farms, nurseries, and agricultural businesses across America, making it easier to find region-suited mint, lavender, rosemary, and other useful starts. Visit Shopifarm to search by location, compare local offerings, and support growers who know what performs in your area.