How to Get Rid of Ants in the House: Find the Trail, Then Bait the Colony

Why ants come indoors, how to trace them to the entry point, which bait suits which ant, and what university extension guides say about timing, sealing and nests in the walls.

Quick Answer

To get rid of ants in the house, follow the trail to where they get in, remove the food, wipe the trail and seal the gap, then set slow-acting bait near the trail and leave the ants feeding on it alone. UC IPM's ant guide says it can take 5 to 10 days to see fewer ants and that control with baits may take several weeks or more to be complete.

  • Penn State Extension says preventive steps take care of most nuisance ant problems, and advises sealing the holes, removing the food and wiping the trail with soapy water before any pesticide.
  • Spraying kills the foragers you see, not the queens, and Missouri Extension says it makes pharaoh ant colonies split and relocate.
  • UC IPM says to use baits primarily outdoors, where they draw ants out of the building, and indoors only for a serious infestation when you cannot find where the ants are getting in.
  • Missouri Extension says odorous house ants are best managed with sweet baits, while UC IPM says thief ants and pharaoh ants prefer protein or greasy baits, so offer a small amount of each kind and see which the ants choose.
  • NC State Extension says you may keep seeing ants for a week or more after baiting and to leave bait in place for 3 to 4 days after feeding stops.
  • Ants 1/4 to 1/2 inch long, together with piles of coarse wood debris or a rustling in the walls, point to a carpenter ant nest in the structure, which Penn State says is unlikely to be eliminated without materials applied by professionals.

Ants in the house at a glance

Why they come inFood and water, warmth and shelter, or refuge from hot, dry or flooded weather (UC IPM)
First stepsRemove the food, wipe the trail with soapy water and caulk the entry point
If ants keep comingSlow-acting bait in an enclosed station near the trail; UC IPM says primarily outdoors
Time to fewer antsIt can take 5 to 10 days; complete control may take several weeks or more (UC IPM)
Keep bait outFor 3 to 4 days after the ants stop feeding (NC State)
Bait ingredients named by Penn State and UC IPMHydramethylnon, boric acid or other borates, fipronil, abamectin
Avoid indoorsSprays, bombs or foggers, and liquid concentrates (Penn State)
Mulch and plantsAt least 6 inches from the base of the house (Penn State); at least a foot from the foundation (UC IPM)
Carpenter ant workers1/4 to 1/2 inch long, dark, shiny brown to black (Penn State)

Published by BuzzSkito Mosquito & Tick Control

Published October 7, 2026 · Drafted with AI assistance and fact-checked against the sources listed below

Why are there ants in my house?

Ants come into a house for food and water, for warmth and shelter, or to get away from hot, dry or flooded conditions outside. That list comes from UC IPM's ant management guide, which adds that ants may appear suddenly in buildings when other food sources become unavailable or the weather changes. That is why a line of ants can show up after a downpour or a heat wave and not only after a spill.

The ants on your counter are workers out foraging, and they find food by following scent. Penn State Extension explains that nuisance ants enter a home by following a chemical trail to food that a nestmate found there, and that their nests are usually outdoors in the ground. A few scouts can therefore become a visible line of workers.

Getting rid of them follows from that: trace the trail to where it enters, take away what the ants came for, clean the trail and seal the gap, and bait the colony if the ants keep coming. Each step is covered below.

Which ant it is shapes the plan. For the wider picture, the complete guide to ants in US homes covers how colonies work and how the common species differ. If you have already been bitten or stung, which household ants bite and which sting sorts out what that means.

Which ants are in your house, and does it change the plan?

It does, because the species decides which bait the ants will take and whether the nest is more likely to be in a wall, in the soil outside, or in the structure itself. The table covers three small trail-forming ants and the large carpenter ant, which is worth ruling out. For a size-and-color key to very small ants, use the tiny ants identification guide, and for the usual suspects behind the name, see what people mean by sugar ants.

AntHow to recognize itWhere it nestsWhat it takes at bait
Odorous house antAbout 0.08 to 0.12 inch (2 to 3 mm), dark brown to black, with a fruity, coconut-like smell when crushedVoids indoors and outdoors, and shallow soil nests under boards or stones; most colonies that infest homes are outdoors; many queensMainly sweet foods indoors; Missouri says sweet baits manage it best
Pharaoh antAbout 0.04 to 0.08 inch (1 to 2 mm), light tanVoid spaces indoors, commonly wall voids, behind baseboards and in electrical outlets; many queensFats, proteins and sweets; Missouri calls baiting the only effective way to manage it
Pavement antAbout 0.10 to 0.12 inch (2.5 to 3 mm), dark brown to black with light legs and antennae, and parallel furrows and ridges on the head and thoraxSoil in the open or under stones and pavement, beside and under sidewalks, driveways and foundations; one queenUC IPM lists sweets, proteins and grease as its foods; Missouri says to find and treat the outdoor soil nest
Carpenter antWorkers 1/4 to 1/2 inch, dark, shiny brown to black, with a pinched waist and elbowed antennaeHollow areas of ceilings, walls and floors, and moist or rotting wood; common spots include sills, joists, wall studs, and window and door casingsPenn State says baits may work if a professional finds the trails and keeps the baits replenished, but that the ants often ignore them

