How the solar levelized cost of energy calculation works
The levelized cost of energy (LCOE) spreads all lifetime costs over all lifetime production. Both are discounted to present value, because money and energy received later are worth less to an investor than money today.
If your LCOE is below the price you pay for electricity, each self-consumed kWh saves money. Exported kWh only pay off if the export payment exceeds the LCOE.
Formula
- C₀
- installed cost
- C_t
- O&M and replacement costs in year t
- r
- discount rate
- d
- annual degradation
Worked example
- 12,000 installed, 7,000 kWh in year 1, 0.5 %/yr degradation, 150/yr O&M rising 2 %/yr, an inverter replacement of 1,500 in year 12, 4 % discount rate, 25 years.
- Present value of costs ≈ 15,821; discounted energy ≈ 104,077 kWh.
- LCOE ≈ 0.152 per kWh (undiscounted: 0.111 per kWh).
Assumptions and limitations
Assumptions
- All prices and rates in the example are illustrative assumptions, not market data — enter your own figures.
- Costs and discount rate are both nominal or both real.
Limitations
- Taxes, financing structure and end-of-life value are not modelled.
Frequently asked questions
What discount rate should I use?
Your required return or the interest rate on money you would otherwise borrow or invest. Higher rates raise the LCOE.
Why is the discounted LCOE higher than the simple cost per kWh?
The investment is paid up front, while energy arrives over 25 years; discounting reduces the weight of future energy.
Related calculators
Solar Return on Investment Calculator
Lifetime savings, net profit, ROI, NPV and IRR of a solar installation.
Battery Levelized Cost of Storage Calculator
Cost per kWh delivered by a battery over its life (LCOS).
Solar Panel Degradation Calculator
Year-by-year production with first-year and annual degradation.
References and data sources
- Simple Levelized Cost of Energy (LCOE) Calculator Documentation — National Renewable Energy Laboratory
- Net present value — Wikipedia
Last reviewed: · Formula version 1.0.0 · Methodology