Make this site a better resource for you by taking 2-minutes to take this 8-question survey.

How to Deter Ants From Your Garden (or Anywhere) Using Coffee Grounds

by Mike Lieberman on November 7, 2011 · 18 comments

Post image for How to Deter Ants From Your Garden (or Anywhere) Using Coffee Grounds

There has been a bit of an issue on my balcony garden lately with some ants. One of the swiss chard containers dried up and ants have gotten to it. I’ve been using coffee grounds to help deter them.

I’m not sure why exactly this works, but when the ants go near the grounds, they freak out and won’t cross them.

The first thing that I did was line the bottom of the container with the grounds. Then I had to follow the trail of ants to where they were going, which was into holes that were at the bottom of one of the rails.

A few coffee grounds were sprinkled around the rail, but also into the holes which the ants were using. After grounds were sprinkled into one of them, I watched as they went to the next and filled that one too. Grounds were put directly into the holes, otherwise they would just go around it.

Since putting the grounds down, I’ve definitely noticed a decrease in the ants.

Bonus Tip: If you don’t drink coffee, you can hit up your local coffee shop or cafe. If you ask, they will usually give you the grounds for free.

What are some other ways to deter ants from your garden?


If you enjoyed this article, get email updates (it's free).

  • Sales

    Hi, can I use it in my worm comppost bin? I have it outside and I found an ant nest twice in there.

  • Jes

    Great tip! I am constantly battling with these little suckers.

  • http://www.UrbanOrganicGardener.com Mike Lieberman

    I’m not sure on that. I would think it’d be ok in moderation in the worm bin. Might want to look it up.

  • http://www.UrbanOrganicGardener.com Mike Lieberman

    Yes. They are mad annoying.

  • Mary P.

    I’ve had great luck with using diatomaceous earth.  I just sprinkled in on the trail I saw coming into the house or around on the patio, left it for a few days, then swept it up – no more ants.

  • http://marysgardeningendeavors.blogspot.com Mary C.

    I hear worms like a bit of used coffee grounds, but that too much is bad for them. Maybe you could just sprinkle it out around the base of the bin.

  • http://marysgardeningendeavors.blogspot.com Mary C.

    Hmm.. never thought of it. If it’s new grounds then they probably don’t like them because they’re micro sharp like DE. Maybe it’s the strong scent or acidity…

    I don’t really bother with trying to drive ants from my containers; the couple times I’ve found them there they weren’t really doing anything bothersome.

  • MaryssaGC

    This is so much better than those crazy expensive ant killers.  I worry about having things like RAID in the house with kids.  Thanks for the tip.  I hear that baby powder works as well.  Is this true?

  • http://www.UrbanOrganicGardener.com Mike Lieberman

    Thanks for sharing that tip!

  • Raven

    They dislike cinnamon for some reason too. 

  • http://www.UrbanOrganicGardener.com Mike Lieberman

    If they ain’t hurtin ya, no need to mess with em…

  • http://www.UrbanOrganicGardener.com Mike Lieberman

    Yea you wanna stay away from that toxic Raid stuff. Never heard anything about baby powder. Cinnamon or baking soda seem to be other popular options.

  • http://www.UrbanOrganicGardener.com Mike Lieberman

    That just proves they are dumb. Who can dislike cinnamon?!

  • Dee

    Living in a tropical region (Thailand), we have massive ant problems, and have lots of different types of ants. It’s a never ending battle with them, but I can confirm coffee grinds will keep most of them away. Some types of ants also dislike distilled white vinegar. Cinnamon also works well for some types. I think it all depends on what type of ants you have, but I’ve yet to find one solution to get rid of them all. You really have to have a full arsenal to battle them all.

  • http://www.UrbanOrganicGardener.com Mike Lieberman

    yes. They are mad annoying.

  • Rgbowman

    I had some spare peppermint oil I sprayed on areas the ants were, and they stayed away. Any very strong smelling thing like that will probably work. The kind of ants we have here are very small, and they colonize in the walls near places they find food. So, we got very strict about food sources and used the peppermint oil, and they moved on. I also wonder if habanero hot pepper tea applied with a paint brush would have them hot footing it away from the area. Has any one tried that?

  • Rgbowman

    Err, maybe you should try a better brand so the worms can enjoy their coffee breaks better?

  • http://www.UrbanOrganicGardener.com Mike Lieberman

    Good to know. Never used the peppers for ants.