How to Get Rid of Ants in the Garden Without Killing Plants

Updated November 2026

Ants in a garden are often a symptom of a bigger insect problem, not the main plant killer. The University of California Statewide IPM Program explains that ants protect aphids, whiteflies, and scale in order to collect honeydew, and they drive away the beneficial insects that would otherwise help you.

Start by managing those honeydew-producing insects, then use slow-acting baits for the ant colony if you still need to. Spraying ants on sight, or pouring harsh household products on a mound next to vegetables, usually fails and can harm plants and soil.

A trail of ants across a tomato stem looks alarming, but the damage you notice later is often from the aphids they are tending. UC IPM’s guidance for ants in gardens and landscapes is the backbone of this article: take away the food, keep ants off trunks, and use baits that workers will carry home. If the plants are also dull and sticky, look closely for aphids before you assume the ants are eating the crop. For a wider pest-and-plant approach, keep weeds down (they hide colonies and aphid hosts) and avoid stressing plants with uneven watering.

Why Ants Are in the Bed

Most common garden ants are looking for sweets, protein, or a dry nest site. On plants, the sweet reward is honeydew, the sticky waste of aphids and similar sucking insects. UC IPM describes how ants defend those pests from predators and parasites. If you only scatter the ants, the aphids often stay, and the ants come back. Some species also nest in mulch, under stones, or in rotting wood at the edge of a bed. A mound in a lawn or path is a different problem from ants farming pests on a rose or pepper.

Ants can also move seeds, tend peonies in a harmless way on the flower buds, or nest harmlessly in soil. You do not have to eradicate every ant in the yard. Focus on the plants that are being damaged, or on nests that interfere with walking or harvesting.

First Step: Control the Honeydew Insects

UC IPM’s aphid and ant pages both start here. Knock aphids off with a strong stream of water, prune heavily infested tips, and give beneficial insects a chance to work. A labeled insecticidal soap can help on a heavy aphid infestation if you cover the pests thoroughly and follow the vegetable or ornamental label; soap is for the soft-bodied insects, not a complete ant-colony treatment. Once the honeydew is gone, ant traffic on the plant often drops on its own.

Use Baits, Not Broadcast Sprays, for the Colony

If you still need to reduce the ants, UC IPM recommends slow-acting baits in stations or stakes, placed near trails or nests, so workers carry the bait to the nest. Control can take more than a week. You may need both a sugar bait and a protein bait, because ant diets change. Do not spray or scatter a fast-killing product on the same trail; you will kill the foragers before they feed the colony, and you may push the nest to move a few feet over.

Keep bait stations off limits to children and pets, and use products labeled for the site you have, including around edible plants if that is where the trail runs. Never use gasoline, motor oil, bleach, or salt on a mound in a food garden. Those materials can ruin soil and are not a UC IPM method. Household vinegar may briefly disturb a trail and does not reliably remove a colony.

Keep Ants Off Woody Plants

On trees and shrubs, UC IPM describes a sticky barrier around the trunk so ants cannot climb to tend pests in the canopy. Wrap the trunk first so the sticky material is not applied to the bark, and refresh the band as it collects dust. This does nothing for ants nesting in the soil at the far end of a vegetable row, but it is useful on fruit trees and roses when the problem is traffic up the stem.

Trim branches that touch buildings, fences, or other plants and give ants a bridge around the band. Mulch is fine in a garden, but pull it a few inches back from a trunk if ants have nested against the bark.

When a Mound Is the Problem

A fire ant mound is a medical and legal issue in some states and is not the same as a small pavement ant nest; follow your state extension guidance for imported fire ants. For ordinary garden mounds that are simply in the way, baits are still the cleaner first tool. Boiling water can scald plants and the person pouring it, and it often misses the queen. Digging a nest and moving it usually spreads the problem.

Prevention That Actually Helps

Ripe fruit on the ground, an open compost pile of kitchen scraps, and sticky aphid-covered weeds at the bed edge are an open cafeteria. Harvest regularly, bury or bin scraps in a way that does not feed ants and rodents, and keep the edges weeded. Inside a nearby shed, store pet food and spilled seed in sealed containers so a colony is not commuting from the kitchen to the tomatoes.

If ants are nesting under a paving stone or in a dry wooden border, you can sometimes move the hiding place after a bait has reduced the traffic. Lifting a stone and scattering the nest without bait usually creates two nests. On a raised-bed frame, seal large gaps only after you know you are not trapping a colony inside a wall; bait first.

Carpenter ants and imported fire ants are special cases. Carpenter ants nest in damp or rotting wood and point you toward a repair, not a vegetable-garden soap spray. Fire ants require state-specific methods. When in doubt, take a clear photo to your extension office rather than guessing with a product labeled for a different insect.

Be patient with baits. UC IPM notes that baiting can take more than a week, and the trail may look busier at first as more workers come to feed. That is a sign the bait is attractive, not that the plan has failed. Replace dried-out bait, keep it in a station if the label calls for one, and only switch products if the ants ignore it after a fair trial. If children or pets use the garden, put stations where they cannot be picked up, and read the label’s setback from edible parts of the plant.

Frequently Asked Questions

Will ants eat my vegetables?

Most common garden ants are not chewing holes in tomatoes the way a hornworm or a beetle would. They are more likely to be tending aphids or nesting in the soil. Look for the sucking insects and for ripe fruit that other pests have already opened.

Can I use cinnamon, coffee grounds, or cucumber peels?

UC IPM does not treat kitchen spices as a colony control method. They may change a trail for a few hours. If the plants have aphids or you have a persistent nest, use the water-and-bait approach above.

Is insecticidal soap enough?

Soap can help with aphids when used as labeled. It is not a substitute for a slow-acting ant bait when you need to reduce the colony itself.

Sources

Leave a Comment