What is the typical life expectancy of fish in tanks?

The typical life expectancy of fish kept in tanks can vary widely depending on the type of fish and the conditions in which they are kept. Some species of fish, such as goldfish and koi, can live for several decades under optimal conditions, while others, such as tropical fish like guppies and neon tetras, typically have lifespans of only a few years. Some of the factors that can influence the life expectancy of fish in tanks include the quality of the water, the amount of space they have, and their diet. Providing fish with regular care and ensuring they have the appropriate environment can help them reach their full life expectancy.