Gas vs Electric Water Heater Cost: Which Is Cheaper to Own?

Jessica Martinez
By Jessica Martinez, home improvement cost analyst
Updated 2026-07-09

Whichever fuel already runs to your utility room usually decides this one before cost even enters the conversation. Gas units run $700 to $1,800 installed for a 40 to 50 gallon tank; electric costs $500 to $1,400 for the same capacity. Gas typically costs $100 to $200 more to buy and saves $100 to $200 a year to run. Where the gas line already exists, gas wins long-term. Where it does not, adding one erases years of savings before you heat a single gallon.

Installed cost comparison

Fuel type and sizeUnit costInstallationTotal range
Electric, 40 gal$300 to $700$200 to $500$500 to $1,200
Electric, 50 gal$400 to $900$200 to $500$600 to $1,400
Gas, 40 gal$400 to $900$300 to $600$700 to $1,500
Gas, 50 gal$500 to $1,100$300 to $700$800 to $1,800
Electric tankless$500 to $1,200$300 to $800$800 to $2,000
Gas tankless$700 to $2,000$500 to $1,500$1,200 to $3,500

Pick gas if

Pick electric if

Confirm which fuel type is cheaper where you live

A local plumber can quote the actual cost of a gas line or a panel upgrade for your home.
Talk to a local plumber →
Free to request, no obligation. We earn a fee only if a job gets booked.

Switching fuel types mid-project

Possible in either direction, but a conversion costs more than a straight swap. Going to gas means a line installation and proper venting, typically $300 to $1,500 depending on run length. Going to electric means a dedicated 240-volt circuit and possibly a panel upgrade, in a similar range. A licensed plumber handles the gas and plumbing side; get a separate quote from a licensed electrician for any panel work before deciding.

FAQs

Does gas or electric have a longer lifespan?

Electric tanks average 10 to 15 years against 8 to 12 for gas. Electric elements cycle more gently and produce no combustion byproducts that accelerate internal corrosion, which is the whole explanation. It is a real gap, just not a large one.

What does the US Department of Energy say about operating cost?

The DOE puts gas tank operating costs at $300 to $500 a year versus $400 to $700 for a comparable electric resistance tank, a gap of $1,000 to $2,000 over 10 years in most markets. Cheap local electricity rates or rooftop solar can shrink that gap or erase it.

More on fuel and sizing

Which one wins

Gas costs more to buy and less to run where the infrastructure already exists. Electric costs less to buy and more to run in most markets, except for a heat pump unit, which can beat gas on operating cost after rebates. Run the calculator to compare 10-year ownership cost for your ZIP, then confirm with a licensed plumber before you commit.