
To replace a hot water tank, you match a new storage unit to your household's needs, fuel type and venting, then remove the old tank, connect the new one and start it up carefully. Permits, gas and venting work, and relief valve piping are the steps where many replacements call for a pro. This guide walks through each stage and the questions to ask before you hire.
What it takes to replace a hot water tank
A replacement means removing the whole storage unit and connecting a new one to the same water, fuel or electrical, and venting lines, with any needed changes made along the way. It is rarely a repair of a single part. According to the U.S. Department of Energy, most storage (tank) water heaters last 10 to 15 years, so an older unit may be near the end of its service life even if it still makes hot water.
A replacement is also your chance to correct problems the old installation had, such as an undersized unit, a relief valve pipe that ends in the wrong place, or a gas unit in a garage mounted too low. Treat the swap as a check of the whole setup, not just the tank.
Check the old tank and the space before you buy
Before you shop, collect the facts about the current installation. The rating label on the existing tank shows the fuel type and capacity you need to compare replacements.
- Fuel type: natural gas, propane or electric. Matching fuel type keeps the work on existing connections.
- Capacity and age: note the gallon capacity and the manufacture date on the label.
- Space: measure height, width and depth, plus clearance around the unit and the path to the door, since a full tank is heavy.
- Connections: cold inlet, hot outlet, vent or flue, gas line or wiring, and shutoff valves.
- Relief valve and discharge pipe: see where the pipe ends and whether it drains to a safe open-air or floor-drain location.
- Condition: look for rust or water at the base, a drain pan, and signs of past leaks.
Size the new unit and match fuel, venting and location
Size the unit by your household's busiest hour, not by a monthly total. The federal test procedure gives you two useful measures. The First-Hour Rating (FHR) estimates the maximum volume of hot water a storage unit can supply within an hour, starting fully heated. The Uniform Energy Factor (UEF) measures overall efficiency, so use it to compare units of similar size.
List the fixtures that often run together, such as showers, the dishwasher and the laundry. Federal maximum flow rates help you estimate draw: showerheads are limited to 2.5 gallons per minute at 80 psi, and lavatory and kitchen faucets to 2.2 gallons per minute at 60 psi. Choose a unit whose FHR covers your peak hour with some margin.
Switching fuel type, such as electric to gas, adds new piping or wiring, and often new venting or a new circuit. That moves the job into permit territory and usually into the hands of a pro.
Gas venting and FVIR design
A gas tank needs a vent that carries combustion gases out of the home, sized and sloped for the new unit, with enough combustion air. Gas water heaters made after July 1, 2003 that are FVIR (flammable vapor ignition resistant) are designed to resist igniting flammable vapors, according to the CPSC.
Garages and earthquake bracing
If the heater sits in a garage, the International Residential Code (sections P2801.7 and M1307.3) requires the ignition source of appliances there to be at least 18 inches above the floor, as cited by the North Carolina State Fire Marshal. Some states have exceptions, and North Carolina has exempted electric water heaters since 2024, so the rule for your address is what counts. In California, Health and Safety Code section 19211 requires water heaters to be anchored or strapped, and sellers must certify to buyers that the unit is braced, according to Cal OES.
Remove the old tank step by step
Removal is mostly about shutting things off in the right order and draining the tank completely. Clear the path to the door before you start.
Safety first: If you smell gas at any point, leave the home and call the gas utility or 911 from outside. For electric units, switch off the breaker and confirm with a voltage tester that power is off at the heater before you touch any wires. Hot water scalds: according to the CPSC, third-degree burns can occur after about 2 seconds at 150°F, 6 seconds at 140°F, 30 seconds at 130°F, and 5 minutes at 120°F, so let the tank cool and wear gloves near hot fittings.
- For a gas unit, set the control to off or pilot, then close the gas supply valve at the heater. For an electric unit, switch off the breaker and verify with a tester.
- Close the cold water supply valve above the tank.
- Open a hot faucet nearby to release pressure and let air into the lines.
- Attach a hose to the drain valve at the bottom of the tank and run it to a floor drain or outdoors. Open the valve and let the tank empty fully, since sediment can slow the flow.
- Photograph the wiring, gas connector and vent before disconnecting anything, so you can match them later.
- Disconnect the water lines, the gas connector or wiring, and the vent or flue.
- Walk the empty tank out on a dolly. A full tank weighs far more, so drain it first.
Connect the new tank in the right order
Set the new unit level in its spot, clear of combustibles, and follow the clearance and installation instructions printed on the unit and in its manual. Then make the connections in this order.
- Install the temperature and pressure (T&P) relief valve if it is not already on the tank, and run its discharge pipe to a safe, open-air drain.
- Connect the cold supply to the inlet and the hot line to the outlet, using the fittings the manual specifies.
- For gas, connect the gas line and test each joint with soapy water. Bubbles mean a leak to fix before startup.
- Reconnect the vent so it rises from the unit at the slope the manual requires, without sags or gaps.
- For electric, connect the conductors to the circuit the nameplate calls for, with the correct wire size and breaker.
- Strap or anchor the tank if your area requires it.
The relief valve discharge pipe is where many replacements go wrong. As summarized by the International Code Council from the 2021 International Plumbing Code (section 504.6) and International Residential Code (section P2804.6.1), the pipe must:
- avoid a direct connection to the drainage system and end in an air gap in the same room
- be no smaller than the valve outlet, and not be trapped
- drain by gravity and end no more than 6 inches above the floor or a waste receptor
- have no threaded end, and no valves or tees
- be rated for 100 psi at 180°F
A temperature and pressure relief valve must never be capped or plugged.
Start up and check the new tank
- Open the cold supply valve. Then open a hot faucet nearby and run it until air clears and the flow is steady.
- Check every connection for drips, including the area around the T&P valve and its discharge pipe.
- For gas, turn on the supply and light the unit by the instructions printed on it. If the burner will not stay lit, stop and have a pro look at it.
- For electric, restore power and confirm the unit's indicator shows it is heating, as the manual describes.
- Set the thermostat to 120°F. According to the U.S. Department of Energy, that is a temperature considered safe for most of the population. People with a compromised immune system or chronic respiratory disease may want 140°F, so ask a doctor whether that applies to your household.
- Wait for the tank to heat, then test hot water at a faucet.
- Confirm carbon monoxide alarms are installed on every level of the home and outside sleeping areas, as the CPSC recommends, and test them.
Where DIY stops being wise
Draining the old tank, carrying it out and checking connections are tasks a handy homeowner can often handle. Other parts carry enough risk or code exposure that a pro is the better choice. Stop and hire help when:
- a gas line, gas connector or vent must be altered, extended or resized
- the job needs a new circuit, a larger breaker or wiring changes beyond reconnecting the existing circuit
- you are moving the tank to a garage, attic or closet, which may bring new clearance or ignition requirements
- you are unsure how the relief valve discharge pipe should run
- the water lines, shutoffs or floor under the tank show corrosion or damage
- you cannot arrange a permit and inspection that your area requires
Questions to ask a pro before you sign
Whether you hire out all or part of the job, get the answers in writing. Ask these questions about scope:
- Permits: Does this job need a plumbing permit, and who pulls it and schedules the inspection? Many jurisdictions require one to install or replace a water heater. The City of San Diego, for example, states that a plumbing permit is required for installation of a water heater, including replacements.
- Code upgrades: Which upgrades are included, such as relief valve discharge piping, a drain pan, garage ignition height, venting changes or seismic straps?
- Haul-away: Is removing and disposing of the old tank in the price?
- Warranty registration: Who registers the new unit, and what paperwork do you receive?
Get at least two written quotes that describe the same scope so you can compare them line by line. Check the contractor's license with the state licensing board where licensing applies, and confirm the permit plan before work starts.
Keep the new tank running well
Watch for leaks at the base, the connections and the relief valve. Keep the area around the tank clear, and keep flammable materials away from a gas unit. Because water heating is about 18% of a home's energy use, according to the U.S. Department of Energy, a steady temperature setting and a correctly sized system pay off over the life of the tank.
Frequently asked questions
How do I figure out what size hot water tank I need?
Start with your household's busiest hour and list the showers, dishwasher and laundry that might run together. Compare the First-Hour Rating of models, which the federal test procedure defines as the estimate of the maximum volume of hot water a storage unit can supply within an hour starting fully heated. Choose a unit whose rating covers that peak with some margin, then compare the Uniform Energy Factor between units of similar size.
Does replacing a water heater require a permit?
Often yes. Many jurisdictions require a plumbing permit to install or replace a water heater, and the City of San Diego states that one is required for installation, including replacements. Requirements vary by state and city, so confirm with your local building department before you start, and ask any installer who pulls the permit and schedules the inspection.
Why does the relief valve discharge pipe have so many rules?
The pipe carries hot water away from the building when the valve opens, so its rules protect people and the structure. It must end in an air gap in the same room, drain by gravity, and avoid traps, valves and threaded ends. These requirements come from the 2021 International Plumbing and Residential Codes as summarized by the International Code Council, and local versions may differ.
How long should a new storage tank last?
According to the U.S. Department of Energy, most storage (tank) water heaters last 10 to 15 years, while tankless units can last more than 20 years. Actual life depends on water quality, maintenance and installation. If your tank is near the end of that range and shows leaks or rust, planning a replacement is usually safer than waiting for a failure.
What temperature should I set a new hot water tank to?
According to the U.S. Department of Energy, 120°F is a temperature considered safe for most of the population, and the CPSC also recommends 120°F. People with a compromised immune system or chronic respiratory disease may want 140°F, so ask a doctor whether that applies to your household. Check the setting after installation with a faucet thermometer.