Can the gas shutoff valve for a fireplace be inside the fireplace, behind the logs, or in the wall?
Can the Gas Shutoff Valve for a Fireplace Be Inside the Fireplace, Behind the Logs, or in the Wall? (IRC 2018)
Appliance Shutoff Valve — Fireplaces
Published by Jaspector
Code Reference
IRC 2018 — G2420.5.1
Appliance Shutoff Valve — Fireplaces · Fuel Gas
Quick Answer
No. IRC 2018 Section G2420.5.1 requires that the gas shutoff valve for a fireplace be located outside the fireplace enclosure and accessible — meaning it cannot be behind the log set, inside the firebox, or in a wall without an access panel. It may be in a listed key-operated valve recessed in the hearth or in the wall adjacent to the fireplace, but it must be operable and accessible without reaching into the firebox or removing components.
What G2420.5.1 Actually Requires
IRC 2018 Section G2420.5.1 is a specific provision for gas fireplace appliances that supplements the general appliance shutoff valve requirements of G2420.5. It states that the shutoff valve for a decorative appliance installed in a vented fireplace (a gas log set or gas insert) must be located outside the firebox and must be accessible.
The code allows two primary configurations for the shutoff valve location: a listed fireplace key valve recessed in the hearth face or sidewall adjacent to the fireplace opening, or a standard lever ball valve mounted on the gas supply line in the wall next to the fireplace in an accessible location. Fireplace key valves are specifically designed for hearth applications — they are recessed flush with the hearth face and operated by inserting a key, which turns the valve stem. These are listed products and are code-compliant under G2420.5.1 provided they are installed per the manufacturer's instructions.
What is specifically prohibited under G2420.5.1 is placement inside the firebox — behind the log set, under the log grate, or on the back wall of the firebox. The reason is that reaching into an active or recently active firebox to operate a shutoff is dangerous, and any valve inside the firebox is subject to the high radiant and convective heat that can damage valve seals and cause malfunction. A valve concealed behind artificial logs is not accessible in any practical sense during an emergency.
The valve must be within the proximity requirements of G2420.5 — within 6 feet of the appliance and in the same room. Because a gas log set is directly in the fireplace, the 6-foot rule is easily met by a hearth key valve or a wall-mounted valve adjacent to the fireplace opening.
For gas fireplace inserts with a control module that includes an internal valve, the manufacturer's installation instructions govern the internal valve configuration, but an external accessible shutoff is still required per G2420.5.1.
IRC 2018 Section G2420.5.1 requires that gas fireplaces and gas fireplace inserts have an accessible shutoff valve within the fireplace chase or firebox area in addition to the primary supply valve. For direct-vent gas fireplaces, the shutoff valve is typically incorporated in the gas valve module inside the firebox, accessible by removing the decorative log set and front glass panel. For masonry fireplaces converted to gas with a gas log or gas insert, the shutoff valve must be installed in the gas supply pipe within the firebox opening or in an accessible location at the fireplace surround. A valve mounted on the gas supply pipe in the wall cavity behind the fireplace without an access panel does not satisfy the accessibility requirement. It must be operable without removing wall covering. Key-operated gas valves that use a removable T-handle inserted into a valve body at the fireplace hearth level are a common compliant installation for masonry fireplaces with gas logs.
Why This Rule Exists
A gas fireplace shutoff valve that is inside the firebox, under the log set, or in a wall without access cannot be operated quickly in an emergency — when you smell gas near the fireplace, you need to be able to turn off the supply immediately without searching for or disassembling components. The accessible external valve requirement ensures that every gas fireplace user can locate and operate the shutoff valve in seconds, reducing the likelihood that a gas odor near the fireplace becomes a fire or explosion.
What the Inspector Checks at Rough and Final
At rough inspection, the inspector checks that the supply stub-out for the gas log set is properly located and that the valve location plan is compliant. At final inspection, the inspector will verify: the shutoff valve is located outside the firebox and accessible, the valve is operable without tools or without reaching inside the firebox, a listed fireplace key valve is properly installed per its listing (flush with the hearth face, within the hearth material, with the key supplied and accessible), and the valve is within 6 feet of the fireplace. The inspector may test the key valve by inserting and turning the key to confirm it operates freely.
What Contractors Need to Know
For new gas log set installations, install a listed fireplace key valve in the hearth surround or in the wall immediately beside the fireplace opening at a comfortable height (typically 12 to 18 inches above the hearth). The key valve kit includes a bronze valve body, a decorative face plate, and a cast key. The face plate must be flush with the finished hearth surface — exposed threads or valve stems are not code-compliant. Run the supply line from the key valve through the hearth material to the firebox, terminating at a brass fitting inside the firebox for the log set connection. The log set's flexible connector connects to this fitting inside the firebox.
Do not install a standard lever ball valve inside the firebox — even if it is technically accessible, it will overheat and the handle can become too hot to touch. Use the key valve or an exterior wall-mount ball valve only.
When installing a gas insert in an existing masonry fireplace, confirm the firebox dimensions against the insert manufacturer's installation requirements before ordering the unit. Inserts are not universally interchangeable; each model has minimum firebox opening width, height, and depth requirements. An insert that is too deep for the firebox will not allow the front frame to seal against the masonry opening, which is required for efficient operation of the direct-vent combustion system. Provide the homeowner with a demonstration of the gas valve control operation and the emergency shutoff procedure immediately after installation. Homeowners who have never operated a gas insert may not be aware that the pilot light must be on before the main valve can be opened. Document the startup procedure on a laminated card attached to the owner's manual and left with the unit for future reference by the homeowner or a subsequent owner who was not present at installation.
What Homeowners Get Wrong
The most common mistake is the installer placing the shutoff valve in the wall behind or below the hearth without an access panel. The valve is hidden from view and requires cutting into the wall to access it — making it effectively inaccessible for emergency use. Homeowners sometimes accept this because the fireplace looks cleaner without a visible valve, but it is a code violation that could be enforced during a future sale inspection or insurance claim. Always insist on a visible, accessible shutoff valve or a properly installed key valve.
State and Local Amendments
IRC 2018 states — TX, GA, VA, NC, SC, TN, AL, MS, KY, and MO — follow G2420.5.1 without significant modification. Some local jurisdictions and gas utilities require that all fireplace gas shutoff valves be key-operated (no lever valves adjacent to the fireplace) to prevent accidental operation by children. If the local utility or AHJ requires a key valve specifically, a standard lever ball valve on the wall is not acceptable even if it is code-compliant under the IRC. Confirm local requirements with the gas utility.
IRC 2021 did not change G2420.5.1. The prohibition on inside-firebox valve placement and the accessible location requirement are identical in both the 2018 and 2021 editions.
When to Hire a Licensed Gas Plumber
Installing a gas log set and the associated key valve requires running gas supply line through the hearth, which involves working on pressurized gas piping and requires a permit and inspection. Licensed gas plumbers and HVAC contractors who specialize in fireplace applications are the appropriate professionals. For retrofit gas log set installations in an existing masonry fireplace, confirm with the AHJ whether the hearth can accommodate the key valve installation without structural compromise to the firebox or hearth.
Common Violations Found at Inspection
- Shutoff valve placed inside the firebox behind the log set — explicitly prohibited by G2420.5.1
- Valve installed in the wall adjacent to the fireplace but behind drywall with no access panel — not accessible
- Valve installed in the crawl space or basement below the fireplace — not in the same room as the appliance
- Key valve not listed or not installed per its listing — exposed valve stem, non-flush installation
- No shutoff valve provided at all — only the main house gas shutoff available for the fireplace
- Valve not within 6 feet of the fireplace — installed in the mechanical room 15 feet away
- Key not supplied or accessible — key valve installed but key is lost or not provided to homeowner
- Standard lever valve used and located adjacent to the firebox where it can be operated by a child
Frequently Asked Questions
FAQ — Can the Gas Shutoff Valve for a Fireplace Be Inside the Fireplace, Behind the Logs, or in the Wall? (IRC 2018)
- Can the gas shutoff for a gas log set be behind the artificial logs?
- No. IRC 2018 G2420.5.1 prohibits placing the shutoff valve inside the firebox or behind the log set. It must be outside the firebox and accessible.
- What is a fireplace key valve?
- A fireplace key valve is a listed shutoff valve designed for installation flush in a hearth face or wall adjacent to a gas fireplace. It is operated by inserting a specific key to turn the valve stem, making it accessible but tamper-resistant.
- Can I put the fireplace gas shutoff in the wall next to the fireplace?
- Yes, a wall-mounted valve next to the fireplace opening is acceptable under G2420.5.1, provided it is accessible (not behind drywall without an access panel), within 6 feet of the appliance, and in the same room.
- Does a gas fireplace insert need an external shutoff valve?
- Yes. Even if the fireplace insert has an internal valve, an external accessible shutoff is required per G2420.5.1 so occupants can cut off the gas supply from outside the appliance in an emergency.
- What happens if the valve is inside a wall with no access panel?
- It is a code violation under G2420.5.1 because it is not accessible. The valve must be in a location where it can be operated without opening walls, removing panels, or reaching into the firebox.
- What changed in IRC 2021 for fireplace gas shutoff valve requirements?
- IRC 2021 did not change G2420.5.1. The requirement that the fireplace shutoff valve be outside the firebox and accessible is identical in both the 2018 and 2021 editions.
Also in Fuel Gas
← All Fuel Gas articles- Can a Flexible Gas Connector Go Through a Wall, Floor, Cabinet, or Furnace Cabinet? (IRC 2018)
Can a flexible gas connector go through a wall, floor, cabinet, or furnace cabinet?
- Can I Connect a Portable or Standby Generator to My Natural Gas Line? (IRC 2018)
Can I connect a portable or standby generator to my natural gas line with a quick-connect hose?
- Does CSST Gas Piping Need to Be Bonded? (IRC 2018)
Does CSST gas piping need to be bonded, and where does the bonding wire attach?
- Does the Fuel Gas Code Treat Propane Differently Than Natural Gas? (IRC 2018)
Does the fuel gas code treat propane differently than natural gas?
- How Deep Does a Buried Gas Line Need to Be? (IRC 2018)
How deep does a buried gas line need to be, and can plastic gas pipe go under a slab or into the house?
- How Do I Know What Size Gas Line I Need? (IRC 2018)
How do I know what size gas line I need for a furnace, range, tankless water heater, or generator?
- What Does Code Require for a Natural Gas or Propane Line to an Outdoor Grill? (IRC 2018)
What does code require for a natural gas or propane line to an outdoor grill?
- What Is the Code-Compliant Way to Hook Up a Gas Dryer? (IRC 2018)
What is the code-compliant way to hook up a gas dryer?
- What Kind of Gas Pipe Is Allowed in a House Under IRC 2018?
What kind of gas pipe is allowed in a house under IRC 2018?
- What Pressure Test Is Required After Installing or Changing a Gas Line? (IRC 2018)
What pressure test is required after installing or changing a gas line?
- Where Does the Gas Shutoff Valve Have to Be for a Furnace, Range, Fireplace, Dryer, or Water Heater? (IRC 2018)
Where does the gas shutoff valve have to be for a furnace, range, fireplace, dryer, or water heater?
Have a code question about your project? Get personalized answers from our team — $9/mo.
Membership