How it’s worked out
- What the panels produce in year one = kWp × what 1 kWp gives per year in your city, according to the World Bank’s Global Solar Atlas, and 4% less on a roof (as in the Atlas’s own examples).
- Each year they produce a little less: the U.S. national energy laboratory (NLR, formerly NREL) assumes they lose 0.7% a year and that the system lasts 30 years.
- Maintenance (cleaning, insurance, the odd repair) costs about 1% of the installation price each year, using the ratio the same laboratory uses.
- Each year’s savings = power produced × what you pay per kWh × the share you use − maintenance.
- Years to pay back: when those savings add up to what the installation cost.
With what the calculator loads when you open it (3 kWp on a roof in Madrid, 0.27 per kWh and 1,200 per kWp): the panels produce 3 × 1,655 × 0.96 = 4,766 kWh in year one, which at 0.27 is 1,287. The installation costs 3 × 1,200 = 3,600, plus about 37 a year for maintenance. If you use all that power, you save 1,250 in year one and pay it back in 3 years; if you only use half, you save 607 and pay it back in 7, because the panels produce a little less each year.
Why we give two figures
Panels produce during the day, mostly around midday. The power you use at that moment saves you the full price. The surplus that goes to the grid, depending on the country and the company, is paid at a lower rate, credited on your bill or not paid at all. So real savings usually fall between the two columns. Ask your power company how it works where you live.
What it doesn’t account for
- Batteries. They add a lot to the cost and don’t last as long as the panels: 3 to 15 years, according to Australia’s CSIRO. People mainly add them to have power during outages.
- Incentives and taxes in each country, which can lower the cost.
- Electricity price changes. In the US, for example, homes paid an average of 12.55 cents per kWh in 2016 and 17.30 in 2025, according to the EIA.
- Shade and your roof’s direction: see how much solar panels produce.
Sources
- Global Solar Atlas 2.0 (World Bank and ESMAP, data by Solargis). globalsolaratlas.info. Figures retrieved October 3, 2026.
- National Laboratory of the Rockies (NLR, formerly NREL), Annual Technology Baseline 2024. Residential PV (cost, maintenance, degradation and 30-year life).
- Eurostat. Electricity prices for household consumers (nrg_pc_204; second half of 2025, all taxes, 2,500 to 5,000 kWh a year).
- U.S. Energy Information Administration (EIA). Electric Power Monthly, Table 5.3 (average residential price).
- Fraunhofer ISE, July 14, 2026. Photovoltaics Report (price of a 10 kWp rooftop system in Germany).
- CSIRO (Australian Government), 2021. Batteries for Homes.