Water Heater Cost Guide: What Gas, Electric, and Tankless Will Run You
Replacing a water heater hits your wallet hard. Let’s cut through the noise and talk real numbers.
This guide gives you the straight facts. We will cover unit prices for gas, electric, and tankless heaters, the labor cost to install them, and how much they cost to run each month.
I’ve hauled, installed, and serviced every type of heater in the book. Buying the cheapest unit often means the highest repair bill down the road.
The Three Main Types and What You’ll Pay
Think of choosing a water heater like picking a car. You have reliable sedans, efficient hatchbacks, and high-performance sports cars. Each one gets you there, but with different costs and experiences.
The Reliable Sedan: Standard Gas Water Heater
This is the workhorse of American homes. It uses a gas burner at the bottom to heat a tank of water. The main cost advantage is that natural gas or propane is often cheaper than electricity. The downside is you need a proper vent (like a chimney) to exhaust dangerous fumes.
So, how much does a gas water heater cost for the unit itself? For a standard 40 or 50-gallon tank, expect to pay between $600 and $1,800 at a supply house or home center. For a complete cost picture, compare not only upfront gas costs but also the long-term gas vs electric operating costs.
The gas model is your go-to for balancing lower operating costs with a familiar, reliable setup.
The Efficient Hatchback: Standard Electric Water Heater
These use electric heating elements inside the tank. They’re simpler to install because there’s no gas line or venting needed. That makes them perfect for homes without gas service or for installation in a closet or tight space. The trade-off is that electricity costs more per unit of heat, so your monthly bill will be higher.
How much does an electric water heater cost? For a comparable 40 or 50-gallon tank, you’re looking at $400 to $1,500. However, it’s essential to consider their energy consumption and efficiency when making a decision.
You often save on the initial purchase and installation, but you pay more month-to-month to keep the water hot.
The High-Performance Sports Car: Tankless (On-Demand) Water Heater
This one changes the game. Instead of keeping a tank hot 24/7, it heats water instantly as it flows through a heat exchanger. You get endless hot water and save energy by not heating standby water. The catch is the higher upfront price and more complex installation.
How much does a tankless water heater cost for just the box? A whole-house gas model starts around $1,000 and can easily exceed $2,500. Electric whole-house units start lower, around $500 to $1,200. Remember to choose the right size for your household’s needs to ensure efficiency and cost-effectiveness.
Tankless units command a premium price for advanced technology and long-term energy savings, not for a bigger tank.
Upfront Costs: The Price Tag on the Box
Let’s get specific on what you’ll see on the store shelf. Prices swing based on brand, warranty length, and features. These are national averages for the appliance only.
Standard Tank Prices (40-50 Gallon)
- Electric: $400 – $1,500. Basic models with shorter warranties sit at the low end. High-efficiency models with 10+ year warranties climb toward $1,500.
- Gas: $600 – $1,800. The added cost covers the more complex gas valve and burner assembly. High-efficiency condensing gas models are at the top of this range.
Two specs directly impact that price tag: capacity and recovery rate. Capacity is the tank size in gallons. Recovery rate is how fast it can reheat a full tank. A 50-gallon heater with a faster recovery rate costs more than one with a slow one, because it has more powerful elements or a bigger burner.
Why Tankless Has a Higher Sticker Price
People often ask, “how expensive is a tankless water heater really?” The unit itself costs more because it’s packed with sophisticated electronics and a high-output heat exchanger. It’s a compact power plant. A standard tank heater is essentially an insulated barrel with a heating element or burner. Tankless water heaters work on a completely different principle.
For perspective, a premium tankless unit can cost as much as a high-end whole-home water softener or several times the price of a good sump pump. How expensive are sump pumps? Understanding average sump pump cost and size helps you compare options more effectively. It guides you toward choosing the right balance of price and capacity. A quality submersible pump is often between $150 and $500. This shows you’re investing in a major, high-tech appliance.
The tankless price buys you a decade or more of lower energy bills and the convenience of unlimited hot water.
Installation and Labor: The Real Cost of Getting Hot Water

