Water Heater Replacement Cost Guide and Installation Options
water heater replacement cost guide: step-by-step installation options, realistic cost ranges, and 3–6 hour timelines. Compare tank, tankless, electric and gas choices.
Daniel Carter
10 min read · Aug 23, 2026

What you'll finish and how long it takes
By the end of this guide you will be able to estimate and perform a like-for-like water heater replacement (tank or tankless), select the correctly sized unit, disconnect and remove the old heater, install the new heater with proper venting or electrical/gas connections, test for leaks, and calculate final cost. Typical time: 3–6 hours for a straight swap of same-type units; 1–2 days if upgrading fuel type, moving location, or adding new venting or electrical work. Skill level: intermediate DIY — you must be comfortable with basic plumbing, using a multimeter, and following local permit requirements. For gas line size changes or house re-routes, plan to hire a licensed pro.
Before you start
- Permits: check local building department; budget $50–$250 permit fee.
- Tools: adjustable wrench, pipe wrench, basin wrench, tubing cutter, plumber's tape, soldering kit or push-fit connectors, multimeter, bucket, garden hose (25–50 ft), pipe thread sealant, level.
- Materials: new water heater, 6–10 ft 3/4" braided water connectors or copper piping, T&P valve rated 150 psi / 210°F, dielectric nipples, 3/4" discharge tube, vent pipe (per manufacturer), 30A/40A double-pole breaker if electric, gas flex connector 1/2" or 3/4".
- Safety gear: gloves, safety glasses, respirator for soldering, gas detector or soapy-water spray for leak checks.
- Assistance: get a second person for lifting—typical 40–50 gallon tank weighs 150–200 lb full and 60–75 lb empty.
Core procedure — numbered steps
-
Decide the heater type and size — choose tank (40–50 gallon typical), large tank (75+ gallon), or tankless (point-of-use or whole-house). For a family of 2–4, select a 40–50 gallon storage tank or a tankless unit with a flow rate of 6–9 GPM and input of 150,000–199,000 BTU (gas) or 18–27 kW (electric). For 4+ people or long showers, use 50–75 gallon or tankless 9–12 GPM.
Cost ranges (installed): electric tank $700–$1,400; gas tank $800–$1,800; high-efficiency gas $1,200–$2,500; electric or gas tankless $1,200–$4,500+. Labor and permit included in above ranges; add $200–$600 for venting/gas-line upgrades or electrical panel work.
- Compare long-term operating costs — estimate annual operating cost: electric tank ~ $400–$700/year; gas tank ~ $300–$500/year; tankless gas ~ $150–$400/year depending on use. Use your local energy rates: for electricity multiply kWh consumption by $0.15/kWh; for natural gas multiply therms by $1.20/therm. If replacing due to recurrent failures, factor a 10–20% efficiency loss for old tanks.
- Get written quotes and pull permits — obtain 2–3 quotes showing unit cost, labor hours, permit, disposal fee, and warranty. For permit sizing: bring model number, fuel type, BTU or kW rating, proposed venting route. Expect one inspection same day or within 3–7 days; permit cost typically $50–$250.
- Buy the unit and required consumables — buy new heater, two 3/4" dielectric nipples, T&P relief valve rated at 150 psi / 210°F, 3/4" copper or braided connectors, 3/4" drain tube, relief valve discharge elbow, and 6–10 ft gas flex connector (if gas). Order venting per manufacturer: Type B double-wall for vertical/chimney, or stainless for direct vent. Keep the receipt.
-
Prepare site, shut off utilities, and drain old heater
Shut off power — for electric, switch off the double-pole breaker and verify 0V with a multimeter between the two hot lugs; for gas, turn the gas valve to “off” at the appliance and at the meter if possible.
Turn off water — close the cold inlet shutoff valve feeding the heater. If none, shut off main water supply.
Drain the tank — attach a garden hose to the drain valve, run it to floor drain/outside. Open a hot water faucet in the house to allow air in, open the drain valve and the T&P valve to vent. Expect 20–40 minutes to drain a 40–50 gallon tank. Use a submersible pump for faster removal if available.
- Disconnect and remove the old heater — after drain is complete, disconnect water lines: remove dielectric nipples with two wrenches to prevent tank twist. For electric heaters, remove access panel, disconnect wires (label leads), and remove junction box cover. For gas, disconnect flex connector at union; cap gas at shutoff if removing. Unscrew vent collar or chimney connections. Have a dolly and two helpers: lift empty 40–50 gal tank ~60–75 lb; if too heavy, hire help.
- Prepare the new heater and site — place new unit on a level pad or cardboard to protect flooring; leave 2" clearance for T&P relief discharge elbow; new T&P valve must be within 6 inches of top fitting per many manufacturers. Install dielectric nipples into tank hot/cold ports with 2–3 wraps of PTFE tape on threads. If replacing gas with gas, verify the vent meets minimum rise: for atmospherically vented gas water heaters, provide vertical rise of at least 12" before any turn and maintain slope back to chimney; follow manufacturer’s vent length chart.
-
Make mechanical and fuel/electrical connections
Water connections — connect cold inlet and hot outlet using 3/4" braided flex or sweat copper. Turn on cold water slowly and check for leaks at each joint. Tighten a quarter-turn as necessary; avoid overtightening.
Gas connection (gas heater) — install a 1/2" or 3/4" black iron or listed flex connector. For typical 40–50 gal gas water heater (30k–50k BTU) use 1/2" gas line for runs <20 ft; use 3/4" for runs >20 ft or appliances >50k BTU. Apply pipe compound rated for gas on male threads. After connection, open gas valve and test all joints with soapy-water; bubbles indicate leaks. If you detect a leak, shut gas off immediately and tighten or replace joints.
Electrical connection (electric heater) — route 10/2 or 8/2 NM cable per unit label. Most 40–50 gallon electric tanks with 4,500W elements require a 30A double-pole breaker with 10‑AWG wire. Verify nameplate current and size breaker at 125% for continuous load: breaker size = nameplate amps × 1.25, round up to nearest standard breaker. Connect wiring to heater junction per label and replace access covers.

