The main reasons why goldfish may die in hot weather include heatstroke, water quality issues, large temperature differences, and overfeeding, etc.

Heatstroke: Goldfish have limited tolerance for high temperatures. Excessively high water temperatures can cause goldfish to suffer from heatstroke and even die. The maximum water temperature that goldfish can tolerate is approximately 38°C. If the water temperature exceeds this level, goldfish may exhibit symptoms of heatstroke, and in severe cases, it can lead to death.
Water Quality Issues: During hot weather, the water quality deteriorates easily. Microorganisms multiply rapidly, potentially causing water pollution. If the water is not changed in a timely manner or the fish tank is not cleaned, goldfish may die due to water quality problems.
Large Temperature Differences: Goldfish have poor thermoregulatory abilities and cannot adapt to rapid temperature changes. For example, adding ice - cold water to cool down the goldfish may cause its death. When changing the water, it is safe to keep the temperature difference within 5°C for larger fish and within 3°C for smaller fish.
Overfeeding: As the water temperature rises in summer, the appetite of goldfish decreases. If overfed, goldfish may die from indigestion.
Preventive Measures:
Provide Shade and Increase Water Level: In summer, providing shade for the fish tank and appropriately increasing the water level can effectively prevent the water temperature from getting too high.
Change Water and Clean the Fish Tank in a Timely Manner: Keep the water quality clean, change the water regularly, and clean the dirt in the fish tank to prevent water pollution.
Control the Amount of Feeding: Reduce the amount of feeding in summer to avoid the death of goldfish due to indigestion.
Monitor Water Temperature: Test the water temperature regularly to ensure it does not exceed the tolerance range of goldfish.