
When someone asks me, “How much does diesel generator power cost per kWh?” I never answer with one universal number. The answer changes with generator size, loading, fuel price, engine efficiency, duty cycle, maintenance, and how many hours the machine runs each year.
A diesel generator that is loaded efficiently may produce each kWh at a much lower fuel cost than the same generator running lightly loaded. A standby generator that runs only a few dozen hours a year can have a surprisingly high all-in cost per kWh because its purchase and installation costs are spread across very little electricity production.
In this guide, I’ll show you exactly how I calculate diesel generator cost per kWh, how to separate fuel-only cost from true ownership cost, how load percentage changes the answer, and how I compare standby, rental, and prime-power operation.
Diesel Generator Cost per kWh: Quick Answer
The basic calculation is simple:
If a generator burns 5.5 gallons per hour, diesel costs $4.00 per gallon, and the generator is actually carrying 75 kW of load:
That is only the fuel cost. If maintenance, ownership, labor, rental, fuel delivery, and other expenses total another $18 per operating hour, then total hourly cost becomes $40. At 75 kW of actual load:
What Does “Cost per kWh” Actually Mean?
A kilowatt-hour is energy. If a 50 kW electrical load runs for one hour, it consumes 50 kWh. If it runs for four hours, it consumes 200 kWh.
That distinction matters because generator nameplate capacity is not the same thing as actual energy produced. A 100 kW generator operating at a 30 kW load produces about 30 kWh during one hour, not 100 kWh.
| Term | What it means | Why I use it |
|---|---|---|
| kW | Instantaneous real electrical power | Tells me the actual load being carried |
| kWh | Energy produced over time | Used to calculate electricity cost |
| kVA | Apparent power | Important for generator and electrical sizing |
| Power factor | Ratio of kW to kVA | Affects how much alternator capacity a load uses |
| Fuel burn | Gallons or liters consumed per hour | Main variable operating expense |
| Load factor | Actual load ÷ rated load | Strongly affects fuel efficiency and cost per kWh |
If you are still working out the correct generator capacity, I recommend starting with my diesel generator sizing guide. An oversized generator can still work, but poor loading can make each kWh more expensive.
The Two Cost-per-kWh Numbers I Calculate
I usually calculate two separate numbers because they answer different questions.
1. Fuel-only cost per kWh
This tells me how much diesel fuel I am buying for every unit of electricity produced. It is useful for comparing load levels, fuel prices, and generator models.
2. True or all-in cost per kWh
This includes all costs that exist because I own, rent, install, maintain, and operate the generator.
| Cost category | Fuel-only calculation? | True cost calculation? |
|---|---|---|
| Diesel fuel | Yes | Yes |
| Engine oil and filters | No | Yes |
| Routine service labor | No | Yes |
| Repairs and overhaul reserve | No | Yes |
| Purchase depreciation | No | Yes |
| Financing or capital cost | No | Yes |
| Rental charge | No | Yes |
| Fuel delivery | No | Yes |
| Insurance and permits | No | Yes |
| Operator/site labor | No | Yes when applicable |
Step 1: Find the Generator’s Actual Fuel Burn
The first number I want is fuel consumption at the load level I expect to run.
I do not use one “gallons per hour per kW” number for every generator. Diesel engines do not consume fuel in a perfectly linear way from zero load to full load. They need fuel just to stay running, operate cooling systems, overcome friction, and drive accessories. Because of that, fuel used per kWh is normally worse at very light load.
For a detailed explanation, see my guide to how much fuel a diesel generator uses. I also use the more detailed diesel generator burn-rate calculation when I am planning fuel inventory.
Illustrative Fuel Burn and Cost-per-kWh Example
Suppose I have a 100 kW diesel generator. The following table uses hypothetical fuel-burn numbers to demonstrate the math. These are not specifications for a particular model.
| Load | Actual output | Example fuel burn | Fuel cost/hr at $4/gal | Fuel cost/kWh |
|---|---|---|---|---|
| 25% | 25 kW | 3.0 gal/hr | $12.00 | $0.480 |
| 50% | 50 kW | 4.2 gal/hr | $16.80 | $0.336 |
| 75% | 75 kW | 5.5 gal/hr | $22.00 | $0.293 |
| 100% | 100 kW | 7.0 gal/hr | $28.00 | $0.280 |
This example shows something I consider very important: fuel consumed per hour rises with load, but fuel cost per kWh can fall because the generator is producing much more useful electricity.
This does not mean I automatically run every generator at 100% continuously. I still respect the manufacturer’s standby, prime, and continuous ratings, ambient derating, maintenance requirements, and permissible load profile. My point is simply that light loading can make electricity more expensive.
Step 2: Enter Your Real Diesel Price
The next variable is fuel price. I use the delivered cost to my site, not just the pump price I happen to see on a sign.
For a remote site, the true fuel price may include bulk delivery fees, minimum-order charges, taxes, tank rental, environmental fees, or emergency delivery premiums.
| Diesel price | Fuel burn | Hourly fuel cost | At 75 kW output |
|---|---|---|---|
| $3.00/gal | 5.5 gal/hr | $16.50/hr | $0.220/kWh |
| $3.50/gal | 5.5 gal/hr | $19.25/hr | $0.257/kWh |
| $4.00/gal | 5.5 gal/hr | $22.00/hr | $0.293/kWh |
| $4.50/gal | 5.5 gal/hr | $24.75/hr | $0.330/kWh |
| $5.00/gal | 5.5 gal/hr | $27.50/hr | $0.367/kWh |
This table is also why I avoid publishing a single permanent “diesel generator electricity price.” Fuel cost changes, and local delivery conditions can matter as much as retail diesel price.
Step 3: Calculate the Actual kWh Produced
For one hour of steady operation, the math is easy:
If my generator carries an average 62 kW load for 8 hours:
If it consumes 38 gallons during those 8 hours and diesel costs $4.00 per gallon:
$152 ÷ 496 kWh = $0.306 per kWh fuel-only cost
I prefer using actual measured fuel and actual kWh from meters whenever possible. Manufacturer fuel curves are excellent for planning, but real-site measurements account for the real load profile, weather, engine condition, and operating practices.
Why Rated Generator Size Is the Wrong Denominator
One of the biggest calculation mistakes I see is dividing fuel cost by the generator’s rated capacity instead of actual electrical output.
Imagine a 200 kW generator carrying only a 60 kW load. If it burns $30 worth of fuel in one hour, the correct fuel cost is:
If I incorrectly divide by the 200 kW nameplate rating, I get $0.15/kWh, which badly understates the true cost.
The generator does not get credit for electricity it could have produced. Cost per kWh must use electricity it actually produced.
Step 4: Add Routine Maintenance Cost per Hour
Fuel is usually the largest variable expense, but it is not the only one.
I convert maintenance into an hourly allowance. That can include engine oil, oil filters, fuel filters, coolant service, belts, batteries, scheduled inspections, labor, and eventually higher-cost repairs.
For example, if a scheduled service costs $900 and is performed every 500 operating hours, the simple maintenance allowance is:
If I want a more realistic long-term number, I add a reserve for batteries, coolant, belts, hoses, injector work, starter/charging components, and future repairs.
For service planning, see Diesel Generator Maintenance: What You Need to Know.
Step 5: Include Ownership or Rental Cost
This is where “true power cost” becomes very different from fuel-only cost.
If I buy a permanent generator, I may have costs for the generator itself, transfer switch, fuel tank, pad, electrical work, installation labor, permits, engineering, commissioning, and financing.
If I rent, the calculation is easier because I can convert the daily, weekly, or monthly rental charge into an hourly operating cost. My diesel generator rental cost guide explains the structure in more detail.
Example: owned generator
Assume the generator project costs $60,000 installed. For a simplified illustration, I spread that cost over 10 years with no salvage value.
If the generator runs only 200 hours each year:
At a 60 kW average load:
That is before fuel and maintenance.
How Annual Runtime Changes the Capital Cost per kWh
Using that same simplified $60,000 project, 10-year life, and a 60 kW average load, look at what happens when annual use changes.
| Annual operating hours | Annual energy at 60 kW | Annualized capital cost | Capital cost per kWh |
|---|---|---|---|
| 50 hr | 3,000 kWh | $6,000 | $2.00/kWh |
| 100 hr | 6,000 kWh | $6,000 | $1.00/kWh |
| 200 hr | 12,000 kWh | $6,000 | $0.50/kWh |
| 500 hr | 30,000 kWh | $6,000 | $0.20/kWh |
| 1,000 hr | 60,000 kWh | $6,000 | $0.10/kWh |
| 2,000 hr | 120,000 kWh | $6,000 | $0.05/kWh |
This is why standby generator electricity can look expensive on a per-kWh basis even when the generator is performing exactly as intended. A standby generator is purchased primarily for resilience and outage protection, not for maximizing annual energy production.
The value of keeping a freezer, medical system, data center, pump, production line, or business operating during an outage may be much greater than the direct electricity cost.
My Full True-Cost Formula
When I want a practical all-in figure, I use this structure:
If some expenses are annual rather than hourly, I convert them first:
Then I add those hourly costs to the variable operating expenses.
Complete Example: Calculating True Diesel Generator Power Cost
Here is a full example for a generator carrying an average 75 kW load.
| Cost item | Example cost per hour |
|---|---|
| Fuel: 5.5 gal/hr at $4.00 | $22.00 |
| Routine maintenance allowance | $2.50 |
| Repair/overhaul reserve | $3.00 |
| Ownership/capital allocation | $10.00 |
| Insurance/permits/admin allocation | $1.50 |
| Fuel delivery/logistics allocation | $1.00 |
| Total hourly cost | $40.00 |
Again, this is an example. Your generator may have very different fuel consumption, maintenance expense, project cost, operating hours, and load.
How Generator Load Changes Cost per kWh
Loading is one of the variables I watch most closely.
If I run a large generator lightly loaded, the engine still consumes enough fuel to stay running and support its own systems. That baseline consumption is spread across fewer kWh, so each kWh costs more.
As useful electrical load rises, generator efficiency often improves until I approach the operating range for which the engine-generator set was designed.
| Operating situation | Typical cost effect | Why |
|---|---|---|
| Very light load | Higher cost/kWh | Base engine fuel use spread over little energy |
| Moderate load | Usually better | More useful energy from each hour of operation |
| High permitted load | Often efficient | Generator is using more of its available capacity |
| Overload | Not acceptable | Can cause frequency/voltage problems, overheating, trips, and damage |
I do not intentionally overload a generator just to improve cost per kWh. If the machine bogs down under load, I treat that as a fault or sizing problem, not an efficiency strategy.
Why Oversizing Can Raise Your Electricity Cost
Oversizing is common in standby systems because owners understandably want enough capacity for future loads and starting surges.
But if I install a 300 kW generator for a facility that normally needs only 60 kW during an outage, average loading may be only 20%. That can produce poor fuel economics and, depending on engine design and duty pattern, contribute to undesirable low-load operating conditions.
This is why I size the generator for both maximum demand and realistic operating load, not just the biggest possible number on a load list.
What About Motor Starting?
Cost per kWh calculations are based on energy over time, but motor starting is a short-duration power problem.
Large motors, compressors, pumps, HVAC equipment, and refrigeration systems can impose high starting kVA. A generator may therefore need more capacity than the average kW load suggests.
I do not shrink the generator purely to improve fuel efficiency if doing so means it cannot start critical loads reliably. Correct sizing is a balance between transient performance and efficient normal operation.
Standby vs. Prime Power: The Economics Are Different
A standby generator may run only during utility outages and periodic exercise. Prime-power generators can run for hundreds or thousands of hours per year.
| Use case | What dominates cost/kWh? |
|---|---|
| Low-hour residential standby | Installed capital cost can dominate |
| Commercial standby | Capital cost plus maintenance/readiness |
| Rental for short project | Rental rate, fuel, delivery, cables/accessories |
| Prime power | Fuel efficiency and maintenance become dominant |
| Remote continuous operation | Fuel logistics, maintenance, overhaul, labor |
For a high-hour prime-power site, a small difference in fuel burn can be worth a lot of money. For a low-hour emergency standby set, saving a few gallons per year may be less important than reliability, service support, and correct sizing.
Fuel Cost per kWh in Liters
If your fuel is priced per liter, the formula is identical:
For example, if a generator burns 20 liters per hour, fuel costs $1.10 per liter, and the load is 70 kW:
I do not need to convert to gallons unless the fuel-consumption data and fuel-price data use different units.
How I Calculate Cost for a 24-Hour Outage
Suppose my facility averages 60 kW during an outage and the generator’s measured fuel use averages 4.8 gal/hr.
| Item | Calculation | Result |
|---|---|---|
| Energy produced | 60 kW × 24 hr | 1,440 kWh |
| Fuel consumed | 4.8 gal/hr × 24 hr | 115.2 gal |
| Fuel cost at $4/gal | 115.2 × $4 | $460.80 |
| Fuel-only cost/kWh | $460.80 ÷ 1,440 | $0.320/kWh |
If I add $12 per hour for maintenance, ownership, and other allocated costs, that adds $288 over 24 hours.
How Fuel Quality Can Affect Cost
Poor fuel quality can increase operating cost even if the price per gallon is low.
Water, microbial contamination, sediment, degraded fuel, and clogged filters can increase maintenance, create downtime, reduce performance, and damage expensive injection components. I would rather buy acceptable fuel and keep it clean than save a small amount per gallon and create a reliability problem.
See my guide to water in diesel fuel if you are troubleshooting stored-fuel problems.
Does Maintenance Really Change Cost per kWh?
Yes, especially over long operating periods.
Skipping service may make today’s electricity appear cheaper because I did not spend money on maintenance. But if that causes injector wear, overheating, fuel starvation, battery failure, or shortened engine life, the long-term cost can be much higher.
I prefer to assign maintenance to the generator’s cost while the generator is operating, even if the invoice comes later. That gives me a more honest operating-cost number.
How Load Testing Helps Me Verify the Calculation
If I need reliable data, I can compare fuel use and electrical output during a controlled load test. That gives me a real operating point instead of relying only on estimates.
A proper load test can also reveal whether the generator holds voltage and frequency as load rises. For a deeper explanation, see Diesel Generator Load Testing Explained.
For large commercial systems, I leave load-bank connections and high-energy electrical work to qualified personnel.
How to Compare Diesel Generator Power With Utility Electricity
I compare the two carefully because the services are not identical.
Utility electricity usually includes generation, transmission, distribution, and grid availability. A standby generator is an on-site resilience asset that exists so I can produce power when the normal source is unavailable.
If utility energy costs $0.15/kWh and my standby generator costs $0.60/kWh to operate, that does not automatically mean the generator is a poor investment. I also consider the cost of the outage it prevents.
For a restaurant, a few hours without refrigeration can ruin inventory. For a manufacturer, downtime can stop production. For a data operation, the interruption cost can be far greater than the fuel bill.
How I Estimate Cost per kWh Before Buying a Generator
Before I buy, I ask for the manufacturer’s fuel-consumption data at several load points. Then I build a simple spreadsheet or table using expected diesel price and realistic load.
| Input I collect | Why I need it |
|---|---|
| Generator rated kW | Establishes capacity |
| Expected average kW | Determines actual energy output |
| 25/50/75/100% fuel burn | Shows efficiency across load |
| Diesel price delivered | Calculates fuel expense |
| Expected operating hours/year | Spreads fixed costs |
| Service intervals and costs | Builds maintenance allowance |
| Installed project cost | Calculates capital allocation |
| Expected ownership life | Spreads capital cost |
Ways I Reduce Diesel Generator Cost per kWh
I focus on operating the right-size generator at a healthy load, maintaining the engine properly, keeping fuel clean, avoiding unnecessary idling, and managing loads intelligently.
For sites with highly variable demand, multiple smaller generators or a hybrid battery/generator system can sometimes keep the diesel engine closer to an efficient operating range. Whether that makes financial sense depends on capital cost, controls, duty cycle, and maintenance.
I also track actual kWh and gallons. Without measurement, it is easy to assume the generator is efficient when it is carrying less load than expected or consuming more fuel than the planning curve predicted.
Common Cost-per-kWh Calculation Mistakes
| Mistake | Why it gives a bad answer |
|---|---|
| Using rated kW instead of actual kW | Understates cost when lightly loaded |
| Ignoring fuel delivery charges | Understates real fuel price |
| Ignoring maintenance | Fuel-only number is mistaken for total cost |
| Ignoring installed capital cost | Standby power looks artificially cheap |
| Assuming one fixed burn rate | Fuel efficiency changes with load |
| Using one-hour data for a changing load | Does not reflect the real duty cycle |
| Ignoring power factor and starting loads | Can lead to incorrect generator sizing |
Frequently Asked Questions
How much does it cost to generate 1 kWh with diesel?
There is no universal price. I calculate it from fuel burn, fuel price, and actual electrical output. For true cost, I also add maintenance, ownership or rental, repairs, delivery, insurance, labor, and other operating expenses.
What is the formula for diesel generator cost per kWh?
For fuel-only cost, I use: fuel burn in gallons per hour × price per gallon ÷ actual kW output. For total cost, I add every hourly operating and ownership expense before dividing by kWh produced.
Is diesel generator power cheaper at higher load?
Often, cost per kWh improves as the generator moves from very light load into a more efficient operating range because base engine fuel consumption is spread across more kWh. Exact efficiency must come from the specific engine-generator fuel curve.
Why is standby generator power expensive per kWh?
A standby unit may produce relatively few kWh each year, yet the owner still pays for the generator, installation, transfer equipment, maintenance, batteries, insurance, inspections, and readiness. Those fixed costs are spread across a small amount of generated energy.
Should I compare my generator directly with my utility rate?
You can compare energy costs, but I also consider reliability value. A backup generator is insurance against outage consequences, so the cost of lost business, spoiled products, frozen pipes, failed pumps, or interrupted operations can matter more than the energy rate alone.
How can I measure my real generator cost?
I record fuel delivered or consumed, generator operating hours, kWh from an energy meter, maintenance invoices, repair costs, and fixed ownership costs. The longer the measurement period, the better it represents the real duty cycle.
My Bottom Line
When I calculate diesel generator cost per kWh, I start with a simple fuel equation, but I do not stop there. Fuel burn multiplied by diesel price tells me what I am paying for fuel every hour. Dividing that by actual kW output gives me the fuel-only cost per kWh.
To find the true cost, I add maintenance, repairs, capital or rental cost, insurance, permits, fuel delivery, labor, and any other expenses that exist because I operate the generator. Then I divide the total by the actual energy produced.
The biggest lesson is that actual load matters. I never divide cost by nameplate kW unless the generator is actually carrying that load. A lightly loaded generator can have a high cost per kWh even though its hourly fuel burn looks modest.
For standby systems, I also remember that cost per kWh is only part of the story. The generator’s job is to keep critical loads operating when normal power fails. If it prevents a costly outage, its value can be much greater than the electricity it produces.
