How to Get Rid of Ants: Bait, Barriers, and Natural Fixes

The fastest way to get rid of ants is to use bait, not spray. Spraying kills the ants you can see but leaves the colony intact, sometimes with tens of thousands of workers and one or more queens still producing eggs behind your walls or under your foundation. Bait works because foraging ants carry it back to the nest, where it spreads through the colony as ants feed each other. That process can collapse an entire colony in days to weeks, depending on the product.

But the right approach depends on what kind of ant you’re dealing with, where they’re nesting, and how big the problem has gotten. Here’s how to handle it from start to finish.

Identify the Ant First

Not all ants respond to the same treatment, and misidentifying the species can make your problem worse. The three most common household invaders in North America are odorous house ants, carpenter ants, and pavement ants.

Odorous house ants are the ones most people encounter indoors. They’re small (about 3 mm), brown to black, and produce a rotten coconut-like smell when crushed. They nest in moist areas: under rocks, mulch, and firewood outside, and near water leaks, wall voids with heated pipes, and bathroom fixtures inside. Urban colonies with multiple queens can contain tens of thousands of workers. They prefer sweet foods and dead insects but ignore fatty foods.

Carpenter ants are noticeably larger, often 6 to 13 mm, and black or dark brown. They don’t eat wood, but they excavate it to build nests, leaving behind sawdust-like shavings called frass. If you see small piles of fine wood debris near baseboards or windowsills, you likely have carpenter ants. They’re one of the more difficult species to control and often require more advanced treatment because their nests can be deep inside structural wood.

Pavement ants are small, dark brown, and typically nest in cracks in driveways, sidewalks, and foundations. You’ll often see tiny mounds of sand or dirt pushed up through pavement joints. They eat almost anything, including greasy and sweet foods.

One species deserves a special warning: pharaoh ants. These are tiny, yellowish ants common in apartments and hospitals. If you spray them with a contact insecticide, the colony doesn’t die. It “buds,” meaning it splits into multiple new colonies that scatter to different locations, making the infestation significantly worse. Pharaoh ants should only be treated with bait.

Why Bait Works Better Than Spray

When you spray a line of ants with a contact killer, you eliminate the foragers but leave the queen untouched. She continues laying eggs, and new workers replace the dead ones within days. The colony simply reroutes around the treated area.

Bait takes a different approach. Forager ants pick up the bait and carry it back to the nest, where they share it mouth-to-mouth with other workers, larvae, and the queen. This sharing behavior is how ant colonies distribute all their food. Slow-acting bait ingredients give the foragers enough time to spread the poison through the colony before anyone dies. Some active ingredients prevent ants from converting food into energy, collapsing the colony within a week when applied directly to mounds. Others are activated by the larvae themselves after they eat the bait, which can kill a colony in as little as three days. Growth-regulating baits work more slowly, stopping the queen from producing viable eggs and preventing larvae from developing into workers. Treated colonies persist for several months until existing workers die naturally, but no replacements ever emerge.

The key principle: you want slow-acting bait that ants don’t recognize as dangerous, so they keep feeding on it and sharing it.

How to Set Up Bait Effectively

Place bait stations directly along the ant trails you can see. Ants follow invisible pheromone highways between their nest and food sources, so putting bait in their established path means they find it immediately. Don’t clean up the trail before baiting. You want the ants to keep using that route, leading them straight to your bait instead of your kitchen counter.

Use sweet bait (sugar-based gel or liquid) for odorous house ants and most small household species. Use protein or grease-based bait for pavement ants or if ants ignore the sweet option. Some ant species shift their food preferences seasonally, so if one bait type isn’t getting picked up after two days, switch to the other.

Resist the urge to spray near the bait. Any repellent chemical in the area will keep ants away from the bait and defeat the purpose entirely. Let the ants swarm the bait station. A heavy trail of ants feeding on bait is a sign the system is working, not a sign you need to spray.

For small infestations, commercial bait stations from a hardware store are usually sufficient. Place several along trails, near entry points, and in areas where you’ve seen activity: under sinks, along baseboards, behind appliances. Check them every few days and replace them when they’re empty or dried out. Most infestations noticeably decline within one to two weeks.

