Solar ROI Calculator Formula

Understand the math behind the solar roi calculator. Each variable explained with a worked example.

Formulas Used

Total ROI

roi_pct = net_profit / net_cost * 100

Annual ROI

annual_roi = (net_profit / net_cost * 100) / lifespan_years

Lifetime Net Profit

net_profit_out = net_profit

Effective Cost per kWh

cost_per_kwh_saved = net_cost / (annual_savings / 0.15 * lifespan_years)

Variables

VariableDescriptionDefault
system_costTotal System Cost(USD)20000
tax_credit_pctTax Credit(%)30
annual_savingsFirst Year Electricity Savings(USD)1800
lifespan_yearsSystem Lifespan(years)25
net_costDerived value= system_cost * (1 - tax_credit_pct / 100)calculated
lifetime_savingsDerived value= annual_savings * lifespan_yearscalculated
net_profitDerived value= lifetime_savings - net_costcalculated

How It Works

How to Calculate Solar ROI

Solar ROI measures the total financial return over the system lifetime.

Formula

Net Cost = System Cost * (1 - Tax Credit %)

Lifetime Savings = Annual Savings * Lifespan

ROI = (Lifetime Savings - Net Cost) / Net Cost * 100

Most solar panels are warranted for 25 years and can produce electricity for 30+ years with gradual degradation.

Worked Example

A $20,000 system with 30% tax credit, $1,800/year savings over 25 years.

system_cost = 20000tax_credit_pct = 30annual_savings = 1800lifespan_years = 25
  1. 01Net cost: $20,000 * 0.70 = $14,000
  2. 02Lifetime savings: $1,800 * 25 = $45,000
  3. 03Net profit: $45,000 - $14,000 = $31,000
  4. 04Total ROI: $31,000 / $14,000 * 100 = 221.4%
  5. 05Annual ROI: 221.4 / 25 = 8.9%/year

Ready to run the numbers?

Open Solar ROI Calculator