# Gas Line Repiping in San Francisco

> Gas line repiping in San Francisco: the DBI permit, the witnessed 10 psi test, why PG&E restores gas only after city sign-off, and the outdoor pipe rule.

URL: https://hilltoprepipesanfrancisco.com/gas-line-repiping/

Customer-side gas piping from the meter to each appliance, replaced, tested in front of the inspector and handed back to PG&E to turn on.

Last Updated: October 30, 2026

- **10 psi for 15 minutes** Minimum gas pressure test in the California Plumbing Code, held in front of the inspector with no drop
- **$290** DBI Category 1P permit for gas line repair in a single residential unit
- **Galvanized** What San Francisco's plumbing code requires for gas piping in exterior locations
- **6 AWG** Minimum copper bonding jumper for CSST gas piping, no longer than 75 feet

Gas line repiping replaces the gas piping a property owner is responsible for: the pipe that runs from the outlet of the PG&E meter to the shutoff at each appliance. [Hilltop Repipe San Francisco](https://hilltoprepipesanfrancisco.com/) offers and manages gas line repiping and gas pipe replacement across San Francisco, Daly City and South San Francisco, with the work carried out by licensed and insured contractors who hold the C-36 or C-4 license a San Francisco plumbing permit requires and pull the permit for the address.

Gas work is separate from [water piping](https://hilltoprepipesanfrancisco.com/whole-house-repiping/) even when both happen in the same house. It has its own test, its own inspection steps and a hand-off to PG&E at the end, and the house is without gas until that hand-off is complete. If you smell gas now, this page is not the first step: leave the building and call 9-1-1, then PG&E; water emergencies are covered under [emergency pipe repair](https://hilltoprepipesanfrancisco.com/emergency-pipe-repair/).

## What happens on the first visit

The walk-through starts at the gas meter and works out to every appliance: furnace or wall heaters, water heater, range, dryer, fireplace and any outdoor line to a grill or heater. The route of the existing pipe is traced and its material noted, whether black steel, galvanized steel outside, or flexible CSST in later work. Each appliance’s demand is compared with the size of the pipe that feeds it, because a line that was fine for the original appliances can be too small for a new range or a tankless water heater.

The owner is asked what is changing. Gas piping is often replaced because an appliance is being added, moved or taken out, or because walls are already open for a [remodel](https://hilltoprepipesanfrancisco.com/repiping-during-renovation/), and a house moving its water heating or cooking to electric may need less gas pipe, not more. The result is a written scope and price that names the route, the material, the openings, the permit and the steps before PG&E restores service. The [guide to how invasive repiping is](https://hilltoprepipesanfrancisco.com/guide/how-invasive-is-repiping/) shows what openings look like when pipe runs inside finished walls.

## Who owns what: the meter and your piping

PG&E installs the service shutoff valve at every meter and owns the meter set. No attachments are allowed on its equipment. Everything downstream of the meter and its service tee is customer-side piping, under the city’s jurisdiction and the owner’s responsibility, much as the water line from the meter box is (see [water service line replacement](https://hilltoprepipesanfrancisco.com/water-service-line-replacement/)). That split decides the sequence. The gas is shut off at the meter, the customer-side work is done, the city inspects it, and PG&E turns the gas back on.

Gas lines in San Francisco can also run through places that are hard to see. During the city’s mandatory soft-story retrofit program, DBI and PG&E reviewed gas lines that had been encased in concrete in new foundations. Where a building has had a seismic retrofit, the gas route through the ground floor is checked before a new one is planned. In flats and apartment buildings, the [apartment building repiping](https://hilltoprepipesanfrancisco.com/apartment-building-repiping/) page covers the per-unit permits that also apply to gas work.

## Materials, and San Francisco’s outdoor rule

San Francisco amended the plumbing code so that gas piping in exterior locations is galvanized iron or steel with galvanized fittings. Runs along an outside wall, to a meter on the exterior, or across a yard to an outdoor appliance are built that way. Inside, the material follows the California Plumbing Code and the pipe’s listing.

CSST, the flexible corrugated stainless tubing, carries its own requirement: the system has to be electrically continuous and bonded to the building’s grounding electrode system with a copper jumper no smaller than 6 AWG and no longer than 75 feet, using listed devices. That is electrical work, so the scope flags it for a licensed electrician where CSST is used.

## The pressure test and the inspector

A gas repipe has two inspections. The rough piping inspection happens before anything is concealed, while every joint can still be seen. Then the piping is tested with air, carbon dioxide or nitrogen at no less than 10 psi, held for at least 15 minutes with no drop, in the presence of the inspector. Welded piping, or a system carrying gas above 14 inches of water column, is tested at 60 psi for 30 minutes; CSST at those higher pressures is tested at 30 psi for 30 minutes. Final inspection follows once the appliances are connected.

The gas test is a different test from the water-line test on a whole-house repipe: different medium, different pressure, and witnessed by the city rather than only recorded. A test that fails means finding the leak, repairing it and testing again, with a re-inspection charged at $259 per half hour.

## Why PG&E turns the gas back on

After the final inspection, the city issues a certificate and a copy goes to the gas supplier. State code makes it unlawful for the supplier to turn on gas or set a meter until that certificate has been issued, and only the gas supplier may turn on service that has been off. DBI’s fees must be paid before the “gas tags” that signal approval. City permit records show the pattern: dozens of recent descriptions mention gas tags or PG&E, such as a gas pressure test done so PG&E could reinstall service.

In practice the house is without gas for heat, hot water and cooking from the shutoff until PG&E restores it. PG&E’s crews restore service and relight pilots with someone present. Planning meals and hot water around that gap is part of planning the job.

## Permits in San Francisco, Daly City and South San Francisco

In San Francisco, DBI’s plumbing permits cover gas piping. A gas line repair in a single residential unit is usually Category 1P at $290; residential work in buildings of six or fewer units without underground plumbing, covering water, gas, waste and vent, is Category 2PA at $549. Gas appliance work is permitted separately on the mechanical side, Category 1M at $290 for a single unit. City records show 178 residential permit descriptions for gas line replacement or repipes over a recent two-year span. The [gas line permit guide](https://hilltoprepipesanfrancisco.com/guide/gas-line-permit-san-francisco/) walks through the steps.

Daly City lists a “Gas Pipe Repair” permit type. Its fees are $101 to issue a plumbing permit plus $14 for each gas piping system of one to four outlets and $14 for each outlet beyond that, so a four-outlet system comes to about $115. South San Francisco prices plumbing permits per trade by job valuation and requires a city business license for anyone paid for permitted work. The [Daly City](https://hilltoprepipesanfrancisco.com/service-areas/daly-city/) and [South San Francisco](https://hilltoprepipesanfrancisco.com/service-areas/south-san-francisco/) pages cover both cities.

## All-electric rules and existing gas lines

San Francisco has required new buildings to be all-electric since permit applications filed on June 1, 2021, so a new building has no gas piping to repipe. Since July 1, 2026, a Major Renovation of an existing building must also be all-electric, but only when two things are both true: the project is a significant alteration, and it replaces space and water heating for the entire building or installs new systems serving 80% or more of its conditioned floor area. Repairing or replacing existing gas piping does not meet that definition on its own, so on the city’s stated criteria San Francisco does not ban gas line repair or replacement in existing buildings. DBI decides how the rule applies to a particular project. South San Francisco’s all-electric reach code covers new residential construction, and Daly City’s adopted requirement is reported to cover new buildings as well.

The regional air rules work differently. The Bay Area Air Quality Management District adopted zero-NOx standards in 2023 that apply when new equipment is sold or installed, not to working appliances: gas water heaters under 75,000 Btu per hour manufactured after January 1, 2027, residential furnaces after January 1, 2029, and larger water heaters and boilers after January 1, 2031. Amendments to the water heater rule have been proposed that would change its dates and add exemptions, and the Air District’s Board decides whether they are adopted. As appliances are replaced with electric ones, such as a heat pump unit under [water heater replacement](https://hilltoprepipesanfrancisco.com/water-heater-replacement/), the gas branches that fed them are capped, which can shrink a repipe. The [Bay Area gas water heater rule guide](https://hilltoprepipesanfrancisco.com/guide/bay-area-gas-water-heater-rule/) follows the rule’s status.

## Earthquake valves and bigger appliances

State law lets cities require earthquake-sensitive gas shutoff valves, and the plumbing code requires them only where a local ordinance does. San Francisco has not adopted one. Owners can still install one voluntarily as a permitted job: the valve must be state-certified, goes on the customer’s houseline downstream of the meter and service tee, and is not installed or serviced by PG&E. After a valve trips, appliances may need relighting.

A [tankless water heater](https://hilltoprepipesanfrancisco.com/water-heater-replacement/) is the most common reason a gas line turns out too small. South San Francisco’s Building Division notes that a non-storage heater may require the existing gas piping to be evaluated for higher demand, and in San Francisco its vent has to end at least 4 feet from a property line, which in attached rowhouses often pushes it to the roof or the front of the building. The [heat pump vs tankless guide](https://hilltoprepipesanfrancisco.com/guide/heat-pump-vs-tankless-water-heater/) compares the two.

## What drives the price

No published local price range for gas line repiping holds up, so it is priced from the walk-through. The drivers are the length of pipe, the number of branches and appliances, the material, how much wall and ceiling has to be opened, exterior runs in galvanized steel, CSST bonding, any seismic valve, and the permit, inspection and test steps that come before PG&E restores gas.

## What's included

- A map of the gas piping from the meter and service tee to every appliance
- Appliance loads checked against the pipe sizes that feed them
- New piping from the meter outlet to each appliance shutoff, as the scope names
- Galvanized steel with galvanized fittings for any exterior run in San Francisco
- Bonding for CSST where it is used, flagged for a licensed electrician
- Unused branches capped where appliances have gone electric
- Rough inspection and a pressure test witnessed by the inspector
- Final inspection and the city's sign-off sent on so PG&E can restore service
- The plumbing permit filed by a contractor holding a C-36 or C-4 license
- A written list of openings and who patches each one

## Repair a gas line or repipe it

|  | Repair a section | Repipe the system |
| --- | --- | --- |
| Typical trigger | One leak, a damaged run or a single appliance move | Old or undersized piping, several leaks, a remodel or a new appliance load |
| What changes | One length of pipe or fitting | Piping from the meter outlet to every appliance |
| Permit | Yes; a single unit is often Category 1P | Yes; scope sets the category |
| Test and inspection | Pressure test witnessed by the inspector | Rough inspection, witnessed test, final inspection |
| Gas off | Until the city signs off and PG&E restores service | The same, across the whole house |
| Watch for | Undersized pipe that a new appliance will outgrow | Branches that can be capped instead of rebuilt |

## Related resources

- Learn [Do you need a permit for gas line work in San Francisco?](https://hilltoprepipesanfrancisco.com/guide/gas-line-permit-san-francisco/)Gas piping is the plumbing job where the permit decides whether the gas comes back on. What DBI requires, what the test and inspection involve, how the release to PG&E works, and how the rules shift in Daly City and South San Francisco.
- Learn [What is the Bay Area's zero-NOx water heater rule?](https://hilltoprepipesanfrancisco.com/guide/bay-area-gas-water-heater-rule/)The Air District rule that sets a zero-NOx standard for new gas water heaters sold and installed in the nine Bay Area counties: what it covers, what it leaves alone, how the proposed changes would shift it, and how to plan a replacement.
- Decision Guide [Should you choose a heat pump or a tankless water heater?](https://hilltoprepipesanfrancisco.com/guide/heat-pump-vs-tankless-water-heater/)Two different answers to replacing an old tank. One keeps a tank and swaps the gas burner for a heat pump; the other drops the tank and heats water on demand. How each fits San Francisco's garages, closets, panels and rules.
- Learn [How invasive is repiping a house?](https://hilltoprepipesanfrancisco.com/guide/how-invasive-is-repiping/)A repipe opens walls in planned places, not along every pipe. Where the old lines run, what the walls are made of and how the building is stacked decide how many openings there are and how much patching follows.

## How a repipe runs

1. The call Describe the building Building type, floors, number of baths and units, the pipe you can see in the garage or basement, and what you have noticed.
2. Walk-through Map the pipe The supply is traced from the meter: pipe map, wall types, the main valve, the water heater and where access is easiest.
3. Scope Written scope and price Material, layout, every planned opening, the permit and who patches what, on paper before work is booked.
4. The work Permit, new lines, pressure test The permit is filed, new lines are run while the old ones still serve, fixtures are switched over and the system is pressure tested.
5. Sign-off Inspection, then patching The city inspector signs off with the pipe still visible. Then the openings are closed.

## What this work looks like

New black iron gas piping branching at a cross fitting on a San Francisco garage wall

Pressure test gauge with a yellow cap on a new black iron gas line along a San Francisco garage wall

Galvanized gas pipe on wall brackets along the stucco side wall of a San Francisco house

Seismic gas shutoff valve inline on a black iron gas line on a concrete wall

## Gas line repiping questions

### Why can't the gas be turned back on as soon as the new line is in?

Because state code does not allow it. After the final inspection the city issues a certificate and a copy goes to the gas supplier, and it is unlawful for the supplier to turn on gas until that certificate exists. Only PG&E turns service back on, and it relights pilots with someone home.

### Is an earthquake gas shutoff valve required in San Francisco?

No. State law lets cities require them, and the plumbing code requires them only where a local ordinance does, but San Francisco has not adopted one. Owners can still choose to install one. It must be state-certified, goes on the house side of the meter and service tee, and is a permitted job.

### Can gas lines still be repaired or replaced in San Francisco under the all-electric rules?

In an existing building, generally yes. The city's all-electric rule for existing buildings applies to a Major Renovation, which needs both a significant alteration and replacement of heating and hot water systems for the whole building. Repairing or replacing gas piping does not meet that definition on its own; DBI decides how the rule applies to a specific project.

### What pipe is used for outdoor gas lines in San Francisco?

Galvanized iron or steel with galvanized fittings. San Francisco amended the plumbing code to require it for gas piping in exterior locations, so black steel that is fine indoors is not used outside. Indoor material follows the state code and the pipe's listing.

### What decides the cost of gas line repiping?

The length of pipe, the number of branches and appliances, the material, how much wall and ceiling has to be opened, exterior runs, CSST bonding, any seismic valve and the permit, test and inspection steps before PG&E restores gas. No published local price range holds up, so it is priced from the walk-through.

## Related services

### Water heater replacement

Gas tank, heat pump or tankless, installed with the permit, straps, valves, venting and relief piping the code asks for.

Water heater replacement

### Emergency pipe repair

Burst pipes and active leaks, 24/7: stop the water, make the repair, then the permit and paperwork.

Emergency pipe repair

### Whole-house repiping

Every hot and cold supply line from the main valve to each fixture, in PEX or copper, tested and inspected.

Whole-house repiping
