How to Get Rid of Ants: 10 Methods That Actually Work
Author: Rasmus

How to Get Rid of Ants: 10 Methods That Actually Work


Quick answer

Ants follow a pheromone trail between food and the nest — wipe the trail with soapy water or vinegar to break it, then set a slow-acting bait (borax mixed with sugar) along the same line so workers carry it back to the nest. Sprays kill only the ants you see and can make the rest avoid your bait. If the ants are in your lawn rather than your kitchen, leave them alone: a colony outside is not the problem, a trail to your food is.

One line of ants mowing across your kitchen floor looks like an invasion, but it is actually a single highway: the ants you see are the foragers, and they are all walking the same invisible trail between food and nest. That is the key to the whole problem. Kill ants one by one and the nest sends more. Break the trail and poison the nest, and the line disappears — usually within one to two weeks.

Stop here if you reached for a spray: aerosol sprays kill the handful of ants in front of you and push the rest to lay a fresh trail elsewhere. The colony survives, you no longer know where it enters, and baiting gets harder. Putting away the spray is the single most useful thing you can do today.

1. Find the trail first

Before you touch anything, watch. Follow the ants and you follow the path back to their nest.

  • Put a drop of honey or a crumb where ants are active, then watch which way they come from.
  • Follow the line backward: baseboards, window frames, gaps around pipes, electrical outlets, cracks where the floor meets the wall.
  • Re-check at dusk — many colonies are most active in the evening.
  • Mark the entry point with tape so you can find it again in daylight.

Everything else in this guide is done at or along that trail. Find it first, and the rest takes minutes.

2. Wipe the trail (the 5-minute fix)

The trail is chemical: ants lay pheromones that the rest of the colony follows. Remove the scent and the march falls apart.

  • Spray or wipe the trail with a 1:1 mix of vinegar and water, or plain soapy water with dish soap.
  • Work the full path — from the foraging area back to the entry crack.
  • Vacuum the ants you can see, then empty the vacuum bag outside.

Ants that lose the trail walk in circles and retreat. Replaces the trail daily until you bait — step 5 is what actually ends the colony.

3. Remove what they came for

Ants enter for two reasons: food and water. Take away the food and the trail loses its purpose.

  • Store open food in airtight containers or the fridge — sugar, honey, crumbs, pet food.
  • Wipe counters, tables and floor edges every evening; a single crumb sustains a trail.
  • Rinse out bowls and cans before recycling, and take out the bin when it’s full, not when it smells.
  • Clean spilled pet food areas, and keep pet bowls in a shallow tray of soapy water as a moat.
  • Fix the crumbs first — see the declutter home plan if the clutter itself is making the pantry hard to keep clean.

4. Seal the entry points

While the trail is active, you can see exactly where the ants come in — close that door.

  • Fill gaps around baseboards and window frames with caulk or sealant.
  • Weatherstripping under doors, especially exterior doors and garage doors.
  • Squeeze expanding foam into larger gaps around pipes and vents.
  • Check the kitchen exhaust or outlet plates — ants love the gap where the electrical box meets the wall.

This is not the whole fix (the nest is still outside), but it stops the easy re-entry.

5. The borax bait — the only method that kills the nest

This is the method that actually ends the problem. The idea: bait that tastes like food, poisons slowly, and gets carried back to feed the queen and the young.

  • Mix 1 tablespoon of borax with 3 tablespoons of icing sugar (a 1:3 ratio) and a little water to form a paste.
  • Or use dry bait: 1 part borax to 3 parts sugar, left in a shallow container.
  • Put the bait in a small container with two or three holes the ants can enter, or on a piece of tape along the trail — out of reach of children and pets.
  • Place it right next to the trail, not on top of it: workers wandering past find it and bring it home.
  • Do NOT disturb it for 7–10 days. The trap looks like a failure for the first days, then suddenly the trail collapses.

If the ants stop taking a sweet bait, the colony may want protein instead — switch to a protein bait (see step 6). If a bait is ignored after two days, it may be too strong: reduce the borax.

6. Commercial gel baits and stations

Ready-made baits work on the same principle and are easier to use in tight spots.

  • Gel baits (slow-acting insecticides such as indoxacarb) can be dabbed directly into cracks and corner gaps.
  • Bait stations are the safest option for homes with pets — the poison stays inside the plastic.
  • Like the borax bait, leave them alone for at least a week.

