Solar Panel Roof Layout Calculator
Enter your roof dimensions, fire code setbacks, and obstructions — get exact panel count, rows × columns arrangement, and estimated annual production.
How to Use This Calculator
Enter your roof face dimensions
Measure the roof face where you plan to install panels — length (horizontal) and width (ridge to eave). If you have a multi-face roof, run the calculator for each face separately and add the totals. The calculator automatically deducts required setbacks from each edge before fitting panels.
Set setbacks per your local fire code
Most US jurisdictions follow IFC Section 605.11: 3 ft from the ridge, 18 inches from side edges, and 1 ft from the eave. These create emergency responder pathways. Some municipalities require 3 ft on all edges — check with your AHJ (Authority Having Jurisdiction). Flat commercial roofs often use different setback rules.
Choose orientation and add obstructions
Portrait orientation (panel taller than wide) typically fits more rows on a standard residential roof. Landscape can be better on shallow roofs with limited eave-to-ridge distance. The calculator shows how many panels the alternate orientation would fit — pick the higher count. For obstructions, select the type and enter how many are on that roof face.
Read the results
You'll see total panels that fit (rows × columns), system kW, estimated annual kWh at your location, and wasted area percentage. The portrait vs. landscape comparison instantly shows which orientation maximizes your roof.
The Formula
The obstruction deduction is conservative — in practice a good installer may route around obstructions more efficiently. The 0.80 system efficiency factor accounts for real-world losses: temperature derating, soiling, wiring losses, and inverter efficiency. A premium microinverter or optimizer system may reach 0.83-0.85.
Example
Maria — Medium colonial in Denver
Maria has a south-facing roof face measuring 40 ft long × 25 ft wide (ridge to eave). She has one skylight and wants to know if portrait or landscape fits more 400W panels.
Result
At Denver's 5.5 peak sun hours, Maria's 11.6 kW system produces roughly 18,600 kWh per year — more than enough for the average Colorado home (9,300 kWh/yr). The landscape alternative fits only 28 panels, so portrait is the right choice here.
FAQ
Related Calculators
Embed This Calculator
Free to embed on your website. Just copy this code:
<iframe src="https://solarsizecalculator.com/solar-panel-layout-calculator"
width="100%" height="620" frameborder="0"
title="Solar Panel Roof Layout Calculator"></iframe>