Spend $3,000, Save $100 | Spend $5,000, Save $300 Spend $3,000, Save $100 | Spend $5,000, Save $300 Growatt Black Friday Sale
15% OFF on All Inverters & Solar Batteries 15% OFF on All Inverters & Solar Batteries Growatt Black Friday Sale
free shipping icon US Local Warehouse, Free Shipping! US Local Warehouse, Free Shipping!
30-Days Return icon 30-Days Return 30-Days Return
Cart
Select Your Country/Region

Diesel Generator vs Solar and Battery: The Real Cost per kWh

Facebook icon Twitter icon Twitter icon Email icon

A gallon of diesel holds about 40 kWh of chemical energy. A small air-cooled generator turns roughly 6.8 kWh of that into electricity — the rest leaves as heat through the radiator and the exhaust.

At $4.00 a gallon, that is 59 cents per kilowatt-hour, before you buy oil, filters, or a second generator because the first one wore out at 4,000 hours.

That single number is the argument. Everything below is how it compares to the alternative, and where the honest crossover actually lands — including the cases where the generator wins.

What a gallon of diesel really produces

The 10 kWh-per-gallon figure you see quoted everywhere is real, but it belongs to a specific machine: a large liquid-cooled genset running near full load. Those convert about 35% of fuel energy and burn roughly 0.07 gallons per kWh.

A portable air-cooled set does not. Take a published example: the Generac XD5000E lists 32.4 hours at 50% load on a 12-gallon tank. That is 0.37 gallons per hour while delivering 2,500W — 6.8 kWh per gallon, or about 17% efficiency.

The gap is not a defect. Small single-cylinder engines have higher friction losses relative to output, fixed-speed governing, and they spend most of their life at part load, which is the least efficient place to run a diesel.

Generator class

gal/kWh

kWh per gallon

Efficiency

Large liquid-cooled, near full load

0.07

14.3

~35%

Small air-cooled diesel, 50% load

0.147

6.8

~17%

Portable gasoline inverter, light load

0.25

4.0

~10%

If you are sizing power for a cabin, you are in the second or third row. That is the number to plan with.

The fuel bill, computed

Item

Value

Diesel price (US average)

$4.00/gal

Output per gallon (small air-cooled)

6.8 kWh

Fuel cost per kWh

$0.59

Oil and filter service, per 200 hours

~$60–90

Service cost per kWh (at 50% load)

~$0.05

All-in operating cost

~$0.64/kWh

So a 15 kWh night — fridge, lights, a well pump, a bit of heat — costs about **$9.60 in fuel alone**. Do that 200 nights a year and you are at $1,920, every year, forever, plus the drive to buy the fuel.

That last part is not a rounding error in remote locations. If the nearest diesel is 40 minutes away, a 12-gallon fill is a two-hour round trip. People plan their winters around fuel runs.

What solar plus a battery costs

This comparison is harder because the numbers live on different timelines, so here is the method rather than a single claim.

Battery cost per kWh of throughput. A 16 kWh LiFePO4 cabinet at $2,999, rated 6,000 cycles at 80% depth of discharge, moves about 12 kWh per cycle. That is 72,000 kWh over its rated life:

Four cents. That is the battery's share, and it is roughly 14× cheaper than diesel fuel on a per-kWh basis.

Add the array. A 3 kW array that produces 4,000 kWh a year, amortized over 25 years, lands around $0.03–0.05/kWh depending on whether you installed it yourself or paid a crew. Panels are the cheapest part of the system and the longest-lived.

Add the inverter. A 6 kW off-grid inverter at $1,599, over 10 years and 40,000 kWh of throughput, adds about $0.04/kWh.

Stack those and an installed off-grid solar system lands somewhere between $0.12 and $0.20 per kWh of delivered energy. That range is honest — it depends on your latitude, your array size, whether you over-panel for winter, and how much of the year you actually cycle the battery.

Where the crossover lands

Scenario

Diesel, 5 years

Solar + battery, 5 years

Upfront

$1,200 (5 kW set)

$6,200 (3 kW array + 16 kWh battery + 6 kW inverter)

Fuel / energy

$9,600 (200 nights × $9.60)

$0

Service

$800

~$0

5-year total

$11,600

$6,200

10-year total

$23,200 (second generator included)

$6,200 + one battery replacement at year 12–16

