Generator Fuel Consumption & Runtime Calculator

Work out how much fuel a generator burns per hour at a given load, how long it runs on the fuel you have, and what the electricity it produces actually costs per kilowatt-hour. Enter the set's nameplate kilowatts, the fraction of that you are loading it to, the fuel and the engine's electrical efficiency, and the calculator converts the electrical output back through the engine into gallons or therms. Fuel energy is taken on a lower-heating-value basis, which is the convention for engine work, so the efficiency you enter is directly comparable to a manufacturer's quoted figure.

Calculator

This calculator runs in your browser. Enable JavaScript for live results — the inputs, formula and worked example below remain fully readable without it.

Inputs this calculator takes, with typical values
InputWhat to enterExample
Generator ratingThe nameplate continuous or prime kW rating; if your set is labelled in kVA, switch the unit and the 0.8 power factor conversion is applied.20 kW
LoadPercentage of the nameplate rating the set is actually carrying — read it from the control panel, or total your connected loads.50 %
FuelLiquid fuels are metered in US gallons; piped natural gas is metered in therms, as it appears on a gas bill.Diesel (No. 2)
Electrical efficiencyFuel energy converted to electricity at the terminals. As a rule of thumb: 30-40% for a diesel genset at high load, 20-28% for a small gasoline or propane portable, and lower for any set running lightly loaded.33 %
Usable fuel on handFuel you can actually draw — most tanks have an unusable heel, and propane tanks are filled to 80% of water capacity.50 gal
Fuel priceDelivered price including any tank rental or delivery surcharge, since those scale with what you burn.4 $
Natural gas priceTake the all-in delivered price from your gas bill: total amount due divided by therms billed.1.2 $

It returns

  • Fuel burn per hour (gal, or therms on natural gas) — US gallons per hour for diesel, gasoline and propane; therms per hour for piped natural gas.
  • Electrical load
  • Runtime on the fuel on hand — Not applicable to piped natural gas, which is not limited by a tank.
  • Fuel cost per hour
  • Cost per kWh generated — Fuel only — no oil, filters, maintenance or capital cost.
  • Fuel for 24 hours — Same units as the hourly burn rate.

The formula

Fh=PloadηEfuel
t=VtankFh
ckWh=cfuelηEfuel

In plain text: Fuel per hour = P_load / (η × E_fuel); Runtime = tank / fuel per hour; $/kWh = price / (η × E_fuel)

  • F_hFuel consumed per hour (gal/h or therm/h)
  • P_loadElectrical power delivered at the terminals (kW)
  • ηElectrical efficiency: electrical output divided by fuel energy in (decimal 0–1)
  • E_fuelLower heating value of one unit of fuel (kWh/gal or kWh/therm)

The product η × E_fuel is the useful quantity: kilowatt-hours of electricity obtained from one gallon or therm of fuel. Divide the fuel price by it and you have the cost of a generated kilowatt-hour directly, without needing to know the load at all.

Updated Category Energy Use & Operating Cost Verified against published test cases Reading time 13 min

What sets a generator's fuel burn

A generator burns fuel in proportion to the electricity it delivers, divided by how efficiently it converts one into the other. That is the whole model: take the kilowatts leaving the terminals, divide by the engine-alternator efficiency to get the fuel energy going in, then divide by the energy in one gallon or one therm to get a volume. Everything else — tank size, price, hours — is arithmetic on top.

The number that surprises people is the last one: cost per kilowatt-hour. It does not depend on the load at all. If a gallon of diesel holds 37.66 kWh and your set turns 33% of that into electricity, every gallon yields 12.43 kWh no matter how heavily you load it, so at $4.00 a gallon the electricity costs 32 cents a kilowatt-hour before you touch a single filter. Compare that against the delivered grid price you would put into the appliance energy cost calculator and the reason nobody runs a generator by choice becomes obvious.

Load percentage still matters for two other reasons. It sets the burn rate, and therefore the runtime on the fuel you have. And it sets the efficiency itself: an engine is a heat engine, and a heat engine running at a quarter of its design output is meaningfully worse at its job than the same engine near full load. This calculator holds efficiency at the figure you enter, so if you are modelling a lightly loaded set you must lower that figure yourself.

The formula, and the heating-value convention behind it

Start with the load. A set's nameplate rating is its continuous electrical output; multiply by the load fraction to get the kilowatts you are actually drawing. A 20 kW set at 50% load delivers 10 kW. If your set is rated in kVA, multiply by its power factor — usually 0.8 — to get kW, the same conversion the watts to amps calculator handles in the other direction.

