How to Stop Ants and Keep Them Out for Good

To stop ants, you need to do three things: cut off their food source, destroy the scent trails they follow, and seal the gaps they’re using to get inside. Killing the ants you can see barely makes a dent, since a single colony can contain hundreds of thousands of workers. The real goal is to either eliminate the colony or make your home impossible to reach.

Why Killing Visible Ants Doesn’t Work

The ants marching across your kitchen counter are foragers. They represent a tiny fraction of the colony, which lives in a nest that could be underground in your yard, inside a wall, or beneath your foundation. When foragers find food, they lay down a chemical trail (a pheromone path) that recruits more workers. Squishing or spraying those visible ants removes the scouts but does nothing to the queen, who keeps producing replacements. Within hours or days, new foragers follow the same trails right back to the same spots.

This is why bait is far more effective than spray for most ant problems. Foragers carry bait back to the nest and share it mouth-to-mouth with other workers, larvae, and eventually the queen. The toxicant gets diluted as it passes through the colony, so it needs to be slow-acting enough that the forager doesn’t die before delivering it. A fast-killing spray actually works against you by stopping the chain of sharing before it reaches the queen.

Identify What You’re Dealing With

Different ant species prefer different foods, so the wrong bait can sit untouched for weeks. Most household ants fall into a few common categories. Argentine ants and odorous house ants (the small dark ones that smell like rotten coconut when crushed) prefer sweets year-round, with occasional interest in protein during spring. Pavement ants, the ones nesting in sidewalk cracks, eat just about everything: sweets, protein, and grease. Pharaoh ants and thief ants go for fats and proteins over sugar. Fire ants prefer oil-based baits.

If you’re not sure what species you have, put out a small dab of honey and a small dab of peanut butter near the trail. Whichever one they swarm tells you what type of bait to use.

Set Up Bait the Right Way

For sugar-loving ants, a simple homemade liquid bait works well. Mix 1 teaspoon of boric acid powder with 3 tablespoons of white sugar in about 1¾ cups of warm water (use bottled or distilled, not tap). Stir until fully dissolved. Soak cotton balls in the solution and place them in shallow containers near the ant trails. The low concentration of boric acid ensures ants survive long enough to carry the poison back and share it through the colony.

For grease-loving species, mix a small amount of boric acid into peanut butter or a cooking oil. Commercial bait stations are another option and come pre-formulated for different food preferences. Look for products labeled for the type of ant you’re seeing.

Place baits directly along the trails you’ve observed, not in random locations. Resist the urge to kill the ants visiting the bait. You want them alive and carrying poison home. It typically takes several days to two weeks for bait to collapse a colony. If ants lose interest in the bait, they may have shifted their dietary needs, so try switching from sweet to protein or vice versa.

Wipe Out the Scent Trails

While your bait works on the colony, disrupt the highways ants are using to navigate your home. Ants follow pheromone trails invisible to us but as clear as a painted line to them. Wiping surfaces with a solution of equal parts white vinegar and water erases these chemical signals, forcing ants to re-scout rather than marching in an organized line.

Peppermint oil takes this a step further. It doesn’t just remove trails; it replaces them with a scent ants actively avoid. The menthol in peppermint overwhelms their ability to sense their environment. Add 10 to 15 drops of peppermint essential oil to a spray bottle of water and apply it along windowsills, doorframes, and anywhere you’ve spotted activity. Cinnamon works similarly by interfering with ants’ chemical communication, though it’s messier to apply. These repellents need reapplication every few days as the scent fades.

Seal the Entry Points

Ants can squeeze through gaps as small as 1/16 of an inch. The most common entry points are spots where pipes and wires pass through your foundation or siding: around outdoor faucets, gas meters, dryer vents, and cable lines. Other frequent entry zones include the bottom corners of exterior doors, cracks around windows, gaps under sliding glass doors, and spaces along fascia boards where the roof meets the walls.

A good-quality silicone or acrylic latex caulk handles most of these gaps. For larger openings, copper mesh or urethane expandable foam works better. Install door sweeps on all exterior doors, and line the bottom track of sliding glass doors with foam weatherstripping. Garage doors need a rubber bottom seal (vinyl cracks and gaps in cold weather).

Sealing is the most permanent fix, but it’s labor-intensive. If you can’t seal everything, a perimeter spray with a long-lasting liquid insecticide along the base of exterior doors, foundation vents, and utility openings creates a chemical barrier. Apply it in a band 2 to 6 feet wide along the ground around your foundation and 2 to 3 feet up the foundation wall.

Remove What Attracts Them

Ants enter homes because they’ve found food, water, or both. Even tiny crumbs or a sticky spot on the counter can sustain a trail of foragers for days. Store sugary foods, honey, and syrups in sealed containers. Wipe down counters and stovetops nightly. Don’t leave pet food out overnight, and take trash out before it overflows. Fix dripping faucets and leaky pipes, since moisture is a powerful draw, especially in dry weather.

Outdoors, trim tree branches and shrubs that touch your house. These act as bridges that let ants bypass any ground-level barriers. Move firewood piles, mulch, and landscape timbers away from the foundation. Ants love nesting in damp wood and organic debris that sits against a structure.

When Carpenter Ants Are the Problem

Carpenter ants are a different situation. They don’t eat wood like termites, but they hollow it out to build nests, and they can cause real structural damage over time. You’ll know you have them if you find small, cone-shaped piles of sawdust-like shavings near baseboards, windowsills, or wooden beams. Under magnification, the shavings look like uniform tiny chips, often mixed with insect parts.

Carpenter ants target wood that’s already damp or decaying. The areas around and under windows, roof eaves, decks, and porches are the most common infestation sites because they’re most exposed to moisture. A colony often has a main nest outdoors (frequently in a tree) and satellite nests inside the structure.

Baits alone are less reliable for carpenter ants because you need to reach both the main colony and every satellite nest. The most effective approach is locating the nest by following foraging ants (they’re most active at night) and looking for sawdust piles that mark the entrance holes. For nests inside wall voids, a dust insecticide applied directly into the cavity through the entrance hole or a drilled access point is the standard treatment. Liquid insecticides should never go into wall voids, since the moisture can damage insulation, drywall, and wiring. For most homeowners, a confirmed carpenter ant infestation is worth calling a professional over, since finding and treating every satellite nest requires experience and specialized equipment.

A Realistic Timeline

If you set out the right bait and clean up food sources, you should see a noticeable reduction in ant activity within 3 to 5 days. Full colony elimination takes 1 to 2 weeks with bait, sometimes longer for large or well-established colonies. Sealing entry points and maintaining clean surfaces keeps new colonies from establishing trails into your home once the current problem is resolved. Ants are most active in spring and summer, so the best time to seal and bait is early in the season before populations peak.