AB Plumbing San Francisco plumber logoLicensed Plumbers
in San Francisco
Open 24/7Licensed & insuredPermits handled

Gas Line Installation and Repair in San Francisco

  • Licensed CSLB #876212
  • Rated 4.9 on Google
  • 24/7

New gas line for a range, dryer, water heater or BBQ, or a line that needs repair? We size it, pull the DBI permit, pressure test it and give you the price in writing first.

  • Licensed & insured, CSLB #876212
  • Rated 4.9 on Google
  • A real plumber answers 24/7
Gas connection with a flexible stainless connector under a new tankless water heater, next to new copper water lines, in a Noe Valley home, San Francisco
Gas connection with a flexible stainless connector under a new tankless water heater, next to new copper water lines, Noe Valley, San Francisco
Recent job

Gas connection on a tankless install

Noe Valley, San Francisco · November 2026

The gas connection under a new gas tankless water heater we installed: a flexible stainless connector feeds the gas inlet, next to the new copper water lines.

“I retained AB Plumbing services to install a new gas line for commercial dryers that we are installing in a hotel. The crew was on time, professional. They completed the work and then leak tested it. We will definitely use them again!”

Sean W., Google review

“Over the years my husband and I have had AB Plumbing help us with several plumbing issues--some big (like fixing the water line to the main), some small (relighting the pilot light) and for other things in-between.”

Gail H., Google review
The short answer
  • Smell gas right now? Leave the building first. Call 911 and PG&E at 1-800-743-5000 once you are outside, then call a plumber for the repair.
  • What we do: new gas lines for ranges, dryers, water heaters, tankless units, BBQs and fire pits, plus gas line repair and leak repair, in homes and commercial buildings.
  • Permit and test: in San Francisco, gas piping is done under a DBI plumbing permit, pressure tested and inspected. We pull the permit and meet the inspector.
  • Price: quoted after we see the route and the line size. You get it in writing before any work starts.

Gas line installation and repair in San Francisco is permitted work: the pipe is sized for the appliances it feeds, run in approved material, pressure tested and inspected by the Department of Building Inspection before the gas goes on. AB Plumbing is a licensed plumbing contractor, CSLB #876212, and we install and repair the gas piping on your side of the PG&E meter. This page explains which jobs that covers, what to do if you smell gas, how the permit and test work, and when to shut off the gas after an earthquake.

What gas line work do we do?

This is not new for us. A hotel customer hired AB Plumbing to install a new gas line for commercial dryers, and wrote in his Google review: “They completed the work and then leak tested it.”

Smell gas? Do this first

  1. Leave now. Get everyone out of the building and away from the smell.
  2. No sparks. Do not switch lights or appliances on or off, light a match or start a car near the smell.
  3. Call from outside. Once you are safe, call 911 and PG&E at 1-800-743-5000. PG&E says to leave the area and call 9-1-1 when you smell gas or suspect an emergency.
  4. Do not rely on smell alone. PG&E warns that some people cannot smell the odor added to natural gas, and that the odor can fade in some pipe and soil conditions. A hissing sound or a broken line is a sign too.
  5. Then the repair. When PG&E or the fire department has made the area safe, call us to find and repair the leak on your piping. We answer 24/7.

Permit, inspection and pressure test in San Francisco

In San Francisco, gas piping is permitted by the Department of Building Inspection (DBI) through a plumbing permit. DBI's plumbing permit categories for homes list water, gas, waste and vent work, and its fee rules mention gas tags. The steps below are what a permitted gas line job looks like:

  1. Size the line. We add up the gas demand of every appliance on the line and measure the length of the run from the meter. The California Plumbing Code (Chapter 12, Fuel Gas Piping) has sizing tables for exactly this.
  2. Pull the permit. We file the DBI plumbing permit before the work starts.
  3. Install. The new pipe goes in with a shutoff valve at each appliance.
  4. Pressure test. Before the piping is covered or used, it has to hold a test pressure with no drop. For ordinary low-pressure house piping the California Plumbing Code test is at least 10 psi held for at least 15 minutes, and the inspector can ask for longer.
  5. Inspection. The DBI inspector checks the work and the test. Walls and trenches stay open until the work passes.
  6. Gas on and check. The line is purged, the appliances are lit and every joint is checked for leaks before we leave.

A homeowner can apply for some DBI permits, but the San Francisco Building Code says homeowner plumbing work that fails inspection and is not corrected must be corrected by a state-licensed plumbing contractor under a separate permit. The Contractors State License Board says any job that needs a building permit needs a licensed contractor.

Plumbing Emergency in San Francisco: The First 10 Minutes (video, 1 min)

Sizing a gas line for a tankless water heater

A very common gas line question comes with a tankless water heater. A gas tankless burns much more gas while it runs than a tank does, so the pipe that fed the old tank is often too small. Too small a line starves the unit when you need hot water most, at the same time as the furnace or the range is on.

We check three things before we quote: the gas demand of the new unit plus every other appliance on the same line, the length of the run from the meter, and the size of the pipe that is there now. If the line has to grow, that becomes part of the job and the price. The rest of a tankless install, venting, condensate and service valves, is on our tankless water heater installation page.

A real gas connection: Noe Valley, November 2026

We do not yet have photos of a standalone gas line job to show. What we can show is the gas connection on a gas tankless water heater our technician installed in a Noe Valley home in San Francisco on November 2, 2026.

Gas shutoff valve with a yellow handle and copper water line under a new tankless water heater in Noe Valley, San Francisco
Noe Valley, November 2, 2026: the gas connection of our tankless install, with a yellow handle gas shutoff valve and the copper water line under the unit.

