20 Natural Ways to Get Rid of Ants at Home

Ant trail in the kitchen? Compare 20 natural repellents, baits, and killers—plus when each works, safety tips for kids and pets, and prevention steps that stop repeat invasions.

By · Reviewed by LeafyPixels Review Board · Published · Updated · 11 min read

Small black ants marching along a kitchen counter beside cinnamon, vinegar spray, coffee grounds, and diatomaceous earth

A line of ants across your counter is rarely a mystery—it is a foraging trail between a nest (usually outdoors) and a food or moisture source inside.

Small black ants on a kitchen counter beside natural ant remedies including cinnamon, vinegar spray, and diatomaceous earth The twenty pantry and garden remedies below can work, but only when you match the tool to the job. Repellents scramble scent trails and push ants elsewhere. Contact killers knock down the workers you see. Slow baits aim at the queen and brood the trail never reveals. Most failed DIY attempts come from using a repellent when the colony needed bait, or baiting while the kitchen still leaks syrup under the toaster.

The Quick Answer: Repel, Kill, or Bait—Pick One Job First

For a few scout ants: wipe the trail with soapy water or diluted vinegar, remove the food source, and seal the entry crack you traced. For steady indoor traffic: set a borax- or boric-acid-based bait near the trail (not on it) and keep the area free of competing food for one to two weeks. For ants crawling baseboards at night: dust a thin line of food-grade diatomaceous earth in dry cracks they must cross—not a visible pile on the floor. For an outdoor mound in pavement or lawn: boiling water can collapse a small nest if you pour directly into the opening on a dry day; repeat if needed.

Nothing here guarantees overnight elimination. UC IPM notes baits typically need five to ten days before you see fewer ants, because workers must share slow-acting poison back at the nest (UC IPM). Repellents like cinnamon or essential oils may work in hours—but only by rerouting ants, not erasing the colony.

Identify the Ant Problem Before You Treat

Size, color, and where you see ants matter more than most listicles admit. Small brown ants on a sugar jar are often odorous house ants or Argentine ants—species that respond well to sweet borax baits plus sanitation. Larger black ants in spring may be carpenter ants nesting in moisture-damaged wood; sprinkling cayenne on the counter does not fix wet framing. Pavement ants near pet bowls want protein or grease baits. Misidentification wastes time and can spread the problem.

Nuisance trail ants vs structural pests

Trail ants (Argentine, odorous house, pavement, pharaoh) usually nest outside or in wall voids and send workers indoors for food. Your goal is exclusion, sanitation, and bait—not soaking the house in repellent oils. Carpenter ants and moisture ants signal water damage; find the wet wood, fix the leak, and consider professional inspection if galleries appear in structural timbers (NPIC). Fire ants outdoors need mound-specific treatment, not kitchen cinnamon.

Take a photo, note size (under or over ¼ inch), and check whether ants smell coconut-like when crushed (odorous house ant) or leave piles of fine sawdust (carpenter ant). UC IPM’s ant key helps narrow species when baits fail (UC IPM ant key).

When natural repellents make things worse

Repellents—vinegar perimeter sprays, heavy essential oils, cinnamon lines—block trails and force ants to find new routes. That sounds fine until they split into multiple kitchen paths or bud off a new nest indoors. UC IPM warns that spraying foragers indoors does not stop new ants from entering and can interfere with bait acceptance if oils or pyrethrin sprays contaminate feeding sites (UC IPM).

Use repellents for temporary barriers at a single entry while you caulk and bait—not as your only tactic during a heavy infestation.

Repellents, Killers, and Baits—How the 20 Methods Sort Out

MethodCategoryBest forLimitation
Coffee groundsRepellentOutdoor pots, short-term barrierDries out; loses smell
Vinegar / lemon sprayRepellent + contactWiping trails, spot killAcid etches natural stone
Peppermint, tea tree, cedar oilsRepellentEntry-point distractionOverpowering indoors; repels baits
Cinnamon, cayenne, cloves, saltRepellent barrierDoor thresholds, dry linesDoes not kill colony
Chalk / baby powder linesRepellent barrierTemporary entry blockWashes away; talc concerns
Orange / citrus peelsRepellentCompost-adjacent zonesD-limonene contact kill only on direct touch
Diatomaceous earthDesiccant killerDry cracks, void edgesUseless when wet
Soap / glass cleaner sprayContact killerVisible foragersNo residual; no queen kill
Boiling waterContact killerOutdoor mound openingBurns turf; misses deep nests
Borax / boric acid baitsColony baitPersistent indoor trailsToxic if eaten; slow
Baking soda + sugarBait (weak evidence)Last-resort experimentMixed research; slow
Sanitation + caulkPreventionEvery infestationNot a “remedy” but required

