You turn on the shower, and hot water flows out. You run the dishwasher, and it fills with hot water. You do the laundry, and the washing machine draws hot water. You rarely think about where the hot water comes from, until the day it does not come, and you are standing under a cold shower wondering what went wrong.
The water heater is one of the hardest-working appliances in your home, and one of the least understood. It runs 24 hours a day, 365 days a year, heating and reheating water, waiting for you to turn on a tap. Understanding how it works can help you choose the right one, maintain it properly, and know when it is time to replace it.
The short answer is this: a conventional water heater is an insulated tank that stores 30 to 80 gallons of water and keeps it hot. Cold water enters at the bottom through a dip tube, a gas burner or electric heating element heats the water, and hot water rises to the top. When you turn on a hot water tap, hot water exits from the top of the tank, and cold water enters at the bottom to replace it. A thermostat maintains the temperature, typically at 120 degrees Fahrenheit, and a safety valve prevents dangerous pressure buildup.
Key Takeaways
- A tank water heater stores 30 to 80 gallons of water and keeps it hot continuously. Cold water enters at the bottom, is heated, rises to the top, and exits when you turn on a tap.
- Tankless (on-demand) water heaters heat water only when you need it, using a heat exchanger. They are more energy-efficient but cost more upfront and may struggle with simultaneous uses.
- Gas heaters heat water faster and are typically cheaper to operate than electric heaters, but they require venting and a gas line. Electric heaters are simpler to install but heat more slowly.
- Heat pump water heaters (hybrids) are 2 to 3 times more energy-efficient than standard electric heaters, using a heat pump to extract heat from the surrounding air.
- Hot water runs out when you use it faster than the heater can reheat it. A 40-gallon gas heater recovers in about 30 to 40 minutes; an electric heater takes 60 to 80 minutes.
- Set your water heater thermostat to 120 degrees Fahrenheit. Water at 140 degrees can cause third-degree burns in 5 seconds; at 120 degrees, it takes 5 minutes. The lower setting also saves energy.
Table of Contents
The tank: how it stores and heats water
A conventional tank water heater is a deceptively simple device. At its core, it is an insulated steel tank, typically cylindrical, with a capacity of 30 to 80 gallons for residential use. The most common sizes are 40 gallons (for 2 to 3 people) and 50 gallons (for 3 to 5 people).
Cold water enters the tank through the cold water inlet at the top, but it does not stay at the top. A dip tube, a long pipe inside the tank, carries the cold water down to the bottom. This is important, because hot water rises and cold water sinks. By delivering cold water to the bottom, the dip tube ensures that the cold water is heated before it reaches the outlet.
The heating element is at the bottom of the tank. In a gas heater, a burner sits beneath the tank, with a flue running up through the center to vent exhaust gases. The burner heats the water from below, and the hot water rises by convection. In an electric heater, one or two heating elements are immersed in the water, typically one near the bottom and one near the middle. The elements heat the water directly, like an immersion heater in a kettle.
As the water heats, it rises to the top of the tank. The hot water outlet is at the top, so when you turn on a hot water tap, the hottest water exits first. Cold water enters at the bottom to replace it, and the cycle continues. The tank is always full: it never empties, it just replaces hot water with cold water, which is then heated.
A thermostat controls the temperature. Most water heaters have a thermostat set to 120 degrees Fahrenheit, which is the recommended setting by the US Department of Energy and the Consumer Product Safety Commission. The thermostat monitors the water temperature and turns the burner or heating element on when the temperature drops below the set point, and off when it reaches the set point. The heater cycles on and off throughout the day to maintain the temperature, even when no hot water is being used. This is called standby heat loss, and it accounts for 10 to 20 percent of a tank heater’s energy use.
The tank is insulated with foam to reduce heat loss, but some heat still escapes through the walls and the pipes. The insulation is typically 1 to 2 inches thick, with an R-value of 8 to 16. Older tanks have less insulation and lose more heat; newer tanks are better insulated.
A critical safety device is the temperature and pressure (T&P) relief valve, located on the side or top of the tank. If the water temperature exceeds 210 degrees Fahrenheit or the pressure exceeds 150 pounds per square inch, the valve opens and releases hot water, preventing the tank from exploding. The T&P valve is the last line of defense against a catastrophic failure. It should be tested annually by lifting the lever and confirming that water flows out.
Inside the tank, a sacrificial anode rod protects the steel from corrosion. The rod is made of magnesium or aluminum, which corrodes more readily than steel. The rod sacrifices itself, corroding over time, while the steel tank remains intact. The anode rod typically lasts 3 to 5 years and should be inspected and replaced when it is significantly corroded. If the anode rod is fully consumed, the tank itself begins to corrode, leading to rusty water and eventual tank failure.
Tank vs tankless: the trade-off
Tank water heaters are the most common type in American homes, but tankless (on-demand) water heaters are gaining popularity. Each has advantages and disadvantages.
A tank heater stores hot water and keeps it hot, ready for immediate use. The advantage is simplicity and low upfront cost: a tank heater costs $500 to $1,500 installed, and it can supply hot water to multiple fixtures simultaneously (as long as the tank has enough hot water). The disadvantage is standby heat loss: the heater consumes energy 24 hours a day to keep the water hot, even when no one is using it. The tank also has a finite supply: once the hot water is used up, you must wait for the tank to reheat.
A tankless heater has no storage tank. When you turn on a hot water tap, cold water flows through a heat exchanger, where a powerful gas burner or electric element heats it instantly. The heater only runs when hot water is needed, so there is no standby heat loss. Tankless heaters are 24 to 34 percent more energy-efficient than tank heaters for homes that use 41 gallons or less of hot water per day, according to the US Department of Energy. For homes that use more, the savings are 8 to 14 percent.
The disadvantages of tankless heaters are higher upfront cost ($2,000 to $4,500 installed, including potential upgrades to gas lines or electrical service) and limited flow rate. A single tankless unit can typically supply 2 to 5 gallons per minute, which is enough for one or two simultaneous uses (a shower and a dishwasher, for example), but not for three or four. If you run two showers and the washing machine at the same time, a tankless heater may not keep up, and the water temperature will drop. Larger homes may need two tankless units in parallel.
Tankless heaters also have a “cold water sandwich” effect: when you turn on a tap, there is a brief delay before hot water arrives, as the heater ignites and the heat exchanger warms up. The delay is typically 5 to 10 seconds, longer than the delay with a tank heater, where hot water is already in the pipes.
The choice between tank and tankless depends on your hot water usage, your budget, and your priorities. If you have a small household, use hot water sporadically, and want to save on energy costs, a tankless heater may be worth the investment. If you have a large household, use hot water heavily, and want the lowest upfront cost, a tank heater is the practical choice.
Gas vs electric vs heat pump
Water heaters are powered by gas, electricity, or a heat pump, and each has different characteristics.
Gas water heaters use natural gas or propane to fuel a burner. Gas heats water faster than electricity: a 40-gallon gas heater can recover (reheat a full tank) in 30 to 40 minutes, compared with 60 to 80 minutes for an electric heater of the same size. Gas is typically cheaper than electricity per unit of energy, so gas heaters usually cost less to operate, where gas is available. However, gas heaters require a gas line, a vent to exhaust combustion gases, and a pilot light or electronic ignition. They also produce carbon monoxide, which must be vented safely outdoors.
Electric water heaters use heating elements immersed in the water. They are simpler to install than gas heaters: they require only an electrical connection, no gas line and no venting. They are also safer, with no combustion gases. However, electric heaters heat water more slowly and, in most parts of the US, cost more to operate than gas heaters, because electricity is more expensive per unit of energy than natural gas. Electric heaters are a good choice where gas is not available, or where the simplicity of installation outweighs the operating cost.
Heat pump water heaters, also called hybrid water heaters, are the most energy-efficient type. They use a heat pump, similar to an air conditioner in reverse, to extract heat from the surrounding air and transfer it to the water. They consume 2 to 3 times less electricity than a standard electric heater, because they move heat rather than generating it. A heat pump water heater can save a typical household $300 to $400 per year on water heating costs, according to the US Department of Energy.
The drawbacks of heat pump water heaters are higher upfront cost ($1,500 to $3,000, compared with $500 to $1,000 for a standard electric heater), slower recovery time, and a need for warm ambient air. Heat pumps work best in spaces that stay above 40 degrees Fahrenheit year-round, such as a heated basement or a garage in a warm climate. In a cold, unheated space, the heat pump is less efficient, and the unit may switch to standard electric resistance heating, negating the savings. Heat pump water heaters also need space around them for airflow, and they produce cool, dehumidified air as a byproduct, which can be a benefit in a humid basement but a drawback in a heated living space.
Why your hot water runs out
Hot water runs out when you use it faster than the heater can reheat it. The tank holds a finite amount of hot water, and once it is depleted, you must wait for the heater to warm the cold water that has replaced it.
The key factors are tank size and recovery rate. A 40-gallon tank holds 40 gallons of hot water. A shower uses about 2 gallons per minute, so a 10-minute shower uses 20 gallons, half the tank. Two 10-minute showers back to back use 40 gallons, emptying the tank. A bath uses 30 to 40 gallons. A dishwasher uses 6 to 10 gallons per cycle. A washing machine uses 15 to 30 gallons per load, depending on the cycle and the water temperature setting.
Recovery rate is how fast the heater can reheat a full tank of cold water to the set temperature. It depends on the heater’s power: gas heaters are rated in BTUs per hour (typically 30,000 to 50,000 BTU for a residential tank heater), and electric heaters are rated in watts (typically 4,500 watts per element). A higher BTU or wattage means faster recovery.
A 40-gallon gas heater with a 40,000 BTU burner can recover in about 30 to 40 minutes. A 40-gallon electric heater with 4,500-watt elements takes 60 to 80 minutes. The recovery time is longer in winter, when the incoming cold water is colder (40 to 50 degrees Fahrenheit, compared with 60 to 70 degrees in summer), requiring more energy to heat.
If your hot water runs out frequently, you may need a larger tank, a heater with a faster recovery rate, or a tankless heater. You can also reduce hot water usage by taking shorter showers, using cold water for laundry when possible, and spacing out hot water uses (do not run the dishwasher, washing machine, and shower simultaneously).
Sediment buildup can also reduce hot water capacity. Over time, minerals in the water (calcium, magnesium) settle at the bottom of the tank, forming a layer of sediment. The sediment displaces water, reducing the effective tank capacity, and insulates the bottom of the tank, reducing heating efficiency. Flushing the tank annually removes sediment and restores capacity.
Maintenance and lifespan
A water heater requires minimal maintenance, but regular attention can extend its life and improve its efficiency.
Flush the tank annually to remove sediment. Attach a garden hose to the drain valve at the bottom of the tank, open the valve, and let the water run until it is clear. This removes sediment that has accumulated at the bottom. If the water is very cloudy or contains chunks of sediment, flush more frequently or consider installing a water softener if you have hard water.
Inspect the anode rod every 3 to 5 years. Turn off the water heater, drain a few gallons of water, and unscrew the anode rod from the top of the tank. If the rod is significantly corroded (more than 6 inches of the core wire is exposed, or the rod is less than 1/2 inch thick), replace it. A new anode rod costs $20 to $50 and can extend the tank’s life by several years.
Test the T&P relief valve annually. Place a bucket under the discharge pipe, lift the lever on the valve, and confirm that water flows out. Release the lever and confirm that the valve closes and stops leaking. If the valve does not open, does not close, or leaks continuously, replace it immediately. A faulty T&P valve is a serious safety hazard.
Insulate the tank and the hot water pipes to reduce heat loss. A water heater insulation blanket (available at hardware stores for $20 to $30) can reduce standby heat loss by 25 to 45 percent, saving $20 to $45 per year. Insulate the first 6 feet of hot water pipe from the tank with foam pipe insulation.
Check for leaks regularly. Look around the base of the tank for water, and check the connections at the top for drips. A small leak can indicate a failing tank, a loose connection, or a faulty T&P valve. Address leaks promptly, as water damage can be extensive.
Tank water heaters typically last 8 to 12 years (gas) or 10 to 15 years (electric). Tankless heaters last 20 years or more. Signs that a tank heater is failing include rusty water, rumbling or popping sounds (sediment buildup), leaks around the base, inconsistent water temperature, and a metallic taste in the water. If your heater is over 10 years old and showing signs of failure, start planning for a replacement. It is better to replace a heater proactively than to deal with a sudden failure and a flooded basement.
Frequently asked questions
What temperature should I set my water heater to? 120 degrees Fahrenheit is the recommended setting. It is hot enough for showers, dishwashing, and laundry, but cool enough to prevent scalding. Water at 140 degrees can cause third-degree burns in 5 seconds; at 120 degrees, it takes 5 minutes. The lower setting also reduces energy use and slows mineral buildup. If you have a dishwasher without a built-in heater, you may need 140 degrees for proper sanitization, but most modern dishwashers heat the water themselves.
Why is my hot water rusty? Rusty hot water (but clear cold water) indicates that the inside of the tank is corroding, typically because the anode rod is depleted. Replace the anode rod. If the rust persists, the tank may be failing and need replacement. Rusty water from both hot and cold taps indicates a problem with the water supply or galvanized pipes, not the water heater.
Why does my water heater make a rumbling sound? Rumbling or popping sounds are usually caused by sediment buildup at the bottom of the tank. When the burner heats the water, steam bubbles form under the sediment and burst, producing a rumbling sound. Flushing the tank removes sediment and should quiet the heater. If the sound persists after flushing, the sediment may be hardened and the tank may need professional cleaning or replacement.
Can I install a water heater myself? Installing a gas water heater requires a gas line connection, venting, and compliance with local building codes, and should be done by a licensed plumber. Installing an electric water heater is simpler but still requires electrical work and plumbing connections, and must comply with local codes. In most jurisdictions, a permit is required for water heater installation. DIY installation is possible for experienced homeowners, but professional installation is recommended for safety and code compliance.
How much does it cost to run a water heater? Water heating is typically the second-largest energy expense in a home, after space heating and cooling, accounting for about 18 percent of total energy use. A standard electric tank heater costs $400 to $600 per year to operate, depending on electricity rates and usage. A gas tank heater costs $200 to $400 per year. A heat pump water heater costs $150 to $250 per year. A tankless heater costs $150 to $300 per year. Actual costs vary by location, energy prices, and household size.
Sources and further reading
- US Department of Energy: energy.gov: guidance on water heating, energy efficiency, tank vs tankless comparison, and how to choose and maintain a water heater.
- USA.gov: usa.gov: information on home energy, safety, and finding licensed contractors for water heater installation and repair.
- US Department of Housing and Urban Development: hud.gov: resources on home maintenance, healthy homes, and energy efficiency improvements.
For more on how your home works, see how your home actually works. House noises are covered in why does my house creak at night, and heating costs in why is my heating bill so high. Our Home & Real Estate section covers more of it.
This article is for general educational and informational purposes only and is not financial, legal, insurance, tax, or medical advice. Always consult a qualified professional regarding your specific situation.
