TL;DR: Installing a standard electric or gas water heater yourself can save you $500–$1,000 in labor costs. This guide covers the entire process—from draining the old unit and disconnecting utilities to positioning the new heater, connecting water lines, and testing for leaks. You’ll need basic plumbing skills, a helper for lifting, and strict attention to safety, especially with gas and electricity. Expect the job to take a full day (6–10 hours) for a first-timer.
What You’ll Need
| Item | Purpose | Estimated Cost |
|---|---|---|
| New water heater (electric or gas) | Replacement unit (40–50 gallon standard) | $400–$900 |
| Flexible water supply lines (2, 3/4″ NPT) | Connect hot and cold water | $15–$30 |
| Pipe thread sealant (Teflon tape or pipe dope) | Prevent leaks at threaded connections | $5–$10 |
| Drain pan (metal or plastic, sized to heater) | Catch leaks under the unit | $15–$40 |
| Temperature and pressure relief (T&P) valve | Safety valve (often pre-installed on new heater) | $10–$20 |
| Discharge pipe for T&P valve (copper or CPVC) | Route overflow to floor drain | $5–$15 |
| Pipe wrench (2, 14–18 inch) | Loosen and tighten pipe fittings | $25–$50 each |
| Adjustable wrench | General nut tightening | $10–$20 |
| Screwdrivers (flathead and Phillips) | Access panels and electrical connections | $5–$15 |
| Multimeter (for electric heaters) | Test power is off and check elements | $20–$50 |
| Garden hose (50 ft) | Drain old water heater | $10–$20 |
| Bucket or large container | Catch residual water | $5–$10 |
| Safety glasses and work gloves | Protection from hot water and debris | $10–$20 |
| Gas shut-off valve tool (for gas heaters) | Close gas line safely | $5–$10 |
| Soapy water spray bottle (for gas leak test) | Detect gas leaks | $2–$5 |
| Total estimated cost (excluding heater) | $150–$350 |
How Long Does This Take?
- Step 1 (Drain old heater): 30–60 minutes (depends on sediment buildup)
- Step 2 (Disconnect utilities): 15–30 minutes
- Step 3 (Remove old heater): 15–30 minutes
- Step 4 (Prepare new heater): 30–45 minutes (install T&P valve, drain pan)
- Step 5 (Position new heater): 15–30 minutes
- Step 6 (Connect water lines): 30–60 minutes
- Step 7 (Connect gas or electrical): 45–90 minutes
- Step 8 (Fill and test): 30–60 minutes
- Total: 4–7 hours (first-timer) or 6–10 hours with cleanup and troubleshooting
Safety First
WARNING: Water heater installation involves high-voltage electricity (240V), flammable gas, and scalding-hot water. If you are unsure about any step, call a licensed professional. Serious injury or property damage can occur from mistakes.
- Always shut off the power at the breaker box for electric heaters—double-check with a multimeter that no voltage is present before touching wires.
- For gas heaters, shut off the gas valve at the unit and the main gas line. Never use an open flame to check for gas leaks. Use soapy water spray.
- Wear safety glasses and heavy work gloves when draining hot water—burns are a real risk.
- Have a fire extinguisher nearby, especially if working with gas.
- Ensure the area is well-ventilated when using pipe sealant or cutting copper.
- Water heaters weigh 100–150 pounds when empty and much more when full. Use a dolly or get a helper to avoid back injury.
- Follow all local building codes. Some areas require permits for water heater replacement—check with your city or county.
Step-by-Step Instructions
- Drain the old water heater. Turn off the power (breaker for electric) or gas valve (for gas). Connect a garden hose to the drain valve at the bottom of the heater. Run the hose to a floor drain, outside, or into a large bucket. Open a hot water faucet somewhere in the house (like a kitchen sink) to let air in and speed drainage. Open the drain valve fully. Hot water is scalding—let it cool for 30 minutes before draining if possible. Wait until water stops flowing (sediment may clog the valve—if so, gently tap the valve with a hammer to dislodge it). This takes 30–60 minutes.
- Disconnect utilities from the old heater. For electric units: remove the access panel on the top or side, unscrew the wire nuts, and disconnect the wires (black, white, and ground). Label them with tape. For gas units: use a pipe wrench to disconnect the gas supply line at the union (usually near the unit). Cap the open gas line with a plug to prevent debris or gas leaks. Then, disconnect the hot and cold water lines (usually flexible braided hoses) using a pipe wrench. Have a bucket ready for residual water.
- Remove the old water heater. With a helper, tilt the heater forward and slide it out of its position. Place it on a dolly or carefully roll it on its edge to a disposal area. Tip: Water heaters can be recycled as scrap metal—check your local recycling center. Clean the floor area where the new heater will sit—remove any debris, rust, or old plumber’s putty.
- Prepare the new water heater. Install the temperature and pressure relief (T&P) valve if not pre-installed (screw it into the top opening, hand-tighten, then tighten 1/4 turn with a wrench). Attach a discharge pipe to the T&P valve—run it downward to within 6 inches of the floor (do not thread into a drain; it must be open to air). Place a drain pan under the new heater if your local code requires it (most do). Check the manual for your specific model—some require anode rod inspection before installation.
- Position the new water heater. With a helper, lift the new heater into the drain pan (if used). Make sure it sits level—use a carpenter’s level. Adjust by shimming under the pan if needed. The heater should be at least 6 inches from any walls and accessible for future service.
- Connect the water lines. Wrap Teflon tape clockwise around the threads of the cold water inlet (usually on the right side, marked with a blue ring) and hot water outlet (left side, red ring). Screw on the flexible supply lines—hand-tighten first, then tighten 1/4 turn with a wrench. Do not overtighten—this can crack the fittings. Connect the other ends of the supply lines to the house’s cold and hot water pipes. Use pipe dope on the threads if you prefer. Open the cold water valve slowly to fill the tank—leave a hot water faucet open in the house to let air escape. When water flows steadily from that faucet, close it. Check for leaks at all connections.
- Connect gas or electrical supply. For electric: Turn off the breaker. Connect the black (hot) wire to the black wire from the heater, white (neutral) to white, and green/bare (ground) to the ground screw. Use wire nuts and wrap with electrical tape. Replace the access panel. For gas: Apply pipe dope to the gas line threads and connect the gas supply line to the heater’s gas valve. Tighten with a pipe wrench. Turn on the gas valve slowly. Spray soapy water on all gas connections—if you see bubbles, you have a leak. Tighten the connections slightly and retest until no bubbles appear. Never use a match or lighter to test for gas leaks.
- Fill, test, and start the heater. For electric: Turn the breaker back on. Set the thermostat to 120°F (mid-range). Wait 30–60 minutes for the water to heat, then test a hot water faucet. For gas: Follow the manufacturer’s lighting instructions (usually: turn gas valve to “pilot,” hold down the red button, light pilot with a long lighter, hold for 30 seconds, then turn to “on”). Set thermostat to 120°F. Check for leaks again after 24 hours. WARNING: If you smell gas at any point, turn off the gas valve immediately, open windows, and call your gas company.
Common Mistakes to Avoid
- Not checking local codes or permits: Many municipalities require a permit for water heater replacement. Installing without one can lead to fines or issues when selling your home. Always check first.
- Forgetting to install a drain pan or T&P discharge pipe: These are critical for safety. Without a drain pan, a leak can flood your basement. Without a T&P discharge pipe, the valve can spray scalding water if pressure builds up.
- Overtightening connections: Copper or brass fittings can crack if overtightened. Hand-tighten plus 1/4 turn with a wrench is usually enough.
- Mixing up hot and cold water lines: The cold water inlet is always on the right (when facing the heater) and the hot outlet on the left. Reversing them can cause the heater to not work properly and void the warranty.
- Skipping the leak test: Always test all connections with the water on and (for gas) with soapy water. A small leak can become a big problem later.
- Not having a helper: Water heaters are heavy and awkward to move. Trying to do it alone increases the risk of dropping it, damaging the floor, or injuring yourself.
When to Call a Professional
- Gas line work: If you are uncomfortable working with gas pipes, or if the gas line requires cutting and re-threading, hire a licensed plumber. Gas leaks are dangerous and can cause explosions.
- Electrical work: If your home has aluminum wiring, or if you are not confident connecting 240V circuits, call an electrician. A mistake can cause a fire or electrocution.
- Unusual setup: If your water heater is in a tight crawlspace, attic, or requires significant relocation of pipes, professional help saves time and prevents structural issues.
- Permit issues: If your local code requires a licensed contractor to pull a permit, you may have no choice but to call a pro.
- Recurring problems: If your old heater failed due to sediment buildup, hard water, or a faulty anode rod, a professional can advise on a better unit or water treatment.
- After you start: If you encounter unexpected problems—like corroded pipe threads that won’t seal, or a cracked water line—stop and call a plumber. Don’t try to force a fix that could cause a flood.
Frequently Asked Questions
- Q: Can I install a water heater myself without a permit? A: That depends on your local building codes. Many areas require a permit for any water heater replacement, especially for gas units. Skipping the permit can result in fines or complications when selling your home. It’s best to check with your city or county building department first.
- Q: How do I know if my new water heater is the right size? A: For a family of 1–2 people, a 30–40 gallon tank is usually sufficient. For 3–4 people, go with 40–50 gallons. For 5+ people, consider 50–80 gallons or a tankless heater. Check the “first-hour rating” on the label—it tells you how much hot water the unit can deliver in an hour.
- Q: What’s the difference between electric and gas water heater installation? A: Electric heaters require connecting 240V wires (black, white, ground) and often a separate breaker. Gas heaters require connecting a gas line and lighting a pilot light. Gas installation is generally more complex and risky due to the gas line. Electric is simpler but may need a 240V outlet.
- Q: How often should I drain my water heater after installation? A: To prevent sediment buildup and extend the life of your heater, drain 1–2 gallons of water from the drain valve every 6 months. A full flush (draining the entire tank) once a year is ideal. This also helps maintain efficiency.
- Q: My new water heater is making a popping noise. Is that normal? A: Popping noises are usually caused by sediment (mineral deposits) heating up and expanding. This is common in areas with hard water. If it happens right after installation, it might be air in the lines—run the hot water for a few minutes. If it persists, consider installing a water softener or descaling the unit.