Treat this table as your decision shortcut before you open the spice cabinet.

Vinegar, Citrus, and Essential Oil Sprays

These are trail disruptors, not colony eliminators. Used correctly, they erase the chemical highway ants follow—and kill the individuals you spray directly.

Vinegar and lemon juice for trails

Mix equal parts white vinegar and water in a spray bottle, or one part lemon juice to three parts water. Spray foragers, then wipe the surface dry. Vinegar’s acetic acid breaks down pheromone trails so recruits stop following the same path (NPIC). It also kills ants on contact through dehydration and drowning in the film.

Do not mist vinegar across granite, marble, or unsealed natural stone—it etches the finish. On stone counters, use your usual pH-neutral cleaner with the same wipe-and-dry technique. Vinegar is a cleanup and spot-kill step, not a perimeter program. Pair it with bait outside the wiped zone.

Peppermint, tea tree, and cedar oils

Ants navigate by smell; strong plant oils mask food cues. A practical spray: 8 ounces water, 30–40 drops peppermint, tea tree, or cedar oil, plus 30 drops rubbing alcohol to help dispersion. Mist entry points, window sills, and trash-cabinet hinges—not open food prep areas or bait stations.

UC IPM lists peppermint, clove, rosemary, thyme, and citrus oils among plant-based repellents that can kill on contact at sufficient concentration (UC IPM). Cedar oil adds contact toxicity beyond mere confusion. Reapply every few days; oils volatilize. Keep pets away until dry—concentrated tea tree can irritate cats.

Pantry Spice and Powder Barriers

Ground cinnamon, cayenne pepper, black pepper, whole cloves, and used coffee grounds all exploit the same weakness: ants rely on precise scent trails. A dry line at a threshold forces detours. Cloves steeped in warm water make a spray with similar effect.

These fixes are cheap, fast, and safe for homes with curious toddlers—unlike borax baits left on the floor. They are also temporary. Rain, vacuuming, or drying coffee grounds ends the effect. Use spices to hold the line while you locate the entry and deploy bait outdoors.

Cayenne and cinnamon irritate mucous membranes—avoid blowing powder where pets breathe. Coffee grounds work best outdoors around pots and patio edges; indoors they mold and attract other pests if left wet.

Contact Killers and Desiccants

When you need dead ants—not redirected ants—these tools kill individuals that touch them. None reaches the queen unless paired with bait.

Diatomaceous earth

Thin line of white diatomaceous earth powder dusted along a kitchen baseboard crack

Food-grade diatomaceous earth (DE) is a desiccant dust: microscopic silica shards abrade the waxy cuticle, and the ant loses water until it dies—usually over 24–72 hours per insect (NPIC DE fact sheet). Apply a barely visible film along baseboards, pipe chases, and cabinet voids ants must crawl through. DE stops working when wet, so skip steamy bathrooms until they dry.

DE is low toxicity for mammals but irritating to lungs when airborne—use a squeeze duster, not a handful tossed in the air. For a deeper dive on placement technique, see our guide on diatomaceous earth for household pests.

Soap sprays and boiling water

Dish soap and water (a few drops per cup) or glass cleaner breaks surface tension and suffocates ants on contact while removing grease trails. It is the fastest way to clear a visible column on the sink—but expect replacements tomorrow if the nest still feeds indoors.

Boiling water poured into an outdoor mound entrance kills ants it reaches and collapses shallow tunnels. It will scald lawn and roots, misses deep queens in large colonies, and is unsafe to carry upstairs—reserve it for driveway cracks and patio nests, not kitchen cabinets.

Borax and Boric Acid Baits for Colony Control

If you remember one section, remember this: baits beat barriers for recurring indoor ants. Worker ants feed, return to the nest, and share slow poison with the queen and larvae through trophallaxis (Poison Control).

Sugar vs protein bait recipes

Homemade borax ant bait on cardboard along a kitchen baseboard beside a sealed commercial bait station

