Skip to content
HeaterGuides
Installation

How to Install a Gas Heater: Key Steps & Safety Tips

On this page 6 sections
  1. How to Install a Gas Heater Step by Step
  2. Tools, Materials and Site Preparation
  3. Common Installation Mistakes That Cause Leaks or Damage
  4. Permits, Code Rules and When to Hire a Pro
  5. Thermostat and Control Wiring Basics
  6. Frequently Asked Questions
At a glance
Installing a gas heater means running gas pipe, venting exhaust and wiring controls, so only simple wall or space heaters with an existing gas line are realistic DIY jobs, usually 4–8 hours of work, while larger projects like boiler installation or gas water heaters belong to a licensed pro.

Gas heat only feels simple because the hard work hides in the walls, vent and gas piping. A good installation keeps flames where they belong and exhaust headed outside, every day, for years.

Here’s a practical, step-by-step look at gas heater installation: what you can reasonably do yourself, what tools and parts you actually need, the mistakes that cause leaks or failed inspections, and the line where you stop and call a licensed tech.

Key takeaways
Plan permits, gas line capacity and a safe vent route before buying the heater; many “simple” installs fail on those three points.
Homeowners can usually DIY a ventless or direct-vent wall heater on an existing gas stub-out, but new gas piping, tankless water heaters and boiler installation are pro-level work.
Shut off and lock out gas and power, then leak-test every new joint with solution and confirm steady blue flames on first startup.
Most gas heater, water heater and boiler installs need a permit and inspection even for homeowner work; your local building department is the final word.
Common failures come from wrong vent parts, ignored clearances, over-tightened fittings and skipping CO detectors in the rooms you heat.

How to Install a Gas Heater Step by Step

For most people, gas heater installation as a DIY project only makes sense for a small wall or space heater on an existing, code-compliant gas line. To install a new gas space heater or propane wall heater safely, you confirm any permits, match the heater to your gas type, mount it with the clearances in the manual, connect to the existing shutoff, leak-test every joint, then follow the startup steps. That same basic order covers how to install gas on heater hookups you add in a den, how to install a gas space heater in a workshop, and even propane heater installation off a properly sized tank and regulator. Even for gass heaters newly installed by a builder, running through these checks before you ever strike a spark helps you catch problems before they leak or soot up the room. Larger systems like furnaces, boilers or gas water heaters use the same principles but demand pro-level gas sizing, vent design and permits, so they go to a licensed installer.

Before you install new heater hardware at all, deal with the paperwork and the manual. Check with your building department about permits and inspections for a wall or space heater, because in many areas any new gas appliance must at least be inspected. Read the manufacturer manual front to back so you know the required gas type (natural gas vs propane), BTU input, venting style and wall clearances; a 30,000 BTU unit on a 20,000 BTU-rated gas line, or a natural-gas heater on propane, is a recipe for trouble, not heat.

Safety prep comes next. Find the main gas shutoff for the building and make sure it turns smoothly; then close the appliance shutoff at the stub-out where the heater will connect. Shut off power to any circuit feeding the heater or thermostat at the breaker panel and verify it with a non-contact voltage tester. Install or test carbon monoxide detectors in the heater room and in the hallway near bedrooms, replacing batteries or the whole unit if they are past their dated life.

