The short version
- Your house water valve usually sits in line with the sidewalk meter, on the front wall or just inside. Leave the meter box itself to the SFPUC.
- After a quake, close the gas at the meter only if you smell gas, hear it hissing or see a broken line. Once it's off, PG&E turns it back on.
- Find the main breaker and fix the panel's labels, then keep a flashlight by the panel and a 12- to 15-inch wrench at the gas meter.
- California requires every residential water heater to be strapped in its upper and lower thirds, and San Francisco apartment houses must post where the shutoffs are.
Most people meet their water main for the first time holding a towel, while water runs through the ceiling of the flat below. A quiet Saturday morning is a better introduction. Walk the house once, find the three places where water, gas and electricity can be stopped, test the one shutoff you're allowed to test, and leave a label and the right tool at each. It takes well under an hour.
Where the three shutoffs are in a San Francisco house
In a row house with the garage at sidewalk level, all three usually sit within a few steps of each other, often behind years of storage. Flats and apartment buildings scatter them: gas meters in a row in a shared garage, the panel in a hall closet, the water valve behind the owner's locked door.
- Water meter box Under a lid in the sidewalk. The SFPUC owns the line up to the meter and asks that only its field staff open the box. The pipe from there to the house is yours. More
- House water valve The SFPUC says most are outside the house or just inside the property, in line with the meter. In a street-level garage, look low on the front wall where the pipe comes in. More
- Gas meter and service valve PG&E installs a shutoff valve at every gas meter, usually on the front or side of the building or in a meter cabinet, on the pipe rising from the ground before the meter. More
- Electrical panel Often in the garage or a hall closet, not always near the meter outside. In many panels the main breaker sits apart at the top with the largest amp rating. More
- Water heater Two straps, one in the upper third and one in the lower third. A tank on a garage platform should have the platform fastened down too. More
- Fixture stops The small valves under sinks and behind toilets shut off one fixture. Try them first for a single leak; the main is for water you can't trace. More
Water: find the main, test it, label it
This is the one shutoff worth testing, because a valve that hasn't moved in thirty years may not move when you need it. Start with the SFPUC's own description of the valve: usually a round-handled gate valve built to shut off and turn on slowly, or a ball valve with a blue lever, and typically the largest valve coming out of the wall.
Follow the line in from the sidewalk
Start at the meter box and walk the path the pipe would take into the house: the front wall, the garage, a crawlspace door. A tag from an earlier owner, or a valve someone painted red, is a good sign.
Tell a gate valve from a ball valve
A wheel means a gate valve: turn it clockwise until it stops, which can take several turns. A lever means a ball valve: a quarter turn, until the handle sits crosswise to the pipe.
Test it on a dry day
Close it, open a faucet on the top floor to confirm the water stops, then reopen the valve slowly. If the wheel won't budge, or water weeps from the stem, stop and leave it open. Forcing an old gate valve is how a test becomes a repair.
Label it, and tell someone
Hang a tag on the valve and write its location inside the panel door. Show the person who feeds your cat; a valve only you can find helps only when you're home.
Keep the floor in front of it clear
Boxes and bikes migrate toward valves. Leave room to kneel, and keep a flashlight within reach.
72+ hours
How long the SFPUC says your water supply might be unavailable after a major Bay Area earthquake. San Francisco Public Utilities Commission
Gas: find it, read it, leave it on
The gas valve is the shutoff you never test. PG&E's earthquake advice is to avoid turning off your gas without a clear sign that it is leaking, because once it's off, it stays off until PG&E turns it back on, which can take a long time when many customers are waiting. Your job now is to know where the valve is and what closed looks like.
Find the meter and its valve
PG&E installs a shutoff valve at every gas meter. Meters are usually on the front or side of a building, or in a cabinet inside or outside it. In an apartment building they often stand in a row, one per unit; find the one marked with yours.
Read the valve without touching it
The valve has a flat tab, the tang, that a wrench grips. Lined up with the pipe, it's open. PG&E says it is closed when the tang sits crosswise to the pipe, a quarter turn away.
Hang the wrench beside it
PG&E suggests keeping a 12- to 15-inch adjustable pipe or crescent wrench near the valve. A hook by the meter beats a toolbox upstairs.
Label it for the household
Mark which meter serves your home and show whoever else lives there. Renters: the city's ReadySF earthquake guide says to ask your landlord where the building's gas shutoff is.
Learn the three signs
PG&E lists smell (the rotten-egg odor it adds so leaks get noticed), sound (hissing, whistling or roaring) and sight (dirt spraying, steady bubbling in water, dead plants over a buried line). After a quake, those signs, a visibly broken line or a leak you suspect are the reasons to close the valve. Shaking alone isn't.
Automatic earthquake valves: who has to have one
The state's part is certification. The Division of the State Architect certifies two kinds of automatic gas shutoff valves for homes: an earthquake-sensitive valve that closes when shaking passes a design level, and an excess-flow valve that chokes off gas rushing out of a broken line. Installation falls to local building departments, and PG&E notes that some cities and counties require these devices, generally for new construction and significant alterations or additions.
Milpitas is a Bay Area example. Its building office requires an excess-flow device at the appliance whenever a gas appliance is installed or replaced, and an earthquake or excess-flow valve after the meter when the gas line is altered or extended, under a permit, by a licensed contractor. Research for this guide found no such San Francisco requirement; ask the Department of Building Inspection before assuming either way.
| Device | How it works | The catch |
|---|---|---|
| Manual valve at the meter | Put in by PG&E at every meter; anyone with a proper wrench can close it. | Works only if someone is there, knows where it is, can reach it and has the wrench. |
| Earthquake-sensitive valve | Closes on its own when the building shakes past a design level. | Can trip when nothing is damaged, trip again in an aftershock, and needs a manual reset. |
| Excess-flow valve | Closes or chokes the flow when gas runs faster than a set rate, as from a broken line. | Ignores a slow leak, and may let a small flow through so that it can reset itself. |
Either automatic valve goes on the house piping past PG&E's valve, regulator and meter, and the CSLB's C-36 plumbing class names gas earthquake valves among the safety devices a plumbing contractor maintains and replaces. If one trips, treat it like a closed meter valve: no reset until a qualified professional has checked the lines.
Power: the main breaker and a panel you can read
Find the panel
In houses here it is often in the garage, on a back porch or in a hall closet, and it may be nowhere near the meter outside. Open the panel's door. The cover behind that door, the one held on with screws, stays on.
Find the main
In many panels the main breaker sits apart at the top, bigger than the rest and stamped with its amp rating. Some older panels have no single main, and some houses still have a fuse box; if yours is either, ask an electrician to show you what shuts everything off.
Make the labels true
Pencil labels from a long-gone owner are often wrong. Map the circuits with two people and a phone: one switches breakers off one at a time, the other reports what went dark. Then write a new directory.
Know PG&E's two rules
After an earthquake, shut off the power at the main if you suspect damage to the wiring, and stay well away from any downed line outside. Day to day, a breaker that trips again with everything on its circuit unplugged is a call to an electrician.
The water heater strap California requires
A full tank is heavy, top-heavy and tied to a gas line and two water lines, which is the whole case for strapping it. Health and Safety Code Section 19211 requires all new and replacement water heaters, and every existing residential one, to be braced, anchored or strapped against falling or sliding in an earthquake. It covers standard heaters up to 120 gallons for which a pre-engineered strapping kit is readily available, and it sets the California Plumbing Code as the minimum.
The current edition, the 2025 California Plumbing Code, carries the rule in Section 507.2, and Bay Area building departments such as Dublin's summarize it this way: straps within the upper third and the lower third of the tank, with the lower strap at least 4 inches above the controls. The State Architect's bracing guidelines fill in the rest: two sets of straps for a tank of 52 gallons or less, a third set at mid-height up to 75 gallons, and local approval for anything bigger.
Passes a quick look
- Two metal straps around the tank, one in each third
- The lower strap at least 4 inches above the gas control or thermostat
- Each strap fastened into a wall stud with a lag screw and washer
- Flexible connectors on the gas line and both water lines
- A garage platform fastened to the floor or wall, with the tank secured to it
Call someone
- One strap, or straps only near the top
- A strap pressing on the gas control
- Straps held by small screws in drywall or plaster
- Rigid pipe running straight into the tank
- Straps loose enough to slide by hand
Selling? Section 19211 makes the seller certify in writing that the heater complies, which the standard transaction documents can carry; the selling guide covers the rest. Renting? The same section bars an owner from evicting anyone in order to comply and treats a building in violation as a nuisance. That is general information, not legal advice. If the tank is near the end of its life, read about the Bay Area gas water heater rule first.
After the shaking stops: an order of checks
First minute
People, then your nose
Check that everyone is unhurt. Then use your nose and ears before your hands: if you think gas is leaking, PG&E says to use nothing electric, not even a light switch.
If you smell gas or hear hissing
Out, then call
Everyone outside and upwind. Call 911 away from the building, then PG&E. Close the meter valve only if you can reach it safely.
Next few minutes
Water
Check under sinks, around the water heater and along exposed pipe. Spraying or pooling water that a fixture stop won't control means closing the main; the first 48 hours guide takes it from there. A leak on the SFPUC's side of the meter goes to 311.
Then
Power
Sparks, a burning smell or wiring pulled loose: switch off the main breaker if you can reach it without standing in water. Treat any downed line outside as live.
If the power is out
Unplug the big appliances
PG&E suggests switching off and unplugging major appliances so they aren't hit when power returns. With no sign of a leak, leave the gas on.
Over the following days
Aftershocks
ReadySF warns they can feel as strong as the main shock. Recheck the straps and connectors, hang the wrench back up, and finish the furniture in the room-by-room earthquake guide.
Apartments, flats and the building's shutoffs
A San Francisco building with three or more units is an apartment house under the Housing Code's definitions, and there the owner carries much of this. Section 712 requires existing apartment houses to post directions to the utility shutoffs, with operating instructions, in a public area. Tools needed for a shutoff must be kept near the valve, reachable by tenants but secured against tampering.
So look for that notice by the mailboxes or in the garage, find your unit's gas meter in the row, and ask which valve shuts off your water. If nothing is posted, or the wrench has wandered off, point the owner to Section 712. The strap rule covers the building's heaters too, and the owner's alarm duties are in the smoke and CO alarm guide.
Questions people ask
Should I turn off my gas after every earthquake?
No. PG&E asks customers not to shut off gas without a clear sign of a leak: the smell of gas, hissing, or a visibly broken line. Once it's off, it stays off until PG&E restores service and relights pilots, which can take a long time after a big quake. No sign of a leak? Leave it on.
Can I shut off the water at the meter box in the sidewalk?
In San Francisco, use your own valve instead. The SFPUC says water meters should be accessed only by its field staff. Your valve is usually on the front of the house or just inside, in line with the meter. Can't find it? Customer Services (415-551-3000) offers a courtesy visit, and 311 takes water emergencies at any hour.
Does San Francisco require an automatic earthquake gas shutoff valve?
Research for this guide found no San Francisco rule requiring one for an existing home; confirm with the Department of Building Inspection. PG&E notes that some cities and counties require earthquake or excess-flow valves, generally for new construction and significant alterations, and Milpitas is one. Choose a valve certified by the Division of the State Architect, installed on your side of the meter by a plumber.
How many straps does a water heater need in California?
Two for a typical tank, within the upper and lower thirds, with the lower one at least 4 inches above the controls: that is California Plumbing Code Section 507.2 as Bay Area building departments summarize it. The State Architect's guidelines add a third strap at mid-height for tanks of 53 to 75 gallons; anything larger needs local approval.
Who has to strap the water heater in a rental?
In practice, the owner. Health and Safety Code Section 19211 covers every existing residential water heater, bars an owner from evicting anyone to comply, and treats a building that violates it as a nuisance the owner may correct. If your tank has no straps, tell the owner in writing and keep a copy. This is general information about the statute, not legal advice.
Is there a gas shutoff at each appliance too?
Usually. PG&E's guidance treats gas shutoff as covering both the main line and individual appliances, and most appliances have a valve on the line that feeds them. Closing it isolates that appliance and leaves the rest of the house running. Anything beyond that valve, from a damaged connector to a pilot that won't stay lit, is work for PG&E or a licensed plumber.
Pros who take this work
Where these facts come from
Checked against these public pages in October 2026. Programs and rules change; the agency's own page is the final word. This guide is general information, not legal or engineering advice.
- Home Water Shutoff Valve San Francisco Public Utilities Commission
- Identifying Customer-Owned Service Lines San Francisco Public Utilities Commission
- Natural disaster safety Pacific Gas and Electric Company
- Gas safety Pacific Gas and Electric Company
- Electric safety Pacific Gas and Electric Company
- ReadySF Earthquake Safety Guide City and County of San Francisco
- Housing Code Sec. 712, Identification of Utility Shutoff Devices City and County of San Francisco, via American Legal Publishing
- Housing Code Sec. 401, Definitions City and County of San Francisco, via American Legal Publishing
- Gas Shutoff Valve Certification for Residential Structures California Division of the State Architect
- Gas Shutoff Devices comparison table California Division of the State Architect
- Natural Gas Safety and Shut-off Valves City of Milpitas Office of Building Safety
- C-36 Plumbing Contractor classification Contractors State License Board
- Health and Safety Code Section 19211 California Legislative Information
- Policy BDP 32: Water Heaters City of Dublin Building and Safety Division
- Guidelines for Earthquake Bracing of Residential Water Heaters California Division of the State Architect
- Water Heater Strapping City of El Cerrito
