 Feeding them to keep them coming back to your yard is the best way to do it. So before you understand the do's and don'ts of hummingbird food, you're going to need a recipe, and that's really, really simple. It's one cup of sugar and four cups of water. Now you mix the two ingredients together, bring it to a boil, and let it cool, and that is it.