Gas work is unforgiving
Gas piping and venting can leak, explode or fill a room with carbon monoxide, and many heaters also involve 120 V wiring that can shock or start a fire. If you are in any doubt about cutting or threading gas pipe, sizing a line, running a vent through a wall or roof, or interpreting the code requirements in your manual, stop and hire a licensed gas technician or HVAC contractor instead of guessing.
1
Choose a safe, code-compliant location
Use the manual to mark the minimum clearances to floor, ceiling, corners, furniture and curtains; many wall heaters need about 3 feet of open space in front and a few inches around the cabinet. Confirm the wall can support the heater, check for studs with a stud finder, and avoid locations with known plumbing or electrical runs.
2
Mount the heater securely
If it is a wall unit, level and fasten the supplied bracket into studs or proper anchors, then hang the heater and tighten the locking screws. For floor models or wall units with optional feet, assemble the base, set the heater in place and verify it is stable and cannot be tipped by a bump or a pet.
3
Connect to the existing gas stub-out
With gas off, thread on a listed shutoff valve, sediment trap (drip leg) if required, and an approved flexible connector if local code allows, using thread sealant or tape rated for gas on the male pipe threads. Keep the shutoff accessible, avoid kinks in the connector, and do not modify or extend gas piping beyond the stub unless you are qualified and permitted to do so.
4
Install venting if the heater is vented
Follow the heater manual and vent kit instructions exactly for pipe size, slope and termination clearances, using the supplied wall or roof thimble. Seal exterior penetrations as directed, and hand off any roof cutting or chimney work to a pro if you are not fully comfortable with ladders and roof waterproofing.
5
Leak-test and start the heater
Open the appliance shutoff slowly and brush or spray gas leak detection solution on every new joint; bubbles mean a leak that must be re-made before you proceed. Once all joints stay dry, follow the lighting instructions, confirm a steady blue flame pattern where expected, and re-check your CO detectors while the heater runs.

A careful DIY swap of an old wall heater for a new one on the same gas stub can realistically take 4–8 hours, including reading, layout, drilling and leak testing. Anything involving new gas lines from the meter, rerouting hydronic piping, or cutting a new vent through a roof usually turns into a full weekend even for experienced hands and is often faster and safer as a contracted job.

For a straightforward living-room or bedroom install on an existing natural-gas line, a compact ventless wall unit with built-in thermostat, included wall mount and base feet, and no need for electricity keeps the scope as simple as it gets, provided local code allows vent-free heaters.

ProCom Heating Natural Gas Ventless Infrared Plaque Heater With Base…
If you have an existing natural-gas stub
ProCom Heating Natural Gas Ventless Infrared Plaque Heater With Base…
Product 1 is a 30,000 BTU natural-gas ventless infrared wall heater with included wall bracket and base feet, plus a built-in thermostat and push-button ignition, so your work is mainly safe mounting and making one gas connection. It still needs the same leak testing and clearances as any gas heater, and it cannot be used on propane or in jurisdictions that
See it on Amazon
Treat “before” photos as cheap insurance
Snap clear photos of the existing gas stub, shutoff valve and any wiring before you loosen a single screw so you can put everything back or show a pro exactly what changed if you need help later.

If any step above feels like guesswork as you read the manual in one hand and hold tools in the other, that is your signal to pause the project and bring in a licensed installer instead of trying to push through uncertainty.

Tools, Materials and Site Preparation

boiler installation: Tools, Materials and Site Preparation

You install any gas heater faster and safer when every tool, fitting and safety device is on the floor in front of you before you touch the gas valve. The core kit for gas or propane heater installation is very close to what you would gather for electric heater installation, a baseboard heater or even following a water heater installation guide, but here it is tuned for small gas wall and space heaters.

For hand tools, plan on one or two pipe wrenches, an adjustable wrench, a drill with wood and masonry bits, and a hole saw sized to the vent or wall thimble if the heater is vented. Add a tape measure, level, stud finder, screwdrivers, a tubing cutter if you will encounter copper, and a good flashlight or headlamp so you can actually see the back of the heater and the shutoff valve.

Safety and test tools matter as much as wrenches. A non-contact voltage tester confirms any nearby electrical box or thermostat wire is actually de-energized. A gas leak detection solution or spray makes bubble tests easy to read, and a low-pressure manometer lets you confirm inlet gas pressure or manifold pressure when the manual calls for it, instead of guessing from flame color.

On the materials side, you need gas-rated black iron pipe or CSST sized by the installer, a listed shutoff valve at the appliance, and a sediment trap or drip leg if your local code or the manual requires one. Most wall and space heaters also use an approved flexible gas connector where the code allows it, plus pipe thread sealant or tape explicitly marked for gas service on threaded joints. Round that out with the manufacturer-supplied wall bracket or base feet, appropriate screws and anchors for your wall type, and a complete vent kit with wall or roof thimble and exterior cap for any vented model.

