The short answer
Place a feeder near shelter, such as shrubs or trees, but in view from a window. Keep it away from windows, away from places where cats can hide, and somewhere you can reach easily for refilling. Good placement helps birds feel safe and saves you from fighting the same problems every week.
Near cover, but not too near
Birds feel safer when they can escape quickly into dense shrubs or trees. A common guideline is to place feeders within about 10 feet (3 meters) of cover, close enough for a quick retreat. Leave some open ground between the feeder and the thickest plants, since cover right next to a feeder can also hide a cat.
Windows and collisions
Birds can hit windows, especially when they see reflections or are startled into flight. A widely shared guideline is to hang feeders either within about 3 feet (1 meter) of a window or more than about 30 feet (10 meters) away. The idea is that birds leaving a feeder that is close to the glass have little room to build speed, while birds flying in from a middle distance have room to pick it up.
For more ways to reduce strikes, see how to stop birds hitting windows.
Birds sometimes fight their own reflection in a window, a behavior people look up as “why do birds attack their reflection in windows.” Moving the feeder will not fix that. Decals or screens on the outside of the glass are usually the more direct fix.
Keep it out of cat range
Cats are patient hunters, and they often wait close to feeders. Keep ground-level feeders in open view, away from thick grass or low shrubs where a cat can hide. Hanging feeders from a pole or sturdy hook, with a baffle, can also help. For more on this, see how to keep cats away from backyard birds.
Height and access
Hang tube and hopper feeders at a height that lets you refill and clean without stretching or climbing. A common starting point is about 5 feet (1.5 meters) off the ground, though many people adjust this for their own reach. Platform feeders usually sit lower or on a post.
Sun, shade, and weather
Some shade helps keep seed from heating and spoiling. Place feeders where rain and snow are less likely to blow directly onto the seed, such as under a roof edge or on the sheltered side of a shrub. Leave room for the feeder to hang freely, since one that swings into a wall or branch can spill seed.
Spacing and crowding
If you have several feeders, spread them out. The pecking order at bird feeders is real: a few dominant birds can guard one feeder and push others away. Spacing feeders apart lets more birds feed at once and cuts down on crowding in a single spot.
Water and cover nearby
Birds visit more readily when water and cover are close by. How to provide water for backyard birds explains the options. Brush piles give birds shelter as well, and how to build a brush pile for birds is a good next step if you have space. For the bigger picture, see how to make your yard bird friendly.
Check the spot from inside
Stand inside and look at the spot. Can you see the feeder, the ground beneath it, and the nearby cover? If not, move the feeder before you hang anything. A good spot lets you watch the birds comfortably and clean the feeder without much trouble.