How to Get Rid of Ants in Walls Naturally: Borax & More

Getting rid of ants nesting inside your walls without chemical pesticides requires a two-phase approach: baiting to kill the colony you can’t see, and sealing entry points so new colonies don’t move in. Wall voids are among the hardest places to treat because you can’t reach the nest directly, but the right natural bait carried back by worker ants will reach the queen and collapse the colony from the inside.

Which Ants Are in Your Walls

Three species account for most wall-nesting problems in homes. Identifying which one you’re dealing with helps you choose the right bait and understand the urgency.

Carpenter ants are the largest (up to half an inch) and the most destructive. They excavate moist or rotting wood to build galleries, nesting behind bathroom tiles, in attic beams, under subfloor insulation, and inside wall voids. They don’t eat wood like termites, but they hollow it out, which can cause structural damage over time. If you see coarse sawdust-like shavings near baseboards or hear faint rustling inside a wall, carpenter ants are the likely culprit.

Odorous house ants are small, dark brown, and release a rotten-coconut smell when crushed. They nest in wall voids and under floors, particularly near moisture sources. They’re less destructive than carpenter ants but form large colonies that are hard to eliminate without baiting.

Pharaoh ants are tiny, yellowish, and nest strictly indoors in cooler climates. They squeeze into cracks behind countertops, baseboards, and wall voids, favoring dark, warm spots near water. Pharaoh ants are especially tricky because disturbing them causes the colony to split and scatter into new nesting sites, making sprays counterproductive.

Finding the Nest Without Opening Walls

You don’t need to tear into drywall to figure out where ants are living. The simplest method is trailing: follow worker ants backward from their food source to the point where they disappear into a wall. Ants are most active after 10 a.m. and in warm, dry weather, so that’s the best time to observe them. Place a small drop of honey or a crumb near where you’ve seen activity, then watch the trail that forms over 15 to 30 minutes.

Look for tiny piles of fine debris or soil near baseboards, electrical outlets, or where pipes enter the wall. These small “volcanoes” of excavated material mark nest entrances. If you suspect a spot but aren’t sure, tap the wall gently nearby. Worker ants will often emerge to defend the nest. For carpenter ants specifically, pressing your ear against the wall at night (when they’re most active) can reveal a faint crackling or rustling sound inside the cavity.

Borax Bait: The Most Effective Natural Method

A homemade borax-sugar bait is the cornerstone of any natural wall-ant strategy. It works because it’s slow-acting. Worker ants consume the sweet liquid, carry it back to the nest, and feed it to the queen and larvae through a process called trophallaxis. The colony dies from the inside over one to two weeks rather than just the foragers you can see.

The Recipe

Dissolve 1 teaspoon of boric acid powder and 3 tablespoons of white sugar in warm water, filling to about 1¾ cups total. Use distilled or bottled water rather than tap, which can contain minerals that reduce effectiveness. Stir until everything dissolves completely. Soak cotton balls in the solution and place them on small pieces of foil or in shallow lids near the trails you’ve identified, particularly close to where ants enter the wall.

The low concentration of boric acid (roughly 1%) is critical. If the dose is too high, ants die before making it back to the nest, and you’ve only killed scouts. At this ratio, they survive long enough to share the bait with the colony. Refresh the cotton balls every two to three days, as they dry out. You should see a surge in ant activity around the bait stations initially. That’s a good sign: it means workers are recruiting others to the food source, which speeds up distribution through the colony.

For carpenter ants or species that prefer protein over sugar (you’ll notice them ignoring sweet baits), try mixing the same ratio of boric acid into peanut butter instead. Some colonies shift preferences seasonally, so offering both a sugar bait and a protein bait side by side covers your bases.

Safety Precautions

Boric acid is classified by the EPA as moderately toxic. In small quantities it poses little risk to adults, but it can be hazardous if swallowed by children or pets, potentially causing nausea, vomiting, and in severe cases kidney damage. Place bait stations inside enclosed containers with small entry holes that ants can access but toddlers and pets cannot. Wear gloves when mixing, avoid inhaling the powder, and wash your hands afterward. Pregnant women and people with kidney conditions should avoid handling it altogether. Store unused boric acid in a sealed container out of reach of children.

