skip to content
Marder He Wrote

Solar vs Stocks

/ 8 min read

Updated:

This calculator helps you decide whether to invest in solar panels. It addresses two questions:

  1. How much electricity will my system generate?

  2. Is that electricity worth more than what I expect to make in the stock market (or some other investment)?

Step 1: Calculate Expected Electricity Generation

This calculator estimates how much electricity your solar system will produce annually. Where you live matters - folks in Maine receive about two-thirds the sunshine of Southern Arizona, as shown in the map below.

To estimate how much electricity your system will generate, we need three things:

  1. How much sun do you get?
  2. How big is your system?
  3. How efficient is your system?
VariableValueUnitTypical Range
Solar RadiationkWh / m2 / day4 - 6
System SizekW5 - 10
System Losses%15 - 25
System Output0kWh / year

Output=Radiation×365 daysyear×Size×100Losses100\text{Output} = \text{Radiation} \times \frac{365 \text{ days}}{year} \times \text{Size} \times \frac{100 - \text{Losses}}{100}

For a more detailed estimate of electricity generation, check out NREL’s PVWatts Calculator.

Step 2: Compare Solar vs Stocks

Solar Strategy: You pay upfront for solar panels. Over time, you accumulate savings from not paying for electricity. The panels degrade slightly each year, producing less power, but electricity prices increase with inflation.

Stock Strategy: Instead of investing in solar panels, you invest the same amount in the stock market, earning average returns. However, you still need to pay for electricity each year, which comes out of your investment balance.

This HomeGuide page has some useful ballpark numbers for how much solar systems cost by size.

VariableValueUnitTypical Range
Initial Investment$15,000 - 30,000
Electricity Generated Year 1kWh8,000 - 12,000
Solar Panel Degradation Rate% / year0.5 - 1.0
Cost of Electricity Year 1$ / kWh0.10 - 0.25
Electricity Inflation Rate% / year2 - 5
Expected Stock Market Return% / year7 - 10

Assuming the system runs perfectly, here is how things stand after thirty years:

MetricValue
Total Electricity Produced0 kWh
Total Electricity Value$0
Solar Internal Rate of Return (IRR)0%
Solar Net Present Value (NPV)$0
Total Stock Returns$0
Stocks at Year 30$0