Solar panel calculator
Find how many solar panels fit your roof, how much electricity they make each month at your address with your roof's tilt and direction, how much of your use they cover and when they pay for themselves.
Place and roof
Enter where the roof is, its size and which way it faces. You get how many panels fit, how much electricity they make each month and when they pay back.
Denver · 39.7400° N, 104.9900° W
The roof faces
Degrees from north, clockwise: 90 east, 180 south, 270 west. A map or a phone compass app gives it.
Rise in inches per 12 inches of run, as roofers say it: 33.7°.
Panels
From your electricity bill, or from the electricity usage calculator.
The part of the roof you can use, after leaving the edges, ridge and any access paths free.
Measured along the roof from the eaves up, not on the plan.
Panel and losses
From the data sheet, at standard test conditions (STC).
From the mounting system's manual; clamps between panels need a few centimetres.
Cables, inverter, dirt and ageing. PVGIS suggests 14 %.
Savings and payback
What you pay per kWh, from your bill, in your currency.
The feed-in tariff or export rate per kWh. 0 if exported power is not paid.
Without a battery a household uses about 30 % of its solar power directly, with a battery about 60 % (HTW Berlin).
The installer's price for everything, in your currency.
Add this calculator to your website
Free for any website: paste this code where the calculator should appear. It keeps itself up to date, fits its height to the content and links back to the full page with the explanations.
How to use it
- 01Paste the coordinates of the house or press "Use my location".
- 02Choose the direction the roof faces and enter its tilt (or its pitch in inches per foot).
- 03Measure the free part of the roof: the width along the eaves and the length up the slope, without the edges you must keep clear.
- 04Leave "Fill the roof" to see how many panels fit, or switch to a number of panels or to covering your yearly use.
- 05Open "Savings and payback" and enter your electricity price and the installer's price to see when the system pays back.
How it is calculated
The yield comes from PVGIS, the solar database of the European Commission's Joint Research Centre. For your coordinates, tilt and direction it returns what 1 kWp of panels produces in each month, averaged over the satellite years 2005–2023 (other periods outside Europe), with the shade of the terrain on the horizon and the losses from reflection, heat and low light. We multiply that by the size of your system.
- Panels that fit
- n = floor((L + gap) ÷ (panel + gap)) across × the same up the slope
- System size
- kWp = panels × panel power ÷ 1000
- Yearly production
- E = kWp × yield per kWp (PVGIS)
- Savings in year one
- S = E × share used × price + E × (1 − share used) × export rate
- Payback
- years until the sum of S, with 0.5 % less output each year, reaches the price
System losses of 14 % are the PVGIS default and cover cables, the inverter, dirt and the slow ageing of the panels. Change them if your installer gives another figure.
Panels lose output slowly: a review of nearly 2,000 measurements by NREL found a median of 0.5 % a year, so the savings table reduces the output by that much every year.
How much of the solar power you use yourself depends on when you use electricity. A study by HTW Berlin for a household using 4,700 kWh a year with 5 kWp found just under 30 % without a battery and about 60 % with a 4 kWh battery. Enter your own share if you know it.
Prices are kept as you enter them; if electricity becomes more expensive, the system pays back sooner.
Worked example
A 10 × 5 m roof, panels of 430 W
- Portrait panels 1.134 m wide and 1.722 m long, 3 cm apart: 8 across (8 × 1.134 + 7 × 0.03 = 9.28 m) and 2 up the slope (3.47 m), 16 panels.
- System size: 16 × 430 W = 6.88 kWp.
- If PVGIS gives 950 kWh per kWp for this roof, the system makes 6.88 × 950 = 6,536 kWh a year.
- With 30 % used at home at 0.30 per kWh and the rest exported at 0.08: 1,961 × 0.30 + 4,575 × 0.08 = 954 in the first year.
Getting the order right
East and west roofs are worth it too
The result compares your roof with the best angle for your place. East and west roofs produce less at noon but more in the morning and evening, when many people are at home and use the power themselves.
Look for shade before you count panels
PVGIS includes hills and mountains, not chimneys, dormers, trees or neighbours. Use the sun position calculator to see their shadows in winter.
Check the roof edges with the installer
Wind loads are highest at roof edges and corners, and some countries require free paths for firefighters. The mounting manual and local rules set how far panels stay from the edges.
Size to your use, not only to the roof
Where exported power earns little, a system much larger than your use mostly exports. Enter your yearly use to compare.
Common mistakes
- Measuring the roof on the floor plan. The slope length is longer than its plan length on any pitched roof.
- Taking the panel power as what it makes every hour. A 430 W panel gives 430 W only in full sun at 25 °C.
- Assuming all production saves the full electricity price. Exported power earns the export rate, which is usually much lower.
- Ignoring a tree or chimney that shades part of the array in winter.
Questions
How many solar panels do I need?
Divide your yearly use by the yield of one panel at your place. With 4,000 kWh a year and 400 kWh per panel you need 10 panels. The calculator takes the yield per panel from PVGIS for your roof.
How much does a 1 kW solar system produce?
It depends on the place, the tilt and the direction, so there is no single number. The calculator shows the kWh per kWp that PVGIS gives for your roof, together with the year-to-year spread.
What is the best angle for solar panels?
The calculator shows the best tilt and direction for your place from PVGIS, and how much your own roof gives compared with it, so you can see whether a mounting frame would be worth it.
Do panels work on a north-facing roof?
They produce less, and how much less depends on the tilt and the latitude. Enter the roof and compare with the best angle in the result.
Related calculators
Sources
- [1]PVGIS 5.3, grid-connected PV (PVcalc) and user manual. European Commission, Joint Research Centre. Monthly and yearly output of 1 kWp at the location, tilt and orientation, from satellite irradiation (PVGIS-SARAH3 2005–2023 for Europe, Africa and Asia; NSRDB for the Americas; ERA5 elsewhere), including the terrain horizon, reflection, spectrum, temperature and low light. Default system loss 14 % for cables, inverter, dirt and ageing. Azimuth: 0° south, −90° east, 90° west.. Checked November 18, 2026
- [2]Hi-MO 6 Explorer LR5-54HTD 415–440M data sheet. LONGi Solar. Example panel: 430 W, 1722 × 1134 mm, 22.5 kg. Warranty: under 1.5 % loss in year one, then 0.40 % a year.. Checked November 18, 2026
- [3]MiniRail XPRess installation instructions (US). K2 Systems. Example gap between modules: at least 1.2 in (30 mm) east–west.. Checked November 18, 2026
- [4]Photovoltaic Degradation Rates — An Analytical Review (D. C. Jordan, S. R. Kurtz), Progress in Photovoltaics 21(1), 2013. National Renewable Energy Laboratory. Nearly 2,000 measured degradation rates of modules and systems over 40 years, median 0.5 % per year.. Checked November 18, 2026
- [5]Solare Unabhängigkeitserklärung (J. Weniger, T. Tjaden, V. Quaschning), Photovoltaik 10/2012. HTW Berlin. Household using 4,700 kWh a year with 5 kWp: just under 30 % of the solar power is used at home without a battery; about 60 % with a battery of 4 kWh usable capacity.. Checked November 18, 2026
Formulas and sources last checked on November 18, 2026. How we calculate