Best Ways to Get Rid of Ants: What Actually Works

The single most effective way to get rid of ants is baiting, not spraying. Bait works because foraging ants carry poisoned food back to the colony, where it spreads to the queen and brood through shared feeding. A can of spray kills the ants you see but leaves thousands more in the nest, often making the problem worse. Getting rid of ants for good means combining the right bait with sanitation and sealing entry points so they don’t come back.

Why Spraying Usually Backfires

Reaching for a can of insecticide spray is the most common first move, and it’s almost always a mistake. Contact sprays kill the visible trail of ants but never reach the colony, which can contain tens of thousands of workers plus one or more queens steadily producing eggs. The surviving colony simply reroutes its trails.

With certain species, spraying actively makes things worse. Pharaoh ants, the tiny yellowish ants common in kitchens and bathrooms, respond to disturbance by “budding”: the colony splits into multiple smaller colonies that scatter to new locations throughout your home. What started as one nest behind the kitchen wall becomes three or four nests in different rooms. Repellent sprays trigger this same response, turning a manageable problem into a much bigger one.

How Bait Eliminates the Whole Colony

Ants share food through a process called trophallaxis, essentially mouth-to-mouth feeding among nestmates. A foraging ant picks up bait, returns to the colony, and passes it along to other workers, larvae, and eventually the queen. The active ingredient in good bait is slow-acting by design. If it killed too quickly, foragers would die before making it back to the nest.

This is why the concentration matters. Research from the University of California, Riverside found that for Argentine ants (one of the most common household species), a sugar-water bait with 0.5% to 1% boric acid hit the “sweet spot,” providing about an 80% reduction in ant numbers while staying dilute enough that workers survived long enough to spread the toxicant through the colony. Higher concentrations killed foragers on the trail before they could share, and lower concentrations got diluted out of the effective range as the bait passed from ant to ant.

Commercial bait stations use the same principle with different active ingredients. Some prevent ants from converting food to energy, killing colonies within a week. Others work like insect growth regulators, mimicking the ants’ own hormones to shut down egg production and prevent new workers from developing for up to a year. The adult ants in those colonies die off naturally over several months with no replacements behind them.

Match the Bait to What Your Ants Eat

Not all ants want the same food, and putting out the wrong bait is like fishing with the wrong lure. Most household ants fall into a few dietary categories, and identifying what you’re dealing with helps you pick bait they’ll actually eat.

  • Sugar-loving species: Odorous house ants (the ones that smell like coconut when crushed), Argentine ants, and ghost ants all prefer sweet baits. Liquid or gel sugar-based baits work best. Argentine ants shift to protein earlier in the season and prefer sweets during summer, so switching bait type seasonally can help.
  • Protein and grease feeders: Bigheaded ants respond well to oil-based baits and will also take protein or sugar. If ants are ignoring your sweet bait, try a protein or grease-based option.
  • Generalists: Pharaoh ants respond to sweet, protein, and oil-based baits. Placing multiple bait types simultaneously gives the best coverage.

If you’re not sure what species you have, set out a small smear of peanut butter and a drop of honey near an active trail. Whichever one the ants swarm tells you what type of bait to buy.

Making a DIY Boric Acid Bait

You can make effective ant bait at home with three ingredients: boric acid (sold as a powder at most hardware stores), sugar, and water. Mix one part sugar to three parts water, then stir in boric acid at roughly 1% of the solution’s weight. For a simple approach, dissolve a quarter cup of sugar in three-quarters cup of warm water and add about half a teaspoon of boric acid powder.

Soak cotton balls in the solution and place them on small pieces of foil or in shallow lids along ant trails. Replace them every few days to keep the bait fresh. This method works well for sugar-feeding species but requires patience. Dilute boric acid baits need to be maintained over an extended period, sometimes two to three weeks, to fully penetrate a colony.

Keep these baits away from areas where children or pets can reach them. While boric acid is low in toxicity compared to many insecticides, it’s not something you want ingested in quantity.

Placement Tips That Make Bait Work Faster

Place bait directly along active foraging trails rather than in random spots around the kitchen. Ants follow pheromone highways between the nest and food sources, and bait on the trail gets discovered immediately. Look for trails along edges: where the wall meets the floor, along countertop backsplashes, and around pipes or wires entering the house. Ants prefer to travel along structural elements.

Don’t clean up the ant trail before placing bait. That pheromone trail is what leads other workers to your bait station. Once you set bait, resist the urge to kill the ants you see feeding on it. Those foragers are your delivery system. You want as many ants as possible carrying bait back to the nest. Colony collapse typically takes anywhere from three days to several weeks depending on the species and colony size.

