Also in: Español · اردو · العربية
Generator vs solar cost calculator
Compare running a diesel or petrol generator with a solar and battery system over the years. A generator is cheap to buy but burns fuel every day; solar costs more upfront and very little after. The calculator finds the year solar becomes the cheaper option.
Solar pays off
In year 5
Over 15 years: generator $25,293, solar $10,250
- Saved with solar
- $15,043
- Generator fuel per year
- 730 L
- Fuel cost, first year
- $876
- CO₂ from fuel per year
- 2.0 t
Cumulative cost by year
| Year | Generator | Solar |
|---|---|---|
| 0 | $1,500 | $7,000 |
| 1 | $2,676 | $7,050 |
| 2 | $3,878 | $7,100 |
| 3 | $5,108 | $7,150 |
| 4 | $6,365 | $7,200 |
| 5 | $7,651 | $7,250 |
| 6 | $8,966 | $7,300 |
| 7 | $11,812 | $7,350 |
| 8 | $13,190 | $7,400 |
| 9 | $14,599 | $7,450 |
| 10 | $16,042 | $10,000 |
| 11 | $17,520 | $10,050 |
| 12 | $19,032 | $10,100 |
| 13 | $20,581 | $10,150 |
| 14 | $23,668 | $10,200 |
| 15 | $25,293 | $10,250 |
How it works
- Fuel per year. Generators burn a fairly steady amount of fuel per kWh at a given load.
Fuel (L/yr) = kWh per day × 365 × L per kWh
- Generator running total. Purchase price, then each year's fuel (rising with the fuel price) and upkeep, plus a new generator at the end of each lifetime.
Fuel cost(n) = fuel × price × (1 + price rise)^(n−1)
- Solar running total. Installed cost, yearly upkeep, and a battery replacement in the year you set.
- Break-even. The first year the solar total is at or below the generator total. Replacements due in the final year are left out, since you would not be paying for years after the comparison ends.
- CO₂. Burning a liter of diesel releases about 2.68 kg of CO₂; petrol about 2.31 kg.
The inputs
- Energy per day
- What the generator delivers. If you know its run time instead, multiply hours by the average load in kW.
- Fuel use per kWh
- Defaults: diesel 0.4 L/kWh, petrol 0.6 L/kWh, typical of small generators at part load. A generator running at a small fraction of its rating uses much more per kWh. Best of all: divide the fuel you buy in a month by the kWh used.
- Generator purchase, upkeep and life
- Upkeep covers oil, filters and repairs. Small generators often last 3,000 to 10,000 running hours; at several hours a day that is roughly 3 to 10 years.
- Solar installed cost
- A system sized to supply the same daily energy, including battery and inverter. Use the panel count and battery bank calculators to size it before getting prices.
- Battery replacement
- Lithium (LiFePO4) batteries commonly last 10 to 15 years; lead-acid 3 to 7. Set the year to 0 if the battery outlasts the comparison.
Worked example
A shop runs a diesel generator for 5 kWh a day at 0.4 L/kWh and $1.20/L. The generator costs $1,500, $300 a year in upkeep and is replaced every 7 years. The solar alternative costs $7,000 installed, $50 a year, with a $2,500 battery replacement in year 10.
- Fuel: 5 × 365 × 0.4 = 730 L a year, costing $876 in the first year.
- After one year the generator has cost $2,676 and solar $7,050.
- By year 5, the generator total reaches $7,651 against $7,250 for solar: solar pays off in year 5.
- Over 15 years: generator $25,293, solar $10,250. The generator also emits about 2.0 t of CO₂ a year.
Assumptions and limits
- Solar replaces the generator completely. In practice many systems keep the generator as a backup for long cloudy spells, which adds some of its costs back.
- Same daily energy every day, at a constant fuel use per kWh.
- No financing, inflation or discounting except the fuel price rise you enter. Solar upkeep and replacement prices are kept flat.
- Not included: fuel transport and theft, generator noise and fumes, downtime, and resale value of either system.
Size the solar side with the panel count and battery bank calculators, and the inverter with the inverter size calculator.
Take the design tools with you
The Solar Calibrator app has the sizing tools for the job on site: panel count, battery, string and wire sizing, a live tilt meter, an orientation compass, load audits and quotes, offline.