A failing water heater can disrupt your entire household routine, leaving you with cold showers and potential water damage. Most traditional tank units last between 8 and 12 years before efficiency drops or leaks develop. Learning how to replace a water heater gives you control over costs, timing, and the quality of installation.
This guide covers every stage of a tank-style water heater replacement, from selecting the right unit to final testing. You will learn how to shut off utilities, drain the old tank, install the new heater, and verify everything works correctly. Some steps involve gas or electrical work, so consult a licensed professional if you feel uncertain at any point.
Choose the Right Replacement Water Heater

Selecting the correct unit before removal prevents delays and ensures your new heater meets household demands.
Compare Fuel Types and Efficiency
Three main options exist for residential water heaters. Electric tank models install easily where no gas line is present but cost more to operate monthly. Gas water heaters heat water faster and offer lower running costs but require proper venting and a gas supply line. Tankless units save floor space and deliver endless hot water, though they carry higher upfront costs and may need upgraded electrical or gas service.
Size the Tank to Your Household

Capacity should match your household size and peak usage patterns. One to two people typically need a 30 to 40 gallon tank. Two to three people require 40 to 50 gallons. Three to four people benefit from 50 to 60 gallons. Households with five or more occupants should consider 60+ gallons or a tankless system. Always check the First Hour Rating on the Energy Guide label to confirm the heater can handle your busiest hot water moments.
Measure the Installation Space
Measure height, width, and depth of the existing location before purchasing. Note required clearances for combustion air, service access, venting runs, and electrical panel proximity. Gas units need floor vents or open space for combustion air, while electric units require access to a 240-volt circuit.
Shut Off Water, Power, and Gas Safely
Cutting all utilities before starting protects you from shock, fire, and flooding hazards.
Turn Off the Water Supply
Locate the cold water shutoff valve on top or beside the water heater and turn it clockwise until fully closed. If no dedicated valve exists, shut off the main water supply to the house. Open a hot water faucet at the highest point in your home to relieve pressure and prevent vacuum lock during draining.
Cut Power to Electric Heaters
Go to your electrical panel and switch off the double-pole breaker labeled for the water heater, usually rated between 30 and 50 amps. Confirm power is off by testing the unit with a voltage tester before touching any wires.
Shut Off Gas to Gas Heaters
Find the gas shutoff valve on the supply line near the heater and rotate the handle 90 degrees so it sits perpendicular to the pipe. Turn the control knob on the heater to the pilot or off position as well.
Drain the Old Water Heater Completely
Draining removes water weight and prevents spills during disconnection.
Attach a Drain Hose
Connect a standard garden hose to the drain valve at the base of the tank. Run the other end to a floor drain, sump pit, or outdoor area away from foundations and landscaping. Open the drain valve and let gravity empty the tank. If flow stops, check that a hot water faucet remains open to allow air into the system.
Flush Sediment Buildup
For tanks with heavy sediment, open and close the drain valve several times to dislodge debris. Always wear gloves and eye protection, as residual water may still be hot.
Disconnect Water, Gas, and Electrical Lines
Careful disconnection prevents damage to existing plumbing and wiring.
Remove Water Line Connections
Use an adjustable wrench to loosen the cold water inlet and hot water outlet fittings at the top of the tank. If pipes are soldered in place, cut them with a tubing cutter while leaving enough length for reconnection to the new unit.
Disconnect Gas Supply Lines
On gas units, use a wrench to disconnect the gas supply line from the control valve. Immediately cap or plug the open gas line to prevent leaks. Inspect the flexible connector and replace it if you notice cracks or corrosion.
Detach Electrical Wiring
On electric units, remove the access panel and disconnect wires from the thermostat terminals. Photograph the wire positions before removal so you can match connections on the new heater. Cap each wire with electrical tape and tuck them safely aside.
Remove the Vent Flue on Gas Units
Gas water heaters connect to a flue vent that runs from the tank top to a chimney or exterior wall. Remove sheet metal screws or clamps and work from the bottom up to avoid damaging surrounding walls. Discard old venting if it shows corrosion or damage, since new heaters often require updated components.
Remove the Old Water Heater from the Space
Even drained, water heaters weigh significantly and require careful handling.
Move the Tank Safely
Tilt the unit slightly and slide a dolly underneath, securing it with straps. Roll the heater out slowly and protect floors with cardboard or drop cloths to prevent scratches.
Inspect the Installation Area
Before placing the new unit, check the floor for rot or damage and replace compromised sections. Confirm a drain pan and overflow pipe are present if the heater sits in a basement or upstairs location. Verify combustion air sources remain unobstructed and move any flammable materials away from the installation zone.
Position and Connect the New Water Heater
Proper placement and connections ensure safe, efficient operation.
Set the Heater on a Level Surface
Place the new unit where the old one stood, using a carpenter’s level to confirm side-to-side and front-to-back balance. Gas units in garages or combustible areas may require an 18-inch-tall stand. Maintain manufacturer-specified clearances, typically 12 inches from side walls, 6 inches from the front, and 6 to 12 inches from the ceiling.
Reconnect Water Lines
Attach hot and cold water pipes using existing stubs or new flexible braided connectors. Hand-tighten fittings first, then add a quarter-turn with a wrench. Avoid over-tightening, which can damage threads. Install dielectric nipples where copper meets steel to prevent galvanic corrosion.
Install the Temperature and Pressure Relief Valve