Next, divide by efficiency. Electrical efficiency here means electricity at the terminals divided by fuel energy in, so it already contains the alternator and the engine's parasitic loads. At 33%, delivering 10 kW of electricity requires 30.3 kW of fuel energy flowing into the engine, and the other 20.3 kW leaves as exhaust heat, jacket water and radiation.

Then divide by the energy in a unit of fuel. This calculator uses lower heating value (LHV), which excludes the latent heat of the water vapour formed when hydrogen burns, because a reciprocating engine exhausts that vapour rather than condensing it. Using LHV is the engine industry's convention and is why a manufacturer's quoted efficiency is comparable with the figure you type in. Utility gas billing, by contrast, uses higher heating value — a therm is defined as 100,000 Btu HHV — so this calculator applies the methane LHV/HHV ratio of about 0.90 and treats a billed therm as 90,100 Btu, or 26.41 kWh, of usable energy.

Finally, runtime is the usable fuel divided by the burn rate, and cost per kilowatt-hour is the fuel price divided by the kilowatt-hours a unit of fuel yields. Piped natural gas has no runtime figure, because there is no tank; what limits a gas set is the capacity of the meter, the regulator and the piping, plus the service interval.

Worked example: a 20 kW diesel standby set at half load

A 20 kW diesel standby generator carries 50% load through a power cut. It has a 50-gallon base tank, and diesel costs $4.00 a gallon delivered. Assume 33% electrical efficiency, which is reasonable for a small diesel genset at half load.

  1. Electrical load. 20 kW × 50% = 10 kW.
  2. Energy in a gallon of diesel. 128,488 Btu (LHV) ÷ 3,412.14 Btu/kWh = 37.656 kWh per gallon.
  3. Electricity obtained per gallon. 0.33 × 37.656 = 12.426 kWh per gallon.
  4. Fuel burn. 10 kW ÷ 12.426 kWh/gal = 0.805 gallons per hour.
  5. Runtime. 50 gal ÷ 0.805 gal/h = 62.1 hours, a little over two and a half days.
  6. Cost per hour. 0.805 × $4.00 = $3.22 per hour.
  7. Cost per kilowatt-hour. $4.00 ÷ 12.426 = $0.322 per kWh. The same answer falls out of $3.22 per hour ÷ 10 kW, which is a useful cross-check.
  8. Fuel for a full day. 0.805 × 24 = 19.3 gallons, so a 50-gallon tank covers roughly two and a half days at this load.

Now double the load to 100%. The burn rate doubles to 1.61 gal/h and the runtime halves to 31.1 hours, but the cost per generated kilowatt-hour stays at $0.322, because it depends only on efficiency, energy content and price. That invariance is the single most useful property of this calculation — and the reason a lightly loaded set is expensive per kilowatt-hour only through its lower efficiency, not through the arithmetic.

Compare the result against the fuel-consumption table on your own set's spec sheet. If the manufacturer's figure at 50% load is materially higher than 0.805 gal/h, your engine's real efficiency is below 33%, and you should lower the efficiency input until the calculator matches the spec sheet. From then on it will predict the intermediate load points correctly.

How to read the result

Judge the burn rate against your fuel logistics, not against the engine. A 62-hour runtime sounds comfortable until you consider that a regional storm outage can run longer, that fuel deliveries stop when roads do, and that fire codes limit how much fuel you may keep on site before additional permitting and secondary containment apply — check the figure that governs where you are. If the runtime is under about 24 hours at your expected load, plan the refuelling before the outage, not during it.

Judge the cost per kilowatt-hour against your utility rate. Generated power from a small set lands well above the residential grid price — the worked example above costs $0.322 per kWh in fuel alone — which is why generators earn their keep on availability rather than on economics. The one case where the comparison flips is demand-charge shaving on a commercial tariff, where the value is in avoided peak demand charges rather than avoided energy charges, and the set may run only a handful of hours a month.

Watch the load band. Manufacturers publish ratings under ISO 8528-1 as standby, prime and continuous, each with its own permissible load profile and annual hours; a standby-rated set is not licensed for continuous duty at full output. At the other end, running a diesel below roughly 30% load lets unburnt fuel and soot collect in the exhaust — wet stacking — which fouls turbochargers and injectors. NFPA 110 requires emergency standby diesel systems to be exercised under load partly for this reason. If your real load is a small fraction of the set's rating, the fix is a load bank or a smaller set, not a longer idle.

Finally, treat the fuel cost as a floor. Oil and filter changes, coolant, valve adjustments, fuel polishing for stored diesel, and the amortised cost of the set itself all sit on top of the number this calculator gives you.

Fuel energy content and the cost of a generated kilowatt-hour

