Choose tubular, bright flowers first
Good hanging basket flowers for hummingbirds share a few traits: tube-shaped blooms, bright red, pink or orange color, and a long bloom period. Single-flowered types are usually a better pick than frilly double-flowered ones, since the extra petals can make nectar harder to reach. Check the plant tag for light needs and bloom time before you buy.
Fuchsia
Trailing fuchsias hang well and bloom in tubular red, pink, purple or white flowers. They prefer partial shade, so they suit a porch or covered patio. Illinois Extension notes that fuchsia and lantana can provide early-season blooms before perennials open.
Hardy types can survive outdoors in mild climates, so check your zone before counting on one to return.
Salvia
Salvias like full sun and soil that drains well. Many keep blooming from summer into fall. A University of Connecticut gardening page lists Roman Red and Black and Blue among salvias that work in containers.
Nasturtium
Trailing nasturtiums spill over the edge of a basket and bloom in warm weather. They need plenty of sun, and extension lists of hummingbird annuals include them.
Lantana and firecracker plant
Trailing lantana fills gaps through midsummer and handles heat well in full sun. Its leaves and unripe berries are toxic to dogs, cats and horses, and some kinds are invasive in warm regions. Check local advice before planting, and keep it away from pets.
Firecracker plant, a cuphea with small red tubular flowers, is listed by the University of Connecticut for containers and suits a sunny basket.
Begonia, impatiens and petunia
Trailing begonias with red or orange flowers are a common choice. Many begonias prefer shade or light shade, so check the tag. Impatiens is a steady, shade-tolerant filler that appears on several extension lists. Petunias also appear on extension lists for hummingbirds, and they bloom best in sun.
Mixing a basket
A common layout puts an upright plant in the center and trailing plants around the edge. Keep plants with the same light needs together: fuchsia and impatiens for shade, and salvia, nasturtium, lantana or petunia for sun. Pick plants with different bloom times so the basket keeps producing flowers.
For the broader plan, see hanging baskets to attract hummingbirds. For more ideas that also draw butterflies, see plants that attract both butterflies and hummingbirds. For a ground bed rather than a basket, see hummingbird and butterfly seed mix.