How to Keep Ants Away From Hummingbird Feeders

Updated on May 10, 2020
Blond Logic profile image

Living on a farm in Brazil, I've gained local in-depth knowledge of food, plants, and traditions, which I share through my articles.

It's so infuriating putting out a hummingbird feeder only to find it quickly overrun with pesky ants. Not only does it keep the hummingbirds and other nectar-feeding birds away, it encourages more ants—and that is something nobody wants.

After looking on the internet and being discouraged with the results, I have come up with an easy and virtually free way to keep ants away from my feeders. In fact, it's so simple that you'll likely be able to do this with items you have around your house.

Ways to Keep Ants Away From Hummingbird Feeders

When I looked on the internet for ideas, all I found were ideas for moats or coatings for the hook or chain. I have tried all of these with only limited success. Let's look at their shortcomings.

  • Moat: The idea is sound and eco-friendly. But for me, this was a complete non-starter. I live in Brazil, and we have a problem with mosquitoes at certain times of the year. Any standing water is best to be avoided, so a moat was out of the question. The other issue I had with it is evaporation, I don't want to be refilling a small bowl of water several times a day. So whether it was a large or small amount of water, neither was ideal for my situation or location.
  • Coating the hanger or hook: Among the coatings people use are Vaseline or Vicks VapoRub. The idea behind this method is that the ants don't like to walk across a sticky surface. I have also read that they don't like the smell of Vicks, and it will act as a repellent. I tried the Vaseline, and it worked for awhile. But I had to keep reapplying, which was a nuisance. Plus, it turns out the hummingbirds don't like Vicks either. They have a well-developed sense of smell and also stayed away. Not quite the solution I was hoping for.

I love having hummingbirds visit my feeders. But if it is going to cost me a lot of time and/or money, I would need to rethink hanging my feeders out.

Click thumbnail to view full-size
A plastic lid sprayed with household cleaner and placed above the hummingbird feeder can keep ants at bay.
A plastic lid sprayed with household cleaner and placed above the hummingbird feeder can keep ants at bay.
A plastic lid sprayed with household cleaner and placed above the hummingbird feeder can keep ants at bay.

How to Make Your Hummingbird Feeder Ant Proof

Finally, after a lot of trial and error, I discovered a quick, long-lasting and inexpensive set up, which is perfect for preventing ants on the hummingbird feeders where I live.

What I have found works best for me is a simple plastic lid, the type that comes on a carton of ice cream or margarine container.

Materials You'll Need

  • A plastic lid
  • A piece of wire (I used a flexible and plastic-coated wire, but a wire coat hanger would work.)
  • Something to poke a hole, such as a pair of scissors, a skewer, or the point of a knife.
  • Insect spray or kitchen cleaning spray, such as Mr. Muscle or 409


  1. Begin by making a hole in the center of your plastic lid. Push from the underside towards the top. I use a metal skewer but you could use a knife, scissors or whatever you have to make a small hole. Make the hole as small as possible but large enough to allow your wire to pass through.
  2. Spray the topside of the lid with insect spray, 409, Mr. Muscle or another product that will repel ants. (In case you didn't know, those kitchen cleaning products also work against bugs, and it is a secret that professional exterminators don't want you to know about.) Although many of us use these cleaning products, I suspect many people don't rinse their surfaces after using them. In fact, they leave behind a residue that is toxic to humans. Just another reason I believe it is best to use natural cleaning products in the kitchen.
  3. Leave the plastic lid to dry.

How to Prevent Ants From Crawling Onto Hummingbird Feeders

The next step is to simply make a loop in the wire—this will need to be wrapped around a couple of times. If you can't do it with your fingers, use pliers. This has to support the weight of the feeder.

All of my feeders are glass, so they are quite weighty when full of the sugary water solution. This loop is the part that will hang from your hook, bracket or whatever type of fitting you currently have for your hummingbird feeder.

