How to Get Rid of Ants in Your Garden Naturally

Most ants in your garden are actually helping it. They tunnel through soil and reduce compaction (collectively, they move more earth than earthworms), prey on caterpillars, beetles, and ticks, and aerate root systems. The ants you want to deal with are the ones farming aphids on your plants, building mounds in your beds, or stripping leaves overnight. The trick is targeting problem colonies without wiping out the beneficial ones.

Figure Out Why the Ants Are There

Before you reach for any treatment, spend a few minutes watching the ants. Follow the trail and see where they’re going. If they’re climbing your plants, they’re almost certainly tending aphids or scale insects. These sap-sucking pests produce honeydew, a sticky sugar excretion that ants collect and carry back to the colony. In exchange, the ants protect the aphids from predators like ladybugs. In this case, your real problem is the aphids. Knock them off with a strong spray of water or treat them with insecticidal soap, and the ants will lose interest.

If the ants are building large mounds in your garden beds, they could be fire ants, which bite and sting, or leaf-cutting ants, which physically harvest chunks of your plants to grow fungus underground. Leaf-cutters can be extremely destructive to gardens and crops. Fire ant mounds need direct treatment. On the other hand, small grayish-black pyramid ants that build neat little mounds with a raised rim are harmless and can be left alone.

In rare cases, ants themselves will feed on sugar inside young seedlings or plant stems. But the vast majority of the time, ant activity on plants points back to a honeydew-producing pest.

Homemade Borax Bait for Whole Colonies

Killing the ants you can see does almost nothing. The queen stays underground, producing more workers. To actually eliminate a colony, you need the workers to carry a slow-acting poison back to the nest. Borax-based bait does exactly this.

A proven recipe from the University of Hawaiʻi: dissolve 1 teaspoon of boric acid powder and 3 tablespoons of white sugar in warm distilled or bottled water, filling to about 1¾ cups. Stir until completely dissolved. Soak cotton balls in the liquid and place them along the ant trails you’ve identified, or pour small amounts into shallow containers near the mounds. Workers carry the sugar water back to feed the colony, including the queen and larvae. It takes several days to a couple of weeks to see full results because the poison works slowly enough that the ants don’t associate it with the bait.

One caution for edible gardens: boric acid and borate salts can act as herbicides at high concentrations, drying out plant tissue. Don’t pour the solution directly onto soil near plant roots. Contained bait stations (a small jar on its side, a covered dish) keep the borax where the ants are and away from your soil and crops.

Diatomaceous Earth as a Barrier

Food-grade diatomaceous earth is made from fossilized marine shells ground into a fine powder. Under a microscope, the particles are razor-sharp. When ants walk through it, the powder pierces their exoskeleton, and they dehydrate and die. It works on contact and remains effective as long as it stays dry.

Apply a thin, even layer along ant trails, around the base of affected plants, and in a ring around garden bed edges. If you’ve found a nest entrance, spread it directly over and around the opening. Check treated areas after 24 to 48 hours. Ants sometimes reroute around treated zones, so you may need to reapply in new spots. Rain and sprinkler water wash it away, so plan to reapply after watering or storms.

Diatomaceous earth isn’t selective. It will also affect beneficial ground-dwelling insects that crawl through it, so apply it strategically rather than blanketing your entire garden. Avoid dusting it on flowers where bees are actively foraging.

Boiling Water on Mounds

Pouring boiling water directly into ant mounds is a common recommendation, and it does work, just not as reliably as people assume. Research from the University of Florida puts the success rate at 20% to 60% per treatment. You need at least 3 gallons of water at 190°F to 212°F poured slowly into the mound to have a reasonable chance of reaching the queen deep underground. Most colonies require several treatments.

The obvious risk in a garden: boiling water will scald and kill plant roots near the mound. If the nest is right next to your tomatoes or in a raised bed, this method can do more damage to your plants than the ants were doing. It works best for isolated mounds in pathways or open areas of the yard.

Beneficial Nematodes for Soil-Level Control

If you want a biological approach, predatory nematodes are microscopic worms that naturally live in soil and parasitize insect larvae. When applied to the ground, they seek out ant nests and infect the developing larvae, disrupting the colony’s ability to produce new workers. Over time, this either kills the colony or forces it to relocate.

You can buy nematode mixes online or at garden centers. They’re typically mixed with water and applied with a watering can or sprayer directly over the area where ant nests are active. They need moist soil and moderate temperatures to survive, so apply them in the early morning or evening and water the area lightly afterward. Nematodes won’t harm plants, earthworms, or pets, making them one of the safest options for vegetable gardens.

Plants and Mulch That Repel Ants

Ants navigate by scent, and strong-smelling plants can mask the chemical trails they use to find food. Mint is one of the most effective deterrents. Its pungent oils act as a natural repellent, and a healthy mint plant produces scent continuously through the growing season. Lavender, thyme, and marjoram have similar effects and are more manageable in a garden bed (mint spreads aggressively, so consider growing it in a pot sunk into the soil).

Cedar mulch contains natural oils that ants avoid. A 2- to 3-inch layer in your garden beds serves double duty as weed suppression and ant deterrent. Refresh it when the cedar scent fades, typically once or twice a season. Sprinkling cinnamon, ground cloves, or chili powder around bed edges creates a temporary barrier, though these need frequent reapplication, especially after rain.

Combining Methods for Lasting Results

No single approach works perfectly on its own. The most effective strategy layers several methods together. Start by addressing aphids or scale insects if ants are farming them on your plants. Place borax bait stations along active trails to take out the colony at its source. Use diatomaceous earth as a perimeter barrier around beds you want to protect. Then build in long-term deterrence with cedar mulch and aromatic herbs.

If you’re dealing with fire ants or leaf-cutting ants that keep rebuilding despite your efforts, commercial bait products designed for outdoor mound treatment are widely available and use the same slow-acting principle as the borax recipe, just in a more concentrated, weather-resistant form. For most common garden ants, though, the combination of removing their food source, baiting the colony, and making your beds inhospitable is enough to shift the balance back in your favor.