Hot water that runs out sooner than it used to has one of two likely causes. Either the tank is too small for the way the house now uses water, or the tank is losing capacity or heat. The checks below separate the two before anyone quotes a replacement.
Time a shower by itself
Run a shower alone at your usual setting and note how long the water stays hot. Then run the same shower while the dishwasher or the washing machine is drawing hot water. If the hot water holds when the shower runs alone but fails when a second draw starts, the tank is being asked for more than it can hold at once. That points to demand, not decline.
Look at what changed in the house
Note any new fixtures, a higher flow showerhead, a larger tub, a new occupant, or a new appliance on the hot line. Any of these can shorten the hot supply without the tank being worse. Write each change down next to the first time you noticed the shortfall.
Look for signs of wear inside the tank
Hot water that turns lukewarm within minutes, a rumbling or popping sound while the heater runs, or rusty water at the hot tap can point to sediment that has settled at the bottom of the tank. Compare the tank label with the install year you have on record. Age is a planning input, so a tank that is well along in its service life deserves a closer look even when the symptoms are mild.
Check the outlet temperature
Use a thermometer at a faucet near the heater and again at a faucet at the far end of the house. Note whether the temperature drops quickly during a long draw. A steady temperature that simply ends sooner suggests the tank is small for the demand. A temperature that sags even on a short draw points to the heater or the mixing valve.
Questions to ask before you buy anything
Is the tank sized to the household's busiest hour? What is the recovery rate? Is the heater still producing hot water at its rated temperature? Is the mixing valve the limit? Ask what a repair would buy you in planning years compared with a replacement, and write the answers down before you agree to either one.