Ledgerly Solar Payback Calculator
When do solar panels pay off? Payback, NPV, IRR and cost per kWh with feed-in and a loan.
How it works
Year-by-year cash flow of a PV system: bill savings from the power you use yourself, feed-in income for the guaranteed years, ageing of the panels, running costs, an inverter replacement and an optional loan. Returns simple and discounted payback, NPV, IRR, the cost per kWh produced and a payback table for other price rises and self-consumption shares. Part of Ledgerly’s Solar & Heat.
- Each year: yield × (1 − ageing)^(year − 1); the self-used share replaces grid power at the rising electricity price, the rest earns the feed-in payment while it is guaranteed.
- Net cash flow = bill savings + feed-in income − running costs − inverter replacement (in its year) − loan payments; year 0 is your own money (price − subsidies − loan). Payback and the return on the investment use the flows without the loan; NPV and the return on your own money include it.
- Loan payments come from the same monthly annuity schedule as the Loan Amortization Calculator. NPV, IRR (bisection) and fractional payback use the same functions as the Break-even Explorer.
- LCOE = (net price + present value of running costs) ÷ present value of all kWh, before financing. The 3 × 3 table repeats the payback for the price rise ± 1 point and self-consumption ± 10 points.
A model with your assumptions, not financial or tax advice: tariffs, feed-in rules and subsidies differ by country and change over time — enter the ones that apply to you.
Part of Ledgerly
-
Ledgerly Household finance & life-admin desk
Budgets, bills, subscriptions, loans, contracts and deadlines on one private desk.
Related tools
- Ledgerly Rooftop Solar Yield – How much power would solar panels on my roof make? Month by month, offline or with PVGIS.
- Ledgerly Home Battery Simulator – Is a home battery worth it? Hour-by-hour year with your load, several battery sizes compared.
- Break-even Explorer – When does an investment pay for itself? Payback, NPV and IRR for solar, EVs, heat pumps…
How to use the Solar Payback Calculator
Work out when a PV system pays for itself — payback, NPV, IRR and cost per kWh with feed-in, panel ageing, an inverter replacement and a loan.
What it is for
An installer's quote usually comes with a payback promise. This calculator lets you check it with your own numbers: the price, the yearly yield, how much of the power you use yourself, your electricity price, the feed-in payment and how long it is guaranteed. It runs the system year by year, including panel ageing, rising running costs, an inverter replacement and an optional loan.
It answers "when is my money back, and what do I earn on it?". It does not know your country's subsidies, tax rules or feed-in rates — you enter them. For the yield itself, start with the Rooftop Solar Yield calculator.
Worked example
A 10 kWp system for 16,000 EUR that makes 9,500 kWh in its first year. You use 28 % of it yourself and pay 0.33 EUR/kWh for grid power; the rest earns 0.0786 EUR/kWh for 20 years. Everything else stays at the defaults (0.5 % ageing a year, 150 EUR running costs, a 1,500 EUR inverter in year 15, 2 % price rise, 3 % discount rate, 25 years).
The result: payback after 12.2 years, discounted payback 16.4 years, an NPV of 5,405 EUR, a return of 5.9 % on the investment and a cost of 0.13 EUR per kWh produced. After 25 years you are 14,308 EUR ahead. In year 1 the panels save 878 EUR on the bill and earn 538 EUR feed-in; after 150 EUR running costs that is 1,265 EUR.
The 3 × 3 table shows how fragile the payback is: at 18 % self-use and a 1 % price rise it stretches to 17.5 years, at 38 % and 3 % it shrinks to 9.9 years.
Now finance the whole system with a loan of 16,000 EUR at 5 % over 15 years. The payback of the investment stays at 12.2 years, but after paying the interest you end 7,534 EUR ahead and the NPV falls to 3,279 EUR.
How to read the result
- Payback — when the savings have repaid the price minus subsidies. Discounted payback does the same with future money worth less.
- Net present value — everything in today's money at your discount rate, including loan payments. Positive means better than leaving the money where it earns the discount rate.
- Return on the investment (IRR) — the yearly return of the system itself; with a loan you also see the return on your own money.
- Cost per kWh produced (LCOE) — compare it with your electricity price and the feed-in payment.
- The chart shows your cash position year by year, starting with your own money in year 0.
Tips and common mistakes
- Self-consumption matters more than almost anything else: power you use saves the full electricity price, exported power only earns the feed-in payment.
- Take the yield from the yield calculator or PVGIS, not from a sales brochure.
- A warning about negative years usually means the inverter replacement or loan payments exceed the savings in that year — expected, not an error.
- Set Years the feed-in payment is guaranteed to what your contract says; afterwards exports earn nothing in this model.
- Use a discount rate close to what your savings would earn otherwise.
FAQ
Why does a loan not change the payback?
Payback measures the investment itself: price minus subsidies against what it saves. The loan changes when you pay, and the interest lowers your NPV and final cash, which the result shows separately.
Is income from feed-in taxed?
The model does not include taxes on feed-in income. If they apply to you, lower the feed-in payment accordingly.
What does a battery change?
Mostly the self-consumption share and the price. Run the Home Battery Simulator, then use its self-consumption here, and compare both cases as variant A and B in Ledgerly.
Why is the LCOE lower than my electricity price?
Because the panels' price is spread over 25 years of production. That gap is exactly why self-used solar power saves money.
Guide last updated:
For scripts and AI agents
- JSON API:
POST https://ledgerlysolarpayback.usefulweb.app/api/v1/calculate(same calculation as this page) - Interface description: OpenAPI 3.1 · AI guide: llms.txt
- MCP server (Streamable HTTP):
https://ledgerlysolarpayback.usefulweb.app/mcp· tool nameledgerly_solar_payback
Example request
curl -s -X POST https://ledgerlysolarpayback.usefulweb.app/api/v1/calculate \
-H 'content-type: application/json' \
-d '{"currency":"EUR","systemCost":14000,"annualYieldKwh":7600,"selfConsumptionPercent":30,"electricityPrice":0.35,"feedInTariff":0.078}'