To get rid of ants in the house, wipe out their scent trail with soapy water, remove what they came for, and set out slow-acting ant bait along their path instead of spraying. Worker ants carry bait back to the nest and share it with the queen and the rest of the colony, so the whole colony dies, usually within 5 to 10 days. Sprays kill only the ants you see and can make some species split into new colonies. Then seal the cracks they use and keep food and water out of reach.

Table of Contents
Step 1: Identify the Ant
The right bait and the right treatment depend on the ant. Look at size, color and where they show up, then compare them in types of ants with pictures guide
| What you see | Likely ant | Go to |
|---|---|---|
| Large black or red-and-black ants, sawdust near wood | Carpenter ants | Carpenter ants |
| Tiny dark ants on sweets; smell like rotten coconut when crushed | Odorous house ants (“sugar ants”) | Sugar ants |
| Tiny yellowish ants in kitchens and bathrooms | Pharaoh ants | Types of ants |
| Dirt mounds in the lawn, painful stings | Fire ants | Fire ants |
| Ants with wings at windows | Swarming ants or termites | Flying ants vs termites |
Step 2: Remove What They Came For
- Wipe trails with soapy water to erase the scent the ants follow.
- Store sugar, cereal, honey and pet food in sealed containers.
- Wipe counters and sweep crumbs daily; rinse recyclables.
- Take out kitchen garbage often and clean the bin.
- Fix leaky faucets and pipes; ants come in for water, too.
- Feed pets at set times and pick up bowls between meals.
Step 3: Bait the Colony
Ant baits mix a slow-acting insecticide with food. The slow action is the point: workers live long enough to carry the bait home and feed the queen and larvae.

- Pick the right bait. Many house ants want sweets; pharaoh and thief ants prefer protein or grease, and fire ants prefer oily baits. If ants ignore a bait, try a different type. See ant baits compared.
- Place it on the trail and near where ants enter, not in random spots.
- Let them feed. A crowd of ants on the bait means it is working. Don’t kill them or spray nearby.
- Keep it stocked until no ants come for a few days. Replace dried-out bait.
- Bait outdoors when you can. University of California experts advise baiting mainly outside, near nests and along the foundation, so you don’t draw more ants indoors.
- Keep baits away from children and pets; use enclosed bait stations.
Step 4: Seal Entry Points
- Follow the trail to where ants enter and caulk the crack.
- Seal gaps around pipes, wires and window frames.
- Fit door sweeps and repair torn screens.
- Trim shrubs and branches that touch the house; ants use them as bridges.
- Pull mulch and soil back a few inches from the foundation.
Step 5: Deal With Nests Outside
Most house ants nest outdoors, under slabs, in mulch or in lawn edges, and forage inside. Outdoor bait stations along the foundation intercept them before they reach the kitchen. For lawn mounds, see fire ant control. For ants nesting in wood, see carpenter ants.
Ants in the Kitchen, Bathroom or Bedroom
- Kitchen: look under the sink, behind the fridge and along the dishwasher for leaks and crumbs; bait along the counter backsplash.
- Bathroom: tiny ants here are often after moisture; fix drips and seal around the tub. Tiny yellow ants may be pharaoh ants.
- Bedroom: ants usually follow food or drinks; keep snacks out and check window frames for a trail.
What Doesn’t Work
- Spraying ant trails or the ants on the bait.
- Repellent sprays and strong scents indoors; they move ants without killing the colony. See natural ant repellents.
- Flooding nests with water or pouring gasoline on them. Gasoline is dangerous and pollutes soil and water.
- Using several products at once, which can make ants avoid the bait.
When to Call a Professional
Call a pest control company for carpenter ants you can’t trace, pharaoh ants spreading through a building, fire ants near the house, or ants that return after a few weeks of baiting. University of California experts suggest asking the company to use baits and spot treatments rather than monthly perimeter sprays.
Ant control basics
- Ant bait stations (sweet bait)
- Liquid ant bait
- Ant gel bait
- Silicone caulk for sealing cracks
- Door sweep
As an Amazon Associate, Pestbugs earns from qualifying purchases. Always follow the product label.
FAQ
Wipe up the trail with soapy water, clean up any food or water they found, and set out a slow-acting ant bait along their travel routes. Don’t spray the ants around the bait. Most people see fewer ants within 5 to 10 days as the bait reaches the colony.
Ants come in for food, water or shelter, often after rain, drought or a change in season. A single scout that finds crumbs, pet food, sweets or a leak lays a scent trail, and the rest of the colony follows it.
Use bait. Sprays kill only the ants you see, while the queen and most workers stay in the nest. Some ants, including pharaoh ants, split into new colonies when sprayed. Ants carry the bait to the nest, killing the colony.
Combine three things: bait to kill the colony, sealing the cracks and gaps they use, and removing food, water and plants or mulch touching the house. Ants return when a new colony moves in, so keep up prevention.
The bait may be the wrong type. Some ants want sugar, others protein or grease, and preferences change through the year. Offer a small amount of a sweet bait and a protein bait side by side and use the one they take.
Call a professional for carpenter ants you can’t trace to a nest, pharaoh ants, fire ants near the house, or any infestation that keeps coming back after a few weeks of baiting.
Sources
- University of California IPM: Ants (Pest Notes)
- University of California IPM: Ants in the home (Quick Tips)
- University of California IPM: Ant baits
- University of California IPM: Managing Argentine ants with baits
- University of California IPM: Ant FAQ
- Texas A&M AgriLife Extension: Managing household ant pests (B-6183)
- University of California IPM: Ant management in gardens and landscapes
Facts in this guide are checked against the sources above and reviewed when they change. See how we research in our editorial policy.