Homeowner Basics

Ants in the House: How to Get Rid of Them, and When It's Carpenter Ants or Termites

Updated By Homeowner Basics EditorsHow we research

Time 30–60 minutes, then a few weeks for baitsDifficulty Easy

On this page
  1. Why Ants Come Inside
  2. Identify Them
  3. What You Can Do Yourself
  4. When to Call a Pro
  5. Prevent It
  6. Frequently Asked Questions
  7. The Bottom Line
  8. Sources

A line of small ants on the kitchen counter usually means one ant found food and the rest are following. Penn State Extension explains that nuisance ants follow a chemical trail to food a nestmate found, and that their nests are usually outdoors in the ground. UC IPM, the University of California's pest management program, and Penn State both recommend cleaning up the trail and the food, sealing the way in, and using slow-acting baits rather than sprays. Large black ants with coarse sawdust, or winged insects swarming indoors, can mean carpenter ants or termites, which point to moisture or wood damage and a pest management professional.

If you've found soft, crumbling wood but no insects, start with our wood rot guide. For pest-proofing the whole house each season, see the summer maintenance guide.

Pesticide safety. Read the label before you buy and follow it exactly. The EPA notes that every pesticide label says “It is a violation of Federal law to use this product in a manner inconsistent with its labeling”; in other words, “the label is the law.” Never use an outdoor-only product indoors: the EPA warns that many outdoor chemicals stay toxic longer inside. The EPA says never to put insect bait where small children or pets can reach it, and the National Pesticide Information Center (NPIC) says to store all pesticides out of their reach. If someone swallows a pesticide and is unconscious, having trouble breathing, or having convulsions, call 911; otherwise, the EPA says to read the label's first-aid instructions and call Poison Control at 1-800-222-1222.

Why Ants Come Inside

UC IPM says ants come indoors for food and water, warmth and shelter, or relief from hot, dry weather or flooding, and can show up suddenly when the weather changes. Check these in order:

  1. Food. UC IPM lists sugar, syrup, honey, fruit juice, fats, and meat among what household ants feed on. Check counters, the pantry, pet bowls, and the trash.
  2. Water. UC IPM says leaky faucets and sprinkler heads attract thirsty ants. Check under sinks and around the dishwasher.
  3. An easy way in. Ants trail along wires and pipes to get inside (UC IPM), and branches touching the house give them a bridge (University of Minnesota Extension).
  4. A nest indoors. The University of Minnesota says some species nest in wall voids or behind baseboards and countertops, others in moisture-damaged wood, and that winged ants swarming inside indicate an indoor nest.

Identify Them

The University of Minnesota Extension calls identification the first step, because species nest, feed, and respond to treatment differently. NPIC suggests your county Extension office for help.

Small Nuisance Ants

The University of Minnesota describes two common ones. The odorous house ant is brown and about 1/10 inch long, and when crushed gives off a smell some people compare to rotten coconuts or blue cheese. The pavement ant, about 1/8 inch, nests under sidewalks and slab foundations and comes in through cracks in the concrete. Most ants are mainly a nuisance, it says. The exception is the tiny (about 1/16 inch), yellow-to-red Pharaoh ant, which nests only indoors in the north central states; the Extension highly recommends a pest management service for it.

Carpenter Ants

UC IPM and Penn State put workers at 1/4 to 1/2 inch, and the University of Minnesota says they're black or red and black, with one node at the waist and an evenly rounded back seen from the side. They don't eat wood: UC IPM says they hollow it out to nest, and Purdue Extension calls a small pile of coarse sawdust below the nest their trademark.

They're a moisture warning. Purdue says their nests are usually in wood with a “higher than normal” moisture condition, and Penn State says they usually won't infest sound wood under 15 percent moisture. The University of Minnesota lists indoor nest sites in wood dampened by leaks or condensation: behind bathroom tile, around tubs, sinks, and dishwashers, in attic beams, and in hollow doors and wall voids. Ants you see inside may be foraging from an outdoor nest (Penn State), but the Extension's signs of an indoor nest are coarse sawdust, 20 or more workers seen again and again, many winged ants indoors from late winter through spring, and carpenter ants active inside in winter. Damage usually builds over years, it says, but severe damage can weaken structural wood.

Termite Swarmers

UC IPM says winged termites are easily confused with flying ants. UC IPM, the University of Minnesota, the EPA, and Penn State describe three differences:

  • Waist: narrow and pinched on an ant; broad, with no waist, on a termite.
  • Wings: an ant's front wings are longer than its hind wings; a termite's four are about equal, and much longer than its body (University of Minnesota).
  • Antennae: elbowed on an ant; straight on a termite.

