Replacing a tank water heater is a task many homeowners can handle, but it requires careful planning, the right tools, and strict attention to safety. A failed water heater can cause flooding, scalding, or gas leaks if mishandled. This guide expands on the essential steps to safely drain and replace your tank water heater, covering preparation, execution, and final checks to ensure a reliable installation. Whether you're upgrading to a more efficient model or dealing with an old, leaking unit, follow these procedures to protect your home and plumbing system.

Understanding Your Water Heater: Tank vs. Tankless

Before starting, it helps to know what you're working with. Conventional tank water heaters store 30 to 80 gallons of hot water and operate on either electricity or natural gas. They are simpler to replace than tankless models, but the weight and potential for residual heat require caution. If you're considering switching to a tankless system, note that the installation is different and often requires professional help due to venting and gas line upgrades. For this guide, we focus on standard tank replacements.

Tools and Materials Needed

Having everything on hand before you start avoids mid-project trips to the hardware store. Below is the complete list:

  • Adjustable wrench (2 recommended)
  • Pipe wrench (for stubborn fittings)
  • Garden hose (at least 50 feet, rated for hot water if possible)
  • Bucket (5-gallon for residual water)
  • New water heater (check local codes for energy factor requirements)
  • Plumber's tape (PTFE tape, 1/2 inch wide)
  • Screwdriver set (flathead and Phillips)
  • Rubber gloves and safety goggles
  • Drain pan (if not already present under new unit)
  • Pipe dope (optional, for additional seal on gas fittings)
  • Dielectric unions (if not included with heater)
  • Flexible supply lines (braided stainless steel recommended)
  • Furnace or transport dolly (for moving heavy tanks)
  • Drop cloths or towels (to catch spills)

Safety Precautions

Never work on a water heater without disconnecting its power source. For electric units, switch off the dedicated breaker at the main panel and lock it out if possible. For gas units, turn the gas control valve to "Off" and also close the manual shutoff valve on the gas line. Wait at least an hour for the water inside to cool to a safe temperature—residual water can be hot enough to cause burns. Wear rubber gloves and safety goggles to protect against scalding water and sediment. Ensure adequate ventilation if you are working near a gas line. If you smell gas at any point, evacuate the area and call your utility company immediately. For comprehensive safety standards, refer to OSHA guidelines for plumbing work.

Step-by-Step: Preparation

Before draining the tank, take a few preparatory steps to make the job smoother.

Turn Off Water Supply

Locate the cold water supply valve above the heater (typically a brass or plastic knob). Turn it clockwise to shut off the water. Open a hot water faucet somewhere in your house (such as the kitchen sink) to relieve pressure and allow air into the system when you drain.

Shut Off Power or Gas

  • Electric heater: Go to your electrical panel and switch off the circuit breaker marked "Water Heater." Verify power is off by testing with a non-contact voltage tester at the heater's junction box.
  • Gas heater: Set the gas control valve to "Pilot" first (if applicable), then to "Off." Turn the manual gas shutoff valve (usually a lever) perpendicular to the pipe. Wait for the pilot light to go out completely—this may take a few minutes.

Prepare the Drain Area

Connect a garden hose to the drain valve at the bottom of the tank. Run the hose to a floor drain, basement sump pit, or outside location that can handle 40–50 gallons of hot water. Ensure the hose is securely attached and that the other end is lower than the tank to allow gravity draining. Place a bucket under the drain valve as a backup; some valves leak a little when opened.

Step-by-Step: Draining the Water Heater

Draining sounds simple, but sediment can complicate the process. Follow these steps carefully.

Open the Drain Valve

Using a flathead screwdriver or a wrench (depending on valve type), turn the drain valve counterclockwise. Water should start flowing through the hose. If it drips slowly, the valve may be clogged. Never force a stuck valve— instead, try tapping it gently with a wrench handle or use a small screwdriver to clear debris. If the valve still won't open, you may need to remove the valve core and drain through the opening, but this is more advanced.

Vent the Tank

To speed up draining, open a hot water faucet upstairs or in the highest point of your home. This allows air to enter the tank, preventing a vacuum. The flow from the drain hose should increase. Let the tank drain completely—this can take 20 to 40 minutes depending on tank size and sediment buildup.

Dealing with Sediment

Older tanks accumulate calcium carbonate and other minerals at the bottom. This sediment can block the drain valve. If flow stops before the tank is empty, you may need to flush sediment out. Shut the drain valve, briefly turn on the cold water supply (just a few seconds) to stir up sediment, then drain again. Repeat until water runs clear. Wear gloves—the sediment can be gritty and hot.

Step-by-Step: Removing the Old Water Heater

Once the tank is empty, disconnect and remove the old unit.

Disconnect Pipes

Using two adjustable wrenches, loosen the nuts connecting the cold water inlet and hot water outlet pipes. If the fittings are corroded, apply penetrating oil and wait 10 minutes. Be prepared for residual water to spill—even after draining, a few cups may remain at the bottom. For dielectric unions, unscrew the union nut. Avoid twisting the pipes themselves.

Disconnect Wiring or Gas Line

  • Electric: Remove the access panel on the side of the heater. Disconnect the wiring (typically black, white, and green or copper ground). Note the connections or take a photo. Some local codes require a disconnect switch within sight of the unit.
  • Gas: Use a pipe wrench to disconnect the gas supply line at the union or flex connector. Apply pipe dope or PTFE tape to the threads when reinstalling. Cap the open gas line temporarily to prevent debris from entering.

