Diesel Generator Cost per kWh
Work out what your diesel generator costs per delivered kWh, from fuel price, litres per hour, output and servicing, with a worked example.
Published 2 December 2026
Diesel generator cost per kWh depends on fuel price, fuel use, delivered output and servicing. The calculator applies: fuel price × litres per hour ÷ kW delivered, then adds servicing per operating hour. Use your generator data for a site-specific estimate and compare the result with battery running costs.
The example values are assumptions for illustration, not a current diesel price. Enter your own.
What is the running cost of a diesel generator per kWh?
The main running cost is the cost of diesel used to produce each delivered kWh. A practical formula is fuel price × litres per hour ÷ kW delivered. Add servicing, consumables and any other variable costs to calculate the full operating cost per kWh.
A diesel generator’s fuel cost per kWh is not the same as the cost of diesel in its tank. The generator consumes fuel according to its operating load, while the useful output is the electricity delivered to the site.
Use this formula:
Fuel cost per kWh = fuel price per litre × litres per hour ÷ kW delivered
Then add servicing:
Total running cost per kWh = fuel cost per kWh + servicing cost per operating hour ÷ kW delivered
For a complete comparison, also include consumables, testing and other variable operating costs. Labour rates and engine data should come from your own generator records and service quotations.
A generator that operates close to its efficient load may use less diesel for each kWh delivered than one running at a low load. Use fuel consumption figures that match the load that matters to your site.
How to use the diesel cost per kWh calculator
Enter the diesel price, the generator’s fuel use, delivered electrical output and servicing cost. Check that the fuel-use figure matches the expected operating load. The result gives a directional running cost per kWh, not a quotation or a promised saving.
The calculator is built for a quick operating-cost comparison. Use these inputs:
- Diesel price: the price per litre you pay.
- Litres per hour: the generator’s fuel consumption at the relevant load.
- kW delivered: useful electrical output, rather than the generator’s rated capacity.
- Servicing: the planned service cost per operating hour, including the value of the service and consumables included in that work.
- Operating hours: the number of hours the generator runs, if you want an estimated total running cost.
For a site with two operating modes, run the calculation twice. Use the consumption and delivered output for each mode. This gives a weighted result:
Overall cost per kWh = total running cost across both modes ÷ total kWh delivered
Do not use fuel consumption at full load when the set normally operates at part load.
Worked example: diesel generator running cost per kWh
For illustration only, assume diesel at R22.00 per litre, a generator using 100 litres per hour while delivering 350 kW, and servicing of R350 per operating hour. Fuel then costs about R6.29 per kWh and servicing R1.00 per kWh, so the running cost is about R7.29 per delivered kWh.
This example is an illustration. Every input is an assumption chosen to show the method. The diesel price is not a current market price: use the price your site pays.
| Input | Assumed value |
|---|---|
| Diesel price | R22.00 per litre |
| Fuel use at the operating load | 100 litres per hour |
| Delivered output | 350 kW |
| Servicing | R350 per operating hour |
| Operating time | 10 hours |
Fuel cost:
R22.00 × 100 ÷ 350 = R6.29 per kWh
Servicing cost:
R350 ÷ 350 = R1.00 per kWh
Total running cost:
R6.29 + R1.00 = R7.29 per kWh
Ten operating hours:
- Energy delivered: 350 kW × 10 h = 3 500 kWh
- Fuel: 100 litres × 10 h = 1 000 litres, × R22.00 = R22 000
- Servicing: R350 × 10 h = R3 500
- Total: R25 500, or R25 500 ÷ 3 500 kWh = about R7.29 per kWh
This excludes capital recovery, finance, fixed insurance and installation costs. Add those separately when comparing a generator purchase with a battery investment. The worked example is not a customer result or a quotation.
What affects the cost per kWh?
Fuel price, generator load, fuel consumption and operating hours drive the result. Servicing and consumables add to it. A generator running far below its efficient load can use more diesel per delivered kWh, while extended running increases the frequency of planned servicing.
The most important checks are:
- Fuel price: use the price paid at your site, not a national average.
- Fuel consumption at the actual load: generator data often lists consumption at several load points.
- Delivered output: account for site losses and the load served. Engine output and electricity delivered at the site are not identical.
- Operating hours: annual or monthly fuel and servicing costs depend on runtime.
- Servicing scope: confirm what the service cost includes. Consumables may need separate treatment if they are not included.
- Generator efficiency: a lightly loaded set may consume disproportionately more fuel for each kWh delivered.
Replace the inputs with measured site data before using the result in an investment decision.
How does diesel cost compare with battery storage?
Diesel cost is tied to each generator operating hour. Battery operating cost includes maintenance and other running costs, while stored energy can support peak shifting and demand control. The right comparison depends on runtime, site load, tariff and the value placed on backup.
Use the calculator to establish the variable cost of the diesel energy your site already uses. Then compare it with a battery case built around your load, tariff and notified maximum demand.
AMPROTEQ develops containerised LFP storage from 1 MWh to 6.25 MWh, with medium-voltage conversion for larger sites. Studio considers time-of-use savings, demand charges, battery ageing and running costs. It keeps backup value separate from energy savings, because a battery earning daily savings may need energy reserved for an outage.
For a mine, farm or other site with substantial generator runtime, compare:
- the diesel cost per delivered kWh;
- the hours the generator runs;
- the value of avoiding diesel during those hours;
- the battery’s operating cost and investment;
- the value of peak shifting and demand control, if relevant.
For reference, AMPROTEQ's Savings Studio values backup energy at a default of R7.50 per kWh, the cost of making it with a diesel generator. That default is there to be replaced by your own figure from this calculator.
What this calculator does not include
The calculation is an operating-cost estimate, not a complete lifecycle cost or a quote. It does not add generator capital cost, finance, depreciation, fixed insurance, installation, grid connection or residual value unless you include them separately in your wider comparison.
The calculator focuses on the variable cost of running a diesel generator. That makes it useful for a fuel and servicing comparison. It does not replace an asset-level business case.
The result also does not prove that a battery will cost less at your site. Compare the same delivered energy, operating profile and avoided costs. If the generator is already installed and has no alternative use, the avoided diesel cost may be the relevant comparison. If a generator is also providing standby power, its value extends beyond the cost per kWh.
Questions
How do I calculate diesel generator cost per kWh?
Why does the generator fuel consumption matter?
Does the result include generator capital and financing costs?
Is the example diesel price a current South African price?
Can I compare diesel running costs with a battery?
Does a battery always cost less than diesel per kWh?
Start with your meter data.
Twelve months of interval data, your tariff schedule and your notified maximum demand are enough for a first sizing and an indicative capex, within five working days, at no cost.
AMPROTEQ