Slide the plastic lid—which has been sprayed and left to dry—onto the metal wire. The sprayed side should be on the top or facing up. Now make a bend in the wire leaving about 1.5 inches. This is to support the lid. You can see this in the photo.

I have had great success with this method and left it for weeks without respraying it. I don't know if this is because the spray penetrated the plastic or if the ants remember that as a potential danger.

The lid will bobble about in the wind, but as long as it is supported by the wire, you will have no problem.

If you are worried about using this spray near the feeder, don't be. I have never seen many of the hummingbirds or other nectar-feeding birds even attempting to land on it. I think this is partly due to its unstable (or wobbly) surface. Plus, they are eager to get to the sugar water.

I would also like to add here that not only do we get the hummingbirds visiting our feeders, we have them nesting in our garden. It is quite fun to see the small eggcup-size nest being constructed and then filled with eggs the size of Tic Tacs. Once they hatch normally, all we can see are the pointed beaks sticking out of the nest.

Your birds may at first wonder what the heck this new contraption is. But once they go in and sample the liquid, they will know there is no danger.

Is it the prettiest thing hanging on your patio or porch? No, but it's effective. When I change the sugar water, I leave the wire and plastic lid in place and only remove the bottle.

There are many flowers that attract hummingbirds.
There are many flowers that attract hummingbirds. | Source

Attracting Hummingbirds to Your Garden or Backyard

By purposely selecting certain flowering plants, you can encourage hummingbirds to visit your garden. Not only will you get to see these beautiful little birds, you'll have beautiful flowers too!

So let's look at various types of plants that can be grown to get them to visit. Red flowers attract them. In fact, they take a great interest in anything red. I have seen a video of one flying to a camera strap that had a red Canon logo on it. They are inquisitive.

Tubular flowers are a bonus for them, as this type of flower can hold a lot of nectar.

Here at my home, we see them on the bougainvillea and both the cashew and the mango trees.

Below is a list of some common flowering plants that attract hummingbirds, bees and butterflies. Opt for varieties in red for best results.

Plants That Attract Hummingbirds

Common Name
Latin Name
Bee balm
Full sun/light Shade
Butterfly bush
Full Sun
Full Sun
Partial Shade
Coral bells
Coral bells
Full sun/light shade
Full sun
Full/partial sun
Full sun/light shade
Full sun/light shade
Full sun
Red Hot Poker
Full sun
Full sun
A ruby-throated hummingbird.
A ruby-throated hummingbird. | Source

Interesting Hummingbird Facts

  • Hummingbirds also eat small spiders and other bugs for protein, not just nectar.
  • For its size, a hummingbird's brain is bigger than ours. At a whopping 4.2% of its body weight, it makes ours at 2% seem tiny by comparison.
  • This tiny bird has the ability not just to fly forward but also backward. A hummingbird can hover by making a figure eight with its wings, which can beat up to 200 times a second.
  • Hummingbirds can burn up to 12,000 calories a day!
  • To conserve energy at night, hummingbirds go into a short hibernation, called torpor.
  • They can be aggressive and territorial. We have seen hummingbirds chase predators such as hawks and kingfishers, here at our farm. My husband also saw one hummingbird pushing another to the ground and attack it. This dispute was over a feeding bottle.
  • In Brazil, the hummingbird is called Beija flor, which means 'flower kisser' in Portuguese.
  • Hummingbirds are only found in the western hemisphere extending from Alaska to Chile. However, hummingbird fossils, believed to be 30 million years old, have been found in France.

Do you plant trees and bushes known to attract hummingbirds or just rely on feeders?

See results

This content is accurate and true to the best of the author’s knowledge and is not meant to substitute for formal and individualized advice from a qualified professional.

