How to Keep Ants Out of a Hummingbird Feeder Safely
The safest way to keep ants out of a hummingbird feeder is to stop leaks and sticky nectar first, then use a water-filled ant moat between the hanger and feeder. Saucer-style feeders are often easier to keep ant-resistant because they leak less and many have built-in moats. Avoid coating feeder parts with oil, grease or other sticky substances where hummingbirds could contact them.
Ants are not usually attracted by the feeder itself—they are attracted by sugar water they can reach. That means the most reliable fix is not to “repel ants” broadly. It is to remove the nectar trail and interrupt the route they are using to reach the feeder.
Cornell Lab and Audubon both recommend practical, non-pesticide fixes such as controlling leaks, cleaning spilled nectar and using an ant moat. Cornell also warns against putting oil or other sticky substances around hummingbird feeding areas because they can contaminate nectar or soil feathers.
Start by Finding How the Ants Are Getting There
Before changing anything, follow the ant trail. Most infestations fall into one of three patterns:
| What you see | Likely cause | Best first move |
|---|---|---|
| Ants walking down the hanger | They have a direct dry path from branch, hook or wire to the feeder | Add a water-filled ant moat above the feeder |
| Ants clustered around sticky seams or ports | The feeder is leaking or has dried nectar residue | Wash the exterior, tighten parts and fix the leak |
| Ants keep returning after cleaning | They have established a trail to the location | Move the feeder a short distance and break the old route |
| Ants inside the nectar reservoir | The route has not been physically blocked | Discard contaminated nectar, clean the feeder and add a moat before refilling |
1. Stop Leaks Before You Add Anything Else
A feeder that drips sugar water creates a scent and food trail that ants can exploit repeatedly. Audubon recommends keeping hummingbird feeders tidy, checking that parts are assembled securely and cleaning up spills rather than relying on insect deterrents alone.
Leak problems are especially common with inverted bottle feeders. Cornell notes that bottle-style feeders can leak in direct sun because warming air inside the bottle expands and pushes nectar outward. Saucer-style feeders are less prone to this pressure-driven dripping.
- Wipe the feeder completely clean and dry.
- Refill it only partway.
- Hang it for 15–30 minutes.
- Check seams, ports and the underside for fresh sticky spots.
- If nectar reappears, fix the seal, reassemble the feeder or move it out of strong heat before trying other ant controls.
2. Use a Water-Filled Ant Moat
An ant moat is a small cup or reservoir that sits in the route between the hanging point and the feeder. Fill it with plain water. Ants following the hanger cannot cross the water barrier to reach the sugar solution.
Cornell specifically recommends ant moats for hummingbird feeders and notes that many saucer feeders include one in the center. Separate hanging moats can also be added above feeders that do not have a built-in version.
The moat only works while it contains water, so check it whenever you refill nectar. Hot weather can evaporate a small moat surprisingly quickly.
3. Keep the Moat Simple: Use Water, Not Oil
Some older feeder tips suggested petroleum jelly, grease or oil as a crawling-insect barrier. That is not the best choice around hummingbirds.
Cornell’s broader feeder-pest guidance recommends plain water in ant moats and explicitly warns that oil or petroleum jelly can mat feathers. Its current hummingbird-feeder maintenance guidance likewise warns against sticky substances near feeding ports because they can contaminate nectar or soil birds’ feathers.
A water moat solves the same access problem without coating a surface that a bird might brush against.
4. Clean Sticky Nectar From the Outside
Even a feeder that is not actively leaking can develop a thin sugar film from filling, wind or hummingbirds splashing nectar around the ports. Ants do not need access to the full reservoir if enough sugar remains on the outside.
Wipe the exterior whenever you refill. Pay special attention to:
- the underside of feeding ports;
- threaded seams and bottle collars;
- the hook or hanger directly above the feeder;
- the surface below the feeder if nectar has dripped onto a railing or deck.
This also helps with bees and wasps. OwlRatings’ guide to keeping bees and wasps away from hummingbird feeders covers the flying-insect side of the problem.
5. Consider a Saucer-Style Feeder If Leaks Keep Returning
If you repeatedly fight leaks from an inverted bottle, feeder design may be the root problem.
Cornell recommends saucer-type hummingbird feeders as a useful design for insect control because they are less likely to leak, and many include a central ant moat. Their nectar level also sits below the top feeding ports, which can make access harder for bees and wasps while remaining reachable to hummingbird tongues.
This is not a product endorsement. The useful features to look for are simple: low leak risk, a serviceable moat, easy disassembly and easy cleaning.
6. Move the Feeder If Ants Keep Finding It
Ants use chemical trails to return to food. If they repeatedly reach the feeder even after cleaning, moving it can break that established route.
Cornell recommends moving a hummingbird feeder as one response to persistent insect problems, and notes that hummingbirds often relocate the feeder more readily than insects do.
You usually do not need to move it across the yard. A different hook, branch or stand can be enough if it removes the direct ant path. When moving the feeder, keep the broader placement trade-offs in mind; OwlRatings’ sun vs shade guide covers heat, visibility and nectar spoilage.
What Not to Do
| Method | Why to avoid it | Safer alternative |
|---|---|---|
| Grease, petroleum jelly or cooking oil on feeder parts | Can soil feathers and may contaminate feeding areas | Use a plain-water ant moat |
| Spraying insecticide on or near the feeder | Creates avoidable exposure risk around birds and nectar | Remove the food trail and block access physically |
| Leaving ants in the nectar and topping it up | The nectar has been contaminated | Discard, wash, rinse, dry and refill |
| Ignoring a persistent leak | Sticky nectar keeps attracting new ants | Repair, reassemble or change feeder design |
Audubon similarly recommends maintaining an insecticide-free yard rather than treating feeder pests with pesticides.
If Ants Get Into the Nectar
Do not simply scoop the ants out and continue using the same solution. Empty the feeder and clean it before refilling.
Hummingbird sugar water already requires frequent maintenance. Cornell recommends changing nectar every 3–5 days and more often during hot weather, with thorough cleaning before mold or fermentation develops.
For the complete maintenance routine, see OwlRatings’ hummingbird feeder cleaning guide. For mixing, use the standard 1:4 hummingbird sugar-water ratio.
A Simple Ant-Control Sequence
Bottom Line
The best ant control is a clean, non-leaking feeder plus a water-filled ant moat. Start there before buying repellents or coating anything with grease.
If ants keep returning, treat the problem as a route-and-leak issue: clean away nectar, identify their path, move the feeder if needed, and choose a saucer-style design if bottle leaks are persistent.
Sources & Further Reading
- Cornell Lab — How to Deal With Unwanted Yard Visitors
- Cornell Lab — How Do I Keep Ants Out of My Hummingbird Feeder?
- Cornell Lab — How to Clean Your Bird Feeder
- Audubon — How to Keep Your Hummingbird Feeder Free From Pests
Editorial note: This is a research-based feeder-maintenance guide, not a product review. Feeder designs differ, so always inspect how a specific model leaks, drains, disassembles and positions any ant moat.

Jonathan Gron is the founder and editor of OwlRatings, where he researches birding, backyard wildlife and practical bird-safety guidance using current primary, government and professional sources.

