An installation goes wrong in two directions: the unit is the wrong size for the household, or the house cannot support the unit that was chosen. Both are decided before anything is ordered.
Match the tank to the busiest half hour
Peak demand, not average use, decides a storage tank. Two showers and a dishwasher running together is a different requirement from the same draws spread across an evening. A tank sized for the average recovers constantly and still runs cold at the wrong moment; one sized for a peak it never reaches pays to keep water hot around the clock.
For tankless, the number that matters is the flow rate at the coldest incoming water, not the tank volume — and that figure has to cover the fixtures likely to run at once.
Venting decides whether it is a swap or a project
A gas storage tank needs a flue with the correct clearance and rise. A tankless unit needs its own venting arrangement, frequently a different material and diameter. When the existing flue was built for the unit being removed, a like-for-like replacement reuses it and a change of type does not. This is the single largest cost difference between the two paths, and it is visible before the work starts.
Gas and electrical capacity
Tankless units fire hard while drawing, so the existing gas line may not carry what the unit wants; that is work at the supply end rather than at the heater. Electric tanks need a circuit and breaker matched to the element rating, and a larger element on the old circuit is not a like-for-like change.
Strapping, clearances and drainage
California installations require water heaters to be strapped, and a replacement restores it. The unit also needs its clearance from combustible surfaces and stored goods, and a relief discharge that goes somewhere safe. A pan matters wherever a leak would otherwise travel into framing or a neighbouring room.
What a swap reuses
Replacing like with like keeps the venting, the gas line, the circuit and the water connections. Only the unit, its fittings and its strapping change. That is why the same-size replacement is the simpler job and the one that is easiest to scope from a description.
No price or timeframe is quoted here: the unit, the venting and the space decide both.