The most effective DIY ant trap uses boric acid or borax mixed with sugar water at a low enough concentration that worker ants survive long enough to carry the poison back to the colony. A simple liquid bait with 1 teaspoon of boric acid, 3 tablespoons of sugar, and about 1¾ cups of warm water will kill most common household ant species within one to eight weeks, depending on colony size.
The key to a good homemade ant trap isn’t killing ants on contact. It’s letting them feed, return to the nest, and share the bait with the queen and the rest of the colony. That delayed action is what separates a trap that works from one that just kills a few scouts on your counter.
The Borax Sugar Bait Recipe
The University of Hawaiʻi’s Cooperative Extension Service developed a reliable recipe for liquid sugar bait that keeps the boric acid concentration low enough to avoid killing workers too quickly:
- 1 teaspoon boric acid powder
- 3 tablespoons white table sugar
- 1¾ cups warm distilled or bottled water (not tap)
Stir until everything dissolves completely. The reason for bottled or distilled water is that minerals in tap water can interfere with the mixture. This creates a dilute, sweet liquid that ants will eagerly drink and regurgitate for nestmates, spreading the boric acid through the colony. The poison acts as a stomach toxin, disrupting the ants’ metabolism slowly enough that they don’t die before making it home.
To deploy the bait, soak cotton balls in the solution and place them in shallow containers, like jar lids or small plastic cups, near ant trails and entry points. You can also use small pieces of cardboard or sponge. The goal is to give ants easy access while keeping the liquid contained.
A Thicker Paste for Stubborn Ants
If your ants seem uninterested in liquid bait, they may be craving protein instead of sugar. Carpenter ants, for example, tend to prefer protein in early summer before shifting to carbohydrates by late August. Odorous house ants generally prefer sugar and protein over fats year-round.
For a protein-based bait, mix 1 teaspoon of borax with 2 tablespoons of peanut butter and a small amount of honey to make a thick paste. Smear this inside a folded piece of cardboard or place small dabs near trails. If one bait type isn’t attracting ants within 24 hours, switch to the other. Offering both a sugar bait and a protein bait at the same time covers your bases.
Where to Place Your Traps
Placement matters more than the trap itself. Watch the ants for a few minutes before setting anything out. They follow chemical trails, so you’ll see them walking the same paths along baseboards, countertop edges, windowsills, and under appliances. Place your bait stations directly along these trails, not in random spots around the kitchen.
Good locations include where the trail meets a wall, near cracks or gaps where ants enter from outside, under sinks, and behind appliances. Outdoors, place traps near the foundation of your home, close to garden beds, or along patio edges where you’ve seen activity. The closer the bait is to the nest entrance, the faster it reaches the queen.
Don’t clean up the ant trails with soap or vinegar before placing bait. Those chemical trails are what guide other workers to your trap. You want more ants finding the bait, not fewer.
What the Timeline Looks Like
The first few days can feel counterintuitive. During days one through three, you’ll actually see more ants around the bait, not fewer. This is a good sign. It means scouts have found the food and are recruiting more workers to collect it. Resist the urge to kill them or move the bait.
By days three to five, trail activity usually starts dropping. Fewer ants will be visible inside your home. Small colonies with a single queen are often eliminated within one to two weeks. Larger colonies, or those with multiple queens, can take three to eight weeks of steady baiting. Keep refreshing the bait every few days so there’s always a fresh supply. If the cotton balls dry out, the ants lose interest.
Full colony elimination takes patience. If you stop baiting too early because you don’t see ants anymore, the colony may recover and you’ll be back where you started in a few weeks.
Diatomaceous Earth as a Barrier
Diatomaceous earth works completely differently from borax bait. It’s a fine powder made from fossilized algae, and it kills ants mechanically rather than chemically. The microscopic sharp edges cut through the ants’ waxy exoskeleton as they crawl over it, causing them to lose moisture and die from dehydration. Some ants die within hours, while others take a few days.
The limitation is that ants don’t carry diatomaceous earth back to the nest the way they carry liquid bait. It works as a barrier or contact killer, not a colony eliminator. That makes it a good complement to borax bait rather than a replacement. Sprinkle a thin, even layer along entry points, baseboards, windowsills, and around the base of exterior walls to catch ants on their way in.
Use only food-grade diatomaceous earth indoors. Reapply every few days, and always reapply after rain or watering if you’re using it outside, because moisture destroys its effectiveness. Vacuum up old powder before putting down a fresh layer.
Keeping Pets and Kids Safe
Boric acid is classified as moderately toxic, which means the concentration in a homemade sugar bait is low enough that a pet licking a cotton ball isn’t likely to cause serious harm. For dogs and cats, toxic effects generally require ingesting around 2 to 3 grams per kilogram of body weight, far more than what’s in a soaked cotton ball. The bigger risk with pets is actually chewing on the container rather than the bait itself.
That said, pure borax or boric acid powder is more dangerous, especially if a pet or child gets into the bag. Store powder containers well out of reach. For bait stations, you can make them pet-resistant by placing cotton balls inside a small plastic container with holes cut just large enough for ants to enter (about ¼ inch). A mason jar turned on its side with the cotton ball near the opening also works. The goal is to let ants access the bait while keeping curious noses and fingers out.
Keep children and pets away from treated areas during application. Avoid placing bait or diatomaceous earth anywhere it could contaminate food, pet bowls, or surfaces where you prepare meals.
Why DIY Traps Sometimes Fail
The most common reason homemade ant traps don’t work is using too much borax. If the concentration is too high, ants die before making it back to the colony. You kill the workers you can see, but the queen keeps producing more. The recipe above deliberately uses a low ratio of boric acid to sugar for this reason.
The second most common mistake is offering the wrong food. If you put out sugar bait and the ants ignore it, they’re likely foraging for protein or fat. Try the peanut butter version. Carpenter ants are especially likely to prefer protein in spring and early summer when the queen is ramping up egg production.
Inconsistent baiting is the third problem. Colonies can number in the tens of thousands, and the queen can lay eggs faster than a half-hearted baiting effort can kill workers. Refresh your bait stations every two to three days and keep them going for at least two weeks after you stop seeing ants. Combining borax bait (to kill the colony from the inside) with a diatomaceous earth barrier (to kill stragglers at entry points) gives you the best results without buying commercial products.