There’s no fixed number. A short outage of a few hours is often fine, especially if the tank is covered and the room stays reasonably warm. The answer depends on the room temperature, the tank’s size, whether it has a lid, and the species you keep.
Know the temperature limits
A veterinary school guide says tropical fish can usually tolerate the low 60s°F or high 50s°F for several hours. It recommends acting once the water drops to the mid-50s°F (about 13°C). Many tropical community fish begin to show stress as temperatures fall into the low 70s°F (around 21 to 22°C), so don’t wait for the lower number to start paying attention.
The first hour
Check the water temperature with a thermometer you can read easily. Don’t feed. Most healthy fish handle skipped meals well, and uneaten food adds waste. Whether fish can go a day without food is answered in can fish go a day without food, and for a short outage the answer is usually yes.
Wrap the sides of the tank with a blanket, sleeping bag, or towels, and keep the lid on or cover the top. If the filter stops, a battery-powered air pump can keep oxygen moving. Keep the tank away from drafts, and close off the room if you can.
If the outage goes on
Run a generator only if you can do it safely. Place it outdoors, away from windows and doors, and use it to power the heater and pump. Avoid indoor flame heaters, such as propane or kerosene units, because they can release carbon monoxide.
If you need to add water to warm the tank, add warm, dechlorinated water in small amounts rather than all at once.
Watch ammonia and oxygen
Stressed tanks can build up ammonia, so test for it if you can. A veterinary school guide suggests doing a 10 to 30 percent water change if ammonia rises above 1 ppm. If you need to act on a reading, how to lower ammonia in fish tank quickly covers the options.
Hot-weather outages
A summer outage is a different risk. The concern is heat and low oxygen rather than cold. Keep the tank out of direct sun, remove anything floating on the surface so gas can move across it, and gently stir the water. Warm water holds less oxygen, so watch the fish for gasping.
After the power comes back
Turn the heater back on, and check the temperature with your thermometer. Heaters and room temperature both take time to shift the water, so wait several hours before you adjust again. Then keep an eye on the fish for a day or two.
A short outage is usually manageable. A long one in a cold room is the one that calls for a plan.