Skip to content
Grow In Backyard
Pest Control

How to Keep Ants Out of a Sandbox Safely

No insecticide belongs in a sandbox. A sealed lid, a raised base, dry sand and a gravel moat keep ants out without anything a child can touch.

A plastic toy truck half-buried in sandpit sand
Photo: congerdesign, Pixabay Content License, via Pixabay
On this page

Everything that actually keeps ants out of a sandbox is physical — a lid, a lined base, dry sand and a gravel band. Nothing chemical belongs anywhere a child is digging.

Clearing an existing nest

  1. Dig out the colonised sand completely and dispose of it away from the box
  2. Scrub the box with hot soapy water and let it dry fully in the sun
  3. Line the base — solid board with drilled drainage holes covered in landscape fabric, or heavy fabric laid over the soil
  4. Refill with washed play sand
  5. Fit a lid that actually seals, not a loose cover

Barriers that work

barrierverdict
Coarse gravel band, 6–8 inBest practical option; keeps the frame dry too
Petroleum jelly on raised legsVery effective where the box is off the ground
Diatomaceous earth outside the frameWorks dry; reapply after rain. Never inside
Cinnamon or chalk linesA day or two, then gone
Ant bait or granulesNever near play sand

Treat nests in the lawn, not around the box

If there is a colony in the surrounding grass, deal with it there — boiling water or a soap drench into the nest entrance, several feet from the sandbox. Nothing toxic goes within reach of the play area.

Keeping the sand itself in good condition

  • Cover it whenever it is not in use. This prevents cats, rain, leaves and insects at once
  • Rake it over on dry days so it airs and dries
  • Use washed play sand, not builders’ sand or beach sand
  • Top up through the season, replace fully once or twice a year
  • Replace immediately if you find mould, droppings or a nest

Common questions

How do you get ants out of a sandbox without chemicals?

Dig out and replace the colonised sand, then remove the reasons they chose it. Ants nest in a sandbox because it is warm, dry, loose and easy to tunnel, and because food crumbs end up in it. Replacing the sand, fitting a tight lid, lining the base so they cannot come up from the soil beneath, and keeping food out of it is the whole approach. Never put ant bait, granules or insecticide in or around sand a child plays in.

Should a sandbox have a solid bottom?

For ant control, yes — or at least a barrier. An open-bottomed box on soil lets ants tunnel straight up into the sand, which is the commonest reason they keep coming back after a sand change. Either fit a solid base with drainage holes drilled and covered with landscape fabric, or line the ground with heavy landscape fabric before filling. Drainage matters: sand that stays wet grows mould and becomes unpleasant faster than ants ever do.

Does diatomaceous earth belong in a sandbox?

Not mixed into the sand. Food-grade diatomaceous earth is not toxic but the dust is a genuine lung irritant, and a child digging in treated sand will breathe it. Used outside the box — a thin band on the ground around the legs or along the outer frame, reapplied when it rains — it is a reasonable barrier. Keep it off the play surface entirely.

What is the best barrier around a sandbox?

A dry gravel band is the most practical. A six to eight inch strip of coarse gravel or crushed stone around the box is unpleasant to tunnel through and keeps the frame dry, which matters because damp timber attracts ants itself. Cinnamon and chalk lines are widely repeated, give a day or two of mild deterrence and then wash away. Petroleum jelly on the legs of a raised box works well where the box does not touch the ground.

How often should sandbox sand be changed?

Top it up through the season and replace it fully once or twice a year, or immediately if ants, mould, or animal droppings appear. Keeping it covered when not in use does most of the work — an uncovered box collects rain, leaves, cat faeces and insects. Rake it over on dry days to let it air, and use washed play sand rather than builders' or beach sand.

Will the ants come back after I replace the sand?

Yes, unless something changed. Replacing sand removes the nest, not the attraction, so a colony in the lawn nearby will recolonise within weeks if the box is still open-bottomed, uncovered and holding crumbs. Fit the barrier under it, add the lid, keep food out, and treat any nests in the surrounding lawn with boiling water or a soapy drench — well away from the box.

Backyard Weekly

Know what to plant, week by week

Join the weekly email for seasonal jobs, fixes for what is going wrong, and gear worth buying.

Not ready to subscribe? The planting calendar is free and needs no email.

By subscribing you agree to our privacy policy. Grow In Backyard will never sell your address.

Grassy meadow dotted with low ant hills in front of a conifer wood
Garden Problems ·

How to Get Rid of Ants in Grass Naturally

Boiling water, soapy drench and diatomaceous earth all work on lawn ant nests. Which to use where, and why most lawn ants are better left alone.