Sizes, smell, nesting and food for the first three ants are from University of Missouri Extension, except the pavement ant's foods, which are from UC IPM; carpenter ant details are from Penn State Extension. Millimeter sizes are converted to inches.

Two more ants appear in UC IPM's food-preference table: thief ants favor greasy and fatty foods and sometimes sweets, and Argentine ants favor sweets and sometimes proteins. Preferences also move with the season. UC IPM says sweet baits attract Argentine ants year-round and protein baits attract them mainly in spring, while thief ants and pharaoh ants prefer protein or greasy baits all year. What ants eat and how a colony's needs shift explains why those preferences change.

No single bait suits every small ant, which is why both Missouri and UC IPM advise letting the ants choose. Missouri says that sometimes sweet bait is best and sometimes protein bait is, and that offering both often works.

How do you find where the ants are coming from?

Follow the line of ants in both directions and watch where it starts and where it ends. UC IPM advises following the ants to where they enter the building, and to the nest if you can, and looking indoors and outdoors for holes or cracks in foundations and walls that give them a way in. University of Missouri Extension adds that following the feeding trails often reveals the nest site, and that the trail also shows what the ants are eating and how they are getting inside.

Check these places first:

  • Gaps around windows, doors and pipes. Penn State names these as the cracks to seal, and Missouri adds siding, the foundation and vents.
  • Wires and pipes. UC IPM says ants prefer to trail along structural elements such as wires and pipes, and often use them to enter a building and move through it.
  • Wall voids near water. Missouri reports that indoor nests of odorous house ants are often tied to moisture in wall voids near pipes, heaters and toilets.
  • Branches and shrubs that touch the house. Penn State says ants use them as runways.
  • Wherever the trail ends. A crumb, a pet bowl or a damp spot is what the ants are after, and it is the first thing to remove.

Why does bait work better than spray on ants in the house?

Bait gets carried into the nest and a spray does not. UC IPM explains that ant bait is an insecticide mixed with a material that attracts foraging workers, and that it must act slowly so the workers are not killed before they get back to the nest. Penn State describes the same chain: worker ants carry the food and pesticide mixture back to the nest and feed the queen, which kills the colony. UC IPM calls baits the only type of insecticide it recommends in most situations and says that, properly used, they are more effective and safer than sprays.

A spray only reaches the ants it touches. UC IPM says spraying around the foundation does not give permanent control, because it kills only foraging ants and not the colony or the queens. Missouri makes the same point about spraying trails indoors: most workers stay in the nest with the queen and replace the ones that were killed, so re-treatment is usually needed.

Some species respond to sprays by splitting. Missouri says conventional spraying of worker trails causes a pharaoh ant colony to split into several colonies that relocate, and calls baiting the only effective way to manage them.

Indoors there is a health reason as well. Penn State advises avoiding sprays, bombs or foggers, and liquid concentrates indoors, because they can irritate lungs, leave chemical residues on indoor surfaces, or be touched or swallowed by children.

Baiting is not the right answer for every ant. Missouri says nest treatment is the most effective choice for soil- and wood-nesting species with a single queen when you can locate the nest, and baiting is most effective for cavity-nesting species with many queens. When the nest is in a wall void, or cannot be found at all, bait has the advantage that the workers carry it there themselves. Why baiting beats spraying for ants goes deeper on that reasoning, and glue traps are a different tool again, which a comparison of ant bait stations and glue traps explains.

How do you bait ants in the house?

Clean up and seal first, then offer a bait the ants will actually eat, set it in an enclosed station near their trail, and leave the ants alone while they carry it home.

Bait is not always needed. Penn State says preventive steps take care of most nuisance ant problems, and its advice is to try non-chemical methods first: seal the holes the ants are using, remove the food or drink they are after, and wipe up the trail with soapy water or a vinegar and water solution. UC IPM's steps for an ant emergency run in the same order: remove the food source, clean the trails, caulk the entry points, and then put out bait stations or gel bait at the entry points. A separate guide looks at whether vinegar kills ants or only erases the trail.

1. Offer sweet and protein bait and see which the ants take

Put out a small amount of each kind and watch which one the ants prefer. UC IPM calls that a good way to work out what to use. NC State Extension's baiting tips describe the same test: place a small amount of bait where the ants are foraging, watch for a few minutes, and if they show no interest, try a different bait until you find one they eat readily.

2. Use an enclosed station and read the label