Have this on hand before shutting off gas
Heater, full manual printed or open on a tablet
Permit or inspection scheduled if required locally
Pipe wrenches, adjustable wrench, screwdrivers, drill and bits
Hole saw sized for the vent or wall thimble (for vented units)
Level, tape measure, stud finder and marker
Non-contact voltage tester
Gas leak detection solution or spray
Low-pressure manometer if the manual specifies pressure checks
Appliance shutoff valve, sediment trap and approved flexible connector (if code allows)
Gas-rated thread sealant or tape

Site preparation for a wall heater starts with clearing the room. Move furniture, drapes, rugs and stored boxes so you have at least the manual’s minimum clearance around the planned heater outline, often 3 feet in front and several inches at the sides and top. Use a stud finder to locate framing, mark out the unit’s footprint and clearances on the wall with painter’s tape, and check that the heater will blow into open room air, not straight at a couch or door swing.

Gas and vent routes deserve a quick sketch before you cut anything. Trace the shortest practical gas path from the existing stub or manifold to the heater location that avoids known wiring and plumbing, keeps joints accessible and respects any required support spacing for pipe or CSST. For vented units, plan a vent route with the slight upward slope called for in the manual, terminating outside with the clearances the manufacturer lists from windows, doors, corners and grade rather than simply aiming for the nearest exterior surface.

Worked example
Say your garage is 20 by 20 feet, so 400 square feet. A simple rule of thumb for a reasonably insulated space is 25–30 BTU per square foot, which gives 400 × 25 = 10,000 BTU on the low side and 400 × 30 = 12,000 BTU on the higher side. A 30,000 BTU heater is more than enough for that number, but in a poorly insulated or very cold-climate garage, higher BTU per square foot is often needed; in a tight, small room, oversizing can lead to short cycling or, for vent-free models, exceeding what the room volume safely supports.
Room20 × 20 ft
Rule of thumb25–30 BTU/sq ft
Estimated need10,000–12,000 BTU
Heater size30,000 BTU unit
Print the manual and tape it to the wall
Having a printed copy of the installation manual at eye level beside the work area makes it easy to match stud locations, clearances and vent hole sizes without juggling a phone with dirty hands; just cross off each step as you finish it so you do not skip anything.

If collecting this tool and material list feels like more project than you want, you may be happier with easy-to-install heaters that plug into an outlet and skip gas piping and vent work entirely.

Common Installation Mistakes That Cause Leaks or Damage

boiler installation: Common Installation Mistakes That Cause Leaks or Damage

Most dangerous problems in gas heaters installation come from small code violations on gas piping and exhaust that seem harmless while you’re tightening the last fitting. Installing gas water heater exhaust or a gas space heater exhaust port a little off what the manual and code require—wrong slope, wrong cap, too close to a window—turns the vent into a carbon monoxide path back into the room.

Gas Piping Mistakes

Gas piping errors quietly set you up for leaks, weak flames and inspectors failing the job.

  • Teeing in a new heater or water heater with undersized pipe, so multiple appliances fire at once and all of them see low pressure and lazy yellow flames.
  • Skipping a dedicated shutoff valve within reach of the heater, forcing anyone who services it to kill gas to the whole house.
  • Using generic white Teflon tape or random pipe dope instead of gas-rated thread sealant, which can shred into the line or fail under gas exposure.
  • Cranking fittings so hard you crack a casting or distort threads; tight enough to seal is good, tighter than that just breaks things.
Myth
If I don’t smell gas, my work is tight.
Fact
Small leaks may give off no noticeable odor, especially in a ventilated area or inside a wall cavity. Every new joint needs to be checked with leak solution or an electronic detector and, on new gas piping, held under a pressure test for the time your code requires.

Venting and Clearance Problems