Sweet-seeking species (Argentine, odorous house): mix ¼ teaspoon borax (or boric acid) into ¼ cup honey, jelly, or sugar syrup. Or use the 0.5–1% borate in sugar water concentration UC IPM recommends for heavy Argentine infestations—far lower than the 5.4% in many retail stations, but more likely to reach the queen because foragers survive long enough to share (UC IPM).

Protein/grease seekers (pavement, some carpenter foragers): blend ¾ teaspoon borax with ¼ cup peanut butter or equal parts boric acid powder and powdered sugar moistened to a paste. Place pea-sized dabs on cardboard strips along walls where trails run—not in the middle of the trail—so ants discover it without repellent oils nearby.

Prepackaged Terro-style liquid stations work when you want sealed containers; refillable outdoor stations scale better for large yard colonies. If ants ignore one bait, switch sweet ↔ protein before assuming baits “do not work.”

Safety around children and pets

Borax is not harmless. Poison Control notes unintentional toddler tastes usually cause nausea or vomiting, and concentrated ingestion can be serious—but typical bait concentrations (~5%) rarely cause severe toxicity in small tastes (Poison Control). Still:

  • Place baits inside locked cabinets, under appliances, or in commercial bait stations pets cannot chew.
  • Never scatter loose peanut-butter borax on floors where toddlers crawl.
  • Label homemade baits and store borax with cleaners, not food.
  • If a child eats bait, rinse the mouth and call Poison Control at 1-800-222-1222.

DE dust and essential oils carry separate inhalation and pet risks—match the hazard to the method.

Scraps, Mixtures, and Line Drawings (Orange Peel, Baking Soda, Chalk, Salt)

Orange, lemon, and grapefruit peels release D-limonene, which kills ants on direct contact and masks trails when fresh. Replace peels as they dry; compost them before mold sets in.

Baking soda mixed with powdered sugar is a popular internet bait; the idea is acid–base reaction inside the ant. Pest researchers are skeptical of fast kill claims—it may work slowly or primarily as a distraction bait compared with borax. If you try it, use it only where borax baits are already ruled out for safety, and judge success over two weeks, not one afternoon.

Chalk lines and salt barriers interrupt trails by desiccating feet (salt) or presenting an unfamiliar powder (chalk). They are entry stalling tactics—fine while you caulk the actual gap behind the baseboard.

Baby powder (talc) can clog spiracles when piled directly on ants, but inhaled talc raises health concerns; prefer food-grade diatomaceous earth in cracks instead of talcum lines across living spaces.

Stop Ants Before They Cross the Threshold

Fresh caulk bead sealing a crack along a white kitchen baseboard where ants had entered

Natural remedies fail when the house still advertises open buffets. NPIC and UC IPM align on a prevention core (NPIC):

  • Wipe trails with soapy water whenever you see a line; do not just squash foragers.
  • Store sugar, honey, and pet food in sealed glass or hard plastic—not clip bags.
  • Empty trash and recycling frequently; rinse sticky bottles before they sit in the bin.
  • Caulk cracks around windows, pipes, and foundation penetrations; ants follow wires and plumbing like highways (UC IPM).
  • Trim vegetation 18 inches from the foundation; remove limbs touching the roof.
  • Fix leaks and replace moisture-softened wood before carpenter ants move in.
  • Elevate potted plants on saucers or moats if ants farm aphids on your houseplants—the sticky honeydew keeps them coming back.

Set outdoor bait stations along foundation edges before annual spring invasions in ant-heavy regions. Prevention is the only “natural” fix that stays working when the spices wash away.

When Natural Methods Are Not Enough

Call a pest management professional trained in IPM when:

  • Carpenter ant sawdust appears near structural wood or you hear rustling in walls.
  • Bait + sanitation for three weeks fails and multiple indoor trails persist.
  • Stinging fire ants colonize play areas or patios.
  • You rent and landlord-owned moisture damage fuels the nest.

Pros can deploy gel baits, void dusts, and species-specific treatments without the perimeter pyrethroid sprays UC IPM discourages near waterways (UC IPM). That is not defeat—it is matching scale to risk.

Conclusion

