Should a roof be replaced before solar panels go on?
Federal guidance ties the decision to the roof's remaining life. The Department of Energy tells homeowners to "consider the age of your roof and how long until it will need replacement," and FEMA guidance says the roof's remaining service life should be at least as long as the solar system's. Owners reported a median cost of $10,000 for roofing projects in the 2023 American Housing Survey.
Rooftop panels are bolted through or onto the roof, and they stay there for decades. If the roof wears out first, the panels have to come off before the roof can be replaced and then go back on. This page collects what federal agencies, national surveys and building codes say about that decision. It does not recommend any roofer or installer. Facts were checked as of November 29, 2026.
Should a roof be replaced before solar panels go on?
The official guidance says to compare the roof's remaining life with the solar system's life, not to replace every roof. The Department of Energy (DOE) tells homeowners to "consider the age of your roof and how long until it will need replacement" (DOE Homeowner's Guide to Solar, May 15, 2026). FEMA's Recovery Advisory 5 on rooftop solar recommends that the roof's remaining service life be at least as long as the solar system's, citing the National Roofing Contractors Association (FEMA USVI Recovery Advisory 5, April 2018).
This site found no federal rule that requires a new roof before solar. Local permit rules can add conditions, and the local building department is the authority on them.
The DOE guide also lists other roof factors: shade from trees, a south-facing orientation, and a roof slope of 15 to 40 degrees (DOE Homeowner's Guide to Solar).
How long do solar panels last compared with a roof?
DOE reports, citing a survey of U.S. solar professionals by Lawrence Berkeley National Laboratory, that expected panel life grew from about 20 years in 2007 to 25 to 35 years in 2025 (DOE, End-of-Life Management for Solar Photovoltaics). Panels also produce a little less each year. A national-lab study of 1,700 commercial and utility-scale sites found a median loss of 0.75% a year; residential systems were not in that sample (NLR, PV Fleet Degradation Insights). More on this is on the solar panel degradation page.
No official source in this site's research gives a typical roof lifespan by material, so the comparison depends on the specific roof. One industry-funded test program gives a hint about aging: the Insurance Institute for Business & Home Safety (IBHS) reported in September 2026 that most asphalt shingle products lose wind resistance between 5 and 10 years of age, mainly because the shingles come unsealed (IBHS, September 22, 2026). IBHS says the program began in 2013 and is planned to run to at least 2045.
What roofs do U.S. homes have?
Most have asphalt or composition shingles. The 2024 Residential Energy Consumption Survey (preliminary, March 2026) counts these main roofing materials among 132.54 million homes (EIA RECS 2024, Table HC2.2):
| Main roofing material | Homes (millions) |
|---|---|
| Asphalt or composition shingles | 100.67 |
| Metal | 12.42 |
| Clay or ceramic tile | 6.27 |
| Concrete tile | 4.68 |
| Wood | 4.31 |
| Slate | 1.95 |
Shingles cover about 76% of homes and metal about 9.4% (this site's division of the EIA counts).
How much does a roofing project cost?
In the 2023 American Housing Survey (AHS), owner-occupants reported 8.301 million roofing projects over two years, with a median cost of $10,000 (margin of error plus or minus $661) and a mean of $11,610 (AHS 2023, Table C-16-OO). These figures cover all roofing jobs, including repairs and do-it-yourself work, so they are not the price of a full replacement on any one house. AHS 2023 is the latest edition; there will be no 2025 edition because the survey is moving to continuous data collection.
How common are roof problems?
The same survey counted these problems in occupied homes (AHS 2023, Housing Quality):
- water leaking in through the roof in the last 12 months: 5.831 million homes;
- missing roofing material: 3.557 million;
- sagging roof: 1.930 million;
- holes in the roof: 1.508 million.
A roof with a known problem is the kind of case DOE's advice to "consider the age of your roof" points to (DOE Homeowner's Guide).
What does it cost to remove and reinstall panels later?
No official figure was found. The federal cost benchmarks this site uses do not publish a removal-and-reinstall price, and no state agency source with one was found as of November 29, 2026. Any number for that work has to come from written quotes, and the solar contract or warranty may say who may do it.
What does FEMA say about attaching panels to a roof?
FEMA's advisory explains that the ASCE 7-16 standard was the first edition to include wind loads for rooftop solar panels (FEMA Recovery Advisory 5). It also recommends checking the tightness of attachments every year and inspecting all of the module clamps (FEMA Recovery Advisory 5).
DOE's Federal Energy Management Program (FEMP) advises against fully ballasted rooftop systems, which are held down only by weight, and notes that through-bolted module connections add about 0.7 cents per watt (DOE FEMP, Severe Weather Resilience in PV Design). For hail and wind ratings of the panels themselves, see the page on solar panel hail ratings.
Do building codes limit where panels go on a roof?
Yes, in many places, and the rules differ by state and city. Two examples whose text this site read:
- California. The 2025 California Residential Code, in effect since January 1, 2026, requires at least two 36-inch access pathways from eave to ridge on separate roof planes, and clear space of 18 inches on each side of the ridge when panels cover no more than 33% of the roof's plan area, or 36 inches above that (2025 CRC, section R329.6). The panels' fire rating must match the roof's fire classification (2025 CRC, section R329.4).
- New York City. Local Law 94 of 2019 requires a "sustainable roofing zone" of solar panels or a green roof on new buildings and on full roof replacements (Local Law 94 of 2019). In the 2022 NYC Building Code, section 1512.2 applies this to 100% of the roof, with seven exceptions, and in some cases requires solar panels where at least 4 kilowatts fits (2022 NYC Building Code, Chapter 15).
Fire-code roof setbacks are covered in more detail on the solar roof fire setbacks page.
This site could not obtain the text of the International Residential Code's reroofing section (R908), so its rules on roof layers are not covered here. The local building department can say which code edition applies.
Did a new roof count toward the solar tax credit?
No. For installations completed in 2025, the IRS said regular roofing and roof framing did not count toward the residential clean energy credit, while solar roofing tiles and shingles that generate electricity did (IRS FS-2025-01). The credit does not apply to expenditures made after December 31, 2025 (P.L. 119-21 §70506). Details are on the solar tax credit 2026 page.
Who to ask
The local building department decides permit requirements for reroofing and solar. Roof and panel warranty terms are set by the companies that issued them. To estimate how much a roof could produce, see the solar output calculator, and for state rules, start from the state list.
Questions people ask
Do I have to replace my roof before installing solar panels?
No federal rule requiring it was found. DOE says to consider the roof's age and how long until it needs replacement, and FEMA guidance says the roof's remaining life should be at least as long as the solar system's.
How long do solar panels last compared with a roof?
DOE reports, citing a Lawrence Berkeley National Laboratory survey, that expected panel life is 25 to 35 years as of 2025. A roof that will need replacing sooner would mean taking the panels off and putting them back.
How much does a roof replacement cost?
The 2023 American Housing Survey found a median of $10,000 and a mean of $11,610 for roofing projects by owner-occupants over two years. That covers all roofing jobs, including repairs and do-it-yourself work, not only full replacements.
How much does it cost to remove and reinstall solar panels for a new roof?
No official figure was found. The federal benchmarks this site uses do not publish a removal-and-reinstall cost, so the number has to come from written quotes.
Did a new roof count toward the federal solar tax credit?
No. For 2025 installations, the IRS said regular roofing and roof framing did not count, while solar shingles that generate power did. The credit ended for expenditures made after December 31, 2025.
Sources
- Homeowner's Guide to Solar — U.S. Department of Energy, 2026-05-15
- USVI Recovery Advisory 5: Rooftop Solar Panel Attachment: Design, Installation, and Maintenance — Federal Emergency Management Agency (copy hosted by the U.S. Virgin Islands government), 2018-04
- End-of-Life Management for Solar Photovoltaics — U.S. Department of Energy, 2026-11-29
- Photovoltaic fleet degradation insights (Jordan et al., 2022) — National Laboratory of the Rockies (NLR, formerly NREL), 2022
- AHS 2023 Table Specifications and PUF Estimates for User Verification — U.S. Census Bureau and HUD, American Housing Survey, 2023
- Residential Energy Consumption Survey 2024, Table HC2.2 (preliminary) — U.S. Energy Information Administration, 2026-03
- IBHS research reveals critical links in asphalt shingle wind performance after 10 years of aging — Insurance Institute for Business & Home Safety, 2026-09-22
- Severe Weather Resilience in Solar Photovoltaic System Design — U.S. Department of Energy, Federal Energy Management Program, 2026-05-11
- 2025 California Residential Code, Chapter 3 (section R329, solar energy systems) — California Building Standards Commission (via UpCodes viewer), 2026-01-01
- 2022 NYC Building Code, Chapter 15, Roof Assemblies and Rooftop Structures — NYC Department of Buildings, 2022
- Local Law 94 of 2019 (sustainable roofing zones) — New York City Council (text via intro.nyc), 2019-04-18
- Fact Sheet FS-2025-01: energy efficient home improvement and residential clean energy property credits FAQ — Internal Revenue Service, 2025-01
- Public Law 119-21, section 70506 — U.S. Government Publishing Office, 2025-07-04