Venting mistakes are where carbon monoxide and moisture quietly build up instead of leaving the building.

  • Mixing vent materials, like single-wall, B-vent and flexible sections, in ways the manuals and code don’t allow.
  • Running B-vent with long flat runs or a slight downward slope, when it’s supposed to rise continuously toward the termination.
  • Exceeding the maximum horizontal length the manufacturer allows, especially on sidewall-vented space heaters.
  • Leaving off a required draft hood on a natural-draft gas water heater, which can cause backdrafting and burner rollout.
  • Terminating too close to windows, doors, soffits or corners, or under decks where exhaust can recirculate.
  • Tying a new heater into an existing chimney or vent that was only sized for one appliance.
boiler installation: Venting and Clearance Problems

Direct-vent gas space heater exhaust port installation code basically says: follow the clearances in the listing. That usually means the vent terminal sits a measured distance from doors, windows, gas meters and grade; guessing those distances is how exhaust ends up blowing straight into a window or soffit vent.

Clearances, Room Size and Combustion Air

Ignoring the clearances and room-size rules in the manual can overheat nearby surfaces or starve the flame of air. Vent-free heaters crammed into tiny bedrooms can use oxygen faster than fresh air arrives, driving up CO. Wall heaters hidden in closets or tight alcoves that don’t meet combustion air rules run hot, soot up and trip safety controls. Units buried behind furniture, drapes or storage can scorch nearby materials and block convection so the heater short-cycles.

Water Heater and Boiler Landmines

boiler installation: Water Heater and Boiler Landmines

Gas water heaters and boilers add water pressure and scald risk to the mix, so a few DIY shortcuts are flatly dangerous. Plugging or capping a temperature and pressure (T&P) relief valve discharge, or running it somewhere people can’t see, can turn a stuck thermostat into an explosion instead of a harmless gush of hot water. Omitting an expansion tank on a closed plumbing system pounds the relief valve and stresses the tank every time the burner fires. Setting a boiler where piping can freeze, like an unconditioned garage with no antifreeze in the loop, invites burst pipes and flooded rooms.

CO and relief valves are non-negotiable
Any sign of carbon monoxide—soot around a draft hood, headaches when the heater runs, a CO alarm chirping—means turn the appliance off and ventilate before you troubleshoot. A T&P relief valve or discharge line is never to be capped, plugged or reduced; if it leaks, the fix is to diagnose temperature, pressure or valve failure, not to block the only safety outlet.

Inspectors look for these problems because they’re visible signs of risk. Unsupported horizontal gas lines that sag, missing sediment traps (drip legs) ahead of heaters and water heaters, unlisted flex connectors, or a generic cap on a specialized vent terminal are all reasons they can red-tag an installation, delay startup and sometimes require you to open finished walls to prove the hidden work is safe.

Permits, Code Rules and When to Hire a Pro

Permits, inspections and code rules sit at the center of almost every gas heater or water heater installation, from a basic hot water heater installation to a full boiler installation. That includes a straightforward wall heater swap, a new boiler installation or a tankless gas water heater installation; on paper they’re all fuel-burning appliances tied to life-safety codes. Most building departments expect a permit to be pulled and an inspection scheduled before the gas valve is fully opened.

What Usually Triggers a Permit

Local rules vary, but the triggers are surprisingly consistent across cities.

  • Adding a new gas appliance that wasn’t there before: space heater, furnace, boiler, fireplace or water heater.
  • Moving an existing heater or water heater to a new location.
  • Running new gas lines or increasing the size of existing gas piping.
  • Changing how the appliance vents: new chimney liner, roof penetration or sidewall exhaust termination.
  • Altering electrical circuits to feed an ignition system, blower, circulator pump or condensate pump.

Where DIY Is Sometimes Allowed

Many jurisdictions let an owner-occupant do limited work on their own home, under permit. Typical examples are replacing a standard tank-type gas water heater in the same spot, or swapping a wall heater for the same BTU model, using existing correctly sized gas, vent and electrical connections. In those cases you may be allowed to install gas water heater yourself in a straight swap, then call for inspections before covering anything up. The catch is that you still have to size, vent and support everything exactly as the manufacturer and code require, and you still pull the same permit a contractor would.

