CalculatorsMapsCountriesRankingsCompareTechnologiesLearn Energy Explorer Solar & wind farms Glossary
Solar calculator

Solar roof calculator: how many panels fit on my roof?

Lays out real modules on a pitched, gable or flat roof, with edge and ridge setbacks, obstructions, portrait, landscape or mixed rows and row spacing on flat roofs. You get the panel count, kWp, kWh per year and roof load.

Editable share link Branded PDF report Free · no sign-up

Results

20 panels fit (3 × 7 in portrait (rows × columns)): 8.6 kWp producing about 10,320 kWh a year. Modules cover 64% of the 61 m² roof surface.
Panels that fit
20
3 × 7 in portrait (rows × columns)
System size
8.6kWp
20 × 430 W
Annual production
10,320kWh
1,200 kWh/kWp
Roof surface
61m²
50 m² on plan, ×1.22 for the slope
Usable area after setbacks
49m²
80% of the roof
Module coverage
64%
39.1 m² of modules
Power density
141Wp/m² roof
Added roof load
14kg/m²
incl. ≈ 3 kg/m² rails
Panels lost to obstructions
1
1 m² of obstructions
kWp that fits on this roof by panel class

Layout options

OrientationLayoutPanelskWp
Portrait3 × 7 in portrait (rows × columns)208.6
Landscape4 × 5 in landscape (rows × columns)198.17
Mixed3 × 7 in portrait + 0 × 5 in landscape208.6

Other panel sizes on the same roof

Panel classPanelskWpkWh/yr
300 W polycrystalline267.89,360
400 W mono PERC2089,600
430 W N-type TOPCon208.610,320
450 W TOPCon20910,800
490 W TOPCon178.339,996
550 W mono PERC158.259,900
620 W TOPCon138.069,672
700 W HJT bifacial117.79,240
  • Each obstruction removes more module positions than its own area because it breaks the grid; the calculator assumes 1.5× its area. Draw complex roofs (dormers, hips, valleys) face by face.
  • Pitched-roof setbacks: many codes require fire-access paths (e.g. 0.46–0.91 m in the US) and wind edge zones. Check your local rules and the roof structure.
  • Specific yields are inputs: get them for your exact orientation from the solar panel or tilt-angle calculators.

How this solar roof calculator works

You can’t cover the whole roof with panels. Edges and ridges need clearance for wind, fire access and installation, chimneys and skylights break up the grid, and modules only come in fixed sizes. On flat roofs the tilted rows also have to be spaced so they don’t shade each other. So instead of dividing square metres, this calculator lays out real modules.

Pitched roofs. If you measured the roof depth on a floor plan or from the ground, the calculator converts it to the true slope length (plan depth ÷ cos pitch; a 35° roof is 22% deeper along the slope than on plan). It subtracts the eave, ridge and side setbacks and packs modules plus clamp gaps three ways: all portrait, all landscape, and mixed rows, where portrait rows are followed by a landscape row in the leftover strip. The layout with the most modules wins. The gable option repeats the layout on the opposite face, with its own yield.

Flat roofs. Modules sit in tilted rows. Equator-facing rows are spaced so the row behind stays unshaded at solar noon on the shortest day of the year at your latitude. East–west layouts put the rows back-to-back in pairs, with a maintenance path between pairs. Portrait and landscape mounting are both tested and the denser one is kept.

Obstructions are subtracted at 1.5 times their area, because each one breaks rows and columns. The system size times your specific yield gives the annual energy, and the module and racking weight gives the added roof load.

The geometry

Slope depth = plan depth ÷ cos(pitch) Columns = ⌊ (usable length + gap) ÷ (module width + gap) ⌋ Rows = ⌊ (usable depth + gap) ÷ (module length + gap) ⌋ Flat-roof row pitch = m × cos β + m × sin β ÷ tan α, α = 90° − latitude − 23.44° Ground-coverage ratio = m ÷ row pitch kWp = modules × W ÷ 1000

m is the module dimension running up the tilt, β the row tilt and α the noon sun elevation at the winter solstice.

Worked example: a 10 m × 5 m south roof at 35°

The default roof is 10 m long at the eaves and 5 m deep on plan, pitched at 35°. Along the slope it is 6.1 m deep, for a roof surface of 61 m². Take off 0.3 m at the eaves, 0.4 m at the ridge and 0.4 m at each gable end and a 9.2 × 5.4 m rectangle remains.

With 430 W modules of 1.722 × 1.134 m and 20 mm clamp gaps, portrait gives 3 rows of 7 = 21 modules and landscape 4 rows of 5 = 20. The mixed layout can’t squeeze in another row. The 1 m² chimney costs one module, which leaves 20 panels = 8.6 kWp. At 1,200 kWh/kWp that is about 10,300 kWh a year. The modules cover 64% of the roof surface and add about 14 kg/m².

The panel comparison holds a less obvious lesson. 450 W modules, in a slightly larger format, fill the same 20 positions for 9.0 kWp, while the big 550–700 W formats fit badly on this small roof and deliver less total power.