Penn State recommends enclosed, tamper-resistant bait stations holding a premixed food and pesticide. The active ingredients that both Penn State and UC IPM name for ant baits are hydramethylnon, boric acid or other borates, fipronil and abamectin (avermectin). The label decides where a product may be used and how much to apply, so follow it over any general figure here.

With borates, a stronger bait is not necessarily a better one. UC IPM notes that, for Argentine ants, prepackaged borate stations can kill foragers before they bring the bait back to the colony, and that liquid borate baits with a lower concentration have more impact on the colony. The guide to borax and boric acid for ants covers that trade-off and where homemade versions go wrong.

3. Put it where the ants are, away from food and out of reach

Where the bait goes depends on where the ants are coming from. UC IPM says to use baits primarily outdoors, near nests and along the trails and edges where ants travel, because outdoor baits draw ants out of the building. It advises baiting indoors only when there is a serious infestation and you cannot find where the ants are getting in, since bait indoors could attract ants inside. Its spacing for outdoor stations is every 10 to 20 feet around the foundation, and at nest openings if they can be found.

Indoor bait still has a place, and Penn State's enclosed, tamper-resistant station is the form it recommends there. For indoor placement, NC State says to put bait where ants are known or suspected to be active, such as near a cabinet or a piece of equipment, never directly on countertops where food is prepared, and out of reach of children, pets and wildlife. Kitchens add their own placement rules, which the kitchen ant guide walks through.

Pets need particular care. The National Pesticide Information Center (NPIC) warns that baits are made with ingredients many pets find appetizing, and advises keeping any rodent or insect baits used in the home in secure bait stations or in places pets cannot reach. If you suspect a pet has been exposed to a pesticide, NPIC says to call your veterinarian or NPIC at 800-858-7378.

4. Do not spray or disturb the ants at the bait

NC State is direct on this: do not disturb or kill the ants with insect sprays or other means, because spraying the ants or the baited area contaminates the bait and is likely to repel them. UC IPM likewise says not to use any insecticide sprays while you are using baits.

Cleaning is a different matter. UC IPM says baits take time to work and to keep cleaning up trails in the meantime, using a sponge and soapy water to remove the scent trail. One way to follow both sources is to clean the trails elsewhere in the house and leave the ants at the bait itself undisturbed.

5. Leave it, check it, and keep it going

Most ant baits act slowly, so NC State says you may keep seeing ants for a week or more after baiting. It advises providing enough bait and checking it daily so that it does not run out, because ants that carry off all the bait may move elsewhere before enough has spread through the colony. It also says to replace baits the ants no longer accept, and to leave the bait in place for 3 to 4 days after you see no more signs of feeding.

How do you stop ants from coming back in?

Remove the food and water that drew them, seal the gaps they used, and cut back whatever touches the house. UC IPM and Penn State both put sealing the entry point among the first steps, and UC IPM suggests learning the seasonal cycle of ants in your area and caulking and baiting before the yearly influx.

  • Caulk the gaps. Penn State says to seal cracks and crevices around windows, doors and pipes with caulk, and UC IPM says the same for cracks around foundations and other sites that give entry from outside.
  • Fix moisture. Penn State lists repairing water leaks, and UC IPM says leaky faucets and sprinkler heads attract thirsty ants.
  • Clean up and store food. Penn State advises cleaning up spills and crumbs and not leaving snacks or pet food out. Missouri adds storing foods that attract ants in tightly sealed jars or the refrigerator.
  • Pull plants back. Penn State says to keep mulch and vegetation at least 6 inches from the base of the house and to keep branches and shrubs from touching it. UC IPM's quick tips say to keep plants, grass and mulch at least a foot from the foundation.

How long does it take to get rid of ants in the house?

It can take 5 to 10 days to see fewer ants and several weeks or more for baits to finish the job, not an afternoon. Both figures come from UC IPM, and NC State's note that ants may keep appearing for a week or more after baiting starts is consistent with them.

StageWhat to expectSource
First week or moreAnts may keep appearing while they carry bait to the nestNC State Extension
5 to 10 daysIt can take this long to see fewer antsUC IPM
Several weeks or moreControl with baits may take this long to be completeUC IPM
After feeding stopsLeave bait in place another 3 to 4 daysNC State Extension

Timelines are general; the product label and the ant species can change them.

If the trail is still strong after several weeks, check the stations first. NC State's advice is to replace baits the ants no longer accept and to try a different bait if they ignore the first, and UC IPM adds repositioning the stations. If the ants persist after that, it is time for the professional help described in the last section.

What if the ants are nesting inside the walls?

For the common nuisance ants, baiting is still the answer, because Missouri names baiting as the most effective method for cavity-nesting species with many queens. It describes pharaoh ants as nesting in void spaces indoors, commonly in wall voids, behind baseboards and in electrical outlets. Odorous house ants nest in voids both indoors and outdoors, and Missouri says most of their colonies that infest homes are outdoors, with indoor nests often tied to moisture in wall voids. Both take patience and a bait they accept.