Remove the Old Heater

Check if the heater is secured with straps or brackets. Remove them. With assistance (or using a dolly), tilt the heater slightly and lift it out of the drain pan (if present). Old water heaters are heavy—even emptied, a 50-gallon tank weighs around 150 pounds. Use proper lifting technique: bend at the knees, keep your back straight. Move the old unit to a garage or driveway for disposal.

Disposal regulations vary. Check your local waste management authority. Many areas require removal of the pressure relief valve and draining completely before curbside pickup. Some scrap metal recyclers accept water heaters; just remove any plastic parts first. For safety tips on handling heavy appliances, see NIOSH lifting guidelines.

Step-by-Step: Installing the New Water Heater

Now set the new unit in place and make all connections.

Position the New Heater

Place the new water heater in the same location. Ensure it is level (use a level on top of the tank)—shim with plastic shims if needed. Install a drain pan under the unit if not already present. Connect a drain line from the pan to a nearby floor drain or outside, per local plumbing code. Most codes require a drain pan with a 3/4-inch pipe directed to a safe discharge point.

Install Temperature and Pressure Relief Valve

New heaters come with a T&P valve; if not pre-installed, attach it to the designated opening on the side or top. Wrap PTFE tape on the threads and tighten securely. Run a discharge pipe (copper or CPVC) from the valve to within 6 inches of the floor; this prevents scalding if the valve opens.

Connect Water Lines

Attach the cold water inlet and hot water outlet. Use dielectric unions between the steel tank nipples and copper or galvanized pipes to prevent corrosion. Alternatively, use braided stainless steel flex lines with dielectric ends. Tighten nuts by hand then snug with a wrench—do not overtighten. Apply PTFE tape to all threaded connections.

Reconnect Power or Gas

  • Electric: Reconnect wiring exactly as before (black to black, white to white, ground to ground). Replace the access panel and screws. Turn on the breaker only after the tank is full of water (see next step).
  • Gas: Connect the gas line with pipe compound on the threads. Tighten the union. Open the manual shutoff valve. Check for leaks with a soap-and-water solution (bubbles indicate a leak). If bubbles appear, tighten the connection and retest. Do not light the pilot until after filling the tank.

Fill the Tank

Open the cold water supply valve fully. Open a hot water faucet in your home (above the heater) to let air escape. Keep the faucet open until water flows steadily with no sputtering—this means all air is out of the tank and pipes. Then close the faucet. For gas heaters, also set the gas valve to "On" and follow lighting instructions for the pilot. For electric heaters, do not turn on power until the tank is full; turning on power to a dry tank will burn out the heating elements.

Step-by-Step: Final Checks and Startup

After filling, inspect every connection for leaks.

Leak Inspection

Check all pipe joints, flex hoses, and the T&P valve discharge pipe. Use a dry paper towel to feel for moisture. Tighten any leaking nuts—a quarter turn is usually enough. If a leak persists at a threaded joint, disassemble, reapply tape or dope, and reassemble. Also check the drain valve at the bottom; it should be closed tightly. For gas units, re-check all gas fittings with soap solution.

Restore Power

  • Electric: Switch the breaker back on. Listen for the sound of the elements heating—it may take 30–60 minutes for full recovery. Check the circuit breaker doesn't trip; if it does, there may be a short in the wiring or a defective element.
  • Gas: Turn the gas control valve to "On" and follow the lighting instructions. Watch for the burner to ignite. Verify the flame is blue and steady; a yellow or flickering flame indicates incomplete combustion. Adjust the air shutter if necessary, or call a professional.

Monitor for the First Few Hours

After startup, run a few gallons of hot water from a faucet to confirm the heater is working. Recheck all plumbing and gas connections for leaks after the water has heated—thermal expansion can cause small drips to appear. Also listen for any banging or rumbling sounds, which can indicate air trapped in the tank or sediment in a new unit. If noises persist, bleed air from the system by briefly opening a hot water faucet.

When to Call a Professional

While many homeowners can replace a tank water heater, certain situations warrant professional help:

  • Gas line modifications or upgrading pipe size
  • Switching from electric to gas (or vice versa) — requires venting and gas supply changes
  • Unsure about local code requirements (permits, seismic strapping, pressure reducing valves)
  • The existing installation has unusual piping or tight spaces
  • You encounter corroded or stuck connections that risk damaging pipes
  • You are uncomfortable working with gas or electricity

For complex plumbing work, refer to the Uniform Plumbing Code (UPC) as a benchmark for safe installations. The Department of Energy also provides guidance on water heater efficiency and installation that may help you choose the right unit.

Maintenance Tips for Longevity

Once your new water heater is installed, extend its life with routine care:

  • Annual draining: Flush a few gallons from the tank every year to remove sediment buildup. This improves efficiency and prevents premature failure.
  • Test the T&P valve: Lift the lever on the valve annually (carefully—water is hot) to ensure it opens and resets properly.
  • Check the anode rod: Inspect the sacrificial anode rod every 2–3 years; replace it if it's less than 1/2 inch thick or heavily corroded. This prevents rust inside the tank.
  • Insulate pipes: Add foam insulation to hot water pipes to reduce heat loss and save energy.
  • Set temperature: Keep the thermostat at 120°F (49°C) to balance safety and energy savings; higher temperatures increase scalding risk and sediment buildup.

Following these steps will help you safely replace your tank water heater and ensure reliable hot water for years to come. Always prioritize safety and local code compliance, and don't hesitate to call a licensed plumber if you encounter unexpected complications.