Solar Panel Roof Calculator

Work out how many solar panels fit on a roof plane, the system size in kWp and a rough annual energy yield.

Free · No sign-up · Runs in your browser

How to use the solar panel roof calculator

Early in a project, clients often ask how much solar a roof can take. This calculator gives a quick, defensible answer for one roof plane: how many standard modules fit inside the setbacks, the resulting system size in kilowatts peak (kWp) and a first estimate of annual generation. It tests both portrait and landscape layouts and reports the better one, so you can check whether a roof shape or dormer position is costing you panels.

  1. Choose units. Metric mode takes metres for the roof and millimetres for the panel. US mode takes feet and inches.
  2. Enter the roof plane as measured on the slope: the width along the eave and the length from eave to ridge. Measure each plane separately and add the results.
  3. Enter the setbacks. The edge setback applies to the eave and both sides, the ridge setback to the top. Use the margins your fire code and installer require.
  4. Enter the panel size, gap and rating from the module data sheet. Gaps of 10–25 mm between modules are common with standard clamps.
  5. Enter peak sun hours and a performance ratio for the yield estimate. Use a regional solar map or PVGIS for sun hours on the actual tilt and orientation.

Solar panel fit and yield formulas

Usable width = roof width − 2 × edge setback · usable length = roof length − edge setback − ridge setback
Columns = floor((usable width + gap) ÷ (panel width + gap)) · rows = floor((usable length + gap) ÷ (panel length + gap))
Panels = columns × rows (best of portrait and landscape)
System size (kWp) = panels × panel watts ÷ 1,000
Annual yield (kWh) = kWp × peak sun hours × 365 × performance ratio

The layout is a simple rectangular grid, which is how most residential arrays are installed. Vents, skylights, chimneys and shading from trees or neighbouring buildings will reduce the real count, so treat the result as a maximum for a clear plane. The table shows typical module sizes.

Module typeTypical sizeTypical rating
60-cell / 120 half-cell1,650–1,760 × 1,000–1,050 mm300–380 W
108 half-cell residentialabout 1,720 × 1,134 mm400–450 W
72-cell / 144 half-cellabout 2,000–2,100 × 1,000–1,050 mm400–500 W
Large commercialabout 2,280 × 1,130 mm540–600 W

Worked examples

A metric pitched roof

A south-facing plane is 10 m along the eave and 5 m on the slope, with 0.45 m setbacks. The usable area is 9.1 × 4.1 m. In portrait, 1,134 × 1,722 mm panels with 20 mm gaps give 7 columns and 2 rows, or 14 panels. In landscape they give 5 columns and 3 rows, 15 panels, so landscape wins. At 430 W that is 6.45 kWp, and with 4 peak sun hours and a 0.8 ratio it makes about 7,530 kWh a year.

A US garage roof

A 24 × 14 ft plane with 18 in setbacks leaves 21 × 11 ft. Using 45 × 68 in panels with ¾ in gaps, portrait fits 5 columns and 1 row, while landscape fits 3 columns and 2 rows, 6 panels. At 400 W that is 2.4 kWp and, at 5 peak sun hours and 0.8, about 3,500 kWh a year.

Checking a design change

On the first roof, cutting the ridge setback to 0.3 m adds nothing, because the usable length of 4.25 m still only takes 2 rows in portrait or 3 in landscape. Cutting the edge setbacks to 0.35 m instead widens the usable area to 9.3 m, which lets portrait fit 8 columns and 2 rows, 16 panels or 6.88 kWp. Knowing which margin actually limits the array tells you which one is worth negotiating.

Who this calculator helps

  • Architects testing roof forms, pitches and dormer positions for solar capacity at concept stage.
  • Sustainability consultants making a first pass at on-site renewable targets before detailed modelling.
  • Builders and developers checking whether a roof can meet a planning or energy code renewable requirement.
  • Homeowners sanity-checking a solar quote against the size of their roof.

Practical tips

  • Get the sloped roof length from plan dimensions with the roof pitch calculator, and the total roof area with the roofing calculator.
  • Check orientation and seasonal sun angles with the sun path calculator; low winter sun increases shading from nearby objects.
  • Pair panels with water reuse on the same roof using the rainwater harvesting calculator.
  • Keep the array as one clean rectangle where possible. It looks better and usually costs less to mount and wire.
  • Confirm the roof structure can carry the extra dead load, typically 10–20 kg/m² for panels and racking.

Want to show a client how the array will look? Render it onto a photo of the house with AI Exterior Redesign.

From numbers to pictures

See the space before it's built.

Once the plan works on paper, BasedFrame turns a sketch, a massing model or a site photo into a photoreal render in seconds. Try Sketch to Render or Room Redesign with free credits.

Try BasedFrame free

FAQ

Solar Panel Roof Calculator FAQ

How many solar panels fit on my roof?

Take the usable roof plane, subtract the setbacks from the edges, ridge and any fire access pathways, then divide the remaining width and height by the panel's width and height plus the gap between modules. Multiply the number of columns by the number of rows. Try both portrait and landscape orientation, because one usually fits more panels on a given plane.

How big is a standard solar panel?

Most residential panels sold today are about 1.7 × 1.1 m (roughly 67 × 45 in) and rated around 400 to 450 W. Older 60-cell panels are about 1.65 × 1.0 m and 300 to 350 W, and large commercial modules can be 2.3 × 1.1 m and over 550 W. Check the data sheet of the module you plan to use.

How do I estimate annual solar output?

Multiply the system size in kWp by the average daily peak sun hours for the site, by 365, and by a performance ratio for losses. A 6 kWp system with 4.5 peak sun hours and a 0.8 performance ratio makes about 6 × 4.5 × 365 × 0.8 ≈ 7,900 kWh a year. For a design-grade figure, run the roof through a tool such as NREL PVWatts or PVGIS.

What are peak sun hours?

Peak sun hours are the daily solar energy on the panel surface expressed as hours of 1,000 W/m² sunshine. A site that receives 5 kWh/m² per day has 5 peak sun hours. Typical annual averages range from about 2.5 in northern Europe to 5–6 in the southwestern United States, Australia and the Middle East.

What performance ratio should I use?

A performance ratio of 0.75 to 0.85 is typical for a well-installed modern system. It covers inverter losses, wiring, heat, soiling and mismatch. Use the lower end for hot climates, partially shaded roofs or older equipment, and the higher end for cool sites with optimisers or microinverters.

What roof setbacks do solar panels need?

It depends on the code adopted where you build. In the US, the International Fire Code and IRC R324 call for access pathways, typically around 36 in wide from eave to ridge, and clear space at the ridge on many residential roofs, with reductions where sprinklers are fitted. Many installers also keep a margin from roof edges for wind loads. Confirm the local fire and building code requirements.

Does roof pitch and orientation matter?

Yes. Panels give the most energy when they face the equator at a tilt close to the site latitude, but east- and west-facing roofs still produce roughly 80–90% of a south-facing roof in many locations. Enter the peak sun hours for the actual plane, or reduce them for orientation, to account for this.

Should I measure the roof along the slope?

Yes. Panels lie flat on the roof plane, so use the sloped length from eave to ridge, not the plan dimension. If you only have plan dimensions, divide the plan depth by the cosine of the roof angle, or use the roof pitch calculator to get the rafter length.

Keep exploring

More free tools for architects

Turn any listing
into rooms that sell

Start with a Zillow link or a single photo. Redesign, stage, relight and walk buyers through every room, ready to list today.