What smells do ants hate? 7 plants to repel ants – and what attracts them

From rosemary to lavender, here's the best plants to deter ants from your home and garden

Plants to repel ants mint, lavender and chrysanthemum
(Image credit: Future)

When you’ve got an unwanted ant infestation on your hands, the search for a simple home remedy may lead you to reach for the ant killer, but did you know that there are many fragrant plants that repel ants, so in your quest to get rid of ants inside your home or in your backyard, it pays to consider what smells ants hate – and how you can deter ants without potentially toxic ant killers – or by raiding your pantry staples for baking soda to kill ants

We’ve got the lowdown on what smells ants hate, plus the experts’ guidance on the best fragrant flowers and plants to repel ants. 

What smells do ants hate?

Before we talk about the smells that ant hate, it is worth thinking about why ants come into the house in the first place. 

Ants generally build nests outside, but food and moisture can attract them indoors, making tackling these insects early essential. Ants are very common, and like fruit flies and gnats, are likely to be a nuisance in high summer. The good news is that proven fragrant plants can naturally repel ants. 

1. Thyme

How to grow thyme

(Image credit: Getty Images)

This herb is commonly used in cooking, but it can also control the ants and other pests in your yard. Thyme, especially lemon thyme, deters pests like ants, cabbage moths and whiteflies. The nectar produced by the plant attracts bees and other pollinators.

2. Lavender 

How to prune lavender – Ashdown Forest

(Image credit: Leigh Clapp)

Lavender may smell pleasant to humans but it’s not so popular with ants, flies, moths, fleas and mosquitoes. A pot near your door can keep ants away; lavender in boiled water is thought to repel ants; and the oil can help to keep skin bite-free.

3. Rue

Rue (also known as the herb of grace) is believed to get rid of fleas and keep Japanese beetles and ants away from roses when growing, soaked or dried. Don’t be tempted to rub it on as an insect repellent, though, as it causes burns on some people’s skin.

4. Chrysanthemum 

Chrysanthemums

(Image credit: GettyImages)

Chrysanthemum to deter ants is another popular option for your backyard. This hard-working multi-tasker will deal with multiple bugs at home. The common flower contains pyrethrum, which is frequently used in natural insect repellents to kill ants.

5. Rosemary 

How to grow rosemary in a pot

(Image credit: Leigh Clapp)

Once you learn how to grow rosemary, you'll get so much pleasure out of this wonderfully aromatic plant, and not just for its power to repel ants. While rosemary may not seem particularly pungent to the human nose, it does, in fact, release an intense smell that ants hate. 

6. Mint

One of the most popular herbs to grow at home, and pretty indestructible too, learning how to grow mint is hugely rewarding for very little effort. While fresh mint leaves can be used to deter ants, they also work to repel spiders from entering our homes, too. 

Mint is also an easy herb to grow indoors; it is the ideal choice for the amateur gardener. It can simply be grown in a small pot on the windowsill, in containers on the patio, or in a border or flower bed in the herb garden

7. Basil

basil growing in the garden in a planter

(Image credit: Markus Spiske / Unsplash)

It is certainly worth your while learning how to grow basil as this popular herb is wonderfully versatile, adding its its unique flavor to many dishes, and for its ability to repel ants. 

Basil contains an aromatic oil which ants hate. You can even make a homemade bug spray which is also effective against aphids, mites and thrips. 'The aim is not to kill off all the insects in your garden, but rather aim for a healthy ecosystem,’ says garden expert Leigh Clapp.

A staple herb for any keen cook, rosemary is also highly attractive to bees and other precious pollinators, so worth planting if you wish to attract these precious pollinators instead. 

What is the best plant to repel ants?

Pests are inevitable, but pesticides can be replaced with organic methods such as companion planting. This traditional method involves partnering a crop with a sacrificial plant to lure away the pests. Lavender deters ants from carrots and leeks – while also attracting pollinators – while nasturtiums divert ants from broccoli, and chives keep mildew at bay. Then mint repels ants from tomato plants, and chervil grown alongside lettuces reduces ant attacks.

Herbal sprays can also be effective against leaf-eating pests, like ants and aphids. A traditional method is to make a simple ‘tea’ by mashing leaves of catnip, chives, feverfew or marigolds in a couple of cups of boiling water, let them steep until cool before diluting with several more cups of water. Adding a squirt of washing-up liquid to your spray will help them stick to leaves and spread better.

What attracts ants?

Where you see aphids, you'll soon see ants. Aphids, which are the bane of the garden, can be green, pink, black or grey and attack most plants – indoors and out. They debilitate plants by literally sucking the life out them – drinking the sap, causing flowers to become distorted and new buds to die.

Aphids also attract ants, that farm them for their sweet honeydew, and can also become a nuisance on lawns and patio pots. Wormwood, artemisia absinthium has a particularly strong scent and acts as a deterrent, so plant it liberally to prevent aphids from attacking neighbouring plants, along with thyme, which is a useful companion for roses. Mint is effective if you have also have a follow-up ant infestation – even in the kitchen you can scatter a few sprigs of mint around the place and watch them disappear.

Jennifer Ebert
Editor

Jennifer is the Digital Editor at Homes & Gardens. Having worked in the interiors industry for a number of years, spanning many publications, she now hones her digital prowess on the 'best interiors website' in the world. Multi-skilled, Jennifer has worked in PR and marketing, and the occasional dabble in the social media, commercial and e-commerce space. Over the years, she has written about every area of the home, from compiling design houses from some of the best interior designers in the world to sourcing celebrity homes, reviewing appliances and even the odd news story or two.