Carpenter ants are the case to rule out. Penn State's carpenter ant page describes the signs of a nest indoors: piles of coarse, stringy wood particles and dead insect parts sifting from cracks, a rustling sound in walls and ceilings, and numerous winged ants at windows inside the house. Workers are 1/4 to 1/2 inch long and dark, shiny brown to black.

Carpenter ants do not eat wood. Penn State says that in homes they typically build nests in hollow areas of ceilings, walls or floors, that they seldom tunnel into dry, sound wood but may excavate moist, rotting wood, and that they usually will not infest sound wood with a moisture content below 15 percent. Its advice is to check areas where wood may be wet or damp, for example from a leaking roof, overflowing gutters, condensation on water pipes or leaking appliances.

The nest may also be outside. Penn State notes that large ants indoors do not necessarily mean a nest indoors: it may be outside near the building, with foraging workers entering the structure in search of food and water, and the parent nest and any satellite nests must be found to eliminate the ants. A longer guide to finding a carpenter ant nest covers the search. If winged ants are turning up indoors, what flying ants in the house mean explains what an indoor swarm tells you.

When should you call a professional?

Call one when the ants persist after several weeks of correct baiting, or when you find signs of a nest in the structure. UC IPM says that if a problem persists, the best option is to hire a pest management professional trained or certified in integrated pest management (IPM). For carpenter ants, Penn State says it is unlikely that a satellite colony can be eliminated without materials applied by professional pest management companies.

Ask what the company plans to do. UC IPM's advice when hiring is to ask for baits and spot treatments in place of perimeter treatments or monthly sprays. For a sense of the budget, see what professional pest control typically costs, and to weigh the options first, see what do-it-yourself pest control can and cannot do.

Use any pesticide exactly as its label directs. The label is the law, and what is registered and sold varies by state.

Frequently Asked Questions

Why do ants come into the house after rain?+

UC IPM says ants enter buildings seeking food and water, warmth and shelter, or refuge from dry, hot weather or flooded conditions, and that they may appear suddenly when other food sources become unavailable or the weather changes. University of Missouri Extension gives one example: odorous house ants feed on honeydew and plant nectar outdoors, and when rain washes those foods away they invade homes in large numbers to find food. If ants show up mainly after storms, follow the trail to the entry point, clean it, seal it and fix any leaks, since UC IPM notes that leaky faucets attract ants.

Should I kill the ants I see on the bait?+

No. NC State Extension says not to disturb or kill the ants with insect sprays or other means, because spraying the ants or the baited area contaminates the bait and is likely to repel them. Bait only works if the workers carry it back to the nest and share it. Because baits are slow-acting, you may keep seeing ants for a week or more, and the guide advises leaving the bait out for 3 to 4 days after feeding stops.

Can I use a bug bomb or fogger for ants in the house?+

Penn State Extension advises against it. Its ant guide says to avoid sprays, bombs or foggers, and liquid concentrates indoors, because they can irritate lungs, leave chemical residues on indoor surfaces, or be touched or swallowed by children. UC IPM adds that spraying around the foundation kills only the foraging ants, not the colony or the queens, and that indoor sprays are not usually necessary. Both sources recommend baits in their place.

Are ant baits dangerous to dogs and cats?+

They can be. The National Pesticide Information Center says baits are made with ingredients many pets find appetizing, and advises keeping rodent or insect baits in secure bait stations or in places pets cannot reach. If you suspect a pet has been exposed, call your veterinarian or NPIC at 800-858-7378. If a pet is having difficulty breathing, tremors or seizures, NPIC says to contact a veterinarian or an animal poison control center immediately, and it names the ASPCA Animal Poison Control Center.

Will the ants come back after I bait them?+

They can, if what attracted them is still there. A bait that reaches the queen is meant to kill the colony, as Penn State describes it, but food, water and gaps in the house can draw ants from another colony. Penn State advises repairing leaks, cleaning up spills and crumbs, sealing cracks around windows, doors and pipes, and keeping branches and shrubs from touching the house. If a problem persists, UC IPM recommends hiring a pest management professional trained in integrated pest management.

Sources

  1. Ants — University of California Statewide IPM Program
  2. Got Ants? Eliminate them with IPM. — Penn State Extension
  3. Ants (G7392) — University of Missouri Extension
  4. Tips for Effective Ant Baiting — NC State Extension
  5. Carpenter Ants — Penn State Extension
  6. Pets and Pesticide Use Fact Sheet — National Pesticide Information Center

How this guide was made: it was researched and drafted with AI assistance from the sources listed above. A second, independent AI pass then checked each factual claim against those sources. Found an error? Email support@buzzskito.ca.