Energy contents are lower heating values. The last two columns assume 30% electrical efficiency and the illustrative fuel prices shown; substitute your own price and efficiency, since both vary widely by region and by machine.
FuelLHV per unitkWh per unitkWh generated per unit at 30%Fuel used per kWhAssumed priceCost per kWh
Diesel, No. 2128,488 Btu/gal37.6611.300.0885 gal$4.00/gal$0.354
Gasoline, E10112,114 Btu/gal32.869.860.1015 gal$3.50/gal$0.355
Propane (LPG)84,250 Btu/gal24.697.410.1350 gal$3.00/gal$0.405
Natural gas, piped90,100 Btu/therm (LHV of a billed therm)26.417.920.1262 therm$1.20/therm$0.152

Liquid-fuel heating values are from the U.S. Department of Energy Alternative Fuels Data Center fuel properties comparison. The therm figure applies the methane LHV/HHV ratio of 0.901 to the 100,000 Btu HHV definition of a therm.

Ratings, exercising and the standards that govern them

ISO 8528-1 defines the rating classes a generating set is sold under — continuous operating power, prime power, limited-time running power and emergency standby power — each with its own permitted load factor and annual running hours. A set marked ESP may not be run continuously at its ESP figure, and reading a fuel table at 100% load for a standby-rated machine describes a duty the machine is not sold for. In the United States, NFPA 110 covers emergency and standby power systems and sets out the routine load testing that keeps a diesel set reliable, while NFPA 37 governs the installation of stationary combustion engines. On-site fuel storage brings the fire code and, above threshold quantities, secondary containment requirements into play. None of this is a substitute for the manufacturer's manual or a licensed installer.

Where fuel estimates go wrong

  • Assuming efficiency is constant. It is not. A set at 25% load converts a smaller share of its fuel to electricity than the same set at 75%. Enter a lower efficiency for light loads or the burn rate will be optimistic.
  • Mixing heating-value conventions. HHV figures run several percent above LHV for liquid fuels, and about 11% above for natural gas — the ratio this calculator applies when it converts a billed therm to usable energy. Quoting an LHV efficiency against an HHV energy content understates fuel use.
  • Using the whole tank. Pickup tubes sit above the tank bottom, propane cylinders are filled to 80% of water capacity, and diesel below the suction point is not usable fuel. Enter what you can actually draw.
  • Forgetting the no-load burn. This model scales fuel with output, so it reads zero at zero load. A real engine burns fuel simply to turn over, which matters when a set idles for long periods between load steps.
  • Ignoring altitude and temperature derating. Naturally aspirated engines lose power with altitude and with intake temperature, so a set rated 20 kW at sea level may deliver appreciably less on a mountain site — which changes the load percentage you should be entering.
  • Sizing gas piping from the electrical rating. A natural gas set needs a stated volumetric flow at a stated inlet pressure. Piping sized for a furnace will starve a generator and the set will fail to accept load.
  • Quoting cost per kWh as the cost of running the generator. Fuel is the floor. Service intervals on a genset are measured in running hours, and those hours accumulate quickly during an outage.

Key terms

Lower heating value (LHV)
The heat released by burning a fuel with the product water left as vapour. It is the appropriate basis for engines, which exhaust that vapour rather than condensing it.
Higher heating value (HHV)
The heat released with the product water condensed back to liquid. Utility gas billing and the definition of a therm use HHV.
Therm
100,000 Btu of gas on a higher-heating-value basis — the unit natural gas is billed in. One CCF (100 cubic feet) of pipeline gas is roughly 1.03 therms.
Wet stacking
The accumulation of unburnt fuel and soot in the exhaust of a diesel engine run too lightly loaded for its cylinder temperatures to burn fuel completely.
Prime vs standby rating
Under ISO 8528-1, prime power permits unlimited annual hours at a varying load, while emergency standby power permits a limited number of hours a year and no sustained overload.

Limits of this model, and what to reach for instead

This is a first-order model: fuel in proportion to electrical output, at a single efficiency you supply. It does not represent the no-load fuel burn that a Willans-line model would capture, it does not vary efficiency with load, and it does not model transient fuel use during motor starting or step loading. For a specific machine, the manufacturer's fuel-consumption table at 25%, 50%, 75% and 100% load is more accurate than any general formula, and this calculator's best use is then interpolating between those points and converting them into runtime and dollars.

