Solar calculator

Count the solar panels your roof can hold

Real module dimensions are laid out on a pitched, gable or flat roof. Edge and ridge setbacks, obstructions, portrait, landscape or mixed rows and flat-roof row spacing are all taken into account. Results: panel count, kWp, yearly kWh and the load on the roof.

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

Results

Fitting 20 panels (3 × 7 upright (rows × columns)) gives 8.6 kWp, good for around 10,320 kWh per year. They cover 64% of the 61 m² of roof.
Panels that fit
20
3 × 7 upright (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
Area left after the margins
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 displaced by obstacles
1
1 m² of obstructions
kWp that this roof can hold, by panel class

Layout options

OrientationLayoutPanelskWp
Portrait3 × 7 upright (rows × columns)208.6
Landscape4 × 5 lying flat (rows × columns)198.17
Mixed3 × 7 upright plus 0 × 5 lying flat208.6

Alternative panel sizes on this 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
  • An obstacle costs more panel positions than the area it covers, because it interrupts the grid. The calculator allows 1.5× its area. For complicated roofs (dormers, hips, valleys), work out one face at a time.
  • On pitched roofs, many codes call for fire-access paths (for example 0.46–0.91 m in the US) and wind edge zones. Look up your local rules and have the roof structure checked.
  • You supply the yield per kWp yourself. For your own orientation, look the figures up in the solar panel or tilt-angle calculators.

Laying out real modules

Panels never cover an entire roof. Wind, fire access and installers all need free space at edges and ridges. Chimneys and skylights cut holes in the grid, and module sizes are fixed. On flat roofs, tilted rows must also be spaced to avoid mutual shading. For these reasons the tool places actual modules instead of just dividing square metres.

Pitched roofs. A depth taken from a floor plan or from the ground is converted into true length along the slope: plan depth ÷ cos pitch. At 35° the slope is 22% longer than the plan. Eave, ridge and side setbacks are removed, and modules plus clamp gaps are packed three ways: every module portrait, every module landscape, or a mix in which portrait rows end with one landscape row across the remaining strip. The layout with the most modules is kept. The gable option repeats it on the opposite face, which has its own yield.

Flat roofs. Modules stand in tilted rows. Rows facing the equator are spaced so the row behind stays clear of shade at solar noon on the year’s shortest day at your latitude. In east–west layouts, rows are paired back to back and a service path separates each pair. Portrait and landscape mounting are both tried and the denser result is kept.

Obstructions count at 1.5 times their area, since each one breaks up rows and columns. Annual energy is system size multiplied by your specific yield, and added roof load follows from module plus racking weight.

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

Definitions: m is the module side that runs up the tilt, β the row tilt, and α the sun’s elevation at noon on the winter solstice.

Example: a south roof of 10 m × 5 m at 35°

The preset roof has a 10 m eave line, a plan depth of 5 m and a 35° pitch. Measured along the slope it is 6.1 m deep, giving 61 m² of surface. Setbacks of 0.3 m (eaves), 0.4 m (ridge) and 0.4 m (each gable end) leave a 9.2 × 5.4 m rectangle.

Take 430 W modules measuring 1.722 × 1.134 m and 20 mm clamp gaps. Laid in portrait, 3 rows of 7 give 21 modules; in landscape, 4 rows of 5 give 20. A mixed layout cannot add another row. The 1 m² chimney removes one module, so you end up with 20 panels = 8.6 kWp. At 1,200 kWh/kWp that means about 10,300 kWh a year. Roughly 64% of the roof surface is covered, with a load of around 14 kg/m².

Comparing panel types teaches something less obvious. A marginally bigger 450 W module fills the same 20 slots and reaches 9.0 kWp, but the large 550–700 W formats fit badly on this small roof and end up with lower total power.

Understanding the numbers

  • Panel count and layout (rows × columns, portrait or landscape): the drawing an installer would produce.
  • Usable area after setbacks: shows how much roof the rules remove, often 20–30% on small roofs.
  • Power density (Wp per m² of roof) is a yardstick across roofs and layouts. Typical results: 120–160 Wp/m² for pitched roofs, 80–110 Wp/m² for south-facing rows on flat roofs, and 120–150 Wp/m² for east–west flat-roof layouts.
  • Added roof load: an early figure for 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

Fitting more panels

  • Try portrait, landscape and mixed rows. One extra landscape row in a leftover strip is common.
  • Compare module formats, not just watts. On small or awkward roofs, compact 108-cell modules often yield more kWp than big 144-cell or 210 mm formats.
  • On flat roofs, pick east–west when space is the limit and south-facing rows when yield per module matters more.
  • Learn your setback rules. Fire-access and wind-zone rules vary a lot; a few US jurisdictions give up a third of a small roof to them.
  • Afterwards. To see whether the count meets your needs, open how many solar panels. Output can be estimated with the solar panel calculator, and the string sizing calculator covers the wiring.

Limitations

All roofs are treated as rectangles. Break hips, valleys, dormers and irregular outlines into rectangles and run them one at a time. Obstructions enter as a statistical allowance, not at their real position. Shading from chimneys, trees or neighbouring buildings is not modelled, nor are partial rows shifted around obstacles. Row spacing on flat roofs uses a solar-noon rule; at high latitudes designers often tolerate a little winter shade in exchange for extra modules. Treat the roof load as indicative only; before installing, have the structure assessed for snow and wind.

Method & assumptions

Pitched roofs first. Slope depth is plan depth ÷ cos(pitch). Subtract setbacks to get the usable rectangle: length − 2 × side setback across, slope depth − eave − ridge setbacks down. Modules (with clamp gaps) are packed in portrait rows, in landscape rows, or in mixed rows, where portrait rows come first and landscape rows fill the strip left over. The layout that holds most panels is chosen.

Flat roofs next. Tilted rows facing the equator at angle β must be spaced at d = m·cos β + m·sin β ÷ tan α. In this formula, m is the module's dimension up the slope, and α is the noon sun elevation at the winter solstice (90° − latitude − 23.44°). East–west layouts pair rows back-to-back and leave a maintenance path between pairs. Any obstruction removes ⌈1.5 × area ÷ module area⌉ modules, and kWh = kWp × specific yield.

Frequently asked questions

How do I count the panels that fit on a roof?
Start with the dimensions of the roof face. Leave out the strip along edges and ridge (typically 0.3–0.5 m in Europe and up to 0.9 m for US fire-access paths), and what is left, divided by module size plus clamp gaps in each direction, gives the grid. A south face of 10 m × 5 m (plan) at 35° normally takes about 20 modules of 1.72 × 1.13 m, roughly 8.6 kWp with 430 W panels. Portrait, landscape and mixed arrangements are all tried, and the best is shown.
How much roof does a 6 kW solar system need?
Modern 430–450 W modules measure about 2 m² each, so 6 kWp means 14 modules and roughly 28 m² of module area. With setbacks and gaps included, budget 35–45 m² of pitched roof surface. Older 300 W modules need about 40% more space.
Should panels be portrait or landscape?
Electrically it makes no difference, so choose whichever holds more modules. Portrait is usual on pitched roofs, where rails cross the rafters. Shallow roof faces and flat-roof racking favour landscape: a smaller module height means tighter rows. Mixing the two, with portrait rows and a single landscape row in the spare strip, frequently adds a few modules.
What spacing do flat-roof panel rows need?
Far enough apart for the front row to leave the one behind in sun when the sun is low. Designers normally require shade-free rows at solar noon on the shortest day: row pitch = module depth × cos(tilt) + module height ÷ tan(sun elevation). Take 48° latitude: the sun at winter noon is only about 19° up, which means a 1.13 m module tilted 15° needs a pitch of roughly 1.97 m, nearly double its own footprint.
Do east-west panels on a flat roof make sense?
Back-to-back east–west rows at 10–15° tilt hardly shade one another, so 30–60% more modules fit than with south-facing rows. Each module delivers about 5–10% less than a south-facing one, yet the roof as a whole generally produces much more, and the low profile reduces wind load and ballast.
Is my roof strong enough for solar panels?
On a pitched roof, rails and modules weigh about 12–15 kg/m² extra, a load that most sound roofs can carry. A ballasted flat-roof array adds 20–40 kg/m² or more, rising with wind exposure. For old timber roofs, long spans or heavy-snow regions, have a structural engineer take a look.

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 bloggers, installers, schools and NGOs. Copy the snippet below and it stays current by itself.