Projects That Belong to Pros

Tankless gas water heater installation is rarely a good DIY project. Compared with a tank, a tankless unit often needs larger gas piping, dedicated stainless or PVC venting, a condensate drain, specific clearances and sometimes a new electrical circuit. Even a clear tankless water heater installation guide doesn’t change the fact that one missed detail can leave you with error codes, CO issues or a failed inspection, which is why builders usually expect a licensed installer for these.

Boiler installation and hydronic baseboard systems are even more demanding. Sizing boiler BTU output, circulator pumps and expansion tanks, laying out heating zones and purge valves, protecting against frozen piping and getting flue sizing right turn new boiler installation into engineering as much as wrench work. Many areas flatly require a licensed boiler or mechanical contractor for these jobs, plus documented pressure tests and startup reports.

ApplianceTypical DIY LevelApproximate TimePermit/Inspection?
Vent-free wall heaterIntermediateHalf day (4–6 hours)Commonly required
Direct-vent wall heaterIntermediate to Advanced4–8 hoursCommonly required
Standard tank gas water heaterIntermediate4–8 hoursAlmost always required
Tankless gas water heaterAdvanced / Pro-levelFull day or moreAlmost always required; sometimes pro-only
Boiler with baseboard or radiatorsPro-onlySeveral days including pipingAlways required; often licensed installer only
How typical gas appliances compare for DIY difficulty and permitting.
Check rules before you start
Before doing any heater or hot water heater installation, call your local building department and gas utility to confirm what permits, licenses and inspections they require. The answer can change between neighboring cities, and utility companies can refuse to light a meter if the paperwork isn’t in order.

Even if the city technically lets you DIY, gas utilities, home insurers and home-sale inspectors often expect paperwork showing a permitted, inspected job. Keeping that documentation on file also helps the next contractor when you upgrade again or plan tankless gas water heater installation later, because they can see exactly what was approved.

Thermostat and Control Wiring Basics

Installing a thermostat on a gas heater is usually a low-voltage job, and that’s the only kind a careful homeowner should touch. If you’re thinking about installing a thermostat or wondering how to install a new thermostat, you start by confirming the voltage before you ever loosen a screw.

FeatureLow-voltage thermostat (typical gas heat)Line-voltage thermostat (electric baseboard)
Typical voltageAround 24 V120 or 240 V
Wire size you see at the statThin, small-diameter control wiresThick house wiring conductors
DIY suitabilityOften OK if you follow the diagramsGenerally a job for an electrician or HVAC tech
Know which type you have before doing any thermostat work.
Voltage confusion is dangerous
If you pull a thermostat or open a junction box and see thick 120/240 V house wiring and wire nuts instead of thin control wires, or you’re simply not sure what voltage you’re looking at, stop. Leave the cover off, keep the breaker off and call a licensed electrician or HVAC technician rather than guessing.
1
Shut off power
Turn off power to the furnace or gas heater at the switch or breaker, then confirm the thermostat screen goes dead.
2
Confirm it’s low-voltage
Look behind the old thermostat: thin wires (often 2–5 of them) usually mean a 24 V control circuit; thick cable like the rest of your house wiring means line-voltage and is pro territory.
3
Remove cover and label wires
Take a clear photo of the old thermostat wiring, then label each wire by the terminal letter it’s on before loosening any screws.
4
Mount the new base
Level and secure the new thermostat base to the wall, pulling the wires through the opening without pinching them.
5
Match wires to terminals
Use the furnace and thermostat diagrams to land each wire on the correct terminal (for simple heat-only systems, usually R to R and W to W). Treat color codes (red, white, etc.) as hints, not proof.
6
Attach thermostat and restore power
Clip or screw the new thermostat onto its base, turn power back on, and set it to Heat.
7
Test a heat cycle
Turn the setpoint up; the heater should start within a minute. If it doesn’t, shut it back off and call a pro rather than swapping wires at random.

