EN
CalcSlopecalcslope.com

Reference document

Flat roof solar row spacing: calculate gaps and footprint

Printed

Solar & roofs

Flat roof solar row spacing: calculate gaps and footprint

Calculate flat roof solar row spacing from panel tilt, height and a chosen sun angle. Check whole rows, roof obstructions and a complete worked layout example.

Key takeaways

  • Clear gap and row pitch are different: pitch includes the horizontal footprint of the tilted row.
  • The sun angle belongs to a specified time, location and section direction; panel tilt is a separate angle.
  • Count whole rows inside the surveyed usable area, then compare energy, access and mounting requirements.
Two tilted solar rows with panel length 2 meters, tilt 15 degrees, height 0.518 meters and a 1.422 meter clear shadow gap
Illustrative section: at a 20° solar profile angle, 15° rows have a 3.354 m front-edge pitch; access, fixings and site shadows need separate checks.
Check the dimensions for your projectRoof area & sheets — Surface, walls, sheets to buyOpen calculator

Flat roof solar row spacing depends on the tilted row’s height, its horizontal footprint and a chosen sun position. For a simple two-dimensional section, the clear gap is the row’s vertical rise divided by the tangent of the solar profile angle. The distance from one row’s front edge to the next also includes the first row’s horizontal footprint.

The example here develops that geometry and then counts complete rows within a defined usable rectangle. It is a layout exercise with hypothetical dimensions. It does not select the best annual energy design or establish safe mounting, ballast, roof loading or access distances.

Start with a usable roof plan

Draw the roof perimeter, rooflights, outlets, vents, parapets and equipment. Then mark the spaces already required for the project’s edge conditions, maintenance, access and mounting system. Do not treat an entire map rectangle as available for modules without identifying those constraints.

For this example, assume the remaining usable rectangle is 14.00 m deep in the row-to-row direction and 10.00 m wide along the rows. Those are hypothetical clear dimensions after the project-specific exclusions have been removed. They are not recommended setbacks or walkway widths.

Keep a plan showing how the usable rectangle was obtained. If one obstruction cuts across it, divide it into smaller usable zones and count the rows in each zone. Rounding an interrupted roof down to a single area percentage can still place modules where an outlet or access path is required.

The roof panel-fit guide explains whole-module layout within a boundary. This article adds the space between tilted rows, which a simple module-area division does not capture.

Name the two angles and three distances

Let L be the length of the row assembly measured along its tilt. A row that is two modules deep has a different L from a one-module-deep row, even when the module itself is unchanged. Here we assume a single tilted length of 2.00 m.

Let β be the tilt of that assembly above horizontal. The example uses 15°. Let α be the solar profile angle in a vertical section perpendicular to the rows; the example chooses 20° as a geometric scenario, without assigning it a location or claiming it is a suitable design time.

From these inputs, calculate three distances:

Quantity Meaning Expression
B Horizontal footprint of one tilted row L × cos β
H Rear-edge rise above the row’s front edge L × sin β
D Clear gap from rear-edge projection to next front edge H ÷ tan α

The front-edge-to-front-edge pitch P = B + D. Writing “spacing” on a drawing without saying which distance it means can shift every subsequent row. Use clear gap and pitch labels rather than treating both as the same measure.

Two tilted solar rows with panel length 2 meters, tilt 15 degrees, height 0.518 meters and a 1.422 meter clear shadow gap
Illustrative section: at a 20° solar profile angle, 15° rows have a 3.354 m front-edge pitch; access, fixings and site shadows need separate checks.

Check whether the sun angle matches the section

Solar altitude is measured above the horizontal toward the sun. It equals the profile angle used in our section only when the sun’s horizontal direction is perpendicular to the row axis. In that aligned case, the shadow runs straight from the high rear edge toward the next row in the section.

At other sun azimuths, the shadow also travels along the row direction. Its perpendicular component, rather than its full horizontal length, controls row-to-row separation in the ideal infinite-row model. Use the relevant solar profile angle or a checked three-dimensional model for the actual orientation.

For a visible sun on the relevant front side, the relationship can be expressed as tan(profile angle) = tan(solar altitude) ÷ cos(azimuth difference from the row-facing normal). The aligned example has zero azimuth difference and cos(0) = 1. Finite row ends and irregular obstacles still need their own shadow checks.

As solar altitude approaches the horizon, shadows can become very long. No finite spacing rule can promise complete freedom from all direct-beam shadows at every sunrise and sunset. State which dates and hours your design is assessing, and evaluate the resulting energy tradeoff separately.

Calculate the example gap and pitch

With L = 2.00 m and β = 15°:

B = 2 × cos(15°) = 1.93185165 m.

H = 2 × sin(15°) = 0.51763809 m.

For α = 20°:

D = 0.51763809 ÷ tan(20°) = 1.42219896 m.

The row pitch is therefore P = 1.93185165 + 1.42219896 = 3.35405062 m, usually shown as about 3.354 m on the geometric sketch. These values refer to rows with equal front-edge heights over a horizontal base plane and no other obstacles.

A flat roof can still have drainage falls. If the next row sits at a different level, the height difference changes the ray intersection. Mounting frames may also extend beyond the module edge. Replace the idealized section with the actual module and frame geometry before setting out the system.