Both shed their wings soon after flying, and the University of Minnesota says termite wings are usually found near where the termites emerged. UC IPM calls mud tubes (shelter tubes), which can run up a foundation, the most commonly seen sign of subterranean termites, and says damaged wood is often thin at the surface and easy to puncture with a screwdriver.

What You Can Do Yourself

These steps are for small nuisance ants. For carpenter ants or termites, go to When to Call a Pro.

Step 1: Clean Up the Trail and the Food

Wipe the trail with soapy water to remove the scent the others follow (UC IPM, NPIC), and vacuum up stragglers, emptying the bag outdoors right away (NPIC). Then remove the attraction: UC IPM says to keep sugar, syrup, honey, and pet food in closed containers, not plastic bags or open packages, rinse soda cans, clean up grease and spills, and take garbage out daily. As for the bug spray under the sink, UC IPM says, “Indoor sprays aren't usually necessary.”

Step 2: Find and Seal Entry Points

Follow the trail to where it comes in. UC IPM says to check under sinks, in cupboards, and along pipes and wires, then caulk the gap, or plug it with petroleum jelly. Penn State adds cracks around windows and doors. The University of Minnesota cautions that sealing isn't always practical with ants this small, which is why baits matter.

Step 3: Use Baits, Not Sprays

The University of Minnesota says killing foragers does little, since only a small share of the colony is out of the nest at any time. UC IPM explains that workers carry bait back and share it mouth to mouth with other workers, larvae, and queens, so it has to be slow-acting.

  • Pick the right product. Penn State recommends enclosed, tamper-resistant bait stations indoors. The label should list ants as a target pest (UC IPM) and the place you'll use it (University of Minnesota). UC IPM warns that some granules that look like bait are contact insecticides that won't control the colony.
  • Place it where they travel. UC IPM says to bait mainly outdoors, along trails and every 10 to 20 feet around the foundation, to draw ants out, and to bait indoors only for a serious infestation whose entry point you can't find. The University of Minnesota calls bait the best way to treat an indoor nest. Keep every station out of reach of children and pets.
  • Leave it alone. UC IPM and the University of Minnesota both say not to spray while baiting, and the University of Minnesota says ants avoid bait contaminated by a pesticide or household chemical.
  • Adjust. UC IPM says to replace empty baits and, if ants ignore one, move it or try another product; it notes that some species prefer sweet baits and others protein or grease.
  • Wait. UC IPM says 5 to 10 days to see fewer ants; the University of Minnesota says weeks to months to eliminate a colony.

Why Sprays Backfire

The University of Minnesota says spraying is temporary and has little to no effect on the nest. UC IPM says perimeter sprays kill only foragers and can sometimes trap ants indoors, and for Pharaoh ants, “Insecticide sprays will only make infestations worse by dispersing colonies to new locations.” Penn State says to avoid sprays, bug bombs, and liquid concentrates indoors, since they can irritate lungs, leave residues, and be touched or swallowed by children. Home remedies don't work either: the University of Minnesota lists flooding nests, cinnamon, red pepper, orange peels, essential oils, and gasoline, which it calls dangerous.

When to Call a Pro

  • Signs of carpenter ants. The University of Minnesota says control is complex and best left to a pest management professional, who may drill small holes to dust a nest inside a wall, a job it says not to do yourself. Tell the pro when, where, and how many ants you've seen. The Extension also says to replace damaged wood and fix the moisture; that's work for a carpenter or contractor (see wood rot).
  • Possible termites: swarmers, mud tubes, or wood with hollow spots when probed. UC IPM says to call a professional, since do-it-yourself termite pesticides are generally not effective. The EPA says termite companies must be licensed by your state, so ask to see the license, and ask when you can go back inside after treatment. NPIC suggests getting inspections and estimates from more than one company.
  • Tiny yellowish ants nesting indoors, possibly Pharaoh ants; the University of Minnesota says store baits generally don't work on them.
  • Ants that keep coming back after weeks of baiting. UC IPM recommends a pro trained in integrated pest management who uses baits and spot treatments rather than perimeter or monthly sprays. The EPA says to ask them to correct the source of the problem first, and to write down the name and EPA registration number of any product they use.
  • A slab house with a serious ant problem. Purdue says ants nesting under the slab may need professional control.

