Stopping an ant invasion comes down to three priorities, roughly in this order: remove what attracted them, use slow-acting baits instead of fast-kill sprays, and seal the gaps they used to get inside. Most people reach for a can of bug spray the moment they see a trail of ants across the kitchen counter, but that instinct often makes the problem worse. The science behind ant colony behavior explains why, and it points toward strategies that are both more effective and safer for your household.
Why Ants Are in Your House in the First Place
Ants are not wandering in randomly. Scouts leave the colony searching for food, and when they find it, they lay down chemical trails that recruit hundreds or thousands of nestmates to the source. Research on common garden ants shows that trail pheromones work together with individual memory: experienced foragers walk straighter and faster on marked trails, creating an increasingly efficient highway between the colony and your kitchen.1Europe PMC. Uncovering the complexity of ant foraging trails That is why you see a thin, disciplined line of ants rather than a random scatter. They are running a supply chain.
What they are after depends partly on the season. Ants generally have a strong, consistent preference for carbohydrates, which fuel the energy-intensive work of foraging and nest maintenance.2PubMed Central. Seasonality Directs Contrasting Food Collection Behavior and Nutrient Regulation Strategies in Ants But protein demand spikes earlier in the year, when colonies are raising brood and need building materials for growing larvae.3PubMed. Different feeding preferences for macronutrients across seasons and sites indicate temporal and spatial nutrient limitation in the black bog ant In practical terms, this means a sugar spill will attract ants almost any time of year, but in spring you might also see them swarming a pet food bowl or a greasy stovetop. Understanding these preferences matters when you choose a bait, because ants will ignore a bait that does not match what the colony currently craves.
Outdoors, many ant species farm honeydew-producing insects like aphids, tending them on plants in exchange for a steady sugar supply.4PubMed Central. Ecological consequences of interactions between ants and honeydew-producing insects When that outdoor sugar source dries up or the colony outgrows it, foragers expand their search radius and often end up inside your home. Aphid-covered plants near your foundation, fruit trees dropping overripe fruit, or even a hummingbird feeder dripping on your porch can all serve as staging areas that funnel ants toward your doors and windows.
Why Spraying Usually Backfires
The single most counterproductive thing you can do with many ant species is spray the visible trail with a contact-kill insecticide. It feels satisfying to watch them drop, but it often triggers a defense response that makes the infestation worse. Pharaoh ants are the textbook example: when a colony is physically or chemically disturbed, workers grab the brood and relocate almost the entire population to a new nest site within a day.5Journal of Economic Entomology. Induced Disturbances Cause Monomorium pharaonis (Hymenoptera: Formicidae) Nest Relocation Even worse, the colony can split into multiple fragments, a behavior called budding. A recent study found that both essential-oil-based and pyrethroid-based aerosol products increased the probability of budding in pharaoh ant colonies, with essential oils doing so at high application rates and pyrethroids doing so even at low rates.6Journal of Economic Entomology. Effects of over-the-counter aerosol products on sociotomy of Monomorium pharaonis (Hymenoptera: Formicidae) Where you had one colony behind the wall, you now have two or three, each with its own queen producing eggs. The problem literally multiplies.
This does not mean every ant species buds as readily as pharaoh ants, but the general principle holds: killing foragers on the surface does nothing to the queen, the brood, or the thousands of workers still inside the nest. It just removes the visible symptom while the colony adapts and sends out new scouts.
How Baits Actually Eliminate a Colony
Baits work by exploiting the same food-sharing behavior that makes ant colonies so successful. When a forager finds a bait station, she feeds and carries a crop full of the liquid back to the nest. There, she shares it mouth-to-mouth with nestmates in a process called trophallaxis. Research using highly sensitive tracking methods found that a single donor ant shares roughly half of her crop contents with a single recipient, and the toxicant embedded in the bait transfers right along with the food.7Nuclear Instruments and Methods in Physics Research Section B: Beam Interactions with Materials and Atoms. Insecticide transfer efficiency and lethal load in Argentine ants Through successive rounds of sharing, the poison spreads deep into the colony, reaching workers that never visited the bait and, critically, reaching the queen.
The key is that the active ingredient must kill slowly enough for this chain of sharing to happen before the forager dies. If the toxicant is too potent, ants die at the bait station or on the way home, and the colony quickly learns to avoid that food source. Research on several active ingredients illustrates the spectrum. Fipronil at very low concentrations and boric acid at around 0.5% in a sugar solution both provided complete colony kill within two weeks in laboratory trials against Argentine ants, because the delayed action gave workers time to spread the poison through the nest.8Journal of Economic Entomology. Oral Toxicity of Abamectin, Boric Acid, Fipronil, and Hydramethylnon to Laboratory Colonies of Argentine Ants (Hymenoptera: Formicidae) A study on boric acid at 3% concentration in liquid bait confirmed the same principle: the delayed lethal action gave workers enough time to distribute the toxicant to nestmates.9Journal of Economic Entomology. Development of Liquid Bait With Unique Bait Station for Control of Dolichoderus thoracicus (Hymenoptera: Formicidae)
In field conditions, timelines vary by species and active ingredient. In trials against longlegged ants, fipronil-based liquid baits achieved total worker elimination within a week, while boric acid took closer to eight weeks.10Journal of Economic Entomology. Evaluation of Liquid Baits Against Field Populations of the Longlegged Ant (Hymenoptera: Formicidae) Both got to 100% eventually, but if you’re using a boric acid bait at home and still seeing ants after two weeks, that does not necessarily mean it failed. The colony is dying; it just takes longer.
Choosing and Placing Baits
Most consumer ant baits sold in hardware stores contain one of a handful of slow-acting ingredients: boric acid (borax), fipronil, hydramethylnon, or indoxacarb. All of them work on the delayed-transfer principle. The choice between them matters less than two other factors: matching the bait matrix to what the ants want, and placing enough bait stations in the right spots.
If the ants are trailing toward something sweet, use a sugar-based liquid or gel bait. If they are going after greasy or protein-rich food, use a protein or oil-based bait. Many commercial bait systems come in both formulations. When you are not sure, put out one of each near the active trail and see which one draws more traffic. You can also shift bait types with the season, since colonies pivot toward protein in spring and lean more heavily on carbohydrates through summer and fall.
Placement matters because ant foraging ranges differ by species. Research comparing different ant species found that at a density of roughly one bait every nine meters, a bait system reached about 80% of an Argentine ant population but only about 20–30% of other species with shorter foraging ranges.11Journal of Insect Science. Food preference and foraging activity of ants: Recommendations for field applications of low-toxicity baits Indoors, the takeaway is simple: do not put one bait station under the sink and call it done. Place stations along every active trail you can find, near entry points, and in sheltered spots close to walls where ants like to travel. The more bait stations the foragers encounter, the faster the colony gets its lethal dose.
One rule that trips people up: do not clean the ant trail while the bait is working. Your instinct will be to wipe down the counter and destroy the pheromone path, but that trail is now directing traffic straight to your bait. Leave it until the ants stop coming, which typically takes one to three weeks depending on colony size and the active ingredient.
Natural Repellents and When They Help
Plenty of advice circulates about using cinnamon, vinegar, peppermint oil, or citrus peels to repel ants. Some of these actually do have measurable repellent effects. Laboratory testing showed that cinnamon essential oil, citronella oil, and a compound called p-anisaldehyde were all significantly repellent to ants in olfactory tests, with cinnamon performing the best: over 80% of tested ants chose the arm of the apparatus without cinnamon when given a choice.12PubMed Central. Natural Repellents as a Method of Preventing Ant Damage to Microirrigation Systems
The catch is that repellents redirect ants rather than eliminating them. If you smear cinnamon oil around one window frame, the ants may simply enter through a different crack. Repellents work best as a complement to baiting, not a substitute. Once the colony is dying from bait exposure, you can use repellent oils around entry points you have sealed to discourage any surviving scouts from reestablishing a trail. Used alone, they are a temporary Band-Aid.
Vinegar deserves a special mention because it does not actually repel ants through any lasting chemical effect. What it does is disrupt pheromone trails by masking the scent with acetic acid. This can temporarily scatter foragers, but they will re-lay the trail within hours. Vinegar is useful as a cleaning step (wipe down surfaces to destroy the pheromone highway), but it is not a control method on its own.
Sealing Entry Points
Ants can squeeze through gaps barely wider than a millimeter. The most common entry points include gaps around pipes and wires that penetrate exterior walls, cracks at the junction between the foundation and siding, poorly sealed window frames, and the space beneath exterior doors. Caulk is your best friend here. Silicone or acrylic latex caulk works for cracks around windows and trim. Expanding foam fills larger gaps around plumbing penetrations. Door sweeps and weatherstripping close the gap under doors.
The inspection is worth doing systematically. Follow an active ant trail backward from the food source. It will lead you to the exact gap they are using, which you might never have noticed otherwise. Seal it after the baiting campaign is finished (not during, since you want foragers to keep reaching the bait and carrying it home). For areas where caulking is not practical, like weep holes in brick construction that need to stay open for drainage, a small piece of copper mesh stuffed into the gap allows airflow while blocking ants.
Landscaping near the house matters, too. Ant colonies thrive in mulch, leaf litter, and in the soil around the base of plants. Keeping a clear, dry strip of gravel or bare ground between your foundation and any garden beds reduces the number of colonies staging right next to your walls. Trim branches and shrubs that touch the house, since ants use these as bridges to reach upper-story windows and roof eaves.
The Argentine Ant Problem
If you live in a Mediterranean climate zone, the southern United States, or coastal Australia, you are likely dealing with Argentine ants, and they present a unique challenge. Most ant species form discrete colonies that compete with each other. Argentine ants in introduced ranges have lost inter-nest aggression and formed vast supercolonies spanning hundreds of kilometers, where workers from distant nests cooperate as if they belong to the same family.13PubMed Central. Evolution of supercolonies: the Argentine ants of southern Europe This means that even if you wipe out the ants nesting in your yard, reinforcements from the broader supercolony may recolonize within weeks.
For Argentine ants, baiting remains the most effective tactic, but expectations need adjusting. You are managing the population around your home rather than permanently eliminating the species from your property. Seasonal baiting, especially in early spring before foraging activity peaks and again in late summer, keeps their numbers low enough that indoor incursions become rare. The conventional approach of spraying insecticide around the foundation perimeter has contributed to significant water contamination in urban areas, prompting the U.S. EPA to restrict the use patterns of many ant-control insecticides in residential settings.6Journal of Economic Entomology. Effects of over-the-counter aerosol products on sociotomy of Monomorium pharaonis (Hymenoptera: Formicidae) Baits, by contrast, deliver a tiny amount of active ingredient directly into the colony with minimal environmental runoff.
The Pharaoh Ant Problem
Pharaoh ants are the other species that routinely makes homeowners miserable, especially in apartments and hospitals. They are tiny, yellowish-brown, and nest in warm, hidden spots inside buildings: behind outlets, inside wall voids, under flooring. Their budding behavior, described earlier, means that any repellent spray, essential oil diffuser, or contact-kill product risks fragmenting the colony and spreading the infestation to new rooms or even neighboring units in a multi-family building.
The only reliable approach to pharaoh ants is strict bait-only control with zero spraying. Place gel or liquid bait stations near every trail, in every room where you have seen activity, and resist the urge to supplement with any spray product. It often takes several weeks for the population to collapse, because pharaoh ant colonies can have multiple queens producing eggs simultaneously. If you live in an apartment, your building management ideally coordinates baiting across all affected units at once; treating one unit while the colony has already budded into the next is a losing game.
Keeping Children and Pets Safe
The safety question is worth taking seriously, particularly if you have young children. Research has linked even low-level pesticide exposure in early childhood to effects on neurological and behavioral development.14PubMed Central. Pesticide exposure and child neurodevelopment: summary and implications Older organophosphate insecticides like chlorpyrifos, once commonly used for indoor pest control, were found to accumulate on toys and hard surfaces for weeks after a single application, pushing children’s estimated exposure levels far above recommended limits.15PubMed Central. Exposures from indoor spraying of chlorpyrifos pose greater health risks to children than currently estimated Most organophosphates are now restricted for indoor residential use, but the lesson extends to any broadcast spray: mist settles on surfaces where kids crawl, play, and put things in their mouths.
Enclosed bait stations are far safer in homes with children and pets. The active ingredient is contained inside a housing that ants can enter but small fingers and paws cannot easily access. If you use a homemade borax bait (a common recipe mixes borax with sugar water), place it in a container with entry holes too small for a child to reach into, and put it behind appliances or inside cabinets. Borax is a low-toxicity mineral, but it can cause stomach upset if ingested in quantity. Gel baits applied in thin lines along baseboards and inside cabinet hinges are another child-safe option, since the amount of active ingredient in a single bead is negligible.
Sanitation as the Foundation
No baiting program or caulking job will hold if your home keeps advertising free food to every ant colony in the neighborhood. The sanitation checklist is not glamorous, but it is what separates people who solve their ant problem from people who fight it every year:
- Wipe surfaces nightly: Crumbs and sticky residues on counters, stovetops, and tables are the primary draw. A quick wipe with soapy water (which also disrupts pheromone trails) makes a noticeable difference.
- Store food in sealed containers: Ants can detect sugar and grease through cardboard and thin plastic bags. Glass, thick plastic, or metal containers with tight lids cut off the scent signal.
- Manage pet food: Pick up pet bowls after feeding or place them in a shallow dish of soapy water, which acts as a moat that ants cannot cross.
- Handle trash and recycling: Rinse cans and bottles before putting them in recycling bins. Keep kitchen trash in a bin with a tight-fitting lid, and take it out before it overflows.
- Fix moisture sources: Many ant species are drawn to water as much as to food. Leaky pipes under sinks, dripping faucets, and condensation around windows all attract scouts. Fixing moisture problems removes a major incentive for ants to nest near or inside your home.
When to Call a Professional
Most minor ant invasions respond well to the bait-plus-sanitation-plus-sealing approach within a few weeks. A professional pest management company becomes worth the cost when you are dealing with carpenter ants (which excavate wood and can cause structural damage), when pharaoh ant budding has spread an infestation through multiple rooms or units, or when a colony is nesting inside a wall void or another location you cannot physically access. Professionals also have access to non-repellent liquid insecticides like fipronil and chlorfenapyr that can be applied precisely to nest areas without triggering colony splitting, a distinction that matters for species prone to budding. If you have tried baiting for a month with no reduction in ant activity, something about the setup is off, and a professional inspection can identify whether the colony location, bait type, or bait placement needs adjusting.