Fit whole rows into the available depth

For n rows, the required depth is n × B + (n − 1) × D. There are n row footprints but only n − 1 gaps between them. Multiplying n by the pitch would add an unnecessary gap after the last row, unless the project independently requires that extra clear space.

Four rows need 4 × 1.93185165 + 3 × 1.42219896 = 11.99400350 m. Five rows need 5 × 1.93185165 + 4 × 1.42219896 = 15.34805412 m. Our 14.00 m usable depth therefore fits four rows under these assumptions.

The same count follows from n = floor[(available depth + D) ÷ (B + D)]. Always check the actual footprint afterward. The rounding-down operation finds a whole number; it does not validate a setback, fixing layout or safe route around the array.

Along each 10.00 m row, assume a separate hypothetical module width of 1.10 m and a 0.02 m gap between modules. Eight modules occupy 8 × 1.10 + 7 × 0.02 = 8.94 m. Nine would occupy 10.06 m and exceed the width. Four rows of eight gives 32 modules, before any further project constraints.

Compare tilt without assuming the densest layout wins

Keep L = 2.00 m and the chosen profile angle at 20°. Changing the tilt changes both the row footprint and the shadow gap:

Tilt Row pitch Whole rows in 14 m Depth used by those rows
10° 2.924 m 5 13.665 m
15° 3.354 m 4 11.994 m
20° 3.759 m 4 13.156 m

This is a geometric comparison, not an energy ranking. The lower tilt fits another row in this specific rectangle, but energy per module, seasonal shading, orientation, soiling and the mounting system also matter. The roof-angle guide for solar explains why there is no single best angle for every roof.

An east-west mounting arrangement has a different section and repeated-unit geometry from the one-direction rows used here. Do not insert one of its panel tilts into this formula and assume the remaining dimensions still describe the system.

Keep the energy model’s definitions consistent

SAM’s shading and layout documentation defines the relationship between row dimensions, ground coverage ratio and row spacing. Its terminology illustrates why a model input must be checked before transferring a ratio from a sketch.

For example, L ÷ P in this exercise is approximately 0.5963, whereas B ÷ P is approximately 0.5760. One uses the length in the module plane and the other its horizontal projection. Both are meaningful ratios, but they are not numerically interchangeable.

The SAM PVWatts system-design documentation also distinguishes array types and whether their modeling includes row self-shading. Select a model compatible with the intended layout rather than assuming a roof-mount label handles all tilted rows.

The actual input definitions and model limitations should be saved with any energy comparison. A system that contains more modules can still have a different shading loss and output profile. A single design-time shadow calculation does not replace an annual simulation.

Survey obstructions and prepare the next design step

A parapet shadow depends on the obstruction height relative to the receiving module, not simply its height above the roof membrane. A raised row can change that relationship. Vents, neighboring structures and trees also cast shadows that do not follow the repeated-row section.

Keep outlet access and drainage paths on the plan. Use the roof area calculator to check surveyed plan dimensions, while recognizing that total area does not locate a missing clear route. The frame supplier needs actual edge zones, roof condition and loading information in addition to a module count.

PVWatts itself cautions that its predictions have assumptions and site-specific limits. Report modeled energy with its input conditions and uncertainties. Do not turn the 32-module geometric example into a production promise or equipment specification.

A useful handoff includes the roof survey, usable zones, assumed module dimensions, tilt, sun-position criterion, clear gap, pitch and whole-row check. Mark which measurements remain unconfirmed. That record lets a designer compare layouts while keeping geometry, energy modeling and structural verification traceable.

Frequently asked questions

What is the formula for flat roof solar row spacing?

For parallel rows with equal front-edge heights on a horizontal plane, row length L along the tilt, tilt β and a chosen solar profile angle α, the projected base is L cos β and the rise is L sin β. The geometric clear gap is L sin β divided by tan α. Front-edge pitch is the projected base plus that gap.

Can I use solar altitude directly in the gap formula?

Only when the sun’s horizontal direction lies in the vertical section perpendicular to the rows. At other azimuths, use the appropriate solar profile angle or a three-dimensional shadow model. A sun angle at one selected moment does not establish a shade-free layout for every hour of the year.

Does a smaller row gap always improve the design?

It can fit more modules, but may increase row shading and restrict maintenance or other required spaces. Compare the actual mounting system and an appropriate energy model. A geometric panel count is not an annual yield estimate or a structural approval.

Written byAbrar Hasan

Dhaka, Bangladesh

How we write and check articles

Solar & roofsHow many solar panels fit on a roof? A layout guideWork out how many solar panels fit on a roof using usable dimensions, module sizes and gaps. Compare portrait and landscape layouts with a worked example.11 min read · Oct 30, 2026Solar & roofsBest roof angle for solar panels: how to chooseFind the best roof angle for solar panels by checking tilt, direction and shade. Measure your roof with our calculator, then compare site-specific estimates.7 min read · Oct 26, 2026
Roof pitchAngle, %, X/12 from rise and runTwo-slope roof pitchSymmetric or off-centre gableRoof area & sheetsSurface, walls, sheets to buyRoof framePosts, rafters, cut listAttic floor areaArea under sloped ceilings