---
title: Install Gas Line for Tankless Water Heater: Easy DIY Guide
siteUrl: https://logzly.com/gaslinepros
author: gaslinepros (GasLine Pros Blog)
date: 2026-07-07T15:01:18.387974
tags: [diy, tanklessheater, gasline]
url: https://logzly.com/gaslinepros/install-gas-line-for-tankless-water-heater-easy-diy-guide
---


Want endless hot water but nervous about running a gas line? You’re in the right place. This guide walks you through how to **install gas line tankless water heater** safely, with clear steps, safety tips, and a leak‑test checklist you can follow today.

## Step‑by‑Step: Install Gas Line for Tankless Water Heater

First, gather your materials. You’ll need **three‑quarter inch black steel pipe** (or corrugated stainless steel if your code allows), a pipe cutter, two adjustable wrenches, pipe thread sealant (dope or tape), a shut‑off valve, a gas leak detector solution (soapy water works fine), and a bucket to catch any water if you’re cutting near a line. Having everything laid out before you start saves trips back to the garage.

Next, shut off the gas at the main valve. Turn the lever perpendicular to the pipe and give it a few seconds to make sure the flow stops. Then open a nearby gas appliance (like a stove burner) to bleed any pressure left in the line. You should hear a faint hiss that dies down quickly. This step is non‑negotiable for safety.

Now measure the run from your gas source to the tankless heater location. Cut the pipe to length with a pipe cutter, deburr the inside edges with a rag or a deburring tool, and wipe them clean. Apply a thin coat of pipe thread sealant to the male threads of each fitting, then screw the fittings onto the pipe by hand before tightening with the wrenches. Don’t over‑tighten; a snug turn past hand‑tight is usually enough.

Once the pipe is assembled, attach the shut‑off valve close to the heater so you can isolate it later. Connect the other end to your existing gas line using a proper fitting or a flexible connector if your local code permits. Make sure all joints are sealed with the sealant.

Before you turn the gas back on, do the leak test. Brush or spray the soapy water solution onto every joint, valve, and connection. Slowly open the main gas valve and watch for bubbles. If you see any, close the valve, tighten that joint a bit more, and test again. Repeat until no bubbles appear. This gives you confidence that nothing will leak.

Finally, check on permits. Many areas require a permit for any new gas line work, even if you’re doing it yourself. A quick call to your local building department or a look at their website will tell you if you need to file something and schedule an inspection. I always note the permit needed for gas line to tankless water heater on my checklist so I don’t forget this step. If an inspection is required, arrange it before you cover the pipe with walls or flooring.

After the test passes and any paperwork is sorted, light the heater’s pilot (or follow the manufacturer’s start‑up procedure) and enjoy the steady flow of hot water. Taking it slow, verifying each connection, and never skipping the leak test turned a nerve‑wracking project into a satisfying DIY win for me.---