Codify — Article

California Energy Consumer Freedom Act bars local bans on gas appliances and gasoline vehicles

AB 1238 would forbid state and local rules that prohibit gas stoves, natural gas hookups for new buildings, or the buying, selling, or use of gasoline-powered vehicles and equipment — and it asserts statewide preemption.

The Brief

AB 1238 adds two new statutory sections that prevent state agencies and local governments from adopting or enforcing any rule, regulation, resolution, or ordinance that would directly or indirectly prohibit (1) the use of gas stoves and other gas appliances in residential and nonresidential buildings or (2) the buying, selling, or use of gasoline-powered vehicles or equipment. The Public Resources Code provision explicitly references ordinances that prohibit natural gas hookups for new buildings.

The bill also contains legislative findings that these subjects are matters of statewide concern and therefore apply to all cities, including charter cities. For professionals tracking building codes, municipal electrification efforts, municipal procurement and fleet rules, or state vehicle- and appliance-related regulation, the bill introduces a broad preemptive bar with ambiguous scope and no enforcement mechanism spelled out in the text.

At a Glance

What It Does

AB 1238 adds Section 43013.4 to the Health and Safety Code and Section 25969 to the Public Resources Code to prohibit state and local governments from adopting or enforcing any measure that directly or indirectly results in prohibiting the use of gas appliances or the buying, selling, or use of gasoline-powered vehicles or equipment. The Public Resources Code language expressly references natural gas hookup bans for new buildings.

Who It Affects

Cities and counties (including charter cities) that have adopted or plan to adopt building-electrification rules, gas stove restrictions, or local fleet procurement standards; state agencies that regulate vehicles, appliances, or building energy; builders, developers, gas utilities, appliance manufacturers, auto and equipment dealers, and contractors who install gas systems.

Why It Matters

The bill is a broad preemption of local regulatory tools used to reduce building and transportation emissions or change appliance markets. Its expansive 'directly or indirectly' phrasing and the finding of statewide concern make it a potential blocker to many local electrification and vehicle-transition policies, even though it does not create penalties or an enforcement regime.

More articles like this one.

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

Unsubscribe anytime.

What This Bill Actually Does

AB 1238 creates a two-part statutory bar aimed at preserving the use and market for gas appliances and gasoline-powered vehicles. One addition to the Health and Safety Code forbids any state agency or local government from adopting or enforcing measures that would prohibit the purchase, sale, or use of gasoline-powered vehicles or equipment.

The second addition to the Public Resources Code forbids measures that would prohibit the use of gas stoves or other gas appliances and explicitly mentions ordinances that ban natural gas hookups in new buildings.

Both provisions use broad language — banning rules that 'directly or indirectly' result in prohibitions — which reaches beyond explicit product bans to any regulatory design that effectively prevents use or access. Each provision also repeats a legislative finding that the subject is a matter of statewide concern, which the bill cites to preempt charter-city home-rule defenses and to make the sections apply to all cities.The bill does not define key terms such as 'gas stoves appliances,' 'gasoline-powered equipment,' or 'directly or indirectly,' nor does it include an enforcement mechanism, penalties, or a private right of action.

That silence means any compliance regime or legal remedy would arise from existing authorities and litigation, rather than from new procedures or penalties in the bill itself.Practically, AB 1238 would touch a broad set of local actions: model building codes that phase out natural gas hookups, municipal ordinances limiting or banning gas appliances in new construction or rentals, local procurement and fleet transition rules that favor zero-emission vehicles over gasoline models, and zoning or permitting approaches that make gas hookups impracticable. The statutory placement in Health & Safety and Public Resources Code signals the legislature intends both public-health-adjacent and energy-policy measures to fall under the prohibition.

The Five Things You Need to Know

1

The bill adds Section 43013.4 to the Health and Safety Code prohibiting state or local rules that 'directly or indirectly' result in prohibiting the buying, selling, or use of gasoline-powered vehicles or equipment.

2

The bill adds Section 25969 to the Public Resources Code prohibiting state or local rules that 'directly or indirectly' result in prohibiting the use of gas stoves and other gas appliances, and it explicitly mentions ordinances banning natural gas hookups for new buildings.

3

Both new sections include identical legislative findings that the matters are of statewide concern and therefore the provisions apply to all cities, including charter cities (citing Article XI, Section 5 constitutional context).

4

The statutory language is broad — it prohibits measures that 'indirectly' result in prohibiting use — but the bill does not define 'indirectly' or other key terms, leaving scope and application uncertain.

5

The bill contains no express enforcement mechanism, penalty provision, or private right of action; remedies would therefore depend on existing law (injunctive relief, state enforcement, or litigation) rather than new statutory procedures.

