The red-cockaded woodpecker feeds primarily on ants,
beetles,
cockroaches,
caterpillars, wood-boring insects, and
spiders, and occasionally
fruit and
berries. The vast majority of foraging is on pines, with a strong preference for large trees, though they will occasionally forage on
hardwoods and even on
corn earworms in cornfields. Red-cockaded woodpeckers are a territorial,
nonmigratory,
cooperative breeding species, frequently having the same mate for several years. The
nesting season runs from April to June. The breeding female lays three to four
eggs in the breeding male's roost cavity. Group members incubate the small white eggs for 10–13 days. Once hatched, the nestlings remain in the nest cavity for about 26–29 days. Upon fledging, the young often remain with the parents, forming groups of up to nine or more members, but more typically three to four members. There is only one pair of breeding birds within each group, and they normally only raise a single brood each year. The other group members, called
helpers, usually males from the previous breeding season, help incubate the eggs and raise the young. Juvenile females generally leave the group before the next breeding season, in search of solitary male groups. The main predators of red-cockaded nests are
rat snakes, although
corn snakes also represent a threat. Studies have also explored the possibility that southern flying squirrels might have a negative impact on red-cockaded woodpecker populations due competition over cavities and predation on eggs and nestlings. The red-cockaded woodpecker is a cavity-nester. They excavate cavities in live pine trees, favoring the
longleaf pine. It can take the birds anywhere from under a year to several decades to excavate a cavity. Cavity excavation in
longleaf pine takes an average of 4.4 years to complete. Excavation times have high
variance, most influenced by the start and advanced stages of excavation, where the physical characteristics of the tree affect cavity excavation most. Once completed, the cavity can remain in use for decades. For decades, academic literature has strongly suggested a link between red-cockaded woodpeckers and various fungi that cause
heart rot in pine trees. It was previously thought that the bird specifically selects for trees infected with
Porodaedalea pini for cavity excavation. A recent study suggests that red-cockaded woodpeckers play a dominant or exclusive role in transferring various
Basidiomycota fungi from active cavities to cavity starts, including wood decay fungi. The most prevelant Basidiomycota found in cavities and cavity starts are
Exobasidiomycetes sp. 2 and
P. pini, both of which were found on the bird, though
P. pini was only detected on one bird of 11 swabbed in this study. The implications of these findings are not yet understood. In cavity trees that are actively being used, red-cockaded woodpeckers maintain small
resin wells which exude
sap around the cavity entrance. Longleaf pines produce more resin than other pine species, another reason they are the most-used cavity tree for the bird. This resin flow often extends several meters below the cavity entrance. The resin flow acts as a defense mechanism against
rat snakes and possibly other predators. The coating of resin makes the bark of the cavity tree smoother, providing less purchase for snakes to climb the tree. Additionally, it was found that resin adhering to the snakes'
ventral scales as they climb reduces mobility important for a snakes' climbing motion. In addition to active roost cavities, red-cockaded woodpecker colonies maintain a number of cavity starts. These are incomplete cavity excavations which they continue to excavate over time. The primary predators of the red-cockaded woodpecker are snakes and
southern flying squirrels. While snakes are one of the primary predators of red-cockaded woodpeckers, they also indirectly benefit the birds by predating on flying squirrels. == Distribution and habitat ==