KitQuarter

Water Heater Replacement Cost Calculator

Work out what replacing your water heater costs before you call a plumber. Pick your heater type and enter labor, permit and disposal costs to see your installed total. Free, no sign-up, everything runs in your browser.

Picking a type fills in a typical unit price, which you can change.

The price of the heater itself, before labor.

A tank swap takes about 4 to 6 hours. Tankless takes longer.

Plumber rates vary by area. $125 an hour is typical.

Most towns charge $25 to $300 for a water heater permit.

Haul away and disposal of the old heater.

Formula: total = heater unit price + (labor hours x labor rate per hour) + permit + old unit disposal.

James Carter, Math and Tools Editor
Reviewed by James Carter, Math and Tools Editor · 47 calculator guides
Formulas verified against standard references. Calculator logic tested with verified worked examples. Published: November 10, 2026 | Last updated: November 10, 2026. Fact-checked: November 10, 2026. Our methodology

How to Use the Water Heater Replacement Cost Calculator

Six quick entries give you an installed total. The tool prices the heater first, then the labor, then the permit and disposal.

  1. Pick your heater type. The unit price fills in with a typical price, and you can change it to your quote.
  2. Enter the labor hours and the labor rate per hour, then the permit cost and the old unit disposal cost.
  3. Press Calculate, or press Enter. The total appears first and large, with the labor, the unit price and the permit and disposal below. Press Reset to clear the form and start over.
A photo of a plumber installing a new white tank water heater in a home utility room with copper pipes nearby
A 40 gallon gas tank replacement comes to about $1,762.50 installed.

The Water Heater Replacement Cost Formula

The water heater replacement cost formula is total = heater unit price + (labor hours x labor rate per hour) + permit + old unit disposal. Each part is one line on a plumber quote, so the formula matches how the job is priced.

Heater unit price is the heater itself, before labor. Typical unit prices are about $875 for a 40 gallon gas tank, $750 for a 40 gallon electric tank, $2,200 for a tankless gas unit, $1,800 for a heat pump unit, and $3,500 for a solar unit. Labor hours run about 4 to 6 hours for a tank swap and longer for tankless. Labor rate is your plumber hourly rate, about $125 an hour in most areas. Permit is the town fee, usually $25 to $300. Disposal is the haul away of the old heater.

Labor is about a third of the bill on a typical tank swap, so the hours and the rate move the total almost as much as the heater itself. Our home generator installation cost calculator prices another common home system the same way, unit plus labor plus permit.

Worked Example: 40 Gallon Gas Tank

A home replaces a 40 gallon gas tank water heater. The unit costs $875, labor runs 5.5 hours at $125 an hour, the permit costs $125, and disposal costs $75. Here is exactly what the calculator does.

  1. Labor: 5.5 x $125 = $687.50.
  2. Subtotal: $875 + $687.50 + $125 + $75 = $1,762.50.

That total sits inside the typical US range of $1,384 to $2,732 for a water heater replacement. As a second check, a 40 gallon electric tank at $750 with 4 hours of labor at $125, a $100 permit and $75 disposal costs $750 + $500 + $100 + $75 = $1,425. The same steps work for any heater, so try your own numbers in the tool above.

A photo of a modern white tankless water heater mounted on a garage wall with copper and gas pipes connected
Tankless units cost more up front and take longer to install.

Cost by Heater Type

A gas tank water heater, installed, runs $700 to $2,700, and an electric tank runs $1,100 to $2,800. Those are the common choices, and a simple swap of a 50 gallon tank runs about $1,200 to $1,450. A tankless gas unit costs more up front, with installed prices around $3,200 to $6,650, because the venting and the gas line often need work too.

A heat pump water heater costs more than a tank but uses far less power, and it needs a room that stays between 40 and 90 degrees. A solar water heater is the most costly to put in, at $1,700 to $5,500 for the system. Labor alone for a tank runs $150 to $450, while tankless labor alone can run $600 to $1,900, which is why the type you pick moves the total more than any other choice.

What Adds to the Bill

Moving the heater to a new spot is the biggest extra, at $150 to $3,400, because it means new water, gas and vent runs. An expansion tank adds $90 to $350, and many towns now require one. A power vent, a larger gas line, or bigger wiring for an electric tank can each add hundreds.

Code upgrades are common on older homes, because the new heater must meet current venting and safety rules. Emergency timing adds cost, since a failed heater on a weekend costs more than a planned swap. Ask any quote to list the permit, the disposal, the expansion tank and the venting separately, because those are the lines that hide in a single lump sum.

Repair or Replace

A tank water heater lasts 8 to 12 years, and a tankless unit lasts 20 years or more. If your tank is past 10 years and the repair costs more than half of a new unit, replace it. A leaking tank always means replacement.

Size matters too. A 40 gallon tank suits 1 to 2 people, and a 50 gallon tank suits 3 to 4 people. A tank that is too small runs out of hot water, and a tank that is too big wastes energy keeping water hot. For the rest of your water system, our home water softener installation cost calculator prices treatment equipment the same way, unit plus labor plus permit.

A photo of an old rusty water heater being removed from a basement by two workers with a hand truck
A leaking tank always means replacement, so budget for the full swap.

Frequently asked questions

How much does it cost to replace a water heater?

A typical replacement runs $1,384 to $2,732, with an average near $1,822. A 40 gallon gas tank swap costs about $1,762.50, while a tankless install runs $3,200 to $6,650.

How long does a water heater replacement take?

A simple tank swap takes 3 to 5 hours, so most jobs finish in one day. Tankless installs take longer, usually a full day, because the venting and gas line often need work.

Is gas or electric cheaper to replace?

Electric tanks are usually $100 to $130 cheaper than gas tanks of the same size. Gas costs less to run where gas is available, so the cheaper install is not always cheaper over time.

How long does a water heater last?

A tank water heater lasts 8 to 12 years, and a tankless unit lasts 20 years or more. A leaking tank always means replacement, and a repair that costs more than half of a new unit is rarely worth it.

Do I need a permit to replace a water heater?

Most towns require a permit, usually $25 to $300, covering the gas, venting and safety inspection. A licensed plumber pulls it as part of the job.

What size water heater do I need?

A 40 gallon tank suits 1 to 2 people, and a 50 gallon tank suits 3 to 4 people. A tank that is too small runs out of hot water, and a tank that is too big wastes energy keeping water hot.

This is an estimate for planning. Actual prices vary by heater type, home layout and area, so get local quotes from a licensed plumber before you buy. See our disclaimer.