Questions & Answers

  • I've been using vegetable oil in the moat above the hummingbird feeder for the last four years to prevent ants - so far so good. Is this working for anyone else?

    That is a great idea, thanks for sharing that. I can see the benefits to that as it won't evaporate like water or be a breeding ground for mosquitoes. My only concern is it may go rancid if not changed regularly.

  • My ant moat does a fine job of keeping out crawling ants, but I find my feeder plagued with flying ants. How do I deter them?

    Flying ants and wasps are a problem. I have found that by moving my feeders, it will keep them away. Of course, when they find the new location, I move it again. I have two places that the hummingbirds know to look. It isn't a permanent solution, but it's workable.

  • I have tried two different hummingbird feeders, and they both leak. Do you have any ideas?

    Firstly are they leaking because the wind is strong causing them to spill? If the unit is leaking, can you return it to the place you purchased it from?

    I have glass bottles, and they have never leaked. Previously I had some plastic ones, and in our sunlight, they eventually became brittle and cracked.

    You don't want to be dripping sugar water, as that will attract the ants.

    I'd try and return that and buy a glass one.

    Good luck, I hope it works out for you.

  • Do you ever paint the lids of the hummingbird feeders before spraying the cleaning solution? I’m thinking this may help with the “visual appeal”.

    I have never done it but I see no reason not to. As you say, it would be much more appealing to look at.

  • Our hummingbird feeder has a dome, and yet the ants still get to the nectar. After reading your ideas, I came up with one of my own. I used red electrical tape. First, one rotation, sticky side down, as usual, followed by a half twist, then wrapped with a wire hanger, sticky side out. The ants don't like it, it cheap, no harmful effects to the ecosystem. How do you like my idea?

    I think that is a great idea.

    My only concern is that you will need to keep using more tape, as the sticky part gets coated in dust from the air. Other than that, it sounds brilliant. Thanks for the idea.

