Building energy codes set the minimum efficiency a new building (or a major addition or renovation) must meet before it can get a permit and pass inspection. They cover insulation, windows, air leakage, ducts, heating and cooling equipment, water heating and lighting. Because a building lasts 50 years or more, the efficiency locked in at construction shapes its energy bills for decades.
In the US, energy codes are written as national “model codes” and then adopted, amended or skipped by each state or city. That’s why two houses built the same year in different states can perform very differently. Codes also have a real cost side: tighter rules raise construction prices, and the US Department of Energy (DOE) now publishes analysis arguing that the newest model code costs more than many homeowners will recover.
Quick answer: the main US energy codes
| Code | Covers | Latest edition | DOE’s estimated savings vs. prior edition |
|---|---|---|---|
| International Energy Conservation Code (IECC), residential | Single-family homes, townhouses, and apartment buildings up to three stories | 2024 IECC | About 7.8% site energy, 6.8% source energy, 6.6% energy cost |
| ASHRAE/IES Standard 90.1 | Commercial buildings and residential buildings over three stories | 90.1-2022 | About 9.8% site energy, 9.4% source energy, 8.9% energy cost |
| IECC, commercial | Commercial buildings (alternative to 90.1 in most states) | 2024 IECC | DOE evaluates commercial savings through 90.1, which the commercial IECC allows as a compliance path |
| State and local codes | Whatever the state or city adopts, often a model code with amendments | Varies widely | Varies; some states use older editions, some go beyond the model code |
Savings figures come from DOE’s official determinations (December 2024 for the 2024 IECC, March 2024 for 90.1-2022). They compare each edition only to the one before it, not to an older home or to no code at all.
Why buildings are the focus of energy codes
Homes and commercial buildings use a large share of US energy, and most of it goes to keeping people comfortable. According to the US Energy Information Administration, space heating and air conditioning made up 52% of the average household’s energy use in 2020. Water heating, lighting and refrigeration added another 25%.
Those big loads depend heavily on how a building is put together. Insulation levels, window performance and air tightness are hard and expensive to change after the walls are closed. A code that gets them right at construction avoids decades of extra heating and cooling. Appliances and lighting can be swapped later; the building shell mostly can’t.
How energy codes work, step by step
1. A model code is written
The International Code Council (ICC) publishes the IECC, usually on a three-year cycle. ASHRAE and IES publish Standard 90.1 for commercial buildings. After years of complaints about how the IECC was developed, the ICC moved the IECC and the energy chapter of the International Residential Code to its standards development process starting with the 2024 edition. The ICC says IECC efficiency requirements rose about 40% from 2006 to 2021.
2. DOE reviews it
Under the Energy Conservation and Production Act, DOE has 12 months after a new edition comes out to decide whether it saves energy. After a positive determination, states have two years to review their codes. For commercial buildings, states must certify that their code meets or beats the new 90.1. For homes, states only have to certify that they considered the new IECC and decided whether to adopt it. State certifications for the 2024 IECC are due December 30, 2026.
3. States and cities adopt (or don’t)
There is no single national energy code that applies everywhere. Each state, and in some states each city or county, chooses which edition to use and how to amend it. DOE tracks this on its state energy code portal, which shows the code each state has in effect and how it compares with the model codes.
4. Builders show compliance
Most energy codes give builders a few ways to comply:
- Prescriptive path: meet a checklist of minimums, such as a set R-value for attic insulation and a maximum U-factor for windows.
- Trade-off or performance path: beat a target overall, for example by using better windows to make up for less wall insulation. DOE’s free REScheck and COMcheck tools do these trade-off calculations for homes and commercial buildings.
- Energy rating path (residential IECC): hit a target score on a whole-home energy rating done by a certified rater.
5. Inspectors enforce it
Local building departments review plans and inspect the work. Recent residential IECC editions also require testing, such as a blower door test to measure air leakage and, in many cases, a duct leakage test. Enforcement is where codes often fall short: a code on paper saves nothing if insulation is installed badly or tests are skipped.
What energy codes actually require
The details depend on the edition and your climate zone, but the main areas are the same in most codes:
- Insulation: minimum R-values for attics, walls, floors, foundations and slabs, higher in colder climate zones.
- Windows and doors: maximum U-factor (heat loss) and, in hot climates, maximum solar heat gain. See our guide to energy-efficient windows for what those ratings mean.
- Air sealing: limits on air leakage, checked with a blower door test in homes.
- Ducts: sealing, insulation, and leakage testing for ducts outside conditioned space.
- Ventilation: tight homes need controlled fresh air. Codes link to mechanical ventilation rules, which matter for indoor air quality.
- Equipment and lighting: controls, pipe insulation, high-efficacy lighting, and in commercial buildings, lighting power limits and HVAC controls. Minimum appliance and furnace efficiency is mostly set separately by federal equipment standards.
Codes usually apply to new construction, additions and the parts of a building being altered. They generally don’t force you to upgrade a building you aren’t working on. Designated historic buildings are often exempt, according to DOE’s code FAQ, though you should confirm with your local building official. Our article on energy efficiency in historic buildings covers upgrades that respect older homes.
What energy codes save, and what they cost
Energy savings from a code update are easy to put in dollar terms. At the US average residential electricity price of 18.16 cents per kWh (EIA, August 2026), every 1,000 kWh a home doesn’t use saves about $182 a year. At EIA’s 2025 average residential natural gas price of $15.34 per thousand cubic feet (Mcf), every 10 Mcf saved is worth about $153 a year.
As a rough illustration: a household spending $2,000 a year on energy that gets DOE’s estimated 6.6% cost savings from the 2024 IECC over the 2021 IECC would save about $130 a year. That is our own example, not a DOE figure. Actual savings depend on climate, fuel, house size and how well the home is built.
The cost side is now an open debate. A 2026 DOE analysis on its code impacts page argues that the 2024 IECC raises the upfront cost of new homes too much. DOE estimates it would add about $57 billion to new construction costs nationwide compared with current state codes if every state adopted it in full. DOE also says recovering that cost through energy savings can take longer than the average owner keeps a home. On the other side, the lower bills last for the life of the building, which often outlasts several owners. DOE has also asked for public input on how it measures code affordability. Whether a given code update pays off depends on the measures, local energy prices and construction costs, which is one reason states adopt new codes at different speeds.
Going beyond code
An energy code is a minimum, not a target. Builders and owners who want more can use voluntary programs and certifications:
- ENERGY STAR certified new homes: homes and apartments that are inspected and tested to beat typical code-built homes. See ENERGY STAR new homes.
- DOE Efficient New Homes program: DOE’s program for very high-performance homes, formerly called Zero Energy Ready Home. See the DOE program page.
- Stretch codes: some states and cities offer an optional, stricter code that towns can adopt.
- Green building certifications: broader rating systems that cover water, materials and site as well as energy. Our green building certification guide compares them.
At the far end are net-zero energy homes, which make as much energy as they use over a year, usually with very high efficiency plus rooftop solar. See the advantages of net-zero energy homes for the trade-offs.
What this means if you’re building, buying or renovating
- Find your local code. Look up your state on DOE’s state portal, then ask your building department which edition and amendments apply where you live.
- Ask for the test results. If you’re buying new construction, ask the builder for the blower door and duct leakage test results and the compliance report.
- Remember that code is a minimum. If you plan to stay a long time, extra attic insulation, better air sealing and efficient heating and cooling may pay off even when they aren’t required.
- Plan renovations around the code. Re-roofing, re-siding, or replacing windows or HVAC can trigger energy code requirements for the parts you change, so budget for them.
- Check incentives, but don’t count on federal tax credits. The federal 25C energy efficient home improvement credit and 25D residential clean energy credit ended for property placed in service after December 31, 2025. Utility and state rebates may still be available; check current program pages because offers change.
For a broader look at why efficient construction matters, see building energy efficiency.
Frequently asked questions
What is a building energy code?
It’s a set of minimum efficiency requirements for new buildings, additions and major renovations. It covers the building shell, air leakage, ducts, heating and cooling systems, water heating and lighting.
Is there a national building energy code in the US?
No. The IECC and ASHRAE 90.1 are national model codes, but they only become law when a state or city adopts them. Adoption and editions vary from place to place.
What is the difference between the IECC and ASHRAE 90.1?
The IECC has a residential section for homes and low-rise apartments and a commercial section. ASHRAE 90.1 covers commercial buildings and residential buildings over three stories. The commercial IECC lets builders use 90.1 instead.
Do energy codes apply to existing homes?
Generally only to the parts you add or alter, such as a new addition, replacement windows or a new HVAC system. They don’t require you to upgrade an existing home you aren’t working on.
How much energy does the 2024 IECC save?
DOE estimates about 7.8% site energy savings and 6.6% energy cost savings compared with the 2021 IECC, averaged nationally. Savings in a specific home depend on climate, fuel and construction quality.
Do stricter energy codes make homes more expensive?
They raise upfront construction costs. Whether energy savings make up for that depends on the measures, local energy prices and how long you own the home. DOE’s 2026 analysis argues the payback for the 2024 IECC is often longer than typical ownership.
Related reading
- Green building: the benefits of going green
- Renewable energy sources list
- Energy efficiency and indoor air quality
Sources
- DOE Building Energy Codes Program
- DOE: Determinations for the 2024 IECC and Standard 90.1-2022
- DOE: Impacts of energy codes (2026 cost analysis)
- DOE: State energy code portal
- DOE: Energy code FAQs
- DOE: REScheck and COMcheck compliance tools
- International Code Council: IECC 2024 and beyond
- EIA: Energy use in homes
- EIA Electric Power Monthly, Table 5.6.A
- ENERGY STAR: Certified new homes
- DOE Efficient New Homes program