A Homemade Bait That Works

If you want a DIY option backed by entomology research, boric acid mixed with sugar water is effective and inexpensive. Boric acid is a slow-acting stomach poison that gives ants time to carry it back to the colony before it kills them.

The recipe, from the University of Hawaiʻi’s College of Tropical Agriculture: dissolve 1 teaspoon of boric acid powder and 3 tablespoons of white sugar into warm distilled or bottled water, filling to about 1¾ cups. Stir until completely dissolved. Soak cotton balls in the solution and place them in shallow containers along ant trails.

The concentration matters. Too much boric acid kills foragers before they make it back to the nest. Too little won’t affect the colony. This ratio keeps the dose low enough to spread through the colony but high enough to be lethal over time. Replace the cotton balls every couple of days to keep the bait fresh. Keep the bait away from children and pets, as boric acid is toxic if ingested in quantity.

Sealing Entry Points and Removing Attractants

Bait eliminates the current colony, but new colonies will move in if your home remains inviting. Ants enter through cracks in foundations, gaps around windows and doors, spaces where pipes and wires penetrate walls, and openings under siding. Seal these with caulk or weatherstripping. Pay special attention to where utility lines enter the house, as these gaps are often overlooked.

Inside, the two biggest attractants are food residue and moisture. Wipe down counters and stovetops daily, store sugar, honey, and pet food in sealed containers, and take out trash before it sits overnight. Fix leaky faucets and pipes promptly. Odorous house ants specifically seek out moisture from leaks and condensation, and they nest in wall voids near heated pipes. Eliminating water sources removes one of their primary reasons for being inside.

Outside, trim tree branches and shrubs that touch the house. These serve as bridges that let ants bypass any ground-level barriers. Move firewood piles, landscape timbers, and rock stacks away from the foundation. Clear mulch back at least a few inches from the exterior walls, since odorous house ants commonly nest in mulch and leaf litter right against the house.

What About Vinegar and Essential Oils?

Vinegar can temporarily confuse ants by disrupting their pheromone trails, and essential oils like peppermint create a scent ants avoid. But neither one touches the colony. The ants slow down, reroute, and come back. As entomologists at the National Pest Management Association have put it, vinegar is a quick fix, not a cure. It has little to no effect on an infestation already happening in your home.

These remedies can be useful as a short-term measure while your bait takes effect. Wiping down a trail with a vinegar solution forces ants to re-establish their scent path, which buys you time. But if vinegar and essential oils are your only strategy, the ants will outlast you.

Diatomaceous Earth as a Barrier

Food-grade diatomaceous earth is a fine powder made from fossilized algae. It kills ants by absorbing the oils and fats from their exoskeleton, causing them to dry out and die. Its sharp microscopic edges speed up the process by scratching the waxy outer layer. It remains effective as long as it stays dry and undisturbed.

Dust it lightly into cracks, along baseboards, behind appliances, and in other dry, sheltered areas where ants travel. It’s not a colony killer on its own, since ants that avoid the treated area survive just fine. Think of it as a supplemental barrier, useful alongside bait but not a replacement for it. Once it gets wet, it stops working entirely, so it’s a poor choice for bathrooms, kitchens near sinks, or outdoor use.

When to Call a Professional

Most sugar ant infestations respond well to store-bought bait and basic prevention within a couple of weeks. But some situations call for professional help. Carpenter ants are the clearest case: their nests can be deep inside wall studs, floor joists, or roof framing, and locating them often requires drilling into wall voids or using specialized detection tools. Left untreated, carpenter ants cause real structural damage over time.

Professional treatment is also worth considering if you’ve been baiting for three to four weeks with no improvement, if you’re seeing ants emerging from multiple locations throughout the house (suggesting a large or multi-colony infestation), or if you’re dealing with pharaoh ants that have already budded into multiple colonies. Technicians typically start with an inspection to identify the species, locate nesting sites, and assess severity, then build a treatment plan around targeted baiting, liquid treatments, or wall-void injections depending on the situation. Costs vary based on the severity and species involved rather than a flat rate, with carpenter ant and pharaoh ant treatments generally running higher due to their complexity.