How to Get Rid of Ants in the House

Photo: Faris Mohammed on Unsplash
Find How may earn a commission when you buy through links on this page.
To get rid of ants in the house, wipe out the trail with soapy water, remove the food or water they found, seal the crack they are coming through and use ant bait so workers carry poison back to the colony. Sprays kill only the ants you hit. UC IPM recommends cleaning up invading ants with soapy water, sealing entry points with caulk and using baits outdoors to control the colony, noting that sprays provide only temporary control and may not be safe indoors.
Step 1: Clean up the trail
Ants follow a scent trail laid by the first ants that found food. Wipe the trail and the ants with a sponge and soapy water. UC IPM notes that soapy water removes the scent trail, especially if you clean thoroughly where the ants enter. Window cleaner also kills ants on contact.
Follow the trail before you wipe it, so you know where the ants are getting in.
Step 2: Remove what drew them in
- Wipe up crumbs, spills and sticky spots on counters, floors and inside cabinets.
- Put sugar, honey, syrup, cereal and pet food in containers with tight lids, or in the fridge.
- Rinse dishes and recycling, and take out the trash.
- Do not leave pet food out between meals. A pet bowl set in a shallow dish of water makes a moat ants will not cross.
- Fix leaks under sinks. Some ants come in for water, not food.
Step 3: Seal the entry point
UC IPM advises identifying where ants are coming in and sealing it with caulk. Common entries are gaps around windows and doors, cracks in baseboards, holes where pipes and wires come through and gaps in the foundation.
Step 4: Use ant bait, not spray
Bait is the only home method that reaches the colony. Worker ants carry the bait back to the nest and share it, which kills ants you never see, including the queens.
- Set bait stations along the trail and near the entry point, out of reach of children and pets.
- Leave the ants alone once they find the bait. Wiping them up or spraying cuts off the delivery.
- Give it time. UC IPM notes baits take time to work.
- If ants ignore a bait, try another type. UC IPM explains that baits use either sweet liquids or protein-based solids, and many ant species are drawn to only one.
For outdoor colonies, UC IPM recommends placing baits outdoors rather than indoors, since indoor baits can draw more ants inside. Look for ant bait stations labelled for the ants you have, and follow the label.
Why spraying makes it worse
The ants on a trail are a small fraction of the colony. UC training materials point out that spraying trails kills only the ants you spray and that perimeter sprays kill only foraging workers, even when repeated. The colony keeps sending more. UC IPM also recommends that if you hire a pest control company, you ask it to use baits and spot treatments rather than perimeter treatments or monthly sprays.
What about home remedies?
Vinegar, lemon juice, cinnamon and peppermint wipe away or mask the scent trail for a while, much like soapy water does, but they do not kill the colony. Boric acid is a common ingredient in ant baits. UC IPM’s pavement ant guidance mentions sweet baits with boric acid at low concentrations, under 1% active ingredient. Homemade boric acid baits are risky around children and pets, so commercial bait stations are the safer choice.
When ants are a bigger problem
- Large black ants pushing out sawdust may be carpenter ants, which nest in damp or damaged wood. That points to a moisture problem worth a professional inspection.
- Ants that swarm with wings can be confused with termites. UC IPM’s ant pest notes show how to tell them apart: ants have a thin waist and elbowed antennae.
- Red ants with painful stings outdoors may be fire ants, which need specific baits.
How to keep ants out
- Keep counters, floors and cabinets free of crumbs and sticky spots.
- Store sweet and greasy foods sealed.
- Seal cracks around windows, doors and pipes.
- Trim plants and branches that touch the house, which ants use as bridges.
- Fix leaks and reduce moisture under sinks.
Related guides
- How to get rid of carpenter ants: large black ants nesting in wood need a different approach.
- How to get rid of roaches: baits work the same way.
- Home pest control: the steps that work on most pests.


