Keeping ants out of your home comes down to three things: removing what attracts them, sealing the gaps they use to get inside, and treating the perimeter so scouts never reach your walls. Most ant problems start outdoors and work their way in through tiny cracks you’d never notice, so effective prevention means working from the outside in.
Know What’s Attracting Them
Different ant species chase different foods, but nearly all of them are drawn to sugary residues, grease, and moisture. Odorous house ants, the small dark ones that smell like rotten coconut when crushed, target sweets and meat scraps. Pavement ants eat almost anything: bread, nuts, pet food, grease. Pharaoh ants are especially persistent and will go after fats, toothpaste, soap, and any standing water in kitchens or bathrooms. Even carpenter ants, which tunnel into damp wood for nesting, forage for protein and sugary liquids indoors.
The practical takeaway: clean up immediately after meals, store sugar and honey in sealed containers, wipe down counters and stovetops to remove grease films, and don’t leave pet food sitting out overnight. Take garbage out before it sits, and rinse recycling containers before they go in the bin. A single sticky spill under the fridge can sustain a trail of ants for weeks.
Seal the Gaps They Use to Get In
Ants exploit surprisingly small openings. The most common entry points are the transition between your foundation and siding, gaps around window frames, worn door thresholds, and holes where pipes or wires pass through exterior walls. A systematic walk around your home’s exterior, twice a year at minimum, will reveal most of these.
For narrow cracks along the foundation or around window trim, silicone or polyurethane caulk works well and stays flexible through temperature changes. Wider gaps, especially around plumbing or electrical penetrations, benefit from a backer rod stuffed in first, then sealed over with insect-resistant expanding foam. Avoid overfilling with foam; it expands significantly and can warp frames if you use too much.
Don’t overlook the bottom of doors. Worn weather stripping and damaged door sweeps are highways for ants. Replacing a door sweep is a ten-minute job that eliminates one of the most common entry routes into kitchens. Check the rubber seal around sliding glass doors too, since these degrade faster than most people realize.
Create a Hostile Perimeter Outside
Your landscaping can either invite ants toward your house or push them away. Wood mulch piled against the foundation is one of the biggest attractants, providing moisture, shelter, and a direct path to your walls. Keep a buffer zone of at least several inches between any mulch bed and the foundation. Better yet, use cedar or cypress mulch in those zones, both contain natural compounds that repel insects. Rubber mulch or crushed stone are other options that don’t hold moisture the way wood chips do.
Trim bushes, shrubs, and tree branches so they sit at least 18 inches from the house. Vegetation touching your walls acts as a bridge, letting ants bypass any ground-level barriers entirely. Branches that overhang the roofline are just as problematic. Trimming also reduces shade and moisture buildup along the foundation, making the area less attractive for nesting.
Fix drainage problems too. Leaky hose bibs, clogged gutters, and planters without drainage holes create the damp conditions ants need. Carpenter ants in particular seek out water-damaged wood for their galleries, so a persistent moisture problem near your foundation is essentially an invitation.
Why Most Ant Sprays Make Things Worse
The ant spray you grab at the hardware store is almost certainly a repellent formula. It kills the ants you can see, clears the trail for a day or two, and feels satisfying. But repellent sprays actually cause a phenomenon called “budding,” where the colony detects the chemical threat, splits into smaller groups, and relocates. You end up with multiple nests instead of one.
Non-repellent insecticides work on the opposite principle. Ants can’t detect them at all, so they walk through the treated zone, pick up a dose, and carry it back to the nest. Because the formula acts slowly, a single forager has time to spread it to nestmates, larvae, and the queen through normal grooming and food sharing before dying. This domino effect reaches the hidden members of the colony that surface sprays never touch. Products containing fipronil are the most widely used non-repellent option and are labeled for outdoor perimeter treatment around foundations.
If you’re going the chemical route, apply a non-repellent spray in a continuous band around your home’s foundation, focusing on entry points you’ve already identified. This is an outdoor perimeter treatment, not an indoor spray.
Bait Stations and Homemade Baits
Baits work on the same delayed-transfer principle as non-repellent sprays. Foraging ants take the bait back to the colony, share it, and the active ingredient spreads through the nest over days. The key is patience: you’ll see more ants at first as they recruit nestmates to the food source, and that’s actually a sign the bait is working.
A simple homemade liquid bait that works well against sugar-feeding species uses 1 teaspoon of boric acid powder dissolved with 3 tablespoons of white sugar in about 1¾ cups of warm water (use distilled or bottled, not tap). Soak cotton balls in the solution and place them near active trails. The low boric acid concentration is critical: too much kills foragers before they make it back to the nest, and too little doesn’t affect the colony. This recipe, developed by researchers at the University of Hawaiʻi, hits the right balance for colony elimination rather than just surface kills.
For grease-loving species like thief ants or pharaoh ants, sugar bait won’t be very appealing. Commercial protein-based bait stations work better for these species. If you’re not sure what type of ant you’re dealing with, set out both a sweet bait and a protein bait and see which one draws activity.
Natural Repellents and Their Limits
Peppermint oil, tea tree oil, and cinnamon oil do repel ants. The menthol in peppermint irritates ants and disrupts the scent trails they use to navigate, and the cinnamaldehyde in cinnamon oil is a strong deterrent. You can mix 10 to 15 drops of peppermint oil with water in a spray bottle and apply it along windowsills, door frames, and baseboards where you’ve seen activity.
The limitation is longevity. Essential oils evaporate quickly and need reapplication every few days, or immediately after cleaning. Cotton balls soaked in oil and tucked behind appliances or inside cabinets last a bit longer but still need weekly replacement as the scent fades. These methods work for minor problems or as a supplement to sealing and baiting, but they won’t resolve an established colony on their own. They repel ants from treated spots without eliminating the source.
Keeping Pets and Kids Safe
Most commercial ant baits use boron compounds, which are relatively safe for dogs and cats in the small amounts found in a single bait station. Large ingestions, however, can cause severe stomach upset and potentially kidney damage, so placement matters. Put bait stations on high ledges, behind heavy appliances, or inside cabinets where pets can’t reach them. Some dogs will chew through plastic bait station packaging, which creates a choking or obstruction risk on top of any toxicity concern.
If you use perimeter sprays containing pyrethroid insecticides, be especially careful with cats. Cats are highly sensitive to pyrethroids and can become seriously ill from small exposures, including indirect contact from walking across a treated surface and then grooming their paws. Rabbits are extremely sensitive to fipronil-based products, and any exposure should be treated as potentially dangerous. For households with cats or rabbits, bait stations placed out of reach are generally safer than spray treatments. Liquid bait products should be set out only in the recommended amount so there’s no pooling that a pet could lap up.
A Seasonal Prevention Schedule
Ant prevention works best as a routine rather than a reaction. In early spring, before colonies ramp up foraging, do a full inspection of your foundation, windows, and doors. Seal any new cracks from winter freeze-thaw cycles. Clear debris and leaf litter away from the foundation, and cut back vegetation that’s grown too close to the house.
Through late spring and summer, when ant activity peaks, keep bait stations refreshed and reapply perimeter treatments according to product labels. Monitor indoor moisture sources closely, since summer humidity and condensation around pipes create exactly the conditions ants seek out. In fall, do another sealing pass before ants start looking for warm overwintering sites. Clean and store outdoor pet bowls, and make sure firewood is stacked well away from the house, since carpenter ants commonly nest in woodpiles and hitch a ride indoors on carried logs.