Goldfish should be fed a balanced diet of high-quality pellets or flakes once or twice a day, avoiding overfeeding to prevent health issues.