© 2016 Mary Wickison


    0 of 8192 characters used
    Post Comment
    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      3 weeks ago from Brazil

      Hi Kathy,

      Even if you're still under a shelter in place, it's likely you have everything you need at home. Hopefully by the end of the day, your hummingbirds will not have to contend with ants in their feeding bottle.

    • Kathy libby profile image


      3 weeks ago from Bristol,N.H.

      Hello, I’m so glad I found this page. Today I went to change my bird feeder and I had ants

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      11 months ago from Brazil

      Hi LuLu,

      Thanks for adding that. I'm certain many people have that problem and it is helpful to know that it has been successful for you.

    • profile image

      LuLu Stenz 

      11 months ago

      Regarding keeping away wasps and flying ants from hummingbird feeders, I was told to put cooking oil around the necter holes on the feeder. The oil prevents the wasps and ants from putting their feet (legs) on feeder to get necter. I have been doing this for 2 years and its been working for me. My feeders have flowers in the plastic so I just get a qtip and rub oil around the flower.

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      22 months ago from Brazil

      Hi Peg,

      I'm sure your hummingbirds will find your feeder, they cover a lot of ground in the course of a day.

      The wasps can be a problem, but mine seem to be sporadic as we have many flowering trees and plants that keep them occupied.

      I hope some of these solutions will help you.

    • PegCole17 profile image

      Peg Cole 

      22 months ago from Northeast of Dallas, Texas

      Thanks for this insightful solution to the ant problem. I'm going to give the plastic lid a try next time I refill the feeder. Right now, I'm hoping that the little guys will find it in the new location. Reading through the comments I see that I'll have to address the tiny wasp issues as well. I'll be looking for some of the plants on your list to help attract these birds.

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      23 months ago from Brazil

      Thank you for confirming that. It is another method in our arsenal to keep the ants away from our hummingbird feeders. Thanks

    • profile image


      23 months ago

      I finally got rid of my ants in the hummingbird feeder. I took a shoe string and rapped it around the hanger cable. I then sprayed the string with WD-40. I done this two months ago and no more ant problems since. It did not discourage the humming bird from feeding daily. FYI

    • profile image


      24 months ago

      Last year I had lots of issues with wasps on my feeders. I tried one of those honeycomb looking wasp catchers and this year I've had no problems at all with the wasps.

    • profile image


      24 months ago

      I tried the moat idea, but like the author, I don't have the time to fill it several times a day. And, you have to be vigilant bc the ants will take over quickly if the moat is dry. I tried the Vaseline with no luck, the ants just walked over it. The Vick's has definitely worked the best. My hummingbirds don't mind the smell at all but the ants sure do! Finally, success!

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      2 years ago from Brazil

      Hi Patrick,

      Well that's a new one I hadn't heard before. It's often the unusual things that work the best. Thanks for throwing your idea into the basket of things to try to get those ants away from the hummingbird feeders.

    • profile image


      2 years ago

      Easy way to rid ants from humming bird feeder. Wrap old shoe lace around hanging feeder cable. Spray WD-40 on shoe string. No more ants in feeder.

    • profile image

      Brenda Dear 

      2 years ago

      Putting baby powder on the hanger and if they are hanging on a deck, also put some baby powder on the wooden deck top you have to reapply every couple of days but it works

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      2 years ago from Brazil

      That is a good idea, thanks for sharing your method for keeping ants away from your hummingbird feeder.

    • profile image

      I put corn startch in the moat instead of water,ants don't like to walk on cornstarch 

      2 years ago

      I put cornstarch in my moat as ants don't like to cross cornstarch

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      2 years ago from Brazil

      I bought my feeders from the States as the only ones I've seen here are plastic, and not attractive.

      Although we have a wide variety of plants, we don't have a lot of flowers. I do know what you mean though, natural nectar is better.

      Thanks for your comment.

    • Dolores Monet profile image

      Dolores Monet 

      2 years ago from East Coast, United States

      Hi Mary - I had the prettiest hummingbird feeder and made my own nectar for it. But it quickly became an ant feeder. Hummingbirds rarely visited my feeder anyway. I just let the flowers do the job. They certainly like my red bee balm.

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      2 years ago from Brazil

      Oh, that's great news. You can of course jazz it up so it doesn't look like a plastic lid but just keep in mind you need to have a surface that you can wash and reapply the bug spray as and when needed.

      Glad you found it useful.

    • FlourishAnyway profile image


      2 years ago from USA

      I've been struggling with this problem for several summer and you have supplied the answer! Thank you!

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      3 years ago from Brazil

      Hi Peggy,

      Bees pose a different type of problem as they, like the hummingbirds, fly to the feeders. If they are bees and not wasps, I personally would do nothing, the plight of the bees is frightening and we should all be doing more to encourage bees into our gardens.

      I am a big believer in planting flowers and leaving areas wild for certain insects. I have acreage though so leaving an area uncut for me isn't a problem.

      At one point I had small wasps which hounded my hummingbird feeders preventing the birds from getting to a feeding station. You're right it is annoying! I found that moving it to a new destination helped as the birds found it before the tiny wasps did. Although not an ideal solution, in the short term, it may have long-term benefits. We haven't had wasps on the feeders for a couple of years now.

      Let me know how you get on.

    • profile image


      3 years ago

      What about bees ? The minute the feeder comes out so do the bees it's so annoying

      Any ideas ?

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      3 years ago from Brazil

      Just remember to reapply the spray occasionally, especially if you have had rain.

      Thanks for reading.

    • aesta1 profile image

      Mary Norton 

      3 years ago from Ontario, Canada

      I will try this when we go back to our cottage this summer.

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      4 years ago from Brazil

      Hi Deb,

      Ants don't only spoil picnics, lol. I was desperate to find a solution to the problem.

      Thanks for putting it on your blog, I hope it will be an asset to both of us.

    • aviannovice profile image

      Deb Hirt 

      4 years ago from Stillwater, OK

      Wow, Mary, this is fabulous. Many people are plagued by ants, and this is going to be a Godsend to those that have wanted to retain feeders, but don't because of the pests. I'm going to put this on my blog, which should get you some exposure.

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      4 years ago from Brazil

      Hi Peggy,

      They are such a joy to watch. The way they can delicately hover over a flower, is amazing to see.

      If you know anyone who has a problem with ants on their hummingbird feeders, please share this with them.

      Thanks for reading.

    • Peggy W profile image

      Peggy Woods 

      4 years ago from Houston, Texas

      We have hummingbirds visiting our yard because of all the flowering plants so we do not bother with a hummingbird feeder. This is good to know however for all those with feeders for these tiny and cute creatures. Sharing!

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      4 years ago from Brazil

      Hi Rajan,

      Never a truer word was said, need necessitates change. Here on our farm, we seem to make a solution to a problem instead of buying commercial items.

      Thanks for your kind words, and sharing.

    • rajan jolly profile image

      Rajan Singh Jolly 

      4 years ago from From Mumbai, presently in Jalandhar, INDIA.

      What a creative contraption and a brilliant idea. Need is the mother of invention ain't it? Sharing this forward. Thank you.

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      4 years ago from Brazil

      Hi Dora,

      Sometimes I am like a dog with a bone and won't give up easily. I do like to keep trying until get to a satisfactory conclusion.

      I enjoy seeing the hummingbirds, and I wanted to continue attracting to our outdoor area.

      Thank you for reading.

    • MizBejabbers profile image

      Doris James MizBejabbers 

      4 years ago from Beautiful South

      I hope so. It is a beautiful plant and you can make tea and cook with it.

    • MsDora profile image

      Dora Weithers 

      4 years ago from The Caribbean

      A very interesting article indeed. Thanks for sharing the suggestions which didn't work and then your creative idea that solves the problem. Also thoughtful of you to share.

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      4 years ago from Brazil

      Well, squirrels we don't have although we do have monkeys. Luckily they haven't discovered my feeders. Where we live is 3° south of the equator and our temperature is a constant 88-90° (F) year round. I will have to find out if it will grow here.

      Thanks for the suggestion and your kind words.

    • MizBejabbers profile image

      Doris James MizBejabbers 

      4 years ago from Beautiful South

      Mary, I agree, this is very well written and assembled article. Your solution is very innovative. You are so lucky to have a lot of hummingbirds. I'm not sure why but our location attracted only three to five regulars, but we found that the squirrels were chug-a-lugging the feeders. When both of us started having failing health, we stopped putting them out. However, I love pineapple sage and I always keep large pot of it growing in the summertime. It attracts the bees and a couple of our hummingbirds are back. I'm hoping they are some of our former regulars. Pineapple sage is one of the largest herbs I've ever grown and sometimes it makes it through the winter. if you are in a moderate to hot climate, I recommend your giving it a try. It is a gorgeous, but late summer bright red bloomer.

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      4 years ago from Brazil

      Hello Susan,

      I suspect the ants are biding their time. At least now you've got a plan of action, just in case.

      Glad you liked it.

      Thanks for reading.

    • SusanDeppner profile image

      Susan Deppner 

      4 years ago from Arkansas USA

      Very good to know that this system has worked well for you. So far this year we haven't had ants on our hummingbird feeders, but last year we did. I suspect that as the weather continues to warm up, we'll need to try your clever solution. Thanks for sharing!

    • Blond Logic profile imageAUTHOR

      Mary Wickison 

      4 years ago from Brazil

      Hi Bill,

      Before moving to Brazil I thought there were two types of ants ~ red and black. It turns out there are about 22,000 different types and we have our fair share here in Brazil. Just for the record, black ants bite too.

      I refuse to let my hummingbird feeders get overrun with the little blighters, so I came up with a solution to the problem.

      I do hope the Gods at Google (and others) pick it up.

      Happy Thursday to you as well.

    • billybuc profile image

      Bill Holland 

      4 years ago from Olympia, WA

      I would think this is a very search-engine friendly article, but it's also interesting, well-written and very handy for most gardeners and lovers of birds. Thanks for the information, Mary, and Happy Thursday to you.


    This website uses cookies

    As a user in the EEA, your approval is needed on a few things. To provide a better website experience, uses cookies (and other similar technologies) and may collect, process, and share personal data. Please choose which areas of our service you consent to our doing so.

    For more information on managing or withdrawing consents and how we handle data, visit our Privacy Policy at:

    Show Details
    HubPages Device IDThis is used to identify particular browsers or devices when the access the service, and is used for security reasons.
    LoginThis is necessary to sign in to the HubPages Service.
    Google RecaptchaThis is used to prevent bots and spam. (Privacy Policy)
    AkismetThis is used to detect comment spam. (Privacy Policy)
    HubPages Google AnalyticsThis is used to provide data on traffic to our website, all personally identifyable data is anonymized. (Privacy Policy)
    HubPages Traffic PixelThis is used to collect data on traffic to articles and other pages on our site. Unless you are signed in to a HubPages account, all personally identifiable information is anonymized.
    Amazon Web ServicesThis is a cloud services platform that we used to host our service. (Privacy Policy)
    CloudflareThis is a cloud CDN service that we use to efficiently deliver files required for our service to operate such as javascript, cascading style sheets, images, and videos. (Privacy Policy)
    Google Hosted LibrariesJavascript software libraries such as jQuery are loaded at endpoints on the or domains, for performance and efficiency reasons. (Privacy Policy)
    Google Custom SearchThis is feature allows you to search the site. (Privacy Policy)
    Google MapsSome articles have Google Maps embedded in them. (Privacy Policy)
    Google ChartsThis is used to display charts and graphs on articles and the author center. (Privacy Policy)
    Google AdSense Host APIThis service allows you to sign up for or associate a Google AdSense account with HubPages, so that you can earn money from ads on your articles. No data is shared unless you engage with this feature. (Privacy Policy)
    Google YouTubeSome articles have YouTube videos embedded in them. (Privacy Policy)
    VimeoSome articles have Vimeo videos embedded in them. (Privacy Policy)
    PaypalThis is used for a registered author who enrolls in the HubPages Earnings program and requests to be paid via PayPal. No data is shared with Paypal unless you engage with this feature. (Privacy Policy)
    Facebook LoginYou can use this to streamline signing up for, or signing in to your Hubpages account. No data is shared with Facebook unless you engage with this feature. (Privacy Policy)
    MavenThis supports the Maven widget and search functionality. (Privacy Policy)
    Google AdSenseThis is an ad network. (Privacy Policy)
    Google DoubleClickGoogle provides ad serving technology and runs an ad network. (Privacy Policy)
    Index ExchangeThis is an ad network. (Privacy Policy)
    SovrnThis is an ad network. (Privacy Policy)
    Facebook AdsThis is an ad network. (Privacy Policy)
    Amazon Unified Ad MarketplaceThis is an ad network. (Privacy Policy)
    AppNexusThis is an ad network. (Privacy Policy)
    OpenxThis is an ad network. (Privacy Policy)
    Rubicon ProjectThis is an ad network. (Privacy Policy)
    TripleLiftThis is an ad network. (Privacy Policy)
    Say MediaWe partner with Say Media to deliver ad campaigns on our sites. (Privacy Policy)
    Remarketing PixelsWe may use remarketing pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to advertise the HubPages Service to people that have visited our sites.
    Conversion Tracking PixelsWe may use conversion tracking pixels from advertising networks such as Google AdWords, Bing Ads, and Facebook in order to identify when an advertisement has successfully resulted in the desired action, such as signing up for the HubPages Service or publishing an article on the HubPages Service.
    Author Google AnalyticsThis is used to provide traffic data and reports to the authors of articles on the HubPages Service. (Privacy Policy)
    ComscoreComScore is a media measurement and analytics company providing marketing data and analytics to enterprises, media and advertising agencies, and publishers. Non-consent will result in ComScore only processing obfuscated personal data. (Privacy Policy)
    Amazon Tracking PixelSome articles display amazon products as part of the Amazon Affiliate program, this pixel provides traffic statistics for those products (Privacy Policy)
    ClickscoThis is a data management platform studying reader behavior (Privacy Policy)