The rule
Each appliance on the piping system needs an accessible, approved manual shutoff valve with a nondisplaceable valve member, or a listed gas convenience outlet. One valve or convenience outlet serves one appliance only, so a single valve can't feed two appliances.
The valve is located within 6 feet of the appliance it serves. Where a connector is used, the valve goes upstream of the connector. A union or flanged connection is provided downstream from the valve so the appliance controls can be removed.
Two exceptions: shutoff valves serving decorative appliances in a fireplace aren't located inside the firebox unless the valve is listed for that use, and shutoff valves can be located inside wall heaters and wall furnaces listed for recessed installation, where maintenance is done without removing the valve.
On the job
- Set the valve where you can reach the handle without moving the appliance. If you have to pull a range out to turn the gas off, it's too far away.
- Pick a valve with a nondisplaceable valve member, as the section requires, and one that's approved for gas.
- Make sure the union ends up on the appliance side of the valve, so the controls can come off with the valve closed.
- Share a line to two appliances with a tee and a valve for each, not one valve for both.
The inspector and your city's adopted edition have the final word.