How to Get Rid of Ants Inside and Outside Your Home

Getting rid of ants requires two things: killing the colony you can’t see and sealing off the paths they use to get inside. Spraying the ants walking across your counter only removes the scouts. The queen and thousands of workers remain hidden, and new foragers will replace the dead ones within hours. A lasting fix means baiting to poison the colony from within, cutting off entry points, and removing whatever attracted them in the first place.

Figure Out What Kind of Ant You Have

Not all ants respond to the same treatment, and one species, carpenter ants, can cause real structural damage. Spend a minute looking at the ants before you start killing them.

Odorous house ants are the most common indoor invader. They’re tiny (about 1/8 inch), dark brown to black, and give off a strong, rotten-coconut smell when you crush them. They nest in shallow soil, under rocks, or inside wall gaps near warm pipes and heaters. These ants are after sweets.

Pavement ants are slightly larger (3/16 inch), dark brown to black, and nest under rocks, patios, driveways, and along foundations. You’ll often see them emerging from cracks in concrete. They eat both sugary and greasy foods.

Carpenter ants are noticeably bigger, ranging from 1/4 to 5/8 inch, and are black, red, or a mix of both. They don’t eat wood like termites do, but they tunnel through it to build nests, especially in water-damaged or moist wood. The telltale sign is small piles of fine, sawdust-like debris (called frass) near baseboards, under wooden furniture, or in crawl spaces. If you tap on suspected wood with a screwdriver and it sounds hollow or crumbles, you likely have an active colony inside. Carpenter ants typically need professional treatment because the colony is buried deep inside structural wood.

Clean Up What’s Attracting Them

Ants send out scouts that leave invisible pheromone trails back to food sources. Once a trail is established, the whole colony knows the route. Your first job is to erase those trails and remove the reward at the end of them.

Wipe down counters, sweep floors, and store food in sealed containers. Pay special attention to sticky residue from honey, syrup, or juice. Pet food bowls left on the floor overnight are a common magnet. Take trash out regularly and rinse recycling containers before they sit in the bin.

To destroy existing scent trails, mix equal parts white vinegar and water in a spray bottle and spray directly onto any visible ant paths, doorways, and windowsills. The vinegar disrupts the pheromone maps scouts leave behind, which temporarily confuses foragers and breaks the recruitment chain. This won’t kill the colony, but it buys you time while your bait does its work.

Use Bait to Kill the Colony

Baiting is the single most effective strategy for eliminating an ant colony. The concept is simple: ants carry poisoned food back to the nest and share it with the queen and other workers. When the queen dies or becomes infertile, the colony collapses.

The critical detail most people get wrong is concentration. If the poison is too strong, ants die before they make it back to the nest, and the bait becomes a slow, ineffective contact killer. If it’s too weak, the toxin gets diluted as it’s passed from ant to ant and never reaches lethal levels. Research from the University of California, Riverside found that the ideal range for boric acid in a sugar-water bait is 0.5% to 1% boric acid mixed into a 25% sugar solution. At 0.5% boric acid, field trials achieved about an 80% reduction in ant numbers. Concentrations above 5% killed foragers too fast, preventing them from distributing the poison through the colony.

DIY Borax Bait Recipe

Mix about 1/2 teaspoon of borax into 1 cup of warm water with 2 to 3 tablespoons of sugar. Stir until dissolved. Soak cotton balls in the solution and place them on small pieces of foil or in shallow lids near ant trails. The goal is a very low dose of borax in a very appealing sugar solution. Replace the cotton balls every few days to keep the bait fresh.

Be patient. Bait takes days to weeks to work through the colony. You’ll actually see more ants at first, which is a good sign: it means they’re feeding on the bait and recruiting nestmates. Resist the urge to spray them. Killing foragers at the bait station defeats the purpose. If you’re dealing with ants that prefer grease or protein (pavement ants sometimes do), try mixing borax into peanut butter instead of sugar water.

Commercial gel baits and bait stations work on the same principle and are a convenient alternative. Look for products with a low percentage of active ingredient, which indicates they’re designed for slow colony kill rather than fast contact kill.

Seal Entry Points

While the bait works on the colony, block as many entry points as you can find. Follow ant trails backward to see where they’re coming in. Common spots include gaps around window frames, door sweeps, where pipes or wires enter through walls, and cracks in the foundation.

Caulk small gaps with silicone sealant. Use weatherstripping around doors. Check where utility lines enter your home and fill those gaps with expanding foam or steel wool. Even a 1/16-inch crack is wide enough for most ant species to pass through, so be thorough.

Outdoor Barriers and Perimeter Treatment

Most ant colonies live outside and send foragers into your home. Treating the perimeter makes it harder for them to bridge the gap.

Apply granular ant bait in a 12-inch-wide band around your home’s foundation, concentrating on visible trails and any cracks where ants might enter. Keep mulch, firewood, and leaf litter pulled back at least a foot from the foundation, since these provide nesting habitat right next to your walls. Trim tree branches and shrubs that touch the house, as ants use these as highways to upper floors.

Food-grade diatomaceous earth is a non-toxic option for dry areas. It works by absorbing the waxy oils on an ant’s exoskeleton, causing the insect to dehydrate and die. Sprinkle a thin layer in cracks along the foundation, around door thresholds, or in dry crawl spaces. It stays effective indefinitely as long as it remains dry. If it gets wet, it stops working until it dries out again. When applying, avoid breathing the dust, as it can irritate your lungs. Wear a simple dust mask and let the powder settle before spending time in the area.

Dealing With Fire Ants in the Yard

Fire ants require a different approach because they’re aggressive, their stings are painful, and their mounds can number in the dozens across a single yard. Texas A&M’s fire ant research program recommends a two-step method for yards with five or more mounds per quarter acre.

Step one is broadcasting a granular fire ant bait across your entire yard, ideally between late August and mid-October when ants are actively foraging. These baits use treated corn grits coated in soybean oil. Worker ants carry the granules back to the colony, where the toxin reaches the queen. This step is slow, taking weeks to months, but can achieve 80% to 90% control across a large area with very low chemical exposure.

Step two is treating individual problem mounds directly. Pouring 2 to 3 gallons of boiling water on a mound kills the colony about 60% of the time, though it will also kill surrounding grass. Mound drench products, dust treatments, and granular treatments applied directly to the mound and watered in are more reliable. Avoid disturbing the mound before treatment, as the colony will scatter and relocate, making the problem worse.

When DIY Methods Aren’t Enough

Most small ant invasions respond well to a combination of sanitation, baiting, and sealing entry points within one to three weeks. But certain situations call for professional help. Carpenter ant colonies nesting inside walls or structural wood are difficult to reach with consumer products, and the longer they remain, the more damage they do. If you’re finding frass piles, hearing faint rustling in walls, or spotting large ants consistently emerging from the same point in your home’s woodwork, a pest control technician can locate the nest and treat it directly.

Persistent invasions that return after repeated baiting may also indicate a satellite colony inside the structure or a massive outdoor colony with multiple entry points. A professional inspection can identify what you’re missing and target the source rather than the symptoms.