How to read the results

  • Panels that fit and the layout (rows × columns, portrait or landscape) are what an installer would draw.
  • Usable area after setbacks shows how much of the roof the rules take away, often 20–30% on small roofs.
  • Power density (Wp per m² of roof) lets you compare roofs and layouts. Pitched roofs typically reach 120–160 Wp/m², south-facing flat-roof rows 80–110 Wp/m² and east–west flat-roof layouts 120–150 Wp/m².
  • Added roof load is a first figure to take into the structural check.

Typical values

Roof Typical usable share Modules (430 W) per 10 m² of roof Wp per m² roof
Simple pitched roof, few obstacles 70–85% 3.5–4.5 140–180
Pitched roof with dormers/skylights 50–70% 2.5–3.5 100–140
Flat roof, south rows at 15° (45–50° lat.) 40–50% module cover 2–2.5 85–110
Flat roof, east–west at 10° 55–70% module cover 3–3.5 120–150

Tips to fit more panels

  • Try both orientations and mixed rows. An extra row of landscape modules in a leftover strip is common.
  • Look at the module format, not just the wattage. On small or awkwardly shaped roofs, compact 108-cell modules often give more kWp than large 144-cell or 210 mm formats.
  • Go east–west on flat roofs when area is the limit. South rows make more sense when yield per module matters more.
  • Know your setback rules. Fire-access and wind-zone requirements vary widely, and in some US jurisdictions they take a third of a small roof.
  • Then size the rest of the system. Check the panel count against demand with how many solar panels, simulate the yield with the solar panel calculator and design the strings with the string sizing calculator.

Limitations

Every roof is treated as a rectangle. Split hips, valleys, dormers and irregular shapes into rectangular sections and enter them one by one. Obstructions are handled statistically, not by position. The calculator doesn’t model shading from chimneys, trees or neighbouring buildings, or partial rows offset around obstacles. Flat-roof spacing uses a solar-noon rule, and designers at high latitudes often accept some winter shading to fit more modules. The roof load figures are indicative: have the structure assessed for snow and wind loads before installation.

Method & assumptions

Pitched roofs: slope depth = plan depth ÷ cos(pitch). The usable rectangle is length − 2 × side setback by slope depth − eave − ridge setbacks. Modules (plus clamp gaps) are packed in portrait rows, landscape rows, and mixed rows (portrait rows, then landscape rows in the leftover strip); the best count is used.

Flat roofs: equator-facing rows tilted β need a row pitch of d = m·cos β + m·sin β ÷ tan α, where m is the module dimension up the slope and α the noon sun elevation on the winter solstice (90° − latitude − 23.44°). East–west rows sit back-to-back in pairs separated by a maintenance path. Obstructions remove ⌈1.5 × area ÷ module area⌉ modules. kWh = kWp × specific yield.

Frequently asked questions

How many solar panels can fit on my roof?
Measure the roof face, subtract the setbacks from the edges and ridge (typically 0.3–0.5 m in Europe, up to 0.9 m for US fire-access paths), and divide the remaining length and depth by the module dimensions plus clamp gaps. A 10 m × 5 m (plan) south face at 35° usually holds about 20 modules of 1.72 × 1.13 m, or roughly 8.6 kWp with 430 W panels. The calculator tests portrait, landscape and mixed layouts and keeps the best one.
How much roof space do I need for a 6 kW solar system?
With modern 430–450 W modules (about 2 m² each), 6 kWp needs 14 modules and about 28 m² of module area. Once you allow for setbacks and gaps, plan on 35–45 m² of pitched roof surface. Older 300 W modules need roughly 40% more area.
Is portrait or landscape better for solar panels?
Electrically there is no difference, so pick whichever fits more modules. Portrait is common on pitched roofs because the rails run across the rafters. Landscape suits shallow roof faces and flat-roof racking, where the lower module height shortens the row spacing. A mixed layout (portrait rows plus one landscape row in the leftover strip) often adds a few modules.
How far apart should rows of solar panels be on a flat roof?
Far enough that the front row doesn't shade the one behind when the sun is low. A common rule is no shading at solar noon on the shortest day: row pitch = module depth × cos(tilt) + module height ÷ tan(sun elevation). At 48° latitude the winter-noon sun is only about 19° high, so a 1.13 m module at 15° needs a pitch of about 1.97 m, almost twice its footprint.
Are east-west solar panels on a flat roof worth it?
East–west rows placed back-to-back at 10–15° tilt barely shade each other, so 30–60% more modules fit on the same flat roof than with south-facing rows. Each module produces about 5–10% less than a south-facing one, yet the roof as a whole usually delivers much more energy, and the flatter profile cuts wind loads and ballast.
Can my roof support solar panels?
Modules with rails add about 12–15 kg/m² to a pitched roof, which most roofs in good condition can carry. Ballasted flat-roof systems add 20–40 kg/m² or more, depending on the wind zone. Have a structural engineer check older timber roofs, long spans and roofs in heavy-snow regions.

Sources & references

  1. International Fire Code (IFC 2021) Section 1205 — Solar photovoltaic power systems (roof access and pathways)
  2. NREL — Rooftop Solar Photovoltaic Technical Potential in the United States (roof suitability and packing assumptions), NREL/TP-6A20-65298
  3. Eurocode 1 (EN 1991-1-3/-1-4) — snow and wind actions on roofs
  4. European Commission JRC — PVGIS (yield per kWp for any orientation)

Embed this calculator

Free for blogs, installers, schools and NGOs. Copy the code below; it updates itself automatically.