The average lifespan of wild pandas can vary depending on various factors such as habitat, availability of food, and threats from predators. In the wild, giant pandas typically have a lifespan of around 20 years. However, with proper conservation efforts and protection from threats such as habitat loss and poaching, some pandas have been known to live up to 30 years or more in the wild. In captivity, pandas have been known to live even longer, with some individuals reaching their late 30s or early 40s with proper care and management.