Generator Cost per kWh Calculator

Generator Cost per kWh Calculator

Estimate the fuel and routine maintenance cost of electricity from a generator using its actual fuel consumption and average electrical output. Default values are illustrative; enter figures for the same operating load and fuel type. Fixed ownership costs are excluded.
Cost per kWh:
Support this tool
Buy us a coffee
If this Generator Cost per kWh Calculator helped you, you can support the site with a small donation. It keeps the tools on the site free and supports ongoing improvements.
Buy us a coffee
Secure donation via Gumroad

A generator can provide useful backup or off-grid power, but its electricity cost depends on more than the price of fuel. How much fuel the generator burns, how much electricity it delivers, and what you spend on routine maintenance all affect the cost of each kilowatt-hour. The Generator Cost per kWh Calculator brings those figures together to help readers of thebestgenerators.com estimate the running cost of generator electricity.

What the Generator Cost per kWh Calculator does

The calculator estimates the fuel and routine maintenance cost per kilowatt-hour (kWh) of electricity produced by a generator. It takes the hourly cost of fuel, adds an average hourly maintenance cost, and divides that total by the generator’s average electrical output in kilowatts (kW).

A kilowatt-hour is a measure of energy. For example, a generator delivering an average of 1 kW for one hour produces 1 kWh. A generator delivering an average of 3 kW for one hour produces 3 kWh.

This estimate is useful for comparing operating scenarios, planning a fuel budget, or understanding how generator electricity compares with a utility rate. It is a running-cost estimate: it excludes the generator’s purchase price, depreciation, financing, storage, and other fixed ownership costs. The default values are illustrative assumptions, so replace them with figures that reflect your generator and fuel type.

How to use the Generator Cost per kWh Calculator

Enter the following four values using the same fuel type and operating conditions:

  1. Fuel consumption (gallons per hour): Enter the amount of fuel the generator uses in an hour at the load you want to evaluate. Use a measured value or an appropriate figure for that operating load.
  2. Fuel price ($ per gallon): Enter the price you expect to pay for one gallon of the fuel used in your consumption figure.
  3. Routine maintenance cost ($ per operating hour): Enter your estimated average cost per hour for routine maintenance, such as oil and filters. You can estimate this by dividing expected routine maintenance spending by the number of operating hours it covers.
  4. Average electrical output (kW): Enter the average power the generator actually supplies during the same operating period. This is the average load served, not necessarily the generator’s maximum rated output.

The result is shown as Cost per kWh in dollars per kilowatt-hour, rounded to two decimal places. For a useful estimate, match the fuel consumption and output figures to the same load. Fuel consumption at a light load paired with output at a heavy load, for example, would give a misleading result.

If your generator serves a changing load, use representative average figures for the period you want to estimate. The calculation assumes fuel consumption and average output stay constant over that period, so a single result may be less precise when operating conditions change substantially.

How the Generator Cost per kWh Calculator formula works

The formula adds the hourly fuel and routine maintenance costs, then divides by the average electrical output:

Cost per kWh = (fuel consumption in gallons per hour × fuel price per gallon + routine maintenance cost per operating hour) ÷ average electrical output in kW

Multiplying gallons per hour by dollars per gallon gives the fuel cost per hour. Adding maintenance gives the estimated total operating cost per hour. Because an average output of 1 kW produces 1 kWh in one hour, dividing the hourly cost by average output gives the cost per kWh.

Worked example using the default values

Assume a generator uses 0.75 gallons per hour, fuel costs $3.50 per gallon, routine maintenance averages $0.25 per operating hour, and average electrical output is 3 kW. These are illustrative assumptions, not current prices or guaranteed performance figures.

  • Hourly fuel cost: 0.75 × $3.50 = $2.625
  • Hourly fuel and maintenance cost: $2.625 + $0.25 = $2.875
  • Cost per kWh: $2.875 ÷ 3 = $0.9583 per kWh

Rounded to the calculator’s two decimal places, the result is $0.96/kWh. At the assumed steady output, the generator produces 3 kWh in an hour while incurring $2.875 in fuel and routine maintenance costs.

Use cases for the Generator Cost per kWh Calculator

Plan for an outage. If you know the approximate load you want to run during a power outage, you can estimate the generator’s cost per unit of electricity under those conditions. This can help you think through fuel and routine maintenance spending for essential equipment.

Compare operating loads. Run separate estimates for different loads using the matching fuel consumption and output for each one. A generator may consume less fuel per hour at a lighter load but also produce less electricity, so the cost per kWh may change in either direction.

Evaluate fuel price changes. Keep the other assumptions consistent and change the fuel price to see how a higher or lower price affects the result. This can help with budgeting when your actual purchase price is uncertain.

Compare generators or fuel types. If you have reliable consumption and output figures for each option at comparable loads, calculate a cost per kWh for each. Use the appropriate price and consumption units for each generator, and remember that the result covers fuel and routine maintenance rather than the full cost of ownership.

Estimate a period’s running cost. Multiply the unrounded cost per kWh by the estimated kWh you expect to use. Alternatively, multiply the estimated hourly fuel and maintenance cost by the planned operating hours, assuming the same conditions throughout. Because the displayed result is rounded, multiplying it can introduce a small rounding difference.

Other factors to consider when calculating Cost per kWh

Load and fuel use: Generator fuel consumption changes with load and operating conditions. The generator’s nameplate rating alone does not tell you its average output or its fuel use during a particular job. Use figures for the load you expect to serve.

Maintenance estimates: Maintenance expenses do not necessarily occur every hour. The hourly value spreads expected routine costs across operating time. Your estimate will depend on what you include, how often service is needed, and the cost of supplies or labor.

Costs outside the result: Purchase price, depreciation, financing, storage, and other fixed costs are excluded. If you are deciding whether to buy a generator or comparing long-term ownership options, consider those expenses separately alongside the calculated operating cost.

Changing operating conditions: Loads, fuel prices, and generator performance can vary over time. For a long or variable operating period, separate it into representative scenarios and estimate each one using matching consumption and output figures.

Utility comparisons: A utility bill may include fixed charges, taxes, or other fees as well as an energy rate. Check what is included in the rate you compare with the generator result. The calculator’s figure represents fuel and routine maintenance per kWh, so it does not necessarily capture every cost on either side of the comparison.

Frequently asked questions

What is the difference between kW and kWh?

kW measures power at a point in time or as an average over a period. kWh measures energy produced or used over time. An average output of 2 kW sustained for one hour produces 2 kWh.

Should I enter the generator’s rated output?

Enter the average electrical output actually supplied during the operating period you are estimating. The rated output may be higher than the load you normally run. Pair the average output with fuel consumption measured or estimated under the same conditions.

How do I estimate maintenance cost per operating hour?

Add the routine maintenance costs you expect over a specified number of operating hours, then divide by those hours. For example, an assumed $100 of routine maintenance over 200 hours equals $0.50 per operating hour. Your actual costs and service intervals may differ.

Does the result include the purchase price of the generator?

No. The result includes the fuel and routine maintenance values you enter. It excludes the purchase price, depreciation, financing, storage, and other fixed ownership costs.

Why can the cost per kWh change when the load changes?

Both fuel consumption and electrical output can change with load, and they do not necessarily change at the same rate. Recalculate with matching fuel consumption and average output figures for each load you want to compare.

Table of contents