Cut Off Food and Water Sources

Baiting works best when it’s the most attractive food option available. If your counters are covered in crumbs and sticky residue, ants have no reason to choose your bait over the buffet. Aggressive sanitation makes bait dramatically more effective.

  • Store food in sealed hard containers, not plastic bags or open packaging. Wipe down the outside of containers like honey and syrup bottles, because residue on the surface is enough to sustain a trail.
  • Clean up grease and spills immediately. Ants detect food at remarkably small quantities.
  • Take out garbage daily and clean the bin itself regularly. The residue inside trash cans is a major draw.
  • Rinse out cans and bottles before recycling. An empty soda can is a feast for sugar-feeding ants.
  • Fix leaky faucets and pipes. Water attracts ants just as much as food, especially in dry weather.
  • Don’t leave pet food out longer than necessary. Store it in sealed containers.

Seal Entry Points

Ants are tiny enough to enter through cracks you’d barely notice. Caulking entry points won’t solve an active infestation by itself, but it’s essential for keeping ants from returning after you’ve knocked out a colony.

Focus on cracks and gaps around the foundation, especially where utility pipes and wires enter the building. Check around windows and door frames in kitchens and bathrooms. Ants also travel along wires and plumbing running through walls, so sealing where those penetrate from outside makes a real difference.

Outside, keep plants, grass, and mulch at least 12 inches away from your foundation. Vegetation against the house provides nesting sites and covered highways directly to your walls. Trim tree branches so they don’t touch the structure, because ants use overhanging limbs as bridges. If you have plants near the house that are covered in aphids, scale insects, or mealybugs, those pests produce a sugary excretion called honeydew that many ant species feed on. Managing those plant pests removes a major food source drawing ants to your home’s perimeter.

Do Essential Oils and Natural Repellents Work?

Peppermint oil, tea tree oil, cinnamon oil, and lemon oil can disrupt ant pheromone trails temporarily. The menthol in peppermint oil irritates ants and interferes with their ability to follow scent trails and communicate. Wiping down a trail with diluted peppermint oil can redirect ants away from a specific area.

The limitation is duration. Essential oils evaporate quickly and need reapplication every few days, or after any cleaning. They’re short-term repellents suitable for minor problems or for keeping ants out of a specific spot, like a pet food area. They won’t eliminate a colony. Diatomaceous earth, the fine silica-based powder often recommended online, has similar limitations. It kills some ants by damaging their outer coating and drying them out, but it doesn’t work well in moist conditions and rarely eliminates colonies when used alone.

These methods work best as supplements alongside baiting, not replacements for it.

Carpenter Ants Need a Different Approach

Carpenter ants are the large black ants (sometimes reddish-black) that tunnel into wood to build their nests. Unlike termites, they don’t eat wood, but the structural damage they cause is serious. Over time, their tunneling can weaken floor joists, support beams, window frames, and wall studs. In severe cases, you’ll notice sagging or buckling wood surfaces.

Signs of carpenter ant activity include small piles of sawdust-like shavings (called frass) near baseboards, walls, or window frames. Tapping wood that sounds hollow is another red flag. You may hear faint rustling or clicking inside walls in quiet conditions. Finding large winged ants indoors during spring, or piles of shed wings near windowsills, suggests an active colony.

Carpenter ants prefer damp, decaying wood, so homes with moisture problems are especially vulnerable. Check for leaking pipes, roof leaks, clogged gutters, poor crawl space ventilation, and condensation issues. These ants often establish hidden satellite colonies deep in wall voids or connected between indoor and outdoor nests, which makes DIY treatment unreliable. Bait and spray products rarely reach the entire colony network. This is one situation where professional pest control is worth the investment, because the real challenge is locating all the nesting sites, not just killing visible ants.

Pet and Child Safety Around Baits

Ant baits contain food ingredients designed to attract insects, and pets find them appealing too. Dogs in particular have been known to chew open bait stations or dig up outdoor products. Place bait stations in areas pets and children can’t access: behind appliances, inside cabinets, or in narrow gaps along walls. Enclosed bait stations are safer than open gel or liquid baits in homes with curious pets.

If a pet chews into a bait station, the amount of active ingredient in a single station is generally very low. Still, contact your vet or an animal poison control center if you notice symptoms like tremors, difficulty breathing, or unusual drooling. For DIY boric acid baits, keep soaked cotton balls inside containers with small entry holes that ants can navigate but pets and toddlers can’t easily access.