Installing a new water heater involves more than connecting a tank to your home’s plumbing. The installation must match your water supply, fuel type, electrical system, gas line, venting, and local plumbing codes. A proper installation also protects your home from water leaks, excessive pressure, gas leaks, and other safety problems.
A standard tank water heater replacement may take a few hours when the new unit matches the existing setup. However, changing from one fuel type to another or installing a tankless water heater can require additional plumbing, electrical, gas, or venting work.
This guide explains how water heater installation works, how to choose the right unit, what components are involved, and when professional installation is the safer option.
What to Know Before Installing a Water Heater

Before buying a new hot water heater, check the system already installed in your home. The replacement should be compatible with your home’s fuel source, water connections, available space, and electrical capacity.
First, identify whether your current system uses natural gas, propane, or electricity. Replacing an electric heater with a gas model, or a gas heater with an electric model, can require major changes to the gas supply, electrical panel, venting system, and plumbing.
You should also check the manufacturer’s installation instructions and local building requirements before starting. Depending on the property and local jurisdiction, the installation may require a plumbing permit, electrical permit, expansion tank, drain pan, seismic straps, or other safety components.
Types of Water Heaters

The type of water heater you choose affects the installation process, operating cost, available hot water, and space requirements.
Storage Tank Water Heater
A storage tank water heater keeps a set amount of hot water inside an insulated tank. Common residential sizes include 40-gallon and 50-gallon units.
These systems are often easier to replace because the new unit can use the existing hot water line, cold water supply, and fuel connections when the replacement has the same specifications.
Tankless Water Heater
A tankless water heater heats water as it passes through the unit instead of storing hot water in a tank.
Tankless installation may require changes to the gas line, electrical supply, water piping, and venting system. Sizing is also based on flow rate in gallons per minute (GPM) and the required temperature rise rather than tank capacity.
Heat Pump Water Heater
A heat pump water heater uses electricity to move heat from the surrounding air into the water. These systems can be highly efficient, but they need adequate space, airflow, and proper electrical service.
The installation may also require a condensate drain and a drain pan, depending on the location and local requirements.
How to Choose the Right Water Heater
Choosing the correct unit is an important part of installation. A heater that is too small may run out of hot water, while an oversized unit may cost more to purchase and operate.
Consider these factors:
- Tank capacity: The number of gallons the storage tank can hold.
- Household size: More people generally means greater hot water demand.
- First-hour rating: The amount of hot water a tank can provide during a busy hour.
- Recovery rate: How quickly the heater can heat incoming cold water.
- Fuel type: Gas, propane, or electricity.
- Energy efficiency: A more efficient model can reduce long-term operating costs.
- Available space: The heater must fit while maintaining required service and ventilation clearance.
- Simultaneous water use: Tankless systems need enough GPM to supply multiple fixtures at once.
For example, a household that frequently uses a shower, dishwasher, and washing machine at the same time may need more capacity or flow than a smaller household.
What Size Water Heater Do You Need?
For a traditional storage tank, capacity is measured in gallons. A common starting point is:
- 1–2 people: 30–40 gallons
- 2–3 people: 40–50 gallons
- 3–4 people: Around 50 gallons
- 5 or more people: 50–80 gallons, depending on hot water demand
These are general guidelines rather than exact sizing rules. The first-hour rating and your household’s actual usage are also important.
For a tankless system, do not select a unit based on gallons alone. Instead, calculate the required GPM based on how many fixtures may operate at the same time and the temperature of the incoming water.
Tools and Materials Needed
The exact tools depend on whether you are installing a gas, electric, tankless, or heat pump model.
Common installation tools and materials may include:
- Pipe wrench
- Adjustable wrench
- Tubing cutter
- Screwdrivers
- Pliers
- Non-contact voltage tester
- Level
- Garden hose
- Thread seal tape
- Water heater supply connectors
- T&P relief valve and discharge pipe
- Water shut-off valve
- Drain pan
- Expansion tank, when required
- Dielectric unions
- Appropriate gas fittings for gas models
- Electrical connectors for electric models
Always follow the specific manufacturer’s instructions because connection methods and required components can vary between models.
Water Heater Installation Safety
Safety should come before every installation step.
For an electric water heater, turn off the dedicated circuit breaker and verify that the wiring is not energized before touching the electrical connections.
For a gas water heater, shut off the gas supply valve before disconnecting the gas connection. Gas appliances also require correct venting to safely remove combustion gases and prevent carbon monoxide from entering the home.
Never turn on an electric heating element while the storage tank is empty. The tank should be completely filled with water before energizing the heating elements.
Also keep combustible materials away from the heater and maintain the clearances specified by the manufacturer and local code.
Do You Need a Permit to Install a Water Heater?
A water heater installation permit may be required by your local building department. Requirements vary by location and by the type of work being performed.
A permit and inspection can help verify that important components such as gas connections, electrical wiring, venting, pressure relief protection, and other safety features meet applicable codes. Check with your local building department before starting the project.
How to Install a Water Heater Step by Step