- Install venting and combustion air (gas heaters) — for natural draft heaters, use Type B venting sized per manufacturer; maintain 3" clearance from combustibles when required. For direct-vent or power-vent units, follow the vent kit instructions; install a draft hood if required. For replacement in confined spaces, add dedicated combustion air: a 100 sq. in. opening per manufacturer or ducted from outdoors per code.
- Install T&P valve and discharge line — fit T&P valve rated 150 psi/210°F into the correct outlet. Attach a 3/4" copper or CPVC discharge tube to the valve elbow directed downward within 6 inches of the floor or to a safe drain, not threaded. Do not cap the discharge. Test operation by briefly lifting the valve lever to ensure water flows and reseats.
- Fill the tank, purge air, and test for leaks — close T&P and drain valves. Slowly open cold inlet to fill the tank; open the highest hot faucet in the house to purge air until steady flow. Check for leaks at all joints: water connections, drain valve, T&P valve, and vent collars. Repair any leaks immediately. For gas heaters, once water is present, light pilot per manufacturer and check for steady flame and correct draft. For electric heaters, restore breaker power only after unit is full; power element only when the tank is full to avoid burned elements.
- Set thermostat and validate temperature — set thermostat to 120°F for energy savings and scald protection; on mixing valve installations you can set tank to 130°F and mix down to 120°F. Use a thermometer at the hot faucet: expect +/- 5°F. If running out of hot water, confirm dip tube intact and recovery rate: electric 4500W recovery ~ 20–25 gallons/hour; gas 40k BTU recovery ~ 45–50 gallons/hour.
- Final checks, cleanup, and paperwork — label breaker and gas shutoff, record model/serial/warranty and installation date. Recycle or dispose of the old tank; disposal fee typically $25–$100. Schedule or wait for inspection; provide inspector with receipts and permit card. Reconcile final costs: unit + labor + permit + disposal + parts. Save all invoices for warranty or future service.
Common mistakes and how to avoid them
I’ve seen these failures in the field; avoid them.
- "I once skimped on the dielectric nipples and the tank corroded at the threads within two years." — Always install two dielectric nipples and use PTFE tape on threads to prevent electrochemical corrosion.
- "I turned the electric breaker back on before filling the tank and burned out an element." — I now always verify the tank is full by opening a hot faucet and ensuring steady flow before re-energizing the heater.
- "A tech used the existing gas line without checking size; we undersupplied BTU and had poor recovery." — Measure the gas line run and size: use 1/2" only for short runs <20 ft and up to ~50k BTU; upgrade to 3/4" for longer runs or higher BTU units.
- "I tightened the vent collar too much and split the chimney adapter." — Hand-align vent components and use proper clamps; follow the manufacturer's torque recommendations and clearances.
Compact checklist before you finish
- New unit matches chosen capacity and fuel type.
- Cold inlet and hot outlet leak-free under 80 psi test.
- T&P valve installed and discharge routed correctly (3/4", downward, within 6" of floor or to drain).
- Electrical: breaker sized at nameplate amps × 1.25, proper gauge wire, all connections tight.
- Gas: correct pipe size and soapy-water leak-checked; pilot and burner operating with correct draft.
- Venting meets manufacturer length and rise requirements; combustion air provided when required.
- Thermostat set to 120°F (or 130°F with mixing valve) and verified with thermometer.
- Permit applied and inspection scheduled/completed; old unit disposed with receipt.
When to call a professional
Call a licensed plumber or HVAC technician if you plan to: change fuel type (electric ↔ gas), increase capacity beyond existing venting, relocate the heater, upgrade gas line size, or work on the electrical panel (breaker changes or subpanel work). Also call if you detect persistent gas leaks, unusual burner flame (yellow/sooty), or lack of draft in venting. For legal and safety reasons, permit-required gas and electrical work should be handled by licensed pros in most U.S. jurisdictions.
Further reading
For maintenance and troubleshooting after installation, see our repair and leak-fix guides: Water Heater Repair Guide Including Costs and Service Tips, compare tankless requirements at Tankless Water Heater Installation Cost and Requirements Guide, or find local service in Hot Water Heater Repair Near Me Guide for Reliable Service.
Frequently Asked Questions
How much does it cost to replace a water heater with the same type?
For a like-for-like swap, expect $700–$1,400 installed for a typical 40–50 gallon electric tank and $800–$1,800 for a gas tank including labor, permit, and disposal. Costs rise to $1,200–$4,500+ for high-efficiency or tankless systems and for upgrades to venting or gas lines.
How long does a water heater replacement take?
A straight same-type replacement commonly takes 3–6 hours. If you upgrade fuel type, add new venting, or change location, allow 1–2 days to complete work and pass inspections. Permit and inspector availability can add extra days.
Do I need a permit to replace my water heater?
Most U.S. jurisdictions require a permit for water heater replacements, especially when changing fuel type, altering venting, or modifying gas/electrical connections. Permit fees typically run $50–$250; check with your local building department before starting.
What size breaker and wire does an electric water heater need?
Most 40–50 gallon electric tanks with 4,500W elements require a 30A double-pole breaker and 10‑AWG wire. Verify the unit's nameplate amps and calculate breaker size as nameplate amps × 1.25; use the nearest standard breaker size and wire gauge per code.
How do I know if a tankless water heater is worth the extra cost?
Choose tankless if you want continuous hot water, smaller footprint, and lower annual energy bills. Upfront installed cost is higher ($1,200–$4,500+). It's worth it for households needing 6–12 GPM, longer-term energy savings, and if you plan to stay in the home 8+ years.
What should I check if my new heater is leaking right after installation?
First shut off the water and power/gas. Check dielectric nipples and supply connections for loose fittings, check the drain valve seating, and ensure the T&P valve isn't open or cracked. Tighten fittings and replace faulty valves; if corrosion or tank defect is suspected, contact installer for warranty service.
Written by
Daniel Carter
Smart home automation specialists.


