How to Install a Hot Water Heater

When your water heater begins to leak, you have to install a new one fast.

When your water heater begins to leak, you have to replace it fast. We'll show you how to install your own gas water heater in less than a day. Even if you don't need a new water heater right now, chances are you will within the next few years. Water heaters tend to last seven to 15 years. If yours is getting old, this article is also for you. Replacing a water heater isn't difficult if you're handy with basic tools and have a bit of experience soldering copper.

By the DIY experts of The Family Handyman Magazine


One day




$100 - $500

Out with the old, in with the new

We're replacing a natural gas water heater in our demonstration. The steps for replacing a propane water heater are exactly the same, and those for an electric water heater are similar.

In any case, play it safe. Call your local department of inspections and ask if you need a permit. And make sure a plumbing or electrical inspector checks your work.

Your water heater is dead when the tank leaks. The telltale sign that your water heater needs replacing is a slow drip underneath, usually showing up as a trail of rusty water. This means that the steel tank has rusted through and can't be fixed. Other symptoms, such as insufficient or no hot water, usually signal other problems that you can fix.

If you spot a drip, plan to replace the water heater right away. Don't wait until the leak gets bad. Most residential water heaters cost $150 to $400 for either gas or electric, plus $200 to $450 if you have a plumber install it. More expensive gas water heaters with special venting systems also are available. But they're more difficult to install, and we won't deal with them here.

New water heaters come with installation instructions and lots of warnings to make sure you handle the gas, electrical and other connections safely. In this article, we'll supplement those basics with techniques and “real world” advice from several professional plumbers.

But take heed: You'll be working with natural gas, propane or electricity, all of which are hazardous. If you don't feel confident, call in a pro to take care of the tough parts. And have your work inspected when it's done.

Plumbing codes vary by region. Describe your planned installation to your local plumbing inspector, including the types of materials you intend to use for your new connections. Better to get guidance first so you don't have to change things later!

Figure A: Gas Water Heater Details

To print out this image, see the Additional Info at the end of this article.

Gas water heater details
Figure B: Connections for Steel and Plastic Pipe

Many homes have galvanized steel or plastic (CPVC) water supply pipes. Galvanized steel pipes are difficult to replace. We recommend that you remove the pipes back to the nearest tee, screw on a plastic-lined galvanized nipple and complete the connections with copper as shown in our photo series.

Because of potential heat buildup, keep plastic pipe at least 6 in. away from the vent and tank. Make a transition from plastic to copper with a special coupling that's available wherever CPVC is sold.

Flexible copper connectors are easier to install than solid copper, especially when the existing pipes and the tank inlets don't line up. But not all local codes allow them. If yours does, take special care not to pinch or kink them. You could get a leak.

Connections for steel and plastic pipe

Step 1: Shut off the gas and water

Step 2: Drain the water in the tank

Step 3: Cut off the water lines

Step 4: Attach the relief valve

Step 5: Attach pipe assemblies

Step 6: Attach the water lines

Step 7: Reattach the vent

Step 8: Use two wrenches to attach the gas line

Step 9: Check for backdrafting

Most water heaters rely on a natural draft to draw combustion fumes up the flue. If the draft doesn't work, those fumes, possibly containing deadly carbon monoxide, will spill out into your home. After completing your installation, check the draft.

Close all exterior doors and windows and turn on your kitchen and bathroom exhaust fans. Then open a nearby hot water faucet until you hear the gas burner in the water heater ignite. After a minute, move a smoking match around the edge of the draft hood (Photo 7) on top of the heater. The smoke should be drawn up the vent pipe. If the smoke doesn't draw, the fumes from the burner aren't venting. Turn off the gas to the water heater and call a licensed plumber to correct the problem.

Step 10: Check for leaks

Follow the how-to advice that accompanies the photos to make sure the connections are tight.

Step 11: Light the pilot light

Light the pilot light in the new water heater and adjust the temperature setting.

Installation Details for Electric Water Heaters

First turn off the power to the water heater at your main electrical panel. Then follow the same draining procedures as for a gas water heater.