Color conventions like red to R and white to W are common but never guaranteed, especially on older homes where someone may have repurposed a wire. The real authority is the wiring diagram on the heater and in the thermostat manual, and any mystery wire should be traced or tested by someone with the right meter and experience.

Some gas wall heaters and space heaters have a built-in thermostat knob or dial on the front of the unit instead of a wall thermostat. That avoids thermostat wiring, but you still need to follow the manual for where the sensing bulb or probe sits and keep furniture away from it so the heater doesn’t shut off early or overheat the room.

Smart thermostats often need a common (C) wire and draw more power than an old two-wire, heat-only stat. On older systems with just R and W, adding a smart stat can mean pulling new cable or using an approved adapter in the furnace control compartment, which is usually best handled by someone comfortable working inside gas equipment.

Frequently Asked Questions

Can I install a gas water heater myself, or do I always need a plumber?
You almost always need a permit and inspection for a gas water heater, and most people are better off letting a licensed plumber handle the whole job. Some areas do let homeowners pull their own permit and install it, but then you’re responsible for gas piping, venting, T&P discharge, and strapping the tank to current code. If anything about gas leaks, exhaust backdrafting or 120/240 V wiring makes you hesitate, that’s your cue to hire a pro instead of pushing through.
How is a tankless gas water heater installed differently from a regular tank model?
A tankless gas water heater usually needs a larger gas line, different venting and an electrical outlet, so the install is more involved than swapping a tank. The burner input on many tankless units is often significantly higher than a typical 40‑gallon tank, so the installer may have to upsize the gas pipe back to the meter and run new approved vent pipe through a wall or roof. The unit hangs on the wall instead of sitting on the floor, may need a condensate drain, and is often placed closer to big hot-water loads to keep wait times down.
Where in a house is it safe and code-compliant to install a tankless water heater?
Safe, code-friendly locations have a clear vent path, enough combustion air and good service access—typically a utility room, basement, garage or an exterior wall. Many modern units are sealed-combustion, which helps in tighter spaces, but bedroom closets, small bathrooms and packed storage rooms are often off-limits unless the heater is specifically listed and sized for that use. You also have to protect the heater and piping from freezing, maintain the manufacturer’s clearances from combustibles, and follow both the manual and local code for how close the vent terminal can be to windows, doors and property lines.
Who typically installs tankless water heaters—plumber, HVAC contractor or gas utility?
Tankless water heaters are usually installed by a licensed plumber or HVAC contractor who is qualified to work on gas lines and venting. Gas utilities rarely install the unit itself; they mainly set or upgrade the meter and may adjust the service if the new heater needs more gas. Whoever you choose should be comfortable sizing gas piping, pulling permits and walking you through basic maintenance like descaling.
Do I need a permit for boiler installation, even if I’m just replacing an old unit in the same spot?
In most jurisdictions, replacing a gas boiler in the same location still requires a mechanical permit and inspection because you’re altering gas piping, venting and a pressurized heating system. The inspector will be looking at more than the boiler tag; they’ll check flue sizing, expansion tank, circulator pumps, relief valve discharge and combustion air against current code. Skipping the permit can cause problems with insurance and future home sales, so it’s usually a bad trade just to save a little time or fee money.
How do I install a propane radiant heater safely without creating a carbon monoxide risk?
Safe propane radiant heater installation starts with using an indoor-rated model only in enclosed spaces and an outdoor or garage unit only where it’s listed to be used. Vent-free indoor heaters must have an oxygen depletion sensor, follow the BTU‑per‑room‑volume limits in the manual and usually require you to crack a window for fresh air, and some areas don’t allow them at all, so you’ll need to check local code. Garage and shop radiant heaters should be direct‑vent or power‑vented with the flue run outside, mounted at the clearances the manufacturer gives to people, vehicles and combustibles. In every case you want a working CO alarm nearby, regular cleaning of the burner and a gas pro to pressure‑test the connections before you rely on it for heat.

Joye Editor

HeaterGuides covers home heating, water heating and HVAC: how the equipment works, what it costs to run, and how to use it safely.

More in Installation