Earthquakes: when to shut off the gas

San Francisco's ReadySF earthquake guide says to turn off your gas main after an earthquake only if you smell gas, hear a hissing sound, see a broken gas line or suspect a leak. It adds that an unnecessary shutoff could delay your service, because the gas must be turned back on by a qualified professional.

Seismic gas shutoff valves. An earthquake-actuated valve closes the gas by itself when the ground shakes hard. California certifies these valves through the Division of the State Architect and lets each city decide whether to require them, and several Bay Area cities do, for example at the sale of a home. We did not find a San Francisco rule that requires one on an existing home. If you want one, it is installed on your piping after the meter under a permit, and it is worth checking with DBI before a sale or a remodel.

Who owns which gas pipe: PG&E or you?

Part of the systemWho is responsibleWho to call
Gas main in the street and the service line to the meterPG&EPG&E
The gas meterPG&EPG&E
Piping after the meter to the house, above ground or buriedThe property owner (customer-owned piping)A licensed plumber
Lines to each appliance, BBQ, fire pit or outbuildingThe property ownerA licensed plumber

PG&E says it maintains the system up to and including the gas meter, and that customers are responsible for maintaining the customer-owned piping on their property. It recommends checking that piping for leaks and corrosion, and says a licensed plumber or contractor can help locate, inspect and repair it. One detail matters before you dig for a BBQ, a fence or a garden: PG&E warns that customer-owned gas lines cannot be located by calling 811.

The 2028 water heater rule and your gas line

On November 4, 2026 the Bay Area Air District board moved its zero-NOx standard for residential water heaters to January 2028. It applies when you replace a heater, not to a working one, and KQED reports it does not prevent repairs. From January 2028, a replacement must meet the zero-NOx standard unless an exemption applies.

For your gas piping that means two things. If you replace a gas heater before then, the gas line may still need to be checked or upsized for the new unit. If you switch to an electric heat pump, the gas line that fed the old heater has to be capped safely under the permit. The exemptions reported so far are in our guide to water heater replacement cost and the 2028 rule.

What changes the price of a gas line

We do not publish a gas line price, because these items change from home to home. We look first and give you the price in writing before any work starts. For the prices we do publish, see our plumbing prices in San Francisco. If your water heater is the reason for the call, start with our water heater repair and replacement page. For a leak or a smell after hours, PG&E comes first, then our 24/7 emergency plumbers.

We are based at 2975 San Bruno Avenue and work on gas lines across San Francisco and the Peninsula, from Noe Valley, the Portola and the Excelsior to Daly City and South San Francisco.

Sources: PG&E, report an emergency and gas safety guidance, and PG&E customer notices on customer-owned gas piping. City and County of San Francisco, ReadySF earthquake safety guide. San Francisco Department of Building Inspection, plumbing permits and Table 1A-C fee schedule, 2026. California Plumbing Code, Chapter 12, Fuel Gas Piping (sizing and pressure testing). California Health and Safety Code sections 19180 to 19183 and the Division of the State Architect, seismic gas shutoff device certification. San Francisco Building Code, homeowner permits. Contractors State License Board, licensing guidance. Bay Area Air District news release and KQED, November 4, 2026. The Noe Valley photo is from our own job on November 2, 2026.

Real jobs and guides from our plumbers

Local plumbing news

Areas we serve

Neighborhood pages: Plumber in Portola · Plumber in Excelsior · Plumber in Visitacion Valley · Plumber in Bayview · Plumber in Crocker-Amazon · Plumber in South San Francisco · Plumber in Daly City · Plumber in San Bruno · Plumber in San Mateo · Plumber in Brisbane · Plumber in Redwood City · Plumber in Palo Alto · Plumber in Outer Mission · Plumber in Bernal Heights · Plumber in Noe Valley · Plumber in Pacific Heights · Plumber in Western Addition · Plumber in Sunset · Plumber in SoMa

Frequently asked questions

What should I do if I smell gas?

Leave the building now and get everyone out. Do not switch lights or appliances on or off, light a flame or start a car nearby. Once you are outside and away from the smell, call 911 and PG&E at 1-800-743-5000. PG&E warns not to rely on smell alone. Call a plumber for the repair after the area is safe.

Do I need a permit to install a gas line in San Francisco?

Yes. Gas piping is permitted by the Department of Building Inspection (DBI) through a plumbing permit, and the work is inspected. New gas piping must pass a pressure test before it is covered or put into service. We pull the permit and meet the inspector.

Should I turn off my gas after an earthquake?

Only if you smell gas, hear a hissing sound, see a broken gas line or suspect a leak. That is the guidance from San Francisco and PG&E. An unnecessary shutoff can delay your service, because the gas must be turned back on by a qualified professional.

Who is responsible for the gas line, PG&E or me?

PG&E maintains the system up to and including the gas meter. The piping after the meter, above ground or buried, to your house and to every gas appliance, is customer-owned and the owner maintains it. Buried customer-owned lines cannot be located by calling 811.

Can my gas line feed a new tankless water heater?

Often it cannot without changes. A gas pipe is sized for the total gas demand of all the appliances it feeds and the length of the run, and a tankless burns much more gas while it runs than a tank. We check the size and the run before we quote.

How much does a gas line cost in San Francisco?

We do not publish a gas line price, because the length of the run, the route through walls or floors, the number of appliances and the permit change the job. We look first and give you the price in writing before any work starts.

Call (415) 333-5566 · 24/7