When the water heater is drained, disconnect the electrical wires from the screw terminals under the access panel, which is usually located near the top. (If you don't have electrical experience, hire an electrician to handle all the electrical wiring.)

Follow the manufacturer's instructions for wiring the new water heater. If the new water heater is shorter and the old wires won't reach, surface-mount a 4-in. x 4-in. x 1-1/2 in. metal electrical box on the wall or ceiling nearby, run the old wires to the box, and then run a new section of armored cable or electrical conduit to the water heater. Check the instructions and make sure the rating of the old fuse or circuit breaker is high enough to handle the new water heater. In addition, the circuit should have a shutoff switch within sight of the water heater.

Call your local electrical inspector before you begin the job. You'll probably need a permit. Then, when you're finished, have the electrical inspector check your work.

CAUTION: Aluminum wiring requires special handling. If you have aluminum wiring, call in a licensed pro who's certified to work with it. This wiring is dull gray, not the dull orange that's characteristic of copper.

How to install an electric water heater

Video: How to Dispose of a Water Heater

Jeff Gorton, an editor at The Family Handyman, will show you how to remove and dispose of a water heater in our video tutorial. He will also show you the easy way to carry a water heater out of your home, even if you are working alone.

These tips will make your work go faster and easier:

  • Measure the height of your old water heater and buy a new one the same height so you don't have to change the length of the water, gas or electrical lines.
  • The drain valve (Photo 2) on old water heaters often clogs up. If the water drains slowly, be patient. CAUTION: It's scalding hot!
    TIP: Turn your water heater off two hours in advance to allow the water to cool.
  • Water heaters weigh about 150 lbs. You'll need a strong helper or a dolly when you move the old one out and wheel the new one in. Garbage services typically charge about $25 to take the old one.
  • Before you start, buy the tools and materials shown here at a plumbing supply or hardware store or a home center. Check the sizes of the water supply pipes (most will be 3/4 in. like the ones in our photos) and buy the right-size fittings. With everything on hand, you'll need four to six hours to complete the job (assuming no big hitches!).
  • The temperature and pressure relief valve is a safety device that limits tank pressure and keeps it from exploding (Photo 4). A new one must be included with every installation. For the valve to work properly, the discharge pipe must be kept free of obstructions (Fig. A).
  • In regions with highly mineralized water, or where required by local codes, use 3/4-in. plastic-lined nipples (about $2 each; Photo 5 and Fig. A) for joining different metals, usually copper tubing to the steel tank. This slows corrosion.
  • When connecting the water lines, solder the copper fittings before you screw them to the tank so you don't heat the tank itself while soldering (Photo 5).
  • Use “slip” couplings to connect the old and new lines (Photo 6). Unlike regular couplings, they don't have an internal stop. You can slide them on, align the copper tubing, then slide them back and center them over the joint.
  • The new inlets and outlets on the tank don't always line up with the old supply lines. Solder in a pair of 45-degree fittings to offset each line if necessary. Also replace the old shutoff valve with a new ball valve while you're at it (Photo 6). Vent diameters are sized according to the heat output of the water heater. You might have to increase or decrease the vent size to ensure the best draft.
    CAUTION: If you're unsure if your chimney has a liner, ask your plumbing inspector.
  • Make gas connections with solid steel pipe (Photo 8) or soft copper with flare fittings (Fig. A). Both are more reliable and less expensive than flexible stainless steel connectors, which are not always permitted. Use rigid copper rather than flexible copper water supply lines for the same reasons.
  • If you locate your water heater where leakage could cause damage to the floor or other parts of the house, set a pan of an approved size under it (metal for gas water heaters). The pan must have a drain tube that leads to a house drain or other approved location (outdoors where permitted). The temperature and pressure relief valve discharge tube also must lead to a drain if leakage would damage the floors. If routing is difficult, discuss options with your local plumbing inspector.
  • If you live in an earthquake-prone region, strap the water heater to the wall with special straps (Fig. A; available at plumbing stores and home centers). Your plumbing inspector will tell you if they're required.
  • Set the new water temperature setting to no more than 120 degrees F. to avoid scalding.

Additional Information

Back to Top

Required Tools for this Project

Have the necessary tools for this DIY project lined up before you start—you’ll save time and frustration.

  • Tape measure
  • 4-in-1 screwdriver
  • Adjustable wrench
  • Electrical tape
  • Voltage tester
  • Pipe wrench
  • Plumbers tape
  • Safety glasses
  • Soldering torch
  • Tube cutter
  • Wire stripper/cutter

Required Materials for this Project

Avoid last-minute shopping trips by having all your materials ready ahead of time. Here's a list.

  • Water and gas piping
  • Fittings
  • Solder
  • Pressure relief valve
  • Discharge pipe
  • Pipe thread compound
  • Venting pipe and connectors

Similar Projects

Popular How-To Videos