In a post-war house, a short hot-water supply is usually one of four things: sediment, a dip tube, a failed lower element or a demand change. The way the problem appeared tells you which.
Gradual decline
The supply gets a little shorter each year. That is sediment taking up storage and slowing recovery, or a heating surface that is scaled.
A tank that has never been flushed is the usual suspect.
Sudden collapse
Overnight, the hot water barely lasts a shower. That points to a broken dip tube or a failed lower element.
The dip tube is inexpensive and the symptom is clear, which makes it worth checking early.
Only one tap is affected
A single bathroom or fixture that runs cold while the rest of the house is fine points to a mixing valve, a crossover or a local branch, not the tank.
Demand changes
A new bathroom, a larger household or a switch to a high-flow showerhead can exceed what the tank was sized for. The tank did not change; the demand did.
The assessment
Storage, recovery, the dip tube and the fixtures are checked before a replacement is proposed. The tank's age and the water's effect on it are part of that picture.
The options
Where storage is genuinely the limit, a larger tank may be right, provided it fits the shallow garage. Where the cause is a part or sediment, the repair is smaller and the tank stays.
The honest answer
Sometimes the cheapest fix is operational — staggering showers or fitting a lower-flow head. That is worth saying when the tests show the tank is sound.