Codify — Article

California bill bars local bans on natural gas in new residential building standards

AB 2057 forbids cities and counties from adopting building-code changes that prohibit natural gas in homes and directs the state commission to reject such local amendments, applying statewide including charter cities.

The Brief

AB 2057 amends California’s building-standards statutes to prevent local governments from adopting building-code changes that outright prohibit the use of natural gas in residential units. The bill adds an explicit prohibition on local actions that would ban gas in homes and requires the California Building Standards Commission to reject any locally filed modification that has that effect.

It also declares the issue a matter of statewide concern so the rule applies to charter cities.

This is a targeted preemption of municipal authority over fuel choice in residences. The practical effect is to block local natural-gas bans while leaving other local modifications—such as incentives for all‑electric construction or administrative permitting changes—largely intact where they do not amount to a prohibition.

The change matters to local governments, builders, natural gas utilities, electrification vendors, and stakeholders pursuing municipal decarbonization policies because it removes a common local tool for shifting buildings away from fossil fuels.

At a Glance

What It Does

The bill prohibits any city or county from making a building‑standard change that prohibits the use of natural gas in a residential unit and directs the California Building Standards Commission to reject such filings. It amends Health and Safety Code Sections 17958.5 and 17958.7 and includes a statewide‑concern declaration to cover charter cities.

Who It Affects

Directly affected parties include city and county building departments, local legislative bodies that have adopted or planned natural‑gas bans, the California Building Standards Commission, residential builders and developers, and natural gas utilities and appliance manufacturers.

Why It Matters

AB 2057 removes a widely used local policy lever to phase out gas in new housing while preserving other local options that stop short of a ban (for example, incentives for all‑electric construction). That shifts the battleground for residential electrification from municipal ordinances to state policy, regulatory proceedings, and market incentives.

More articles like this one.

A weekly email with all the latest developments on this topic.

Unsubscribe anytime.

What This Bill Actually Does

AB 2057 modifies two existing provisions of California’s building‑standards law to draw a firm line prohibiting local bans on natural gas in residences. The statutory framework already lets cities and counties adopt local amendments to the statewide building code when those changes are shown to be “reasonably necessary” because of local climatic, geological, or topographical conditions, and it requires local findings and a filing with the California Building Standards Commission.

AB 2057 leaves that structure in place but inserts a categorical bar: a local change that would “prohibit the use of natural gas in a residential unit” cannot be adopted by a city or county.

Operationally, the bill accomplishes two things. First, it adds a standalone prohibition in Section 17958.5 that forbids local agencies from making code changes that ban gas in homes.

Second, it amends Section 17958.7 to require the Building Standards Commission to reject any modification filed by a local government that has that effect. Those additions sit alongside the existing limited exceptions in current law—such as narrowly tailored emergency standards, home‑hardening measures related to fire safety, and certain administrative amendments—so AB 2057 does not sweep away all local flexibility.Importantly, the bill includes a legislative finding that these amendments address a statewide concern and therefore apply to charter cities as well as general‑law cities and counties.

That removes the usual home‑rule distinction that often shields charter cities from statewide building‑code preemption. Practically, the change means local ordinances that currently ban gas in new residential construction would be subject to rejection by the state commission and vulnerable to administrative invalidation, forcing proponents of electrification to rely on non‑prohibitory tools (incentives, standards that do not expressly ban gas, state law changes) to accelerate fuel switching.

The Five Things You Need to Know

1

The bill adds Section 17958.5(d), which flatly prohibits a city or county from making a building‑standard change that prohibits the use of natural gas in a residential unit.

2

The bill adds Section 17958.7(e), which requires the California Building Standards Commission to reject any filed local modification affecting residential units that prohibits the use of natural gas.

3

AB 2057 retains the existing carveouts in current law (emergency standards, home hardening, and administrative changes) while preserving a specific allowance for local code amendments that align with a preexisting general plan and permit mixed‑fuel construction.

4

The statute expressly declares the subject a matter of statewide concern, making the prohibition applicable to charter cities as well as general‑law cities and counties.

5

Administrative filings described in existing law that concern administrative practices (subdivision (c)(6)) may be reviewed by the commission, in consultation with Housing and Community Development, within 60 days if the local agency requests review. This timeline remains relevant for non‑prohibitory changes.

Section-by-Section Breakdown

Every bill we cover gets an analysis of its key sections. Expand all ↓

Section 1 — Amended Section 17958.5

Prohibits local building‑code changes that ban natural gas in residences

This amendment inserts a new subdivision that prevents any city or county from making a change or modification to building standards that would prohibit use of natural gas in a residential unit. The provision is categorical: it does not condition the prohibition on timing and does not carve out broad exceptions beyond those already listed elsewhere in the statute. Practically, local ordinances that would eliminate gas hookups or bar gas appliances via building standards are rendered impermissible under state law.

