One question splits the fault: is this gas or electric, and is the fuel arriving?
Gas
Pilot out, thermocouple failing when cool, gas control, or a flue blocked by dust. Check the pilot, then the vent, then the control.
Electric
Breaker, then supply at the element, then the element itself, then the thermostat. A grounded element trips the breaker and is the most common electrical failure.
The scale trap
At roughly 235 mg/L hardness, a tank can be electrically sound and still useless: the layer on the floor and the element keeps heat from the water.
Symptoms pointing at scale rather than failure: hot water that was fine last year but now runs out faster.
Sorting it
| Pattern | Likely |
|---|---|
| Nothing at all | Fuel, circuit, upper control |
| Short then cold | Lower element |
| Slowly worse over months | Scale |
| Trips on reset | Grounded element |
Before a replacement
Prove the diagnosis. Replacing a working tank because the pilot was out is an expensive way to fix a thermocouple.
What to have ready
Fuel, breaker or pilot state, pattern, age.