Sizing calculations, venting requirements, connections, expansion tanks, and safety devices
Doing this on a real job? Replace a water heater: materials, tools and steps sized to your numbers.
Get the planGoing tankless? Size it from your fixtures and groundwater temperature with the tankless water heater size calculator.
A tank-style water heater stores and heats a reservoir of water (typically 30-80 gallons) using gas burners or electric heating elements. When hot water is used, cold water enters the tank to be heated for the next use.
These systems are the most common residential water heating solution, offering reliable performance and lower upfront costs compared to tankless systems. Proper installation is critical for safety, efficiency, and longevity.
| Number of People | Gas Water Heater | Electric Water Heater | Notes |
|---|---|---|---|
| 1-2 people | 30-40 gallons | 30-40 gallons | Adequate for apartments or small homes |
| 2-3 people | 40-50 gallons | 40-50 gallons | Standard family size |
| 3-4 people | 40-50 gallons | 50-65 gallons | Gas recovers faster than electric |
| 5+ people | 50-75 gallons | 65-80 gallons | Consider multiple units or tankless |
The First Hour Rating indicates how many gallons of hot water the heater can supply in one hour during peak demand. This is often more important than tank capacity.
Add up gallons used during your busiest hour:
Choose a water heater with an FHR that meets or exceeds your calculated peak demand. Look for the FHR on the EnergyGuide label.
| Factor | Gas | Electric |
|---|---|---|
| Installation Cost | Higher (venting complexity) | Lower (simpler) |
| Operating Cost | Lower (cheaper fuel) | Higher (electric rates) |
| Recovery Speed | Faster (40-50 gal/hr) | Slower (12-20 gal/hr) |
| Energy Efficiency | 60-70% (venting losses) | 90-95% (no venting) |
| Lifespan | 8-12 years | 10-15 years |
| Venting Type | Description | Requirements | Best For |
|---|---|---|---|
| Atmospheric Vent | Natural draft through vertical flue pipe | Single-wall or Type B vent pipe, vertical run with minimal horizontal | Traditional installations with chimney or roof vent |
| Direct Vent | Sealed combustion, draws air from outside and vents outside | Concentric or separate PVC/metal pipes through exterior wall | Interior installations, tight homes, no chimney available |
| Power Vent | Electric blower forces exhaust out | PVC or special vent pipe, requires 120V power, can run horizontally | When vertical venting is impractical, basement installations |
| Condensing | High-efficiency with secondary heat exchanger | PVC vent pipe, condensate drain required, 90%+ efficiency | Maximum efficiency, similar to tankless venting |
| Material | Uses | Pros | Cons |
|---|---|---|---|
| Copper (Type L) | Hot and cold supply lines | Durable, code-approved everywhere | Expensive, requires soldering or crimping |
| PEX | Hot and cold supply lines | Easy to work with, flexible, freeze-resistant | Not allowed in some jurisdictions, UV-sensitive |
| CPVC | Hot and cold supply lines | Low cost, easy glued connections | Can become brittle, lower temperature rating |
| Flexible Connectors | Final connections to tank | Accommodates movement, easy installation | Shorter lifespan, may not be code-approved |
An expansion tank (also called a thermal expansion tank) is a small tank installed on the cold water supply line that absorbs excess pressure caused by water expansion when heated.
| Water Heater Size | Expansion Tank Size | Notes |
|---|---|---|
| 30-40 gallons | 2 gallon tank | Typical small household |
| 40-60 gallons | 2-5 gallon tank | Most common residential size |
| 60-80 gallons | 5 gallon tank | Large households |
| 80-100+ gallons | 7.5-10 gallon tank | Consult expansion tank sizing calculator |
The T&P valve is the most critical safety device on a water heater. It automatically releases water if temperature exceeds 210°F or pressure exceeds 150 PSI, preventing tank explosion.
Seismic strapping (earthquake strapping) secures the water heater to wall studs or masonry to prevent tipping during earthquakes. Required in seismically active areas, but good practice everywhere.
Several manufacturers offer complete earthquake strap kits that include:
These kits simplify installation and ensure compliance with seismic codes.
Turn off gas/electricity and water supply. Attach garden hose to drain valve and empty tank completely. Disconnect supply lines and remove old unit.
Place new heater in location with proper clearances (6" from combustibles for gas). Use appliance dolly and ensure level placement. Install drain pan if required.
Apply Teflon tape and install T&P valve if not pre-installed. Attach discharge pipe running to proper termination point (floor drain or exterior). Ensure downward slope.
Install dielectric unions on both hot and cold connections. Connect water supply lines using appropriate pipe material. Install shutoff valve on cold line. Install expansion tank if required.
Gas: Connect gas line with drip leg, install shutoff valve, perform leak test with soapy water. Electric: Connect wiring in junction box, verify 240V at breaker panel.
Connect draft hood to flue pipe using appropriate vent material. Ensure proper slope and clearances. Seal joints with sheet metal screws. Verify draft with smoke test.
Open cold water shutoff and fill tank (leave hot water faucet open to purge air). Check all connections for leaks. Verify no drips from T&P valve.
Gas: Follow lighting instructions on tank, set thermostat to 120°F. Electric: Turn on circuit breaker, verify heating elements activate.
Attach upper and lower straps around tank secured to wall studs with lag screws. Verify tank is secure and cannot tip.
Wait for tank to heat (2-3 hours), verify hot water at fixtures. Test T&P valve. Schedule building inspection if required. Label electrical disconnect/gas shutoff.
Most jurisdictions require permits for water heater replacement or installation, especially when involving gas, electrical, or plumbing modifications.
Note: Water heater installation involves gas, electrical, and plumbing work that must comply with local building codes. Many jurisdictions require permits and inspections. Consider hiring a licensed professional if you're not experienced with these systems.
Disclaimer: This guide provides general information about water heater installation. Local building codes, manufacturer specifications, and fuel types may require different approaches. Installation of gas and electrical appliances can be dangerous and may require licensed professionals. Always consult local codes, obtain required permits, and consider hiring a licensed plumber or electrician for proper installation.
Permit check
Water heater replacement needs a permit in most places, gas units especially.
Inspections: Final (venting, T&P discharge, strapping)
Code changes
Model codes update every three years, and the parts that move this sheet are expansion tanks, T&P discharge, seismic strapping and venting. Leave an email and we will tell you when we update it for a new code cycle.
Local code notes for your county
Cities and counties amend IPC, UPC and the fuel gas codes, and the amendments are what inspectors fail people on. Tell us where the job is and your project gets the notes that apply there.
Ask about your situation. Posting needs a free account, and your question carries over so you get an answer with your project in view. Questions we hear often get answered on this sheet.
GPM from your fixtures and groundwater by ZIP, then gas BTU or electric kW, amps and breakers
GPM from a pit test or your basement, total head, horsepower from pump curves, basin size and backup power
Tank size by bedrooms, existing tank volume, drain field area by soil and your pumping schedule
Pipe sizes, fittings, codes, soldering techniques, and common repairs
Reference table showing maximum flow rate and recommended pipe size for PEX tubing
Reference sheet detailing gauge measurements and calibration procedures for PEX tools