In most instances, as long as needed. My hot water heater is gas, so as long as the pilot light stays on, I have hot water!!! Now, it’s possible that the pilot light might go out during the power outage & I wouldn’t be able to relight my heater until the power comes back on. So far (knock on wood),I haven’t had that problem!!