Replacement is a decision, not just a purchase. The useful question is not which unit is best in general but which unit fits this property, this demand and this location, and what has to change to install it correctly.
The signals that point to replacement
A leak from the tank shell is the clearest one: the lining has failed and no part replacement fixes it. Rust-coloured hot water on a unit with a spent anode rod, a tank that rumbles within weeks of a flush, and repeated element or gas valve failures on a unit past its expected service all point the same way.
Manufacturer-typical life is eight to twelve years for a tank and fifteen to twenty for a tankless unit, which is a planning horizon rather than a deadline. A well-maintained tank at year ten is not automatically due.
Choosing the replacement
Another storage tank keeps the installation simple and the cost lower, and it is the right answer where the venting and space suit a tank and demand has not changed.
A tankless unit removes standby losses and frees floor space, but needs gas capacity, venting and often a condensate route. In a property with older gas piping, the supply may need work before the unit can be considered.
A larger tank or a second unit is worth considering where demand has grown: an added bathroom, a converted garage, an ADU, or a rental portion of the house.
What the work includes
Draining and disconnecting the old unit, removing it, setting the new one, connecting water and fuel, venting to code, bracing the tank against seismic movement, testing, and arranging the permit inspection that California requires for the installation.
Old shut-off valves, corroded nipples and undersized gas lines are the things that turn a swap into a longer day. They are also the reason a replacement quote is more useful after someone has looked at the connections than over the phone.
Timing it sensibly
A unit that is still working but old is best replaced on a planned day, with the permit arranged and the old unit's removal thought through. Waiting for the leak means the same job happens with water on the floor and no hot water in the house.
If the tank has already failed, the emergency page covers shutting it down, and the installation page covers what a new installation involves.