Prevent It

  • Fix the water. Repair leaky pipes and faucets (NPIC, UC IPM) and the roof, flashing, gutter, and downspout problems that keep wood damp (Penn State), and insulate pipes that sweat (NPIC). Penn State says ants nest in clogged gutters; see cleaning gutters from the ground. The EPA says to keep the soil around the foundation dry with good grading and working gutters and downspouts; see negative grading and downspouts draining near the foundation. Penn State also recommends a plastic moisture barrier over crawl space soil; see crawl space vapor barrier.
  • Seal the gaps where plumbing, cable, and electrical lines enter (NPIC, Penn State).
  • Trim plants back so branches and shrubs don't touch the house, roof, or eaves (University of Minnesota, NPIC). Keep plants and mulch back from the foundation: Penn State says at least 6 inches, UC IPM at least a foot, and the EPA at least 18 inches. UC IPM says to keep mulch 2 to 3 inches deep.
  • Store firewood at least 3 feet from the house and off the ground, and bring in only a couple of days' supply (Purdue). Purdue says firewood shouldn't be treated with insecticides, citing possible harmful fumes when it burns. Remove stumps and old logs near the house (University of Minnesota, Penn State, NPIC).
  • Keep exterior wood painted and sealed, and replace water-damaged wood (Penn State).
  • Get ahead of the season. UC IPM says to caulk and bait before the yearly invasion, and that baiting in late winter and early spring works best.

Frequently Asked Questions

Why are there suddenly ants in my kitchen?

Usually food, water, or weather. UC IPM says ants come in for food and water or to escape hot, dry weather or flooding, and can appear suddenly when conditions change. Wipe the trail, seal the food, and find where they're getting in.

How long do ant baits take to work?

UC IPM says 5 to 10 days to see fewer ants, and the University of Minnesota says weeks to months to eliminate a colony. Keep bait stocked, keep sprays away from it, and switch products if ants ignore it.

Do vinegar, cinnamon, or essential oils get rid of ants?

Not for good. The University of Minnesota says a mild vinegar-and-water wipe temporarily disrupts a trail, but it lists cinnamon, red pepper, orange peels, and essential oils among methods that aren't effective.

Are flying ants in the house a sign of termites?

Not necessarily; check the waist, wings, and antennae. Winged ants swarming indoors indicate an indoor ant nest, the University of Minnesota says. If they're termites, UC IPM says a licensed professional's inspection is usually needed to confirm an infestation.

The Bottom Line

Wipe the trail, put food away, seal the gap, and use slow-acting baits instead of sprays, following the label exactly and keeping baits away from children and pets. Big black ants with sawdust, or winged swarmers and mud tubes, point to moisture or wood damage: call a pest management professional and fix the water.

