Introduction
Replacing a water heater is one of the most common and rewarding DIY plumbing projects for homeowners. A typical storage-tank water heater lasts 8 to 12 years, and knowing how to replace it yourself can save hundreds of dollars in installation costs. This guide covers both electric and gas water heater replacement, including safety procedures, required tools, step-by-step installation instructions, and important code considerations.
Signs It Is Time to Replace Your Water Heater
Before diving into the replacement process, it is important to recognize when your water heater has reached the end of its service life:
| Sign | What to Look For | Action Needed |
|---|---|---|
| Age exceeds 10 years | Check manufacturer date on rating plate | Plan replacement soon |
| Rusty or discolored water | Brown or reddish water from hot taps only | Replace immediately (tank is corroding) |
| Water pooling around base | Visible moisture or standing water | Replace immediately (tank is leaking) |
| Rumbling or popping noises | Loud sounds during heating cycles | Replace; sediment has hardened inside tank |
| Inconsistent water temperature | Water not as hot as it used to be | Check elements (electric) or thermostat; may need replacement |
| Frequent repairs needed | Multiple service calls in past year | Replace; new unit is more cost-effective |
Choosing the Right Replacement Water Heater
Fuel Type
The first decision is whether to stick with your existing fuel type or convert. The most common options are electric, natural gas, propane, tankless, and heat pump water heaters. Each has distinct advantages in terms of operating cost, installation complexity, and longevity. Electric heaters are easier to install and require no venting but cost more to operate. Gas heaters are cheaper to run but require proper venting and gas line connections. Tankless units provide endless hot water with higher efficiency but higher upfront costs.
Size and Capacity
Water heater capacity is measured in gallons for storage tank units and in flow rate for tankless units. For a 3-4 person household, a 40-50 gallon tank or a 5-6 GPM tankless unit is typically sufficient. Larger households may require 80+ gallon tanks or multiple tankless units installed in parallel.
Tools and Materials Needed
- New water heater matched to existing connections
- Adjustable wrenches (two, 12-inch or larger)
- Pipe wrenches for gas connections
- Screwdrivers and tube cutter
- Propane torch and solder for copper connections
- Flexible water supply lines (braided stainless steel)
- Gas-rated thread sealant or Teflon tape
- Dielectric unions to prevent galvanic corrosion
- Drain pan and garden hose
- Safety glasses, gloves, and work light
Safety Precautions
Working with water heaters involves electricity, gas, and water. For electric heaters, turn off the breaker at the main panel and verify power is off using a non-contact voltage tester. For gas heaters, turn the gas valve to OFF and wait 5 minutes for residual gas to dissipate. Allow the water in the tank to cool before draining to avoid burns. Water heaters are heavy — use a dolly and get assistance when moving them.
Step-by-Step Water Heater Replacement
Step 1: Drain the Old Water Heater
Turn off the cold water supply valve. Open a hot water faucet somewhere in the house to relieve pressure. Attach a garden hose to the drain valve at the bottom and run it to a floor drain or outside. Open the drain valve and let the tank drain completely. Opening the T&P relief valve speeds up draining by allowing air into the tank.
Step 2: Disconnect the Old Water Heater
For electric heaters, remove the access panels and take a photo of the wiring before disconnecting. Disconnect the wire nuts and remove the electrical conduit. For gas heaters, disconnect the gas supply line using two pipe wrenches and disconnect the flue pipe from the draft diverter. For both types, disconnect the hot and cold water lines from the top of the tank.
Step 3: Remove the Old and Prepare the New
Move the old heater out of the way and clean the area. Position the new heater in place, install a drain pan if required by code, and attach the T&P relief valve discharge pipe routed to within 6 inches of the floor.
Step 4: Connect the Water Lines
Install dielectric unions or nipples on the tank connections. Connect flexible stainless steel supply lines hand-tight plus 1/4 turn with a wrench. Connect the other ends to the shutoff valves or existing plumbing.
Step 5: Connect Power or Gas
For electric heaters, connect the wires according to your photo — black to black, white to white, ground to ground screw. For gas heaters, apply gas-rated thread sealant and connect the gas supply line using two wrenches. Connect the flue pipe ensuring proper overlap.
Step 6: Fill, Test, and Light
Close the drain valve and open the cold water supply. Open a hot water faucet until water flows steadily without sputtering, then check all connections for leaks. For electric heaters, turn the breaker on and set the thermostat to 120F. For gas heaters, follow the manufacturer’s instructions to light the pilot, then set the thermostat to 120F.
Code Considerations and Maintenance
Most building codes require earthquake straps in seismic zones, expansion tanks on closed plumbing systems, and permits for water heater replacement. To maximize lifespan, flush the tank annually, test the T&P valve every six months, inspect the anode rod every 2-3 years, and set the thermostat to 120F. For more plumbing guidance, see our guides on replacing a shower valve, fixing a leaky toilet, water heater expansion tanks, and our guide on solar hot water systems for alternative approaches.
Understanding Water Heater Anatomy
Before replacing your water heater, understand its key components. The tank is typically glass-lined steel with a sacrificial anode rod that attracts corrosive elements. The dip tube delivers cold water to the bottom where heating is most efficient. The hot water outlet draws from the top where the hottest water collects. The gas burner or electric heating elements provide the heat source. The thermostat controls temperature, and the T&P relief valve releases water if pressure or temperature exceeds safe limits.
Gas vs. Electric: Detailed Comparison
Electric water heaters are simpler to install. They consist of upper and lower heating elements that operate independently. The upper element heats the top third first, then the lower element kicks in. Electric heaters typically cost $400-$800 for the unit but have higher annual operating costs of $500-$700. Gas water heaters use a burner at the bottom and a flue pipe through the center to exhaust combustion gases. They recover faster – a gas unit can heat a full tank in about 30 minutes versus 60-90 minutes for electric. Gas units cost $500-$1,200 but have lower annual costs of $300-$500.
Converting Fuel Types
Converting from electric to gas requires a gas supply line, proper venting, and condensate drain. Converting from gas to electric requires capping the gas line, removing venting, and running a 240V/30A circuit. Both conversions typically need permits and professional assistance. Evaluate the payback period carefully.
Safety Systems and Emergency Shutdown
Modern water heaters have multiple safety features. The T&P relief valve opens at 210F or 150 psi. Test it every six months. The gas control valve shuts off gas if the pilot goes out. Electronic ignition eliminates standing pilots. For a leaking tank, shut off the cold water supply, then turn off power (electric) or gas (gas), and open a hot water faucet to relieve pressure. If you smell gas, evacuate and call the gas company from outside.
Required Permits and Inspections
Most municipalities require a permit for water heater replacement. The permit fee typically ranges from $50 to $200 and ensures the installation meets local building codes. An inspector may visit to verify proper gas connections, venting, electrical wiring, seismic strapping, and T&P valve discharge piping. Failing to obtain a permit can result in fines and complications when selling your home. Check with your local building department before starting work.
Common Installation Mistakes
Avoid these frequent errors: installing without earthquake straps in seismic zones, failing to install a drain pan above finished spaces, using inadequate gas line size for higher-BTU tankless units, not testing the T&P valve after installation, failing to properly support expansion tank on the cold water line, and backfilling sediment into the tank by opening the main water supply too quickly. Always flush the new tank through a nearby faucet for several minutes before using hot water to clear any debris from manufacturing.
When to Call a Professional
While DIY replacement is feasible, certain situations warrant a professional: gas line modifications requiring new pipe from the meter, electrical service upgrades, tankless units requiring complex venting configurations, heat pump water heaters needing condensate management, and installations in tight spaces where moving the old unit out is hazardous. A licensed plumber typically charges $200-$500 for labor on a straightforward replacement.