The twenty natural ant remedies in your pantry and garden do work—on the right ant, with the right expectation. Spices, oils, and vinegar scramble trails and buy time. Diatomaceous earth and soap kill the ants you see in dry, targeted spots. Borax and boric acid baits are the closest DIY equivalent to professional colony control, provided you remove competing food and keep pets and kids safe. Start by identifying whether you have trail ants or structural pests, then pick repel, kill, or bait—not all three at once. Seal entries, clean sticky surfaces, and judge success over days and weeks, not a single evening. When sawdust, stings, or repeated bait failure show up, escalate before the colony escalates for you.

Frequently asked questions

What scents do ants hate the most?

Ants strongly avoid peppermint, citrus (lemon and orange oils), cinnamon, cayenne and black pepper, clove, cedar, tea tree, and coffee grounds because these smells mask the pheromone trails they use to find food. These scents work best as short-term barriers at entry points—not as colony killers. Reapply after cleaning or rain, and pair repellents with bait or exclusion for lasting control.

What is the fastest natural way to get rid of ants?

The fastest natural knockdown is a dish-soap spray or glass cleaner applied directly to visible foragers—it kills on contact and removes the scent trail. For slightly slower but broader effect, a thin film of dry diatomaceous earth in cracks ants must cross kills within about one to three days per insect. Neither reaches the queen; for recurring trails, borax bait still wins over speed alone.

Is borax ant bait safe around children and pets?

Commercial and homemade borax baits are toxic if swallowed in large amounts, but Poison Control notes that small unintentional tastes by toddlers usually cause only nausea or vomiting at typical bait concentrations. Keep baits in sealed stations, behind appliances, or in areas pets cannot reach—never loose peanut-butter mixtures on floors. If ingestion occurs, rinse the mouth and call Poison Control at 1-800-222-1222.

Does baking soda and powdered sugar kill ants?

This mixture is widely shared online, but evidence for fast, reliable colony kill is weak compared with borax or boric acid baits. The sugar attracts foragers; any kill from baking soda is slow and inconsistent. If borax baits are unsafe in your home, you can trial baking soda baits while maintaining strict sanitation—but expect slower results and switch to borax-based stations when children and pets are protected.

Why do ants keep coming back after I use natural sprays?

Most natural sprays—vinegar, essential oils, cinnamon—are repellents or contact killers that affect only the ants you treat. They do not eliminate the outdoor nest sending new workers indoors. Without sealing entry points, removing food sources, and using slow bait near trails, replacement foragers appear within hours or days. Persistent problems usually need an IPM combo: caulk, sanitation, outdoor bait, and species identification—not another perimeter spray.

How the "20 Natural Ways to Get Rid of Ants at Home" guide is reviewed?

Editorial policyReview board

Written by · Reviewed by LeafyPixels Review Board · Updated August 21, 2026

This "20 Natural Ways to Get Rid of Ants at Home" guide was researched and written by . Recommendations in the "20 Natural Ways to Get Rid of Ants at Home" guide are checked against multiple independent references before publication.

We prioritize sources that hold up under scrutiny:

  • University cooperative extension bulletins and fact sheets (Penn State, Clemson, UMD, NC State, and similar programs)
  • Botanical garden and horticultural society publications
  • Peer-reviewed plant science and veterinary toxicology references where pet safety matters (including ASPCA Animal Poison Control)
  • Established reference works on indoor plant culture

The LeafyPixels editorial team then reviews the draft for clarity, step-by-step usefulness, and fit with real apartment and home conditions-not ideal greenhouse setups. When guidance changes materially, we update the page and note the revision date.


Sources used

  1. NPIC (n.d.) Ant. [Online]. Available at: https://npic.orst.edu/pest/ant.html (Accessed: 21 August 2026).
  2. NPIC DE fact sheet (n.d.) Degen. [Online]. Available at: https://npic.orst.edu/factsheets/degen.html (Accessed: 21 August 2026).
  3. Poison Control (n.d.) Is Ant Bait Safe Around Children 193. [Online]. Available at: https://www.poison.org/articles/is-ant-bait-safe-around-children-193 (Accessed: 21 August 2026).
  4. UC IPM (n.d.) Ants. [Online]. Available at: https://ipm.ucanr.edu/home-and-landscape/ants/ (Accessed: 21 August 2026).
  5. UC IPM ant key (n.d.) Index. [Online]. Available at: https://ipm.ucanr.edu/tools/antkey/index.html (Accessed: 21 August 2026).