Three constraints decide what can go in: the household's demand, the building's vent, and the fuel or circuit available.
Constraint one: demand
Count the showers that could run at once, the laundry, the dishwasher and any tub. That peak hour sets the first-hour rating.
Then consider the incoming water. In winter it is close to outdoor temperature, so a tank has to lift it further and delivers less usable hot water. A unit that was adequate in summer can feel small in January.
Constraint two: the vent
This is where mountain replacements usually get interesting. A closet built in the 1970s or 1980s may have a flue sized for one category of unit, with a termination that sits near the snow line.
Options are to match the existing vent category, to re-line or replace the vent, or to move to a direct-vent unit that takes air and exhaust through a wall.
Each changes the model list and the cost.
Constraint three: fuel and circuit
Gas needs an input rating the line can supply, and an altitude kit for 7,096 feet.
Electric needs a circuit that matches the elements, and a panel with a spare double-pole space. In an older cabin, the panel is often the limit.
Sizing the shape
A taller, narrower tank may fit a closet that a wide one will not. Measure the opening, the height to the ceiling, and the clearance to any combustible before ordering.
The installation itself
Pan and discharge route, strapping, seismic restraint where required, dielectric unions at dissimilar metals, and a vent that terminates above snow.
The county file
Unincorporated San Bernardino County, EZOP application, flat fee per water heater, inspection on completion.
Commissioning
Fill, purge, leak-check every joint, run a full cycle, and confirm the tap temperature and the relief valve before the old unit leaves.