LayoutWise

Solar Panel Roof Planner

Enter one roof plane, its pitch and the module you're considering. You see how many panels fit after the fire-code pathway and ridge setback, the system size, the yearly energy and how much of your bill it can cover.

Your roof

1. Roof plane
Eave length
ft
in
Eave to ridge (plan view)
ft
in
2. Modules and setbacksMargin at the eave and rake
3. Energy

Panels fit

18

9 x 2, portrait

System size

7.2 kW

400 W modules

Per year

9,461 kWh

about 788 kWh a month

Covers

88%

21 panels for 100%

Roof plane layout

18" ridge setback · 29% of roof
RidgeEave · 40' 0"

Shaded strips are the code clearances: a 18" setback below the ridge and a 36" pathway from eave to ridge. The roof is drawn true to its sloped length (16' 9 1/4").

Shopping list

  • ✓Solar modules: 18 x 400 W (67.8" x 44.6"), portrait — 7.20 kW
  • ✓Rails: about 138 ft (4 rails, 2 per row)
  • ✓Roof attachments (flashed mounts): about 40, at 48" or less on center — your installer's engineering sets the final spacing
  • ✓Mid clamps: 32 · End clamps: 8
  • ✓Inverter or microinverters sized for 7.2 kW DC, plus rapid-shutdown equipment (NEC 690.12)

Production uses peak sun hours x 365 x 80% for system losses. For your exact address, tilt and direction, run NREL PVWatts. Local fire codes can differ from the IRC — your permit drawings are the final word.

How many solar panels fit on my roof?

Measure each roof plane that faces south, east or west: the length of the eave, and the depth from the eave to the ridge as seen from above (a satellite map works). The planner converts that depth to the true sloped length using the pitch, takes off the setbacks, and tries both portrait and landscape to fit the most modules. A typical 400 W module is about 68" x 45", or roughly 21 sq ft.

Fire-code setbacks

The International Residential Code (section R324.6) requires at least two 36"-wide pathways from the eave to the ridge, on separate roof planes, so firefighters can get on the roof. It also requires a clear setback on both sides of a horizontal ridge: 18" when the arrays cover no more than 33% of the plan-view roof area, or 36" above that. With fire sprinklers, the 18" setback applies up to 66%. Roofs of 2/12 or flatter are exempt. Many cities amend these rules, so check with your building department.

How much power will it make?

A simple estimate: system size in kW x peak sun hours x 365 x 80%. The 80% accounts for wiring, inverter, heat and dirt losses. A 7.2 kW system in a 4.5-hour area makes roughly 9,500 kWh a year. For a precise number for your address, tilt and direction, use NREL's free PVWatts calculator.

How many panels do I need?

Add up a year of electric bills in kWh (or multiply a typical month by 12), then divide by what one panel makes in a year. At 4.5 sun hours, a 400 W panel makes about 525 kWh a year, so a home using 900 kWh a month needs about 21 panels to cover all of it.

Racking

Most roof systems run two rails under each row of panels, fastened to the rafters with flashed mounts. Spacing depends on wind and snow loads; 48" on center is common, but the installer's engineering sets the final number. Mid clamps join neighboring panels, and end clamps hold the ends of each row.

Sources: NREL PVWatts. Re-roofing first? Estimate shingles with the roofing calculator.