The decision to replace is usually a comparison between the next repair and the remaining life of the vessel. Both sides of that comparison can be reasoned about rather than guessed.
When the tank is finished
Water at the base with nothing wet above it, a seam that beads under pressure, or a rusted-through bottom all mean the vessel has failed. No part fixes that, and no sealant holds it. Everything else — element, thermostat, thermocouple, relief valve, dip tube — is a repair.
When repetition decides it
A unit that has needed two or three visits within a year is telling you the parts are no longer the only cost. Each visit has a price, and the next failure is already likely. That arithmetic usually favours replacement before the tank forces the issue.
Matching what exists
The new unit has to fit the flue, the gas line, the electrical circuit and the space. Same-type replacements are straightforward; a change of fuel or type is a different scope, because the venting and supply change with it.
The supply it will live on
Claremont's water comes from Golden State Water Company, about 60% local groundwater and the rest imported through Three Valleys. Groundwater-dominant supply means the new tank will collect sediment on its floor like the old one did, which is an argument for putting it on a sensible flush routine from the start rather than waiting for the rumble.
Removal and access
Draining, disconnecting and getting the old tank out is part of the job, and in a tight utility closet it is the slow part. The route is checked when the work is scoped.