The crossover is between year 3 and year 4 for anyone running more than 150 nights a year. Below 60 nights a year, the generator stays cheaper for a decade — and if you use the place four weekends a summer, buy the generator and stop reading.

This is the part most solar content gets wrong. A battery does not compete with a generator on capital cost. It competes on the cost of the second gallon, and the second gallon is where all the money is.

What the generator is still better at

Three things, and pretending otherwise makes the whole comparison untrustworthy.

1. Unlimited runtime. A battery is a tank, not a well. If a storm knocks out the road for nine days and the sun does not come out, the generator runs as long as you can feed it. That is a real advantage and it is why most serious off-grid installations keep a generator as backup rather than replacing it.

2. Peak loads. A 5 kW generator starts a 1.5-ton heat pump that would need a 10 kW inverter and a 200A battery to start from storage. If your loads are spiky and rare, the generator handles them for $1,200.

3. Cold and dark. Solar production in December at 48° latitude is roughly a third of June. A system sized for summer will need the generator in winter unless you over-panel by 2×, and over-paneling is expensive.

The realistic answer for most remote properties is both, with the battery carrying the daily cycle and the generator covering the two weeks a year when the battery cannot. That configuration burns a fraction of the fuel, and it is what most experienced off-grid installers actually build.

The maintenance cost nobody budgets

Diesel generators have consumables and a clock.

Item

Interval

Cost

Oil and filter

100–200 hours

$60–90

Air filter

200–500 hours

$25–40

Fuel filter

200–500 hours

$20–35

Valve adjustment

500 hours

$100–200 (or DIY)

Expected life

3,000–6,000 hours

—

At 200 nights × 8 hours, that is 1,600 hours a year. You will hit valve adjustment in the first year and the end of engine life in year three. A $1,200 generator is not a $1,200 decision over ten years — it is closer to $3,500 including the replacement.

Batteries have one consumable: themselves, and it is priced in.

FAQ

How many kWh does a gallon of diesel produce? About 6.8 kWh in a small air-cooled generator at half load, and up to 14 kWh in a large liquid-cooled set near full load. One gallon of diesel contains roughly 40 kWh of thermal energy; the difference is conversion efficiency, which ranges from about 17% to 35%.

Is solar cheaper than a diesel generator? For daily cycling, yes, by a wide margin — about $0.04/kWh for battery throughput versus $0.59/kWh in fuel. For total system cost, solar wins after roughly three to four years of regular use, and loses if you only use the property a few weeks a year.

How long before a solar and battery system pays for itself? At 200 nights a year and $9.60 of diesel per night, a $6,200 system breaks even in about 3.2 years. At 50 nights a year, the same system takes over a decade — which is why usage frequency, not system price, is the variable that decides this.

Can I run a generator to charge a battery instead of powering loads directly? Yes, and it is more efficient. Running the generator at its sweet spot to bulk-charge the battery, then letting the inverter carry loads, avoids the part-load penalty and cuts fuel use substantially. Most hybrid and off-grid inverters support generator input for exactly this.

What size battery replaces a 5 kW generator? Roughly 15 kWh usable, if you want one night of typical cabin load. The HOPE 16.0LM-A1 is 15.3 kWh usable with 200A discharge, which covers a 10 kW inverter at full load. But see the caveats above — the generator still covers the nine-day storm.

Do I still need a generator with a battery? In most off-grid installations, yes, as a backup rather than a primary source. The battery handles 350 days a year and the generator handles the other 15. That is cheaper than sizing the array and battery for the worst week of the decade.


Sizing the switch: the Growatt HOPE 16.0LM-A1 is 16 kWh nominal, 15.3 kWh usable, and carries a 10 kW inverter at full load — one cabinet replaces roughly 1,800 gallons of diesel over its rated life. Pair it with the SPE 6000 US for a 6 kW split-phase system with 9,000W of PV input, or see the full off-grid solar inverter lineup. If you are weighing a battery-free setup for daylight-only loads, read off-grid inverter without a battery first — and if you are converting capacity figures, how many Ah is 16 kWh does the arithmetic.


Fuel consumption figures are drawn from published manufacturer data and industry fuel-consumption curves; actual consumption varies with load profile, altitude, temperature and engine condition. Electricity prices vary by region and change over time. Nothing in this article is a quote or a guarantee of operating cost. Growatt® is a trademark of Growatt New Energy.