Screw the T&P valve into the designated opening using Teflon tape on the threads. Attach a rigid copper or CPVC discharge pipe that runs within 6 inches of the floor or a drain. The pipe must point downward and never include a cap or shutoff valve.
Reconnect Gas or Electrical Supply
Code-compliant connections protect your home and family from hazards.
Reconnect the Gas Line
Use a new flexible gas connector or rigid black iron pipe with gas-rated thread sealant on male threads. Tighten connections with two wrenches to avoid twisting the control valve. Test for leaks by applying soapy water to all joints and briefly turning on the gas. Bubbles indicate leaks that need immediate attention. Never use an open flame to test for gas leaks.
Wire the Electric Heater
Match wires to corresponding terminals, typically black to black, red to red, and ground to the green screw. Ensure no bare wire extends beyond terminal screws, then replace the cover and insulation. Leave the breaker off until the tank fills completely.
Fill the Tank and Check for Leaks
Pressurizing the system before restoring energy prevents dry firing and component damage.
Open the Cold Water Supply Slowly
Turn the cold water inlet valve counterclockwise to allow water into the tank. Keep a hot water faucet open somewhere in the house to release trapped air. When water flows steadily from the faucet, the tank is full.
Inspect Every Connection
Check all joints, valves, and fittings for drips. Pay special attention to water inlet and outlet connections, the T&P valve discharge pipe, gas line fittings, and the electrical junction for moisture. Tighten slightly where needed but avoid over-torquing brass or plastic components.
Restore Power or Gas and Test Performance
With the system pressurized and leak-free, restore energy and verify operation.
Start Electric Heaters
Turn the breaker back on and set thermostats to 120°F for safety and efficiency. Wait one to two hours for the water to heat before use.
Light Gas Heaters
Turn the gas supply valve back on and set the control knob to pilot. Press and hold the knob while igniting with the push-button or a match, following manufacturer instructions. Hold for 30 to 60 seconds after ignition to heat the thermocouple, then release and switch to the on position. Listen for steady burner operation.
Confirm Hot Water Delivery
After 60 to 90 minutes, run hot water at a nearby faucet and check for consistent temperature. Watch for unusual odors that might indicate a gas leak or rumbling sounds that suggest sediment buildup.
Maintain Your New Water Heater for Long-Term Reliability

Annual maintenance extends the life of your water heater and preserves efficiency.
Schedule Yearly Service Tasks
Flush sediment from the tank once per year to prevent buildup. Inspect the T&P valve by lifting the lever briefly to confirm it releases water. Check the anode rod every two to three years and replace it if heavily corroded. Clean the burner assembly on gas units to maintain proper combustion.
Record Installation Details
Note the installation date, model number, and serial number in a safe location. Register the warranty and keep receipts and manuals together for future service needs.
When to Call a Licensed Professional
Some situations exceed typical DIY skill levels and require expert help. Upgrading from electric to gas involves running a new gas line and proper venting. Installing a tankless system demands complex gas or electrical upgrades. Working in tight spaces or hazardous locations also warrants professional assistance. Many municipalities require permits and inspections for water heater replacement, so check local codes before starting.
Frequently Asked Questions About Water Heater Replacement
How long does it take to replace a water heater?
Most replacements take 4 to 6 hours for an experienced DIYer, including draining, disconnecting, installing, and testing. First-time installers may need a full day to complete the project carefully.
Do I need a permit to replace a water heater?
Many jurisdictions require a permit for water heater replacement, especially for gas units. Check with your local building department before starting work to avoid fines or complications during home sales.
What size water heater do I need for a family of four?
A family of four typically needs a 50 to 60 gallon tank with a matching First Hour Rating. Larger families or homes with high simultaneous demand should consider tankless options.
Can I replace a gas water heater with an electric one?
Yes, but the conversion requires electrical upgrades to support a 240-volt circuit. You will also lose access to gas heating for other appliances unless you keep the gas line active.
How do I know when my water heater needs replacement?
Common signs include age over 10 years, rust-colored water, rumbling or popping sounds, visible leaks around the base, and inconsistent water temperature. Rising energy bills can also indicate declining efficiency.
Should I hire a plumber or do it myself?
DIY replacement saves labor costs but requires comfort with plumbing, basic electrical, and gas connections. If you lack experience with any of these areas, hiring a licensed plumber ensures code-compliant installation and protects your warranty.
Key Takeaways for Replacing Your Water Heater Successfully
Replacing a water heater becomes manageable when you break the project into clear stages. Start by choosing the right fuel type, capacity, and physical size for your home. Always shut off water, power, and gas before beginning any disconnection work. Drain the tank completely, remove the old unit carefully, and inspect the installation area before positioning the new heater.
Connect water lines, the T&P valve, and either gas or electrical supply using code-compliant methods. Fill the tank slowly, check every connection for leaks, then restore energy and test hot water delivery. Schedule annual maintenance to maximize the lifespan of your new unit.
Your next step is to measure your existing water heater space, check local permit requirements, and gather the tools and materials listed above. With proper preparation, you can complete this project over a weekend and enjoy reliable hot water for years to come.