Diatomaceous Earth Inside Wall Voids

Food-grade diatomaceous earth (DE) is a powder made from fossilized algae that kills ants mechanically rather than chemically. Its microscopic sharp edges cut through the waxy outer layer of an ant’s exoskeleton, causing the insect to lose moisture and die from dehydration. Because the action is physical, ants can’t develop resistance to it the way they can with pesticides.

To get DE into wall voids, remove the cover plate from electrical outlets or light switches along the ant trail (with the power off) and puff a thin layer of powder into the cavity using a squeeze-bulb duster. You can also apply it along baseboards, behind outlet covers, and around pipe entry points. A light dusting is more effective than heavy piles, because ants will walk around a thick mound of powder. Reapply every few days indoors, vacuuming the old layer first. DE loses effectiveness when wet, so it works best in dry wall cavities.

One important note: only use food-grade diatomaceous earth indoors. Pool-grade DE is chemically treated and dangerous to inhale. Even with food-grade DE, avoid breathing in the dust during application, as it can irritate your lungs.

Essential Oils as a Barrier

Essential oils won’t kill a colony inside your wall, but they can disrupt the scent trails ants rely on for navigation and discourage them from using specific entry points. Of the commonly recommended oils, clove oil is by far the most effective, showing 88% repellency in controlled testing, which is close to the 97% achieved by commercial repellent products. Its effect persisted for at least 72 hours. Peppermint oil came in at about 56% repellency. Tea tree oil, despite its popularity online, performed poorly at under 9%.

Mix 15 to 20 drops of clove oil (or peppermint as a second choice) with water in a spray bottle and apply along baseboards, window frames, and any cracks where ants enter. You can also soak cotton balls and tuck them near entry points. Reapply every two to three days. Think of essential oils as a complement to baiting, not a replacement. They redirect traffic and slow reinfestation, but they won’t reach a queen behind drywall.

Cut Off Moisture and Seal Entry Points

Every species that nests in walls is drawn there by moisture. Carpenter ants need damp or rotting wood to excavate. Odorous house ants and pharaoh ants seek out water sources. Removing moisture is the single most important long-term fix because it makes your walls uninhabitable.

Fix leaky pipes, dripping faucets, and clogged drains. Check under sinks and around dishwashers for slow leaks that keep wall cavities damp. Window frames are a common trouble spot because they collect condensation and the surrounding wood can rot, creating ideal nesting sites. If the infestation is in a bathroom or kitchen wall, run a dehumidifier and fans in the area to dry out the wood. Lowering humidity inside the wall cavity makes conditions hostile for the colony even before your bait takes full effect.

Once the colony is gone, seal every gap you can find. Use silicone-based caulk around utility lines, window frames, baseboards, vents, and where pipes penetrate walls. Check door seals on all sides, not just the bottom, and install door sweeps where gaps exist. Foundations that aren’t solid concrete often have small openings that ants exploit, so inspect where the foundation meets the siding. Outside, pull mulch, firewood, and debris at least a foot away from the house, since ground-nesting colonies in these materials are the most common source of indoor invasions.

What to Expect and When to Escalate

With consistent baiting, you should see a noticeable decline in ant activity within one to two weeks. Complete colony elimination can take three to four weeks, especially for large carpenter ant colonies or pharaoh ants with multiple nesting sites. If you’re dealing with pharaoh ants, avoid the temptation to spray them directly. Sprays cause their colonies to “bud,” splitting into multiple new colonies in different wall voids, which makes the problem dramatically worse.

If activity continues after a month of baiting and you’re finding new sawdust piles or the infestation is spreading to new areas of the house, you likely have a larger carpenter ant colony with satellite nests, or the moisture source feeding the problem hasn’t been resolved. At that point, a pest control professional can use thermal imaging or moisture meters to locate nests non-destructively and treat wall voids more precisely.