Goldfish typically live for 5 to 10 years, but with proper care, they can live even longer, sometimes up to 20 years or more. It's important to provide them with a suitable environment, good water quality, and a balanced diet to ensure a healthy and long life.