How a Gas Water Heater Is Installed: Step by Step

Table of Contents
- Things to Consider Before Gas Water Heater Installation
- Step-by-Step Gas Water Heater Installation Process
- Which Gas Water Heater Suits Your Home: Tankless or Tank?
- What Are the Common Gas Water Heater Installation Mistakes to Avoid?
- How Much Does Gas Water Heater Installation Cost?
- How Can You Maintain and Troubleshoot Your Gas Water Heater?
- DIY or a Licensed Pro for Gas Water Heater Installation?
- Gas Water Heaters in San Jose
- Frequently Asked Questions
A gas water heater installation in San Jose involves more than swapping a tank: the gas line, the vent that carries combustion gases (including carbon monoxide) out of the home, combustion air, earthquake straps and the temperature and pressure (T&P) relief valve all have to meet code, and the job needs a permit and inspection.
This guide walks through how a licensed plumber installs a gas water heater in San Jose and South Bay homes, so you know what a proper installation includes and what to ask about. Because mistakes can cause gas leaks, fires or carbon monoxide poisoning, we don’t recommend doing it yourself.
Gas and venting are a licensed plumber's job. The steps below explain what a correct installation includes so you can plan and check the work. Connecting gas, venting combustion gases and pressure-testing gas piping should be done by a licensed plumber, under a City permit, with an inspection. If you ever smell gas, leave the home and call 911 and PG&E from outside.
Things to Consider Before Gas Water Heater Installation
Before any work starts, check the size of the heater, the gas line’s capacity, the venting, the location and the local code. Getting these right up front avoids the serious problems: gas leaks, backdrafting, carbon monoxide exposure and pressure-related failures.
Choose the Right Size and Capacity
A heater that’s too small runs out of hot water; one that’s too large wastes gas keeping extra water hot. As a rough guide for a gas tank, a 40-gallon tank suits two to three people, 50 gallons suits three to four, and larger households need more capacity (or a tankless unit). Consider:
- Household demand: how many people live in the home and how much hot water you use at the busiest time of day.
- First-hour rating (FHR): how many gallons of hot water the heater can deliver in an hour, starting with a full tank. It’s on the yellow EnergyGuide label, and it’s a better test than tank size: pick an FHR that meets or beats your peak-hour use.
- Recovery rate: how quickly the heater reheats water. Gas tanks recover faster than standard electric tanks; if you often run a shower and the laundry at the same time, look for a higher recovery rate.
Plumbing Tools and Materials Requirements
An installer arrives with the right tools and parts so the gas, water and vent connections are sealed properly the first time.
See essential plumbing tools for more on each one.
Tools:
- Pipe wrenches for gas fittings and rigid water lines
- Adjustable wrenches for flexible connectors
- Channel locks to hold fittings steady while tightening
- Pipe cutter for copper or PEX water lines
- Drill and bits for straps, vent supports and brackets
- Screwdrivers for vent screws and access panels
- Level so the heater sits evenly
Materials:
- An approved flexible gas connector, new, never reused
- Gas-rated thread sealant or yellow gas-rated tape for gas threads (any tape used on gas must be rated for gas)
- Water connectors and fittings, with dielectric fittings where copper meets the steel tank
- Vent connector sections and elbows of the type the heater’s instructions specify
- Leak-detection solution for testing gas joints
- Earthquake straps or a listed strap kit
- Drain pan where a leak could cause damage
- T&P discharge pipe in an approved material (galvanized steel, hard-drawn copper or a listed drain tube; never PVC)
Safety Precautions and Gas Safety
A gas water heater involves fuel, an open flame and exhaust, so the work is done in a controlled order:
- Shut off the gas at the heater’s own shutoff valve before touching any gas fitting, and keep flames and sparks away.
- Ventilate the space, especially a closet or other small room.
- Leak-test every gas joint with a leak-detection solution before lighting the heater. Bubbles mean a leak that must be fixed and retested.
- Wear gloves and safety glasses when handling tools, pipe and old tanks.
- Test carbon monoxide alarms; California requires them in homes with gas appliances.
Code Compliance Requirements
The City of San Jose requires a plumbing permit to install or replace a water heater, followed by an inspection; for a single-family home or duplex the permit can be issued online through SJPermits. The City recommends that a licensed contractor apply, because whoever signs the permit is responsible for the work. Its published requirements include:
- Location. Except for direct-vent models, gas water heaters may not be installed in bathrooms, bedrooms, or closets and confined spaces that open into them. In a garage, the burner and pilot must be at least 18 inches above the floor, and the heater needs protection from vehicles.
- Straps. Every water heater must be braced against earthquakes; tanks up to 52 gallons need two straps.
- T&P drain. Full size, in an approved material, running to the outside and pointing down.
- Gas supply. A sediment trap downstream of the shutoff valve, gas piping sized for the load, and a gas line sizing worksheet for the inspector when gas lines are involved.
- Venting and combustion air. Per the California Plumbing and Mechanical Codes and the manufacturer’s instructions.
Other South Bay cities have similar rules; check with your building department.
Step-by-Step Gas Water Heater Installation Process
The installation runs in a set order: remove the old heater, prepare the space and set the new one, connect the water, T&P and gas lines, install the vent, then fill, test, light and pass inspection.
Step 1: Remove the Old Water Heater
The old heater is isolated from every utility, depressurized and disconnected in a controlled order to avoid gas leaks, spills or damage.
- Turn off gas, water and power. Turn the heater’s gas valve to “off” and close the shutoff valve on the gas line. Close the cold water supply valve near the top of the heater (turn it clockwise). If the heater has a power vent, electronic ignition or other electrical parts, turn off its breaker or unplug it.
- Drain the tank. Attach a garden hose to the drain valve, run it to a floor drain or outside, and open a hot water faucet in the house to let air in. The water may be hot; let the tank empty fully.
- Disconnect the gas, water and vent. The gas connector is undone at the shutoff valve without twisting the gas pipe, then the hot and cold water lines, and finally the vent connector at the draft hood, without damaging the vent sections that stay.
- Remove and dispose of the old heater. Use a hand truck and a helper. Most installers haul it away; San Jose residents can also schedule a no-cost Junk Pickup for a fully drained tank.
Step 2: Prepare the Space and Set the New Heater
Before the new heater goes in, the space, drain and gas supply are checked against current code.
- Inspect the gas line. Look for corrosion, worn threads, an old connector or a sticking shutoff valve, and replace them. Older installations often need a new flexible connector and a sediment trap (drip leg) to meet current code. A larger heater may need a larger gas line, which a licensed plumber sizes and pressure-tests.
- Install a drain pan where required. In an attic, over a finished space or anywhere a leak would cause damage, a pan with a drain line to an approved, visible location goes under the heater.
- Position, level and strap the unit. Set the heater with the clearances its label requires for combustion air, the vent and service access. Level it with shims; a heater that isn’t level can affect the vent and the burner. Then install the earthquake straps around the upper and lower third of the tank, anchored to the wall framing.
Step 3: Connect Water Lines and Gas Connections
Each connection is aligned, tightened and sealed so there are no leaks or ignition hazards once the system is pressurized.
- T&P relief valve. Most heaters come with it installed. Its discharge pipe runs at least the valve’s outlet size, downhill with no traps or valves, to the outside, ending pointing down 6 to 24 inches above the ground (6 to 12 inches above the floor for a heater in a garage), per the City’s rules.
- Cold water inlet with shutoff. The cold line connects to the inlet with a shutoff valve within reach, so the heater can be isolated without turning off the whole house.
- Hot water outlet. Connected the same way, with dielectric fittings where needed and the piping supported so its weight doesn’t hang on the tank. An expansion tank is added on the cold line if the home has a pressure regulator or check valve (a closed system).
- Gas line, connector and sediment trap. A new approved flexible connector runs from the shutoff valve to the heater’s gas control, with a sediment trap downstream of the shutoff to catch debris and moisture before they reach the burner. Threads get gas-rated sealant, and the line is supported so the connections aren’t strained. This is licensed plumber work.
Step 4: Install the Venting System
The vent carries combustion gases, including carbon monoxide, out of the home, so it’s the most safety-critical part of the job and should be done by a licensed plumber. The type depends on the heater and the house.
Atmospheric Vent Installation
Standard tank heaters with a draft hood rely on hot exhaust rising naturally. The vent connector is fastened to the draft hood with screws, rises continuously toward an approved chimney or B-vent with no dips, and is supported, with the required clearance to combustibles. The City limits the connector’s horizontal run to 75% of the vertical rise for single-wall pipe and 100% for B-vent. Done right, it pulls exhaust out of the home and prevents backdrafting.
Direct Vent Installation
Sealed-combustion (direct-vent) heaters take their combustion air from outside and send exhaust back outside through their own pipes. The intake and exhaust pipes connect to the heater’s ports and run to an approved exterior termination, with the slope, length and clearances from windows, doors and air intakes that the manufacturer specifies. Because combustion is sealed from the room, these are the only gas water heaters the City allows in a bedroom or bathroom.
Power Vent Installation
Power-vent heaters use a fan to push exhaust out, so they can vent sideways through a wall where a vertical flue isn’t possible. The vent pipe (often PVC, as the manufacturer specifies) attaches to the blower and runs to an approved termination with the required clearances, fully supported and sealed. The blower needs power, usually an outlet near the heater.
Step 5: Testing and Startup
Before the heater goes into service, every connection, valve and safety device is tested.
- Fill the tank and check for water leaks. Open the cold supply slowly and leave a hot faucet open until water runs steadily with no air. Check the T&P valve, inlet and outlet as the tank fills, and tighten any fitting that weeps. Never light a heater with an empty tank.
- Check water pressure. Water pressure above the heater’s rating stresses the tank and makes the T&P valve open; where street pressure is above 80 psi, code calls for a pressure-reducing valve.
- Test the gas connections. New or altered gas piping is pressure-tested as the code requires before it’s put in service. Every gas joint (shutoff valve, sediment trap, connector and the inlet at the gas control) is then checked with leak-detection solution with the gas on. Bubbles mean a leak to fix and retest before lighting.
- Light the heater. Follow the lighting instructions on the heater’s label: for a standing pilot, set the control to pilot, press the igniter and hold until the pilot stays lit; for electronic ignition, restore power and follow the start-up steps. The flame should be steady and blue, and the burner should come on when the thermostat calls for heat.
- Check the draft. With the burner running, the installer confirms the vent is drafting (no exhaust spilling at the draft hood).
- Set the temperature to about 120°F, as the CPSC recommends to reduce scald risk, and let the heater cycle.
- Final check. Vent connected and clear, gas and water joints dry under operating conditions, T&P discharge routed correctly, and clearances around the heater open for combustion air and service.
Step 6: Inspection
The City inspector checks the gas connection, venting, straps, T&P discharge, clearances and the permit paperwork. Keep the manufacturer’s instructions on site for the inspection, and keep the permit record afterward; it matters for insurance and when you sell.
Which Gas Water Heater Suits Your Home: Tankless or Tank?
A tankless gas heater suits homes that want lower gas bills, more space and continuous hot water and can afford the higher upfront cost. A gas tank heater costs less upfront, installs more simply and handles a family’s demand well. The right choice depends on budget, space, the gas line and venting, and how you use hot water.
| Feature | Tankless gas water heater | Gas tank water heater |
|---|---|---|
| Energy bills | Lower (no standby heat loss) | Higher |
| Lifespan | Usually longer than a tank, with regular descaling | Shorter; sediment and tank corrosion end most tanks |
| Hot water supply | Continuous, within the unit’s flow rate | Limited to the tank; it can run out |
| Installation cost | Higher; often a larger gas line and new venting | Lower; simpler installation |
| Space | Compact, wall-mounted (indoors or out) | Needs floor space |
| Maintenance | Descaling, especially with hard water | Tank flushing and anode rod checks |
| Best for | Long-term savings, small spaces, continuous hot water | Lower upfront cost, straightforward replacement |
See how a tankless water heater is installed for what a conversion involves.
What Are the Common Gas Water Heater Installation Mistakes to Avoid?
Most problems with gas water heaters come from venting, gas fittings, water connections and skipped code items. They cause safety risks, poor performance and failed inspections.
- Venting errors. The most serious mistake: the wrong vent size or material, a vent connector with no upward slope or loose joints, or a termination too close to windows or air intakes can cause backdrafting and let carbon monoxide into the home.
- Gas connection mistakes. The wrong thread sealant, an old or kinked connector reused, over-tightened fittings or a missing sediment trap can cause leaks and unstable gas supply. Every joint must be leak-tested.
- Water connection and pressure problems. Cross-threaded or loose joints, incompatible fittings, unsupported piping and pressure above the heater’s limit cause leaks, a dripping T&P valve and early failure.
- Code oversights. No permit, missing or loose earthquake straps, a T&P discharge pipe that’s undersized, capped or runs uphill, or clearances that are too tight. These surface at inspection, at a home sale or in an insurance claim.
How Much Does Gas Water Heater Installation Cost?
In San Jose, a gas water heater typically costs $1,500 to $4,500 or more installed, including the heater, labor, the permit and code-required parts. A straightforward like-for-like tank replacement is usually $1,200 to $2,000 or more; a gas tankless installation runs $1,800 to $6,000 or more, and a conversion from a tank lands toward the higher end.
What moves the price:
- Type, size and efficiency of the heater (high-efficiency and power-vent models cost more)
- Gas line upgrades for a larger heater or a tankless unit
- Venting changes, such as a new vent, a liner or a switch to power or direct venting
- Code items: straps, sediment trap, expansion tank, drain pan, T&P discharge
- Location and access: attics, closets and tight garages take more time
CPI quotes every installation as a fixed price before work starts. See water heater installation cost in San Jose for more.
How Can You Maintain and Troubleshoot Your Gas Water Heater?
Regular care keeps a gas water heater efficient and safe and catches small problems before they become repairs.
Maintenance:
- Keep the temperature at about 120°F for efficiency and scald protection.
- Flush the tank every 6 to 12 months; Santa Clara Valley water is moderately hard, and sediment reduces efficiency and causes rumbling.
- Look at the vent now and then: it should be connected, intact and clear, with no soot or rust at the draft hood.
- Have the anode rod checked every few years, more often with hard water, and replace it when it’s worn.
- Test the T&P valve once a year; if it keeps dripping afterward, have it replaced.
- Keep storage and flammable products away from the heater, and keep CO alarms working.
Troubleshooting:
- Not enough hot water: a low thermostat setting, sediment, or a heater too small for the household.
- Rumbling or popping: sediment boiling under the burner; flushing usually helps.
- Pilot goes out: PG&E advises shutting off the gas at the appliance valve and waiting five minutes before relighting per the manufacturer’s instructions, or calling PG&E or a qualified professional. A pilot that won’t stay lit needs a technician.
- Smell of gas, soot or a headache near the heater: leave, and call 911 and PG&E; don’t use the heater until it’s checked.
See water heater maintenance tips and signs your water heater needs repair.
DIY or a Licensed Pro for Gas Water Heater Installation?
In San Jose a homeowner can legally apply for the permit, but whoever signs is responsible and potentially liable for the work, and the job still has to pass inspection. Because the gas connection and the vent can endanger everyone in the home if they’re wrong, we recommend a licensed plumber for any gas water heater installation.
A job is simpler when:
- It’s a like-for-like replacement with no changes to the gas line or venting
- The space is easy to reach, with room for the new heater
- The existing gas line, shutoff and vent already meet current code
A licensed pro is a must when:
- The gas line needs to be modified, extended or upsized
- The venting needs to be replaced, rerouted or changed to power or direct vent
- You’re unsure about the code requirements or the permit
- The location is hard to reach or the setup is complex
CPI Service holds California CSLB License #1101278 (C-36 Plumbing, C-20 HVAC) and handles the permit and inspection. See our water heater services.
Gas Water Heaters in San Jose
- The Air District rule. New small gas tank water heaters are set to be phased out in favor of zero-emission models (originally 2027; a delay to 2028 was proposed). Many homeowners now compare a heat pump water heater, which qualifies for SJCE EcoHome rebates in San Jose when it replaces a gas model; see how an electric water heater is installed.
- Earthquakes. Straps and flexible gas connectors are required for a reason.
- Garages. Most South Bay gas water heaters sit in garages, where the 18-inch rule and protection from cars apply.
CPI Service installs gas, tankless, electric and heat pump water heaters throughout San Jose and the South Bay, permits included. See gas water heater service, request a free estimate or call (408) 978-3093.
Frequently Asked Questions
Can I install a gas water heater myself?
In San Jose a homeowner can apply for the permit, but whoever signs the application is responsible and potentially liable for the work, and the City recommends a licensed contractor. We strongly advise against doing it yourself: a gas water heater involves a gas connection, a vent that carries carbon monoxide out of the home, and combustion air, and mistakes can cause gas leaks, fires or carbon monoxide poisoning. It also needs a permit and inspection.
Do I need a permit to replace a gas water heater in San Jose?
Yes. The City of San Jose requires a plumbing permit to install or replace any water heater, followed by an inspection; other South Bay cities have similar rules. For a single-family home or duplex, the permit can be issued online through SJPermits. The inspector checks the gas connection, venting, straps, T&P discharge and clearances.
What should I do if I smell gas after installation?
Leave the area right away without operating light switches, phones or anything that could make a spark, and call 911 and then PG&E (1-800-743-5000) from a safe distance. Don't try to find or fix the leak yourself.
Will the Air District rule affect my gas water heater?
The Bay Area Air District adopted a rule requiring new small tank water heaters sold for installation to be zero-emission, originally from January 2027; a 2026 proposal would delay it to 2028. It doesn't require removing a working heater, but it affects what you can buy for future replacements.
How long does a gas water heater last?
InterNACHI's life-expectancy guideline puts conventional tank water heaters at about 6 to 12 years and on-demand (tankless) units at about 10, and many tankless manufacturers rate their units longer. Real life depends on water quality and maintenance: flushing sediment from a tank, checking the anode rod and descaling a tankless unit all help.
What's the difference between natural gas and propane water heaters?
The fuel. Natural gas arrives by pipeline; propane is stored in a tank on the property and has to be refilled. Propane carries more energy per cubic foot, so the burner and gas valve are built for one fuel or the other: a heater must be made for, or properly converted to, the fuel it uses. Nearly all San Jose homes use natural gas.
Will homeowners insurance cover a DIY installation?
It depends on the policy, but there's real risk. The City of San Jose warns that insurers may deny claims related to unpermitted work, and damage from a faulty gas or vent installation may not be covered. Check with your insurer, and get the permit whoever does the work.
CPI and Alex were extremely helpful when our local church’s water heater kept malfunctioning and needed replacing. From the initial diagnosis, explanation and recommendation of replacement, we always felt that our needs were being tailored to. Not only were they extremely kind, knowledgeable and professional, but they also were diligent and efficient during their time.
We’re truly grateful for their excellent work and would highly recommend CPI to anyone in need of plumbing or heating services, especially for those in larger community buildings like churches like ours.
Stephen S., Google review
Read more reviews →Serving San Jose and the South Bay
CPI Service is based at 2880 Aiello Dr in San Jose and serves homes and businesses across the South Bay and the Peninsula. See all the areas we serve.