A simple mixture of boric acid, sugar, and water is the most effective homemade ant killer you can make for indoor use. It works as a slow-acting poison that foraging ants carry back to the colony, killing ants you never see. Other options like diatomaceous earth and essential oils can help too, though they work differently and have limitations worth understanding before you choose.
Boric Acid Sugar Bait: The Most Effective Option
This bait works because ants can’t tell the boric acid apart from the sugar. They drink the sweet liquid, carry it back to the nest, and feed it to the queen and other colony members. Boric acid disrupts their digestive system, but slowly enough that foragers survive long enough to share the poison throughout the colony. That slow action is the whole point. If ants died on the spot, the bait would never reach the nest.
The recipe comes from the University of Hawaiʻi’s College of Tropical Agriculture:
- 1 teaspoon boric acid powder
- 3 tablespoons white table sugar
- 1¾ cups warm distilled or bottled water (not tap water)
Stir until everything dissolves completely. Soak cotton balls in the solution and place them near ant trails, along baseboards, or wherever you see activity. You can also use shallow lids or bottle caps as bait stations. The low concentration of boric acid is key: too much and the ants die before returning to the colony, too little and it won’t kill them at all.
Why Sugar Works Better Than Other Foods
Most common indoor ant species, including odorous house ants, Argentine ants, and carpenter ants, strongly prefer sugary liquids over fats or proteins. Research at Virginia Tech found that odorous house ants consumed significantly more sucrose solution at around 20% concentration than any other sugar type tested. Carpenter ants showed similar preferences for sucrose and fructose, with consumption peaking at 20% concentration and actually declining at higher levels. Pure fats were largely ignored by all species tested.
Adding a small pinch of table salt to your sugar bait can actually boost feeding. Studies on odorous house ants found that sodium chloride added to sucrose solutions enhanced their feeding response. So if ants seem reluctant to take your bait, a tiny amount of salt may help.
If your sugar bait isn’t attracting ants after a day or two, you may be dealing with a species that’s currently seeking protein instead. Try mixing boric acid into a paste with peanut butter (about half a teaspoon of boric acid per two tablespoons of peanut butter). Casein, a protein found in dairy products, was shown to be a particularly strong feeding stimulant for both odorous house ants and carpenter ants in lab tests.
How Long It Takes to Work
Expect to keep seeing ants for at least a week after setting out bait. This is normal and actually a good sign: it means foragers are actively feeding and carrying poison back to the colony. NC State Extension recommends leaving bait in place for three to four days after you see no more signs of feeding. Removing bait too early or killing the ants you see with spray undermines the entire process, since you need those foragers alive to deliver the poison.
During the first few days, you may notice more ants than before. That happens because scouts recruit additional foragers once they find a food source. Resist the urge to squish them or spray the trail. Replace bait stations every few days to keep the solution fresh, especially in warm weather where it dries out quickly.
Diatomaceous Earth for Contact Killing
Diatomaceous earth takes a completely different approach. It’s a fine powder made from fossilized algae, and under a microscope, its particles look like broken glass. When ants walk through it, the sharp edges cut through their waxy outer coating. The powder then absorbs moisture from their bodies, and the ants dehydrate and die.
Use only food-grade diatomaceous earth. The pool-grade version is chemically treated and extremely toxic. Even with food-grade powder, wear a dust mask and gloves when applying it. The particles aren’t poisonous, but inhaling fine dust in any quantity irritates your lungs.
Dust a thin, even layer along ant trails, behind appliances, under sinks, and along cracks where ants enter. A heavy pile won’t work better: ants will simply walk around it. A barely visible film is more effective because they’ll walk through it without avoiding it. The catch with diatomaceous earth is that it only kills ants that physically contact it. It doesn’t spread through the colony the way boric acid bait does, so it works best as a barrier or supplement rather than a standalone colony killer. It also stops working when wet, so keep it away from damp areas or reapply after cleaning.
Essential Oils as a Temporary Deterrent
Peppermint oil, cinnamon oil, and tea tree oil can repel ants from specific areas, but they rarely solve an infestation on their own. They work by masking the scent trails ants follow and creating zones they prefer to avoid. Cinnamon oil is the strongest repellent of the three, thanks to its high concentration of a naturally irritating compound called cinnamaldehyde.
To use them, mix 10 to 15 drops of essential oil with water in a spray bottle and apply along entry points, windowsills, and doorframes. You’ll need to reapply every few days or after cleaning, since the scent fades quickly. Cotton balls soaked in peppermint oil and placed near entry points should be replaced weekly.
Direct contact with tea tree or cinnamon oil can kill individual ants, but that requires spraying ants one by one, which does nothing about the colony producing them. Essential oils are best used alongside boric acid bait: let the bait do the colony-killing work, and use oils to redirect ants away from areas like kitchen counters or pantry shelves while you wait.
Safety Around Pets and Children
Boric acid is toxic to dogs and cats if consumed in significant amounts. The Merck Veterinary Manual puts the toxic threshold at doses above 0.5 grams per kilogram of body weight, meaning a 20-pound dog would need to ingest several grams to reach dangerous levels. The diluted sugar-water bait contains far less boric acid per serving than that, but the risk isn’t zero, especially if a pet drinks from the bait station repeatedly or a toddler picks up a soaked cotton ball.
Place bait stations in spots pets and children can’t reach: behind the refrigerator, inside cabinets, under heavy furniture, or inside commercially available bait station enclosures that have openings too small for anything but an ant. You can also tape cotton balls to the underside of countertop overhangs or place them inside jar lids wedged behind appliances. Symptoms of boric acid poisoning in pets include diarrhea, muscle twitching, and rapid weakness, so if your pet does get into a bait station, contact your vet immediately.
Diatomaceous earth and essential oils pose less risk. Food-grade diatomaceous earth is non-toxic if ingested in small amounts, though it can irritate skin and airways. Essential oils can be irritating to cats in particular, so avoid spraying them on surfaces your cat frequently contacts or in poorly ventilated rooms.
Getting the Best Results
The single biggest mistake with homemade ant bait is impatience. Spraying ants with vinegar or soapy water gives instant satisfaction but guarantees the colony survives intact and sends out new foragers within days. A boric acid bait station looks like it’s feeding the problem for the first week, but it’s actually distributing poison to every ant in the nest, including the queen.
For the best results, set out multiple bait stations along every trail you can find. Clean up competing food sources: crumbs, pet food bowls left on the floor, sticky residue on counters. You want the bait to be the most attractive option in the room. Don’t spray cleaning products or vinegar on ant trails near your bait stations, since disrupting the scent trail makes it harder for foragers to find and return to the bait. Once ant activity stops completely, wait three to four more days before removing the stations, then seal the entry points you identified with caulk or weatherstripping to prevent the next colony from finding its way in.