Section 1 (retained language) — Subdivision (c)

Existing temporary moratorium and enumerated exceptions remain

The bill leaves intact the existing time‑limited framework (the October 1, 2025 to June 1, 2031 language) and its enumerated exceptions—such as substantially equivalent preexisting local changes, emergency standards, home‑hardening measures, and administrative amendments. That means some narrowly defined local changes continue to be permissible where they meet those specified criteria; AB 2057 supplements rather than wholly replaces those rules.

Section 2 — Amended Section 17958.7

Commission rejection authority expressly covers gas bans

Section 17958.7 governs the filing and review process for local code changes. AB 2057 adds a clause that directs the California Building Standards Commission to reject any modification affecting residential units that prohibits the use of natural gas. The change converts what was previously a matter of administrative review and filing into an explicit ground for rejection by the state commission, giving the commission a clear statutory duty to refuse such local filings.

2 more sections
Section 2 (d) — Review mechanics

Commission may rely on local statements; 60‑day review for administrative items

The bill preserves mechanics allowing the commission to rely on a local agency’s statement when evaluating whether a change meets certain exceptions, and it keeps the 60‑day review provision for administrative practice changes requested under subdivision (c)(6). Those retention points are consequential because they leave a narrow administrative pathway for some local amendments while simultaneously precluding outright prohibitions on gas.

Section 3 — Findings and applicability to charter cities

Declares statewide concern to override charter‑city home rule

The legislative findings state that the amendments address a statewide concern and therefore apply to all cities, including charter cities. This is a deliberate legal framing to limit home‑rule defenses that charter cities might raise against state regulation of local building standards; it intends to make the prohibition broadly enforceable across California jurisdictions.

At scale

This bill is one of many.

Codify tracks hundreds of bills on Housing across all five countries.

Explore Housing in Codify Search →

Who Benefits and Who Bears the Cost

Every bill creates winners and losers. Here's who stands to gain and who bears the cost.

Who Benefits

  • Natural gas utilities and pipeline operators — the ban protects the continued ability to connect new residential customers and shields utility capital investments from local prohibition risk.
  • Homeowners who prefer gas cooking or heating — preserves consumer choice and the option to purchase or retain gas appliances in new construction.
  • Statewide developers and multi‑jurisdiction builders — avoids patchwork rules that would otherwise force multiple building designs and installation approaches across municipalities, reducing design and compliance costs.
  • Manufacturers and contractors that service gas appliances — maintains market demand for gas equipment and related installation and service work.

Who Bears the Cost

  • Cities and counties pursuing aggressive local decarbonization via building codes — lose the ability to enact bans as a direct policy tool and may need alternative incentives or local programs.
  • Local governments that already enacted or planned natural‑gas bans — face administrative invalidation and potential legal defense costs if they retain or attempt to enforce those ordinances.
  • Electrification and clean‑energy advocates and firms offering all‑electric solutions — lose a regulatory lever that accelerates market adoption, potentially slowing demand growth for electric appliances and home‑electrification services.
  • State administrative bodies and the California Building Standards Commission — bear the operational responsibility of reviewing filings and rejecting prohibited modifications, and may face increased litigation challenging the preemption or its scope.

Key Issues

The Core Tension

The central dilemma is straightforward: preserve consumer choice and statewide uniformity in residential fuel options (protecting natural‑gas infrastructure and its economic actors) versus enable local governments to use building codes as a tool to accelerate decarbonization and public‑health objectives. The bill resolves that dilemma in favor of uniform protection for gas use, but it does so at the cost of curtailing local policy experimentation and creating ambiguous edges that courts and regulators will need to define.

AB 2057 addresses a single point—local prohibitions on natural gas in residential building standards—but it leaves several important ambiguities and trade‑offs. The text does not define the phrase "prohibits the use of natural gas," so disputes are likely over borderline measures: for example, do ordinances that ban natural‑gas infrastructure (metering or distribution) but not appliances qualify as prohibitions?

What about performance standards or mechanical requirements that effectively prevent safe gas hookups? Those questions will shape litigation and administrative interpretation.

The bill also creates tension between statewide uniformity and local experimentation on emissions reduction. By removing an enforcement mechanism (local bans), the legislature shifts pressure onto state policy and market incentives to achieve electrification goals.

That may produce uneven outcomes: jurisdictions that prioritized gas bans will need new programs and funding to meet climate targets, while utilities and gas‑reliant suppliers keep the default advantage. Finally, the declaration that the matter is one of statewide concern narrows home‑rule defenses for charter cities, but that legal posture itself can be contested in court, meaning the real‑world boundaries of the prohibition may remain unsettled for some time.

Try it yourself.

Ask a question in plain English, or pick a topic below. Results in seconds.