Section-by-Section Breakdown

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

Section 1

Act name

This short section names the measure the 'California Energy Consumer Freedom Act.' It is a stylistic provision but signals the bill's framing: protecting consumer access to gas and gasoline-powered products rather than advancing energy decarbonization objectives.

Section 43013.4 (Health & Safety Code)

Bar on rules that prohibit gasoline-powered vehicles or equipment

Section 43013.4 forbids a state agency or local government from adopting or enforcing any rule, regulation, resolution, or ordinance that 'directly or indirectly' results in prohibiting the buying, selling, or use of gasoline-powered vehicles or equipment. The provision also includes a legislative finding that the topic is of statewide concern and applies to charter cities. For practical compliance, this would prevent local fleet procurement rules that ban gasoline vehicles, municipal ordinances that restrict sale or operation of gasoline equipment, and potentially state regulations that would have the same prohibitive effect unless an exception elsewhere in law applies.

Section 25969 (Public Resources Code)

Bar on rules that prohibit use of gas appliances and bans on gas hookups

Section 25969 prohibits state or local measures — 'including, but not limited to, an ordinance prohibiting natural gas hookups for new buildings' — that 'directly or indirectly' result in prohibiting the use of gas stoves and other gas appliances in residential or nonresidential buildings. The explicit callout of natural gas hookup bans signals the bill targets local building-code and zoning tools used to advance electrification. Because it covers both state agencies and local governments, the section would limit regulatory designs ranging from local building-code amendments to state permit conditions that effectively block gas hookups.

1 more section
Legislative findings (both sections)

Statewide concern and application to charter cities

Both added sections include parallel findings that the subject matter is a matter of statewide concern rather than a municipal affair under Article XI, Section 5 of the California Constitution. That language is intended to override home-rule defenses and make the preemption apply uniformly — a drafting choice that short-circuits charter-city arguments and makes the prohibition applicable across California's local governance structures.

At scale

This bill is one of many.

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

Explore Energy 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

  • Homeowners, renters, and businesses that prefer or rely on gas appliances (chefs, restaurants, property owners) because the bill protects continued access to gas stoves and hookups, preserving existing cooking and heating options.
  • Gas utilities and pipeline contractors because the bill prevents local ordinances that would reduce natural gas demand (for example, bans on natural gas hookups in new construction) and thereby preserves their customer base and infrastructure investments.
  • Automakers, dealers, and small-equipment manufacturers focused on gasoline-powered vehicles and tools, since local or state rules that would effectively ban sales or use would be off-limits under the bill.

Who Bears the Cost

  • Cities and counties that adopted or planned to adopt building-electrification policies, gas-stove restrictions, or municipal fleet-transition rules will lose regulatory flexibility, and their investments in electrification policy may be nullified.
  • State agencies and boards pursuing vehicle- and building-related decarbonization strategies could face statutory constraints on rulemaking that has the practical effect of discouraging gasoline vehicles or gas appliances.
  • Public health and climate advocacy groups and residents seeking reduced indoor and ambient pollution may see fewer local policy levers available to reduce emissions, pushing mitigation efforts to other, potentially costlier, channels.

Key Issues

The Core Tension

The bill pits consumer choice and protection of incumbent gas and gasoline markets against local autonomy and tools used to pursue public health and climate goals: it preserves individual and market access to gas and gasoline-powered products, but in doing so it removes a suite of local regulatory instruments that cities and counties have used to reduce emissions and indoor pollution — a trade-off with no unambiguous procedural or substantive resolution in the text.

AB 1238 is short on definitions and enforcement detail. The bill's key operative phrase — measures that 'directly or indirectly' result in prohibiting — is deliberately expansive, but the text does not define what regulatory designs count as 'indirect' prohibitions.

That ambiguity invites contested interpretation: courts or agencies will need to decide whether enabling measures (permitting delays, infrastructure requirements, or performance-based codes) 'indirectly' prohibit use. The lack of statutory definitions raises implementation uncertainty for building officials, utilities, and municipalities designing ordinances or codes.

Equally important is the bill's silence on enforcement. AB 1238 does not create new penalties, an administrative enforcement pathway, or an express private right of action.

If adopted, the most likely mechanism to enforce the prohibition would be litigation seeking injunctive relief or challenges brought by the Attorney General, city attorneys, or affected private parties under existing legal doctrines. That litigation-driven approach would increase legal costs for all parties and leave compliance timelines unclear during disputes.

Finally, the bill expressly asserts statewide concern to preempt charter-city home-rule defenses, which may blunt some legal challenges but is itself a constitutional argument that could draw further litigation over scope and preemption doctrines.

Try it yourself.

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