Rotating between a sugar bait and a protein-gel bait is smart when you are not sure which species you have — try the sugar bait first, then switch if the trail keeps going.

7. Food-grade diatomaceous earth (the barrier)

Diatomaceous earth is a fine powder made of fossilized shells. It works mechanically: it abrades the ants’ waxy cuticle until they dehydrate.

  • Use food-grade DE only — touch it lightly with a mask on, it dries your skin, and never inhale the dust.
  • Sprinkle a thin line in cracks, along baseboards and around window frames.
  • It only works dry: wet or humid spots render it useless.

DE is a slow barrier that also kills the workers that cross it. Good complement to baiting in cracks where ants travel.

8. Natural repellents — honest but limited

Vinegar, cinnamon, citrus peels, cayenne and coffee grounds all have a reputation as ant deterrents. Use them for what they are: scents that mask the trail. They do not kill the colony, and some ants just route around them.

  • Vinegar-water spray in doorways and along baseboards — the best of the lot.
  • Cinnamon sticks or powder after window seals.

If you want the ants gone for good, do steps 5 and 6 anyway.

9. Ants in the kitchen or bathroom: think moisture

A trail in the bathroom, or along the wall behind a dishwasher, is often a water problem, not a food problem.

  • Check for leaks under the sink — a slow-dripping drain is a watering hole for ants.
  • Fix drips and dry the area. A blocked or slow drain can hold water constantly — see how to unclog a drain for the fixes that actually work.
  • Ants moving between a water source and a gap in the wall have a nest nearby, usually inside the wall cavity.

10. When it’s time to stop DIY

Most household trails are small black or brown ants — a bait job finishes them. Three ant problems are different:

  • Carpenter ants — large black ants (6–13 mm) that hollow out damp wood. If you see sawdust piles, listen for faint rustling in walls, or find trails through wood — call a professional; the nest is usually inside a structural element.
  • Fire ants — red, aggressive, and they sting. Handle mounds outside with registered mound treatments, long sleeves and boots — never gasoline or any flammable liquid.
  • A trail that keeps coming back for weeks despite proper baiting — the nest is large or re-establishing from outside. A pro can treat the perimeter.

First-time landlords: fix an ant trail before a tenant notices — one evening of baiting is cheaper than a complaint.

Which ant, which method — quick reference

AntBest method
Small black/brown sugar ants (kitchen)Sugar-borax bait along trail
Ants that ignore sweet baitsProtein bait (commercial gel)
Ants in bathroom/wall cavitiesFix leaks first, then bait
Carpenter ants (sawdust, wood)Professional treatment
Fire ants (sting, outdoors)Mound bait, never gasoline

Quick wins on day one

  • Put the spray away — one trail, no sprays.
  • Wipe the whole trail with vinegar-water.
  • Take out the bin and wipe the counter.
  • Set a sugar-borax bait where the trail ends.
  • Caulk the entry crack you can now see clearly.

Do these five and the trail is usually gone within a week or two — and check the same spots every spring before the ants move back in.

Hero image: Humoyun Mehridinov, CC BY-SA 4.0, via Wikimedia Commons.

Frequently Asked Questions

Why do ants keep coming back after I kill them?

Because you are killing foragers, not the colony. The ants you see are a fraction of the nest — workers keep returning along the pheromone trail, and the queen keeps laying eggs. Baiting is what stops the cycle: the workers carry a slow-acting poison back to the nest, which is why the number of ants often rises before it collapses.

Does vinegar really get rid of ants?

Vinegar wipes out the pheromone trail, so ants marching into your kitchen lose their highway — it works well as a surface cleaner and daily barrier along baseboards. It does not kill the nest, though. Use it to stop the traffic, then bait along the same line to kill the colony.

Is borax safe to use around pets and children?

Borax is a common, low-toxicity bait ingredient, but it is not food. Keep bait in a small sealed container with two or three holes the ants can fit through — placed behind furniture, under a cabinet or along a baseboard where pets and kids cannot reach it. Wash your hands after handling it, and never spread it loose where children play.

When should I call a professional exterminator?

If the ants are carpenter ants (large, black, and you find sawdust near wood), if you keep seeing them over three to four weeks of consistent baiting, or if the colony keeps re-establishing from outside. One tidy trail of small black ants in the kitchen is almost always something you can fix yourself in a week or two.

Written by Rasmus

Independent writer of practical how-tos and guides. Every article is written to be genuinely useful — no filler, no recycled content. More about lejnel.com.