Step 1: Turn Off the Water and Energy Supply
Start by shutting off the cold water supply to the existing heater.
For an electric unit, turn off the appropriate circuit breaker. For a gas model, turn off the gas shut-off valve.
Do not begin disconnecting the heater until you have confirmed that the energy source is safely off.
Step 2: Drain the Old Water Heater
Connect a garden hose to the drain valve at the bottom of the tank. Place the other end at a suitable drain location.
Open a nearby hot water faucet to allow air into the system. Then open the drain valve and allow the tank to empty.
A tank containing water is extremely heavy, so completely draining it makes removal safer.
Step 3: Disconnect the Existing Connections
After the tank has drained, disconnect the hot water outlet and cold water inlet.
A gas unit also requires disconnecting the gas supply connection and venting components. An electric unit requires disconnecting the electrical wiring.
If the existing connections are corroded, damaged, or incompatible with the new heater, replace them rather than forcing old components onto the new unit.
Step 4: Prepare the Installation Area
Clear the area and inspect the floor before positioning the new heater.
If required, install a drain pan underneath the unit. The new heater should sit level and have the required clearance for maintenance, ventilation, and service access.
For some installations, seismic strapping may also be required.
Step 5: Position and Level the New Water Heater
Carefully move the new water heater into position.
Use a level to make sure the tank is sitting correctly. Keep the water connections, controls, service panels, and venting connections accessible.
Follow the manufacturer’s clearance requirements rather than assuming the same space used by the old heater is automatically sufficient.
Step 6: Install the T&P Relief Valve
The temperature and pressure relief valve (T&P valve) is a critical safety component on a storage water heater.
It is designed to release water if temperature or pressure inside the tank reaches an unsafe level.
Install the valve according to the manufacturer’s instructions and connect the required T&P discharge pipe. The discharge line must not be blocked, capped, or improperly terminated.
Step 7: Connect the Cold Water Supply and Hot Water Outlet
Connect the home’s cold water supply line to the heater’s cold-water inlet.
Then connect the home’s hot water line to the heater’s hot-water outlet.
Many installations use flexible water heater connectors to make the connections easier and reduce stress on the plumbing.
Where different metals meet, appropriate dielectric fittings may be required to reduce the risk of galvanic corrosion.
Step 8: Install the Shut-Off Valve
A water shut-off valve allows the water supply to the heater to be isolated for future maintenance or repairs.
If the existing valve is damaged or being replaced as part of the installation, install a new valve that is compatible with the water supply piping and local requirements.
Step 9: Install an Expansion Tank When Required
When a home’s plumbing system is a closed water system, heating the water can cause thermal expansion.
An expansion tank provides space for this increased water volume and helps control pressure inside the plumbing system.
Whether an expansion tank is required depends on the home’s plumbing configuration and local code. Have the system evaluated before deciding whether one is needed.
Step 10: Connect the Gas or Electrical Supply
The final energy connection depends on the type of water heater.
For a gas water heater, the gas connection and venting system must be installed correctly and checked for leaks.
For an electric water heater, the unit must be connected to the correct electrical circuit according to the manufacturer’s specifications and applicable electrical code.
Because gas and high-voltage electrical work can create serious hazards, these parts of the installation are often best handled by a qualified professional.
Step 11: Fill the Tank Before Turning It On
Open the cold water supply valve and allow the tank to fill.
Open a nearby hot water faucet to let trapped air escape. When water begins flowing steadily from the faucet, the tank is filled.
Check the water connections, valves, fittings, and tank area for leaks.
Only after the tank is completely full should the appropriate energy source be turned on.
Step 12: Test the Completed Installation
A completed installation should be checked for:
- Water leaks
- Proper hot water flow
- Correct temperature
- Gas leaks on gas models
- Proper electrical operation on electric models
- Correct T&P relief protection
- Proper venting on combustion appliances
- Correct operation of the shut-off valves
Testing the finished system helps identify installation problems before they cause water damage or equipment failure.
You can read about: How to Install Tankless Water Heater
Common Water Heater Installation Mistakes
Several installation mistakes can reduce performance or create safety problems.
Installing the Wrong Size
A heater that cannot meet household demand may produce frequent hot water shortages. Always consider tank capacity, first-hour rating, recovery rate, or GPM when sizing the system.
Reusing Damaged Connections
Old water supply lines, shut-off valves, gas connectors, or fittings may be worn or corroded. Replacing questionable components during installation can reduce the risk of future leaks.
Blocking the T&P Discharge Pipe
Never cap, plug, or obstruct the T&P discharge pipe. It is part of the heater’s pressure and temperature safety system.
Turning on an Empty Electric Tank
Energizing an electric heater before the tank is full can damage the heating elements.
Ignoring Venting Requirements
A gas water heater needs proper combustion air and exhaust venting. Incorrect venting can create serious carbon monoxide hazards.
Skipping Local Code Requirements
An installation that looks correct may still fail inspection if it does not meet applicable plumbing, electrical, gas, or building codes.
How Long Does Water Heater Installation Take?
A straightforward replacement of a standard tank water heater can often be completed within a few hours. The Home Depot lists a typical project duration of about 2–4 hours, although actual time depends on the installation.
A simple replacement may take less time when the new heater uses the same fuel type and existing connections.
Installation can take longer when you need:
- New gas lines
- Electrical upgrades
- New venting
- Plumbing modifications
- An expansion tank
- A drain pan or drain connection
- Conversion from a tank to a tankless system
- Permit or inspection work
How Much Does Water Heater Installation Cost?
The cost depends on the water heater type, capacity, labor, location, fuel source, and modifications required.
A basic tank replacement is generally less expensive when the new unit can use the existing plumbing and utility connections. Tankless water heater installation can cost more because the project may require gas-line, electrical, water-piping, and venting modifications.
For a more detailed breakdown, see our guide on water heater installation cost.
DIY vs. Professional Water Heater Installation
A basic replacement may look like a simple plumbing project, but a water heater combines water pressure, electricity or gas, high temperatures, and safety controls.
DIY installation may be possible for experienced homeowners where local rules allow it. However, gas connections, high-voltage wiring, combustion venting, permits, and code requirements can make professional installation the safer choice.
A licensed plumber can also identify problems with the existing water pressure, plumbing connections, venting, shut-off valves, or electrical supply before they become larger issues.
Water Heater Maintenance After Installation
Proper maintenance can help your water heater operate efficiently and last longer.
For tank-style systems, periodic tank flushing helps remove sediment buildup from the bottom of the tank. Sediment can reduce heating efficiency and contribute to noise or premature wear.
The anode rod should also be inspected periodically because it helps protect the steel tank from corrosion.
Other maintenance tasks may include checking the T&P relief valve, inspecting water connections for leaks, and keeping the area around the heater clear.
When Should You Call a Professional?
Professional help is recommended when the installation involves:
- Gas line modifications
- Gas venting
- 240-volt electrical wiring
- Major plumbing changes
- Water pressure problems
- Difficult-to-access equipment
- Permit or inspection requirements
- Tankless system conversion
- Repeated leaks or installation failures
A professional can make sure the new system is properly connected, tested, and installed according to applicable requirements.
Professional Water Heater Installation in Eagle Rock
If you need a new water heater installation in Eagle Rock, professional installation can save time and reduce the risk of leaks, incorrect connections, and code problems.
Derks Plumbing provides water heater installation, replacement, and plumbing services for homeowners who need a properly installed and tested system.
Final Thoughts
Learning how to install a water heater starts with choosing the right system and understanding the home’s existing plumbing and utility connections. The installation involves much more than connecting two water pipes. Important components include the cold water supply, hot water line, shut-off valve, T&P relief valve, discharge pipe, expansion tank, gas or electrical connections, and, for combustion appliances, proper venting.
For a simple replacement, the process may take only a few hours. More complex installations can require new plumbing, electrical work, gas-line modifications, or permits. When safety or code requirements are involved, professional water heater installation is the best way to ensure the system operates safely and reliably.
Frequently Asked Questions
Can I install a water heater myself?
A homeowner may be able to perform some basic replacement work where local regulations allow it. However, gas connections, electrical wiring, venting, permits, and code compliance can make professional installation the safer option.
How long does it take to install a water heater?
A straightforward replacement commonly takes around 2–4 hours, but the actual time depends on the heater type and whether plumbing, electrical, gas, or venting modifications are required.
What should I install under a water heater?
A drain pan may be installed under a water heater when required by local code or when the location creates a risk of water damage. The pan should be properly sized and connected to an appropriate drain when required.
What is the most important safety valve on a water heater?
The temperature and pressure relief (T&P) valve is one of the most important safety components on a storage water heater. It helps protect the tank when temperature or pressure becomes dangerously high.
Do water heaters need an expansion tank?
Not every system requires one. An expansion tank is commonly used when the home’s plumbing is a closed system and thermal expansion needs to be controlled. Local plumbing requirements should determine whether one is needed.
Can I replace a gas water heater with an electric model?
It is possible, but it may require changes to the electrical panel, circuit, wiring, plumbing, and other components. The existing gas connection must also be safely disconnected and addressed according to applicable requirements.
What happens if a water heater is installed incorrectly?
Incorrect installation can cause water leaks, pressure problems, gas leaks, electrical hazards, poor heating, venting problems, or carbon monoxide exposure. It can also result in failed inspections or equipment damage.
How often should a water heater be maintained?
Maintenance frequency depends on the heater type, water quality, and manufacturer recommendations. Tank systems commonly benefit from periodic flushing, anode rod inspection, leak checks, and safety-component inspection.