Sources

  • University of California Statewide IPM Program (UC IPM) — Pest Notes: Ants (ants enter buildings for food and water, warmth and shelter, or refuge from dry, hot weather or flooding, and may appear suddenly when food sources or weather change; household ants feed on sugar, syrup, honey, fruit juice, fats, and meat; leaky faucets and sprinkler heads attract them; they trail along wires and pipes to enter; ants and termites differ by waist, wing size, and elbowed antennae, and both lose their wings shortly after flights; soapy water removes the scent trail; indoor sprays aren't usually necessary; inspect under sinks, in cupboards, and along pipes and wires; caulk openings or plug them with petroleum jelly; closed containers rather than plastic bags or open packaging, rinsed soft drink containers, grease and spills cleaned up, garbage out daily; workers share bait mouth to mouth with workers, larvae, and queens, so baits must be slow-acting; use baits primarily outdoors, on trails and every 10 to 20 feet around the foundation, where they draw ants out, and indoors only for a serious infestation whose entry point can't be found; keep bait stations away from pets and small children; some granular products mistaken for baits are contact insecticides that don't control the colony; species differ in preferring sweet, protein, or greasy baits; replace baits when empty, and reposition them or try a different product if ants aren't taking them; don't use sprays while baiting; 5 to 10 days to see fewer ants; perimeter sprays kill only foragers and on occasion trap ants indoors; plants, grass, and mulch at least a foot from the foundation; caulk and bait before the yearly influx, with late winter and early spring treatments most effective; hire an IPM-trained professional if the problem persists, and ask for baits and spot treatments rather than perimeter treatments or monthly sprays), Pest Notes: Carpenter Ants (workers 1/4 to 1/2 inch; they excavate wood to nest but don't consume it; mulch 2 to 3 inches deep; make sure ants are listed as a target pest on a bait's label), Pest Notes: Subterranean and Other Termites (winged termites are easily confused with flying ants; a professional inspection is usually required to confirm an infestation, and inspections are by a licensed pest management professional; call a professional; do-it-yourself termite pesticides are generally not effective; shelter (mud) tubes are the most commonly seen evidence and may travel up foundations; damaged wood is thin at the surface and easily punctured with a knife or screwdriver), and Pharaoh ant: quick management tips (insecticide sprays will only make infestations worse by dispersing colonies to new locations).
  • University of Minnesota Extension — Ants (identification is the first step because nesting, food preferences, and habits differ; ants vs. termites by waist, antennae, and wings, with termite wings much longer than the body and found near where termites emerge; swarming winged ants inside indicate an indoor nest; some species nest behind moldings, baseboards, countertops, and in wall voids, others in decaying or moisture-damaged wood; most ants are primarily a nuisance; killing foragers has little effect because only a small percentage are out of the nest; a mild vinegar-and-water solution temporarily disrupts trails; sealing cracks may not always be practical; prune branches that touch the building; flooding nests, gasoline (dangerous), spearmint gum, red pepper, orange peels, cinnamon, and essential oils are not effective; bait is the best way to treat an indoor nest and may take weeks to months; ants avoid bait contaminated by a pesticide or household chemical; don't spray while baiting; spraying is temporary with little to no impact on the nest; odorous house ant, pavement ant, and Pharaoh ant descriptions; a pest management service is highly recommended for Pharaoh ants, and baits available to residents are generally not effective on them; be sure the area you treat is listed on the label) and Carpenter ants (black or red and black, with one node and an evenly rounded thorax; nests in moist or decayed wood from leaks or condensation, behind bathroom tiles, around tubs, sinks, and dishwashers, in attic beams, hollow doors, and wall voids; signs of an indoor nest: coarse sawdust, 20 or more workers seen consistently, many winged ants indoors from late winter through spring, and carpenter ants seen indoors in winter; damage generally occurs slowly, over years, but structural wood can be weakened when it is severe; trim branches so they don't touch the house, roof, or eaves; remove stumps; best to hire a pest management professional because control is complex; drilling holes and dusting nests is not a do-it-yourself job; tell the professional when, where, and how many ants you've seen; replace damaged or decayed wood and eliminate moisture problems).
  • Penn State Extension — Carpenter ants (workers 1/4 to 1/2 inch; ants vs. termites by body constriction, antennae, and wing length; large ants indoors may be foraging from a nest outside; wood kept damp by roof leaks, defective flashing, gutters and downspouts, or condensation; carpenter ants usually won't infest sound wood with less than 15 percent moisture; remove stumps, logs, and waste wood; keep exterior wood painted and sealed and replace water-damaged wood; repair roofs, flashing, gutters, and downspouts; seal holes where pipes and wires enter; a plastic moisture barrier over crawl space soil) and Got ants? Eliminate them with IPM (nuisance ants follow a chemical trail to food a nestmate found, and nests are usually outdoors in the ground; caulk cracks around windows, doors, and pipes; vegetation and mulch at least 6 inches from the house; keep gutters clear because ants nest there; enclosed, tamper-resistant bait stations indoors; avoid sprays, bombs or foggers, and liquid concentrates, which can irritate lungs, leave residues, and be touched or swallowed by children; follow label directions exactly).
  • Purdue University Extension Entomology — Ants (E-22) (ants nesting under concrete slabs may need professional control; a small pile of coarse sawdust is the carpenter ant's trademark, and nests are usually in wood with “higher than normal” moisture) and Insects in firewood (E-67) (keep firewood at least 3 feet from the building and off the ground; bring in at most a couple of days' supply; firewood should not be treated with insecticides, and homeowners shouldn't make a practice of applying chemicals to it because of possible harmful fumes when burned).
  • National Pesticide Information Center (NPIC) — Ants (contact your county Extension office for identification help; wipe trails with soapy water; vacuum and empty the bag or bin outdoors promptly; fix leaky pipes; keep vegetation trimmed away from the house; read the label before you buy), Carpenter ants (seal where plumbing, cable, and electrical hardware enter; insulate pipes that form condensation; keep tree limbs trimmed away from the house; remove stumps), Termites (get inspections, estimates, and treatment and warranty information from multiple companies; remove stumps and woodpiles near the home), and why read the label (read the label before you buy; store all pesticides safely out of reach of children and pets).
  • U.S. Environmental Protection Agency — introduction to pesticide labels (every label carries the statement that use inconsistent with its labeling violates federal law; the label is the law), do's and don'ts of pest control (don't use outdoor chemicals indoors, because they remain toxic longer inside; ask anyone you hire to find and correct the source of the problem before applying pesticides; write down the name and EPA registration number of any product they use), termites: how to identify and control them (ant and termite wing and antenna differences; keep foundation soil dry with grading, gutters, and downspouts; probe exposed wood for hollow spots; termite firms must be licensed by your state, so ask to see the license; find out when you can reenter), and Citizen's Guide to Pest Control and Pesticide Safety (PDF) (keep vegetation, shrubs, and wood mulch at least 18 inches from the house; never put insect bait where small children or pets can reach it; call 911 for a poisoning victim who is unconscious, having trouble breathing, or having convulsions, and otherwise read the label's first aid and call Poison Control at 1-800-222-1222).

Last reviewed October 4, 2026. General information, not professional advice — carpenter ant nests in walls and termite inspection and treatment belong to a licensed pest management professional, and rotted or damaged structural wood to a carpenter or contractor.