The total cost has two big parts: the unit itself and the labor to put it in. A standard 50-gallon electric tank heater might cost $600 to $900 for the unit. A comparable gas model runs $800 to $1,500. A whole-house gas tankless unit can range from $1,000 to $2,500 just for the box.
Labor is the wild card. For a simple, “like-for-like” replacement in the same spot, expect $500 to $1,000 for a pro’s full day of work.
A complex install with new gas lines, electrical upgrades, or moving the unit can push labor costs to $2,000 or more.
DIY Difficulty Rating (1-10)
Here’s my honest take on the DIY skill needed for each type, with 1 being easiest and 10 being “call a pro.”
- Electric Storage Tank (Difficulty: 3/10): If you’re comfortable with basic plumbing and 240-volt electrical work, a straight swap is doable. The main risks are water leaks and electrical shock if not done right.
- Gas Storage Tank (Difficulty: 7/10): This adds gas line connections and proper venting. A small gas leak is a big problem. Most homeowners should stop at gas.
- Electric Tankless (Difficulty: 5/10): The plumbing is simple, but these often require a heavy-gauge electrical circuit. Upgrading your home’s electrical panel is a pro job.
- Gas Tankless (Difficulty: 9/10): This combines all the challenges: gas, venting, and sometimes complex plumbing and electrical. I don’t recommend DIY here.
What You’re Paying a Pro To Do
When you hire a licensed plumber, you’re buying more than just their wrench time.
- Permitting: They pull the required local building permits. This triggers an inspection to ensure everything is safe.
- Code Compliance: Pros know the International Plumbing Code (IPC) or Uniform Plumbing Code (UPC) inside and out. They size vents correctly, use the right materials, and install pressure relief valves properly.
- Safe Hookups: They correctly connect gas lines with leak testing, set up proper venting for combustion gases, and handle high-voltage electrical connections.
- Disposal: They haul away your old, heavy unit and dispose of it according to local regulations.
Paying for a pro gets you a safe, code-compliant system and often a labor warranty you can count on.
Why “Like-for-Like” is the Budget Choice
The cheapest install happens when the new heater is identical to the old one: same fuel type (gas for gas), same location, similar size.
Everything is already set up. The pipes align, the electrical circuit or gas line is right there, and the vent fits. I saved over $800 on my last heater by keeping it electric and in the same basement corner.
Changing anything adds cost. Switching from electric to gas means running a new gas line and installing a vent. Moving the heater across the room means extending water and gas lines and re-running the vent. Those material and labor hours add up fast.
When You Must Hire a Licensed Pro
Some lines you don’t cross yourself. Your safety and your home’s insurance coverage depend on it.
Any work on a gas line, from connecting a flex hose to running new black pipe, requires a licensed professional. An improper gas connection can lead to leaks, explosions, or carbon monoxide poisoning. It’s not worth the risk.
Major electrical service upgrades are another pro-only task. If your new electric tankless needs a 200-amp panel and you have 100 amps, you need an electrician. This is high-stakes work.
Altering or installing a new vent system for a gas heater is critical. The vent must be the correct size and type and terminate in the right location to safely exhaust deadly fumes. Think of it like your furnace chimney. Get it wrong, and those gases come back inside.
This is where those plumbing codes (IPC/UPC) a pro follows matter. They ensure vents are sized for the BTU input and have the proper clearances from windows and soffits. Doing it yourself and making a mistake here is a silent danger.
Year After Year: Understanding Operating Costs
What are the operating costs for a water heater? This is your monthly and yearly bill for heating water. Think of it in two parts: the daily energy it uses and the long-term factors that change it.
A new heater might start low, but sediment buildup forces it to work harder. An old unit with a failing anode rod can rust and lose efficiency. Your actual cost hinges on your local utility rates, the heater’s condition, and your household’s hot water habits.
EF and UEF: Your Water Heater’s MPG
Operating cost is like the gas mileage for your water heater. The Energy Factor (EF) and Uniform Energy Factor (UEF) ratings are that MPG number. A higher rating means better efficiency and lower operating costs.
EF is the older standard. UEF is the newer, more realistic test that better reflects modern home use. It’s like comparing a car’s highway-only MPG (EF) to its combined city/highway rating (UEF). When comparing new models, always look for the UEF rating-it’s the truer measure of what you’ll pay to run it.
Comparing Annual Energy Costs: Gas, Electric, and Tankless
Let’s look at estimated annual costs to run different 40-gallon units for a typical family, based on U.S. national average energy prices. These are baseline numbers; your bill will vary with your local rates.
| Heater Type | Typical UEF Range | Estimated Annual Cost to Operate* |
|---|---|---|
| Standard Gas Tank | 0.60 – 0.70 | $270 – $320 |
| High-Efficiency Gas Tank | 0.80 – 0.90 | $200 – $250 |
| Standard Electric Tank | 0.90 – 0.95 | $450 – $500 |
| Electric Heat Pump (Hybrid) | 3.00 – 4.00 | $130 – $180 |
| Gas Tankless | 0.90 – 0.96 | $190 – $230 |
*Costs are approximate for 40-gallon tank models (or equivalent flow for tankless) using 64 gallons of hot water per day. Source: U.S. Department of Energy guidelines.
Electric standard tanks are often the most expensive to run. Gas models usually cost less annually than standard electric. The real savings often come from high-efficiency options like heat pump hybrids or gas tankless units, which can cut your annual energy cost for hot water in half compared to a standard electric tank.
Remember, a cheaper unit with a low UEF can cost you more in the long run. Do the math on your local energy prices before you buy.
Size, Efficiency, and the Space it Needs
Buying a heater that’s too small means cold showers. Buying one that’s too large wastes energy and money. Getting the size right is your first real decision.
Sizing a Tank Water Heater
For a traditional tank, size is about storage capacity. You’re matching the tank’s gallons to your household’s peak hot water demand, like when everyone showers in the morning. Think of it as your hot water battery.
Use this simple chart as your starting point:
| Household Size | Recommended Tank Capacity | Notes |
|---|---|---|
| 1-2 people | 40 gallons | Adequate for basic use. |
| 3-4 people | 50 gallons | The most common size for families. |
| 5+ people | 65-80 gallons | Needed for large families or homes with whirlpool tubs. |
This chart assumes standard fixtures. If you have a large soaking tub, add 20-30 gallons to the recommendation. My own home has a 50-gallon heater for a family of three, and we’ve never run out, even with back-to-back showers and laundry going.
Sizing a Tankless Water Heater
Tankless units are sized by flow, not storage. You need a unit that can heat enough gallons per minute (GPM) for everything you might run at once. This requires a two-step calculation: find your needed flow rate, then check the unit’s capacity for your water’s temperature rise.
First, add up the flow rates of fixtures you’d use simultaneously. Here are common averages:
- Shower: 2.0-2.5 GPM (with a low-flow head)
- Kitchen faucet: 1.5-2.2 GPM
- Dishwasher: 1.0-2.5 GPM
- Washing machine: 1.5-3.0 GPM
If you want to run a shower (2.5 GPM) and the dishwasher (2.0 GPM) at the same time, you need a tankless unit rated for at least 4.5 GPM.
Second, and this is critical, you must account for temperature rise. This is the difference between your groundwater temperature and your desired hot water temperature (typically 120°F). A unit’s GPM rating is based on a specific rise, like a 70°F rise. If your groundwater is 50°F and you want 120°F water, that’s a 70°F rise. If your groundwater is colder, the unit will deliver fewer gallons per minute. You must check the manufacturer’s performance charts for your specific conditions.
Clearance Spaces for Safety and Service
Water heaters need breathing room. Proper clearances prevent fire hazards, ensure combustion air for gas units, and let a technician actually work on it. These are not suggestions; they are safety codes.
For Gas Tank and Tankless Heaters:
- Combustible materials (wood, drywall, boxes): Minimum 1-inch clearance from sides and back, though 6 inches is a safer, more serviceable rule.
- Front (for control panel/service): 24 inches minimum.
- Top: 12-24 inches for flue vent clearance and to remove the anode rod.
- Floor: Must be on a non-combustible surface if in a garage (like a 3-inch tall draft hood).
For Electric Water Heaters:
- Clearances are smaller, as there is no combustion. 0-inch clearance to walls is often acceptable, but leave at least 6 inches on one side and 24 inches in front for service and element replacement.
Always check your local code. I’ve been on service calls where a heater was shoved in a closet surrounded by stored junk, making it a fire risk and impossible to repair without dismantling the entire closet.
Upfront Cost vs. Operating Cost
A higher efficiency model hits your wallet twice: first when you buy it, and then every month on your utility bill. The goal is to balance these.
Gas tank heaters have a Uniform Energy Factor (UEF). A standard efficiency model might have a UEF of 0.67, while a high-efficiency condensing model can be 0.90 or higher. The condensing model costs several hundred dollars more but uses significantly less gas.
You pay more for the high-efficiency unit today to buy less natural gas or electricity every month from now on.
Electric heat pump water heaters are the extreme example. They cost 2-3 times more than a standard electric tank. But they use up to 60% less electricity, which can save you hundreds per year. The math is simple: if the extra $800 for the heat pump model saves you $200 a year on electricity, it pays for itself in four years. Everything after that is pure savings.
Codes, Permits, and Doing it Right
Forget thinking of a permit as bureaucratic red tape. It’s your safety net. Skipping this step is a gamble with your home and family.
Why the Permit and Inspection Process is Non-Negotiable
A city inspector is not your enemy. Their job is to catch the mistakes you or even a bad contractor might miss. This protects you from three major risks: fire, explosion, and catastrophic water damage.
Your homeowner’s insurance policy likely has a clause that denies claims for damage caused by unpermitted work. If an unpermitted water heater fails and floods your basement, you could be paying for all repairs out of pocket. The permit and inspection create a paper trail that proves the work was done to code.
I had to replace the gas water heater in my own garage last year. Pulling the permit took 20 minutes online. The inspector spent 10 minutes checking my work, gave me a thumbs-up, and that was it. Now I have peace of mind and a verified record.
Common Code Requirements You Must Follow
Codes exist for proven reasons. Here are the big ones you’ll encounter for any water heater installation.
Temperature and Pressure Relief Valve (T&P Valve) Drain Line
This is the most important safety device on the tank. If the tank overheats or builds too much pressure, this valve opens to release scalding water and steam.
The drain line must be a dedicated, sturdy pipe (like CPVC or copper) that runs down to within 6 inches of the floor. It cannot be tied into any other drain. I’ve seen DIY jobs where the drain line just dribbles onto the floor or is connected to a washing machine drain. That’s a code fail and a serious scalding hazard.
Seismic Strapping
Even if you don’t live in earthquake country, strapping is required. A 40-gallon water heater full of water weighs over 350 pounds. If it tips over, it can break gas lines, water lines, and cause massive flooding.
Straps must be metal and anchored securely into wall studs. One strap must be in the top third of the tank, another in the bottom third. Plastic straps or strapping only to drywall are useless.
Proper Venting for Gas Units
This is where DIY goes dangerously wrong. A gas water heater produces carbon monoxide. The vent pipe must be the correct type (typically B-vent or another suitable type), size, slope upwards, and have no dips that can trap water.
Every joint must be sealed with high-temperature foil tape or mastic-never duct tape. The vent must terminate correctly outside, away from windows and soffits, to prevent exhaust gases from re-entering your home.
Electrical GFCI Protection for Electric Units
Water and electricity are a deadly mix. Modern code requires the outlet serving an electric water heater to be a Ground Fault Circuit Interrupter (GFCI) outlet, or the circuit to be protected by a GFCI breaker.
This device will shut off power in a fraction of a second if it detects a fault, preventing electrocution. If your home is older, upgrading to GFCI protection is a must during replacement.
The Professional’s Role and the DIYer’s Homework
A licensed plumber knows the local codebook inside and out. They pull the permit, schedule the inspection, and fix any issues on the spot. That’s a huge part of what you pay for.
If you choose the DIY path, the responsibility is yours. The International Plumbing Code (IPC) is the base model, but your city or county almost certainly has local amendments.
You must contact your local building department to get their specific requirements before you buy a single part. Some towns require expansion tanks on all systems. Others have strict rules on drain pan requirements or gas shut-off valve location. What’s fine in one town can fail inspection in the next.
Do this research first. It will save you time, money, and the headache of failing an inspection and having to redo your work.
Keeping it Running: Your Maintenance Roadmap
Buying the water heater is one cost. Keeping it running for its full lifespan is another. Regular maintenance, guided by a simple water heater maintenance schedule, helps avoid premature replacement. A simple plan makes it easy to stay on track. Skip maintenance, and you will be buying a new unit much sooner. Here is your simple schedule for the two main types.
For Traditional Tank Heaters (Gas & Electric)
A tank holds water and sediment builds up at the bottom. This sludge makes the heater work harder, killing efficiency. It can also cause loud noises and premature failure.
Flush the tank once a year. This is the single most important task. Attach a garden hose to the drain valve at the bottom, run it to a floor drain or outside, and open the valve for a few minutes until the water runs clear.
Check the anode rod every 3 years. This is the metal rod inside the tank that sacrifices itself to protect the steel lining from corrosion. When it’s gone, your tank starts to rust. If it’s more than 50% corroded, replace it. A new rod costs $25 to $50.
Annual cost for a DIY homeowner is about $5 for a garden hose washer and your time. Having a pro do a full inspection, flush, and anode check runs $120 to $200 per service call.
For Tankless Water Heaters
Tankless heaters don’t store water, but mineral scale builds up on the internal heat exchanger, especially in hard water areas. This reduces flow, efficiency, and can cause overheating errors.
You must descale a tankless unit annually. This is not optional for long life. The process involves a small submersible pump, a bucket of white vinegar or descaling solution, and hoses to circulate the cleaner through the unit for about 45 minutes.
You also need to clean the inline filter on the water intake. This catches debris. Rinse it under a faucet.
Annual cost for a DIYer is about $20 for descaling solution and maybe $50 for the pump kit if you don’t have one. A professional descaling service call typically costs $150 to $300.
Red Flag Troubleshooting Guide
Your water heater will tell you when it’s in trouble. Listen to it. Here are the big warnings.
Rusty or Discolored Hot Water
- What it means: The inside of your tank is corroding. The glass lining is compromised, or the anode rod is completely gone.
- Urgency Level: High. This is a death sentence for the tank. Start planning for a replacement. It could last weeks or months, but failure is coming.
Loud Banging, Rumbling, or Popping Noises
- What it means: A thick layer of hardened sediment (like limestone) is at the bottom of the tank. Water gets trapped underneath, boils, and erupts through the sediment.
- Urgency Level: Medium-High. This stresses the tank and reduces efficiency. A flush might fix it if the sediment isn’t rock-hard. If ignored, it contributes to tank failure.
Water Pooling Around the Base of the Unit
- What it means: You have an active leak. It could be from a valve, a pipe connection, or worse, a crack in the tank itself.
- Urgency Level: Critical. Turn off the power (breaker for electric, gas valve for gas) and turn off the cold water supply to the heater immediately. A leaking tank cannot be repaired. You need a new water heater now.
No Hot Water At All (Tank Unit)
- What it means: For electric: Likely a failed heating element or tripped reset button. For gas: Could be a failed thermocouple, pilot light out, or gas supply issue.
- Urgency Level: Medium. It’s an inconvenience, not a flood. Check for simple fixes first (reset button, relight pilot). If those fail, you’re looking at a component repair.
Error Code Flashing (Tankless Unit)
- What it means: The unit has a problem it detected, like a flow issue, ignition failure, or overheating from scale.
- Urgency Level: Varies. Consult your manual first. Many errors (like ignition failure) can be reset. Persistent codes, especially for overheating, often point to the need for that annual descaling you might have skipped.
Your Water Heater Replacement Checklist
Replacing a water heater isn’t a spur-of-the-moment decision. A little planning saves you money and hassle. Follow this checklist for gas water heater replacement.
1. Assess Your Old Unit
Start in your basement, garage, or utility closet. You need two key pieces of information: the fuel type and the tank size.
- Fuel Type: Look for a gas line (black iron pipe) and a vent flue, or look for thick electrical cables (240V). Some units are propane or oil.
- Tank Size: The gallon capacity is on the label, usually near the top of the tank. It’s often 40, 50, or 75 gallons.
This assessment tells you your baseline; a direct swap for a similar unit is almost always the simplest and most affordable path. In my last house, I found a 50-gallon electric from 2001. The label was faded, but the data plate on the side had the model number I needed.
2. Get Multiple, Detailed Quotes
Call at least three licensed plumbers or HVAC contractors. Be specific on the phone.
- Tell them the fuel type and size of your current unit.
- Ask if the quote includes: disposal of the old unit, all new plumbing connections, any needed code upgrades (like a new expansion tank or drain pan), and the permit if required.
- Request an itemized quote. A lump sum price can hide surprises.
A quote that’s much lower than others often means something is missing, like the cost of the permit or new venting materials.
3. Check for Rebates and Tax Credits
Money is on the table, especially for high-efficiency models. Don’t skip this.
- Federal Credits: Check the ENERGY STAR website for current federal tax credits on heat pump or solar water heaters.
- Local Utility Rebates: Your gas or electric company likely offers rebates for installing efficient units. This is the most common source of savings.
- State Programs: Some states have additional incentives for energy-efficient appliances.
Rebate programs change frequently, so verify the details for the current year before you buy. I saved $300 on my own heat pump water heater through a local utility rebate that was set to expire the following month.
4. Schedule the Installation
Once you’ve chosen a contractor and secured your unit, lock in the installation date.
- Ask about lead times. A common tank model might be in stock, but a specific tankless unit could take weeks to order.
- Plan for a half-day to a full day without hot water. Morning installs are best.
- Be aware that weekend or emergency installation often carries a premium fee.
Clear the path to the water heater. Move boxes, bikes, or laundry. Your plumber will thank you, and it might shave time off the labor cost.
When to Seek Professional Help
This isn’t a casual DIY project for most people. Any work involving gas lines, venting, or new 240-volt electrical circuits requires a licensed professional. A small gas leak or a faulty electrical connection is a serious hazard. Even a straightforward electric tank swap involves heavy lifting, proper wiring, and plumbing know-how. If your assessment or the quotes reveal needed code upgrades-like moving the unit to meet current clearances or adding an earthquake strap-that’s another sign to rely on a pro.
Thinking through these steps takes the panic out of a replacement. It’s the same careful planning you’d use for any major home system, like figuring out a whole house water filtration system cost. You research, you budget, and you hire the right help. Your future self, enjoying a reliable hot shower, will be glad you did.
Quick Answers
What are some hidden costs in a water heater installation quote?
Always ask if the quote includes the permit fee and any required code upgrades, like an expansion tank or a new drain pan. Changing the location or fuel type (e.g., electric to gas) adds major costs for new lines and venting. A thorough pro will list these items upfront to avoid surprises on the final bill.
How can I estimate my annual operating cost before I buy?
Find the unit’s Uniform Energy Factor (UEF) rating on its Energy Guide label-the higher the number, the lower your operating cost. Multiply your household’s estimated yearly energy use (from the label) by your local cost per kilowatt-hour or therm of gas. This quick math shows the real price difference between a cheap, inefficient model and a more expensive, efficient one.
Is a tankless water heater’s longer lifespan worth the higher price?
Potentially, yes. A well-maintained tankless unit can last 20+ years, nearly double a standard tank’s lifespan. However, you must commit to annual descaling to prevent failure, and you pay more upfront for the unit and its complex installation. The payoff comes from combining energy savings with more years of service.
What’s the single most important maintenance task for a traditional tank?
Flushing the tank once a year. Sediment buildup makes the heater work harder, increasing bills and causing damaging noises. Also, check the sacrificial anode rod every 3 years; if it’s heavily corroded, replace it to prevent the tank itself from rusting out.
When should I absolutely call a professional instead of attempting DIY?
Any work involving a gas line connection, venting for a gas appliance, or a new 240-volt electrical circuit requires a licensed pro. Mistakes here risk gas leaks, carbon monoxide poisoning, or electrical fire. Your safety and your home’s insurance coverage depend on proper, permitted installation.
Your Action Plan for Water Heater Costs
Forget the sticker price and calculate the total cost over five years, including installation and energy bills. Start by getting written quotes from local plumbers that list the unit, labor, and any permit fees separately.
Bob McArthur
Bob is a an HVAC and plumbing industry veteran. He has professionally helped homeowners resolve issues around water softeners, heaters and all things related to water systems and plumbing around their homes. His trusted advice has helped countless of his clients save time, money and effort in home water systems maintenance and he now here to help you and give you first hand actionable advice. In his spare time, Bob also reviews home water systems such as tankless heaters, water softeners etc and helps home owners make the best choice for their dwelling. He lives around the Detroit area and occasionally consults on residential and commercial projects. Feel free to reach out to him via the contact us form.

