In the wild, clownfish have a lifespan of about 6 to 10 years. However, in well-maintained aquariums, they can live even longer, sometimes up to 15 years, thanks to a controlled environment free from predators and diseases.