Size the set before you cost it. A generator chosen from running watts alone will stall on the starting surge of a well pump or an air conditioner compressor, which is what the generator sizing calculator exists for. If the outage you are planning for is short and the load is small, batteries are usually cheaper, quieter and legal indoors — compare against the battery bank sizing calculator and the inverter sizing calculator. For extended off-grid supply, a hybrid arrangement in which a solar array carries the daytime load and the engine covers the shortfall cuts run hours sharply; start with the solar panel array sizing calculator.

One safety point that no calculator can soften: engine-driven generators emit carbon monoxide at levels that are lethal indoors within minutes. Run them outdoors, well away from doors, windows and vents, and never in a garage — open door or not.

Frequently asked questions

How much diesel does a 20 kW generator use per hour?

About 0.8 gallons per hour at half load and 1.6 gallons per hour at full load, assuming 33% electrical efficiency. The arithmetic is the load in kilowatts divided by 12.4 kWh per gallon, which is what 33% efficiency extracts from diesel's 37.66 kWh gallon. Check the figure against your own set's spec sheet — small, high-speed engines fall below 30% efficiency and burn correspondingly more, while larger sets do better.

How long will a generator run on 5 gallons of gasoline?

Divide 5 gallons by the burn rate. A 5 kW portable at full load with 22% efficiency burns about 0.69 gal/h, so 5 gallons lasts roughly 7.2 hours. Halve the load and, at the same efficiency, the same tank lasts about 14 hours — expect a little less in practice, because a lightly loaded engine converts a smaller share of its fuel to electricity. Portable sets carry small tanks, which is why overnight running usually means refuelling in the dark — let the engine cool first, because spilling fuel on a hot exhaust is the classic way to lose the generator and more.

What electrical efficiency should I enter?

Use the manufacturer's fuel table if you have it: divide the load in kW by (gal/h × 37.66 for diesel, × 32.86 for gasoline, × 24.69 for propane) and you have the efficiency implied by their own numbers. Without a spec sheet, 30-40% is a reasonable rule of thumb for a diesel genset at moderate to high load, 20-28% for a small gasoline or propane portable, and lower again for anything running below a quarter of its rating.

Why does the cost per kWh not change when I change the load?

Because it is fuel price divided by the kilowatt-hours a unit of fuel yields, and neither term contains the load. Doubling the load doubles the fuel burn and doubles the electricity produced, leaving the ratio unchanged. What does change the cost per kWh is efficiency — and since efficiency really does fall at light load, a lightly loaded set genuinely costs more per kilowatt-hour. Model that by lowering the efficiency input rather than by expecting the formula to do it for you.

Is propane or diesel cheaper to run?

Compare cost per kilowatt-hour, not cost per gallon. A gallon of propane holds about 24.7 kWh against diesel's 37.7, so propane must be roughly a third cheaper per gallon to break even, before accounting for the fact that spark-ignition propane engines are usually less efficient than diesels. Propane's advantages are elsewhere: it stores indefinitely without degrading, it does not gel in cold weather, and it does not need fuel polishing — all of which matter for a set that may sit unused for years.

Why is there no runtime figure for natural gas?

Because piped natural gas is not stored on site, so nothing limits the run except the gas supply and the service schedule. What you should check instead is flow capacity: the calculator gives therms per hour, and your meter, regulator and gas piping must deliver that at the inlet pressure the set requires. Gas piping sized for household appliances is the most common reason a standby set starts, runs unloaded, then stalls when the transfer switch closes.

Does running a generator at low load damage it?

On a diesel, extended light loading causes wet stacking — unburnt fuel and soot accumulating in the exhaust because cylinder temperatures never reach the point of complete combustion. It fouls injectors, turbochargers and exhaust components, and it is why NFPA 110 requires emergency standby diesels to be exercised under load rather than merely started. Spark-ignition gasoline and propane sets tolerate light loading better but still lose efficiency. If your real load is a small fraction of the set's rating, use a load bank or a smaller machine.

How much fuel should I store for a multi-day outage?

Multiply the 24-hour figure this calculator gives by the number of days you want to be independent, then add a margin for load growth and cold starts. A 20 kW diesel at half load burns about 19.3 gallons a day, so three days is roughly 58 gallons. Check the storage limits in your local fire code before scaling up, keep stored diesel treated and rotated, and remember that propane cylinders deliver less vapour in cold weather, which can limit flow before it limits quantity.

References

  • Fuel Properties ComparisonU.S. Department of Energy, Alternative Fuels Data Center
  • ISO 8528-1, Reciprocating internal combustion engine driven alternating current generating sets — Part 1: Application, ratings and performance — International Organization for Standardization
  • NFPA 110, Standard for Emergency and Standby Power Systems — National Fire Protection Association
  • Gasoline and Diesel Fuel UpdateU.S. Energy Information Administration