How the Layout Tool Works
Most "how many solar panels fit on my roof" answers online are rules of thumb: divide your roof area by panel area and call it a day. That overcounts badly, because real surfaces lose space to fire-code setbacks, vents, fans, skylights, chimneys, and the simple fact that rigid rectangles do not tile a space perfectly once you reserve a clear border. This tool models the geometry directly.
You give it three things: the surface (a roof plane, a ground footprint, or a van/RV roof), the obstructions you cannot panel over, and the panel you plan to buy. It then shrinks the surface inward by your edge setback, removes a clearance halo around every obstruction, and runs a greedy grid-packing pass: it lays panels left to right, top to bottom, skipping any cell that would overlap a setback or an obstruction. If orientation is set to "auto," it runs the pack twice — once portrait, once landscape — and keeps whichever fits more panels. Everything is drawn to scale on the canvas so you can see exactly where the panels land and drag obstructions to test "what if I move the fan."
The output plate then converts the packed count into total watts, estimated production, and weight. The math is deliberately conservative: it is better to be told you fit nine panels and find room for ten than the reverse. For the full sizing chain after this, pair it with our off-grid solar calculator and the 100W vs 200W vs 400W panel comparison.
Edge Setbacks and Fire-Code Pathways
On residential roofs in the United States, the International Fire Code and many state amendments require clear pathways and setbacks so firefighters can move on the roof and cut ventilation holes. A common requirement is an 18-inch setback from ridges and clear access paths, though the exact rule depends on roof size, number of accessible sides, and your Authority Having Jurisdiction (AHJ). Some jurisdictions waive or shrink setbacks for smaller roofs or when access exists from another side; others are stricter. The default 18-inch setback in this tool is a reasonable planning value, not legal advice — confirm your local code.
The setback matters more than beginners expect. On a 16 ft by 24 ft plane, an 18-inch perimeter removes 3 feet from each dimension, turning a 384 sq ft plane into a 273 sq ft usable rectangle — a 29% loss before you place a single panel. That is why the rule-of-thumb area method overcounts. Setbacks on ground mounts and vehicles are mechanical (clamp room, edge strength, rib spacing), not fire code, so you can usually run those tighter. Use the edge-setback field to match whichever applies to your install.
Portrait vs Landscape Packing
Whether panels pack better in portrait (long edge vertical) or landscape (long edge horizontal) is purely a geometry question, and the answer flips depending on the rectangle. On a wide, shallow roof plane or a van roof where the limiting dimension is width, landscape rows often fit one or two more panels per row. On a tall, narrow plane, portrait usually wins. Because it is not obvious by eye, the "auto" setting brute-forces both and keeps the winner, and the result plate tells you which orientation it used.
There is no electrical penalty to either orientation for a standard framed panel — the cells and bypass diodes work the same way. The only real-world wrinkles are partial-shading behavior (a panel in landscape may have its bottom cell-row shaded by a low obstruction differently than in portrait) and mounting-rail direction. For most off-grid builds, pack for maximum count and orientation follows. Our solar roof mounting guide covers rail layout for both orientations.
Shading and Obstructions
The obstructions you drop on the canvas do two jobs: they block panel placement, and they remind you that a "clear" roof rarely is. Plumbing vents, bathroom and Maxxair-style roof fans, skylights, chimneys, satellite mounts, and rooftop AC condensers all carve out usable area, and each one also casts a shadow that can hurt nearby panels far beyond its physical footprint.
Shading is disproportionately destructive because of how panels are wired. Series strings are limited by their weakest panel, so a chimney shadow falling across one panel in a string can drag down the whole string, not just that panel. That is why the tool reserves a clearance halo around obstructions, and why you should mentally extend that halo to the north (in the Northern Hemisphere) where winter shadows are longest. If a tall obstruction is unavoidable, keep panels on its sunny side, consider a separate MPPT or microinverter for the affected string, and read our DIY solar panel installation guide for string-vs-parallel wiring around shade.
How Daily and Seasonal kWh Are Estimated
Production uses the same well-established formula as our main calculator: daily kWh = array watts × peak sun hours × 0.75 derate ÷ 1000. The 0.75 derate bundles the unavoidable real-world losses — wiring resistance, MPPT or inverter conversion, temperature coefficient, soiling, mild shading, and panel aging. In a lab a panel makes its rated wattage; on a roof it makes about 70 to 80% of it over a day.
Peak sun hours come from a built-in 50-state table of long-term annual averages (based on NREL long-term solar resource data; the figures below are rounded planning values). Pick your state from the dropdown, or type an override if you have a site-specific number from NREL's PVWatts. The tool then shows a seasonal band: roughly −30% in deep winter and +30% in peak summer relative to the annual-average day, because a fixed array in, say, Vermont might make half its annual-average output in December and well above it in June. Tilt and azimuth nudge these numbers (a south-facing array at latitude-tilt maximizes annual yield), but the band is the honest planning range. Size your battery and generator strategy for the winter end, not the average.
| Region | Annual PSH | Planning note |
|---|---|---|
| Southwest (AZ, NM, NV) | 5.5–6.5 | Best solar resource in the country |
| California / Texas | 5.0–5.8 | Strong year-round |
| Southeast (FL, GA, SC) | 4.5–5.2 | Humid haze trims summer slightly |
| Midwest / Mid-Atlantic | 4.0–4.8 | Real winter dropoff |
| Northeast (NY, VT, ME) | 3.5–4.2 | Size for December |
| Pacific Northwest (WA, OR) | 3.2–4.0 | Long overcast stretches |
| Alaska | 2.5–3.5 | Extreme seasonal swing |
Van and RV Roofs: The Curve Caveat
Van and RV roofs are the trickiest surface because the published "roof length" is never the usable flat length. The roof curves down at the sides, has structural ribs, and is interrupted by fans, vents, antennas, and AC shrouds. The van presets in this tool fill the usable flat width and length — already inset from the curve — but you must keep panels inboard of the ribs and leave room for airflow and walkability. A Sprinter 170 has a long roof, yet realistically you fit a handful of rigid 100–200W panels once the Maxxair fan and any antennas are placed.
Two more van-specific notes. First, weight is a point-load question: a van roof skin is thin, so panels must mount to the ribs or a rack, never bonded only to the sheet metal. The tool shows array weight and flags the point-load concern in van mode. Second, flexible panels are popular for curved or weight-sensitive roofs, but glued flat against the roof they run hot (no air gap) and lose output and lifespan; a low-profile rack that lets air pass underneath almost always produces more. For full builds see our van life solar system complete guide.
Ground Mounts: Row Spacing and Winter Tilt
Ground arrays remove the fire-code setback problem but add a new one: inter-row shading. Tilted rows cast shadows northward, and if you pack rows too tightly the front row shades the row behind it during low winter sun, exactly when you need the energy most. The practical rule is to space rows at roughly 2 to 3 times the tilted panel height, widening with latitude and tilt angle. The tradeoff is blunt: steeper, winter-optimized tilt makes each panel produce more in winter but forces wider row gaps, so you fit fewer panels per acre.
This tool models a single ground footprint (one tilted plane) and reports a tilt-gain note rather than auto-spacing multiple rows, because correct multi-row spacing depends on your exact latitude and the sun angle on your worst design day (often December 21 solar noon). As a planning anchor: a tilt near your latitude maximizes annual yield, latitude plus 15° favors winter, and latitude minus 15° favors summer. If you are designing a multi-row field, compute the December-noon shadow length and use that as your minimum row gap. Our DIY installation guide walks through ground-mount racking.
Worked Example: Sprinter 170 With a Roof Fan
Say you have a Sprinter 170 (usable flat roof about 60 in wide by 170 in long), you want 200W panels (58 × 26 in), you place one 14 × 14 in Maxxair fan near the front, and you use a 2-inch edge setback and a 1-inch gap. After setback the usable area is 56 × 166 in. Trace it the way the tool does:
- Portrait (panel 26 wide × 58 long): two columns fit across the 56-inch width (26 + 1 + 26 = 53 ≤ 56) and two rows fit down the 166-inch length (58 + 1 + 58 = 117 ≤ 166, a third row needs 176). That is a 2 × 2 = 4-slot grid. The fan sits in the front row, and because the row is only 58 inches tall, the fan's clearance halo overlaps both front slots — so it knocks out the whole front row, leaving 2 panels = 400W.
- Landscape (panel 58 wide × 26 long): the panel is 58 inches wide but the usable width is only 56 inches, so a landscape panel will not fit at a strict 2-inch setback at all — 0 panels.
So "auto" reports 2 panels, 400W for this exact setup. That feels low, and it teaches the real lesson: on a narrow van roof, a single fan placed mid-row and a coarse two-row grid cost you dearly. Three easy moves recover panels — drag the fan into a corner (frees one slot, back to 3 panels), drop the setback to 1 inch (now the 58-inch landscape panel fits the 58-inch usable width and you get a single long column of panels down the length), or step down to 100W panels (41 × 21 in) which tile the curve-limited roof far more efficiently. At 5 peak sun hours, 400W makes about 400 × 5 × 0.75 ÷ 1000 = 1.5 kWh/day on an average day. Drag the fan and switch panels and watch the count change in real time — that is exactly why a drawing tool beats arithmetic by hand.
Frequently Asked Questions
How many solar panels fit on my roof?
It depends on usable area after setbacks and obstructions, panel size, and orientation. Residential 400–550W panels are about 18–27 sq ft each, so a clear 200 sq ft plane fits roughly 7–10 of them after an 18-inch setback and vent clearances. Draw your exact plane above for an accurate count rather than a rule of thumb.
Should solar panels be portrait or landscape?
Use whichever packs more panels into the usable rectangle. Landscape often wins on wide, short roofs and van roofs; portrait often wins on tall, narrow planes. The auto setting tests both and keeps the higher count. There is no electrical difference for a standard framed panel.
How much clearance do solar panels need from the roof edge?
US fire code generally calls for an 18-inch setback at ridges and clear pathways on residential roofs, though local rules and roof size change this and some jurisdictions reduce it with multi-side access. Ground mounts and vehicles use mechanical clearance, not fire code. Set the edge-clearance field to your local requirement.
How do you calculate daily kWh from a solar array?
Multiply total array watts by peak sun hours, then by about 0.75 for real-world losses. A 2,000W array at 5 peak sun hours makes roughly 2,000 × 5 × 0.75 = 7,500 Wh, or 7.5 kWh per average day. Winter can be half that and summer higher, which is why the tool shows a seasonal band.
How much do roof solar panels weigh?
Framed residential panels run about 2.5–3 lb per sq ft, so a 400W panel is roughly 45–50 lb, and a full array with racking adds about 3–4 lb per sq ft. Most code-compliant roofs handle this easily, but verify your structure. Flexible van panels are far lighter, around 4–7 lb each.
What row spacing do ground-mount panels need?
Space tilted rows so the front row does not shade the next during winter midday sun — commonly 2–3× the tilted panel height, more at higher latitudes and steeper tilt. Steeper winter tilt boosts per-panel winter output but widens gaps, lowering panels per acre. Use December-noon shadow length as your minimum row gap.
Where to Go Next
- Solar roof mounting guide — flashing, rails, and penetrations done right.
- DIY solar panel installation guide — full step-by-step wiring and mounting.
- Van life solar system complete guide — real van roof builds and rack options.
- 100W vs 200W vs 400W panels — pick the panel that packs best for your space.