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

by Mike Lieberman · 27 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?


  • 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.

  • Gettingtheregreen~Amanda

    today I disturbed a large ant colony that was apparently inside a bag of mulch.  I sprinkled the mulch all over the walkway leading to my gardens before I noticed the millions of ants.  yikes!  so I have now sprinkled cayenne pepper throughout the mulch walkway (ants apparently don’t like it) and made a line of used coffee grounds at the end of the walkway in hopes they decide it isn’t worth crossing into the garden… though I bet they are smart enough to walk the long way around…

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

    Ugh. Way to go ;-)

  • Lori

    An entomologist friend explained to me that to kill off the ants, you need to kill the colony.  Those are often impossible to find so he suggested to take Borax (yes the old powder form of laundry detergent–still found at many grocery stores in the laundry detergent section) and mix it with peanut butter or honey.  There are two basic types of ants, sugar loving and oil loving–so you can experiment with what to mix into your borax concoction.  The ants eat it (let them swarm around it and do not kill them) and they then take it back to their nests and feed the young.  Within a few days you should notice a great reduction in #’s.  Also, I found an easy already mixed solution under the brand name of Toro Ant Baits.  They come in drops or in little ‘stations’ that you cut the tip off of and the ants visit, drink it up and bring it back to their nests.  Be sure to read the label as some Toro products carry harsh chemicals, look for the ones w/Borax as the main ingredient.  Still remember to keep away from kids and dogs!!!  Peace and happy growing!  Lori

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

    Awesome. Thanks for the suggestion!

  • Diane Rabinowitz

    Thanks for this article and the ideas posted. I noticed the leave of my cherry tomatoes growing as a bush in a container have been drying up. Yesterday I found a bunch of ants on one section of a branch. I hosed them down, which may just be a temporary solution, but the plant looked healthier yesterday afternoon.

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

    Good job!

  • joanna

    Peppermint oil is another barrier that works very well if they are rampaging in doors

  • cardswho

    Why not just put the container in a tray of water?

  • http://twitter.com/am2misu Sue

    We had ants crossing the the telephone wire from the tree to our second floor apartment. Hubby put a glob of petroleum jelly around the wire. No more ants. The ants will not put their feet in petroleum jelly.