What this calculator does
This calculator compares two ways of covering the same backup load: a fuel generator and a lithium battery. Enter the average load, the runtime needed, and the generator cost per hour, and the workbench returns the electrical energy the load needs and the generator's running cost for that session. The battery side of the comparison is arithmetic from the same energy figure, worked out in this article. Put the conditions next to the Generator vs Battery Calculator result so the comparison can be repeated.
Short answer: load energy = average watts × hours ÷ 1,000, in kilowatt-hours. Generator session cost = hours × cost per hour. With the workbench defaults — 850 W for 8 hours at $2.30 per hour — the load needs 6.8 kWh and the generator costs $18.40 for the session. A battery covering the same 6.8 kWh needs about 9,444 Wh of stored energy at 80% depth of discharge and 90% efficiency.
The comparison only works when both sides serve the same load for the same time. A generator sized for a peak load and a battery sized for an average load are not the same system, and a blanket payback claim hides that difference. This page keeps the load fixed and prices both options against it. The practical value of Generator vs Battery Calculator depends on the accuracy of those inputs.
The formulas behind the result
Load energy (kWh) = average electrical load (W) × required runtime (hours) ÷ 1,000. The division by 1,000 converts watt-hours to kilowatt-hours. With the defaults, 850 × 8 ÷ 1,000 = 6.8 kWh. This is the energy the load consumes, whichever source supplies it.
Generator operating cost = required runtime (hours) × generator cost per hour. With the defaults, 8 × $2.30 = $18.40 per session. The $2.30 figure is the workbench's default cost per hour — a planning input, not a measured fuel price — so enter the real fuel and maintenance cost per hour for the generator being compared.
Battery energy needed (Wh) = load energy (Wh) ÷ (depth of discharge × efficiency). At 80% depth of discharge and 90% efficiency, the divisor is 0.72, so the 6,800 Wh load needs 6,800 ÷ 0.72 = 9,444 Wh of battery. A 12.8 V battery bank would need about 738 Ah to hold that energy, which is why whole-home battery backup is a large bank, not a single battery.
The cost-per-hour input deserves a measured figure, because it moves the whole comparison. If the real cost is $3.10 per hour instead of the $2.30 default, the same 8-hour session costs 8 × $3.10 = $24.80 instead of $18.40, and twenty sessions a year cost $496 instead of $368. Measure fuel use over a real session — litres used, hours run, and the fuel price — and divide the total cost by the hours, rather than entering a figure from memory. A generator running at part load does not burn fuel in proportion to its load, so the cost per hour at the actual average load is the figure that matters.
Worked example: an 850 W load for 8 hours
Take the workbench defaults: an 850 W average load, 8 hours of runtime, and a generator cost of $2.30 per hour. The steps below replay the workbench calculation — energy and generator cost — then size the battery that would replace the generator for the same session. A cautious interpretation of Generator vs Battery Calculator includes the relevant operating limits.
| Step | Calculation | Result |
|---|---|---|
| Load energy | 850 W × 8 h ÷ 1,000 | 6.8 kWh |
| Generator session cost | 8 h × $2.30 | $18.40 |
| Battery energy needed | 6,800 Wh ÷ 0.72 | 9,444 Wh |
| Battery bank at 12.8 V | 9,444 ÷ 12.8 | 738 Ah |
| Generator cost, 10 sessions | 10 × $18.40 | $184.00 |
Generator and battery compared for four loads
The table below compares the same four backup cases on both sides: load energy, generator session cost at the $2.30 per hour default, and the battery energy needed at 80% depth of discharge and 90% efficiency. Every figure can be reworked from the load and hours in the first two columns. The battery column is the figure that surprises most readers: even a modest 500 W load for 4 hours needs 2,778 Wh of battery.
| Load and runtime | Load energy | Generator cost | Battery needed |
|---|---|---|---|
| 500 W × 4 h | 2.0 kWh | $9.20 | 2,778 Wh |
| 850 W × 8 h | 6.8 kWh | $18.40 | 9,444 Wh |
| 1,500 W × 6 h | 9.0 kWh | $13.80 | 12,500 Wh |
| 2,000 W × 10 h | 20.0 kWh | $23.00 | 27,778 Wh |
The pattern to notice is that generator cost grows with hours while battery cost grows with energy, and neither side wins everywhere. A generator used rarely can be cheaper over its life than a large battery bank, while a battery used daily avoids fuel, noise and maintenance on every cycle. A blanket payback claim like 3 to 7 years is not universal: break-even can be faster in areas with frequent outages or expensive generator fuel, and much slower when a generator is used only rarely. Record these assumptions whenever you use Generator vs Battery Calculator with another system.
What each input means
Average electrical load is the average power the backup must supply, in watts. Use the average over the runtime, not the peak: a fridge that cycles, lights and a laptop together might average 850 W even though the starting surge is higher. The workbench default is 850 W.
Required runtime is how long the backup must run, in hours. The default is 8 hours — an overnight outage. Longer runtimes raise the energy and the generator cost together, and they raise the battery size fastest, because the battery must store every watt-hour in advance.
Generator cost per hour is the running cost of the generator, in dollars per hour, covering fuel and routine maintenance at the rate the owner enters. The default is $2.30 per hour. It is the most uncertain input on the page: fuel price, generator efficiency at part load and service intervals all move it, so enter a figure measured from the actual generator, not a generic guess.
Reading the result — and its limits
The workbench returns a session cost, not a lifetime cost. Ten sessions at $18.40 cost $184.00 in running costs, but the generator's purchase price, servicing, fuel storage and replacement are all outside that figure, and the battery's purchase price is outside it too. A lifetime comparison needs both purchase prices, the expected number of sessions, and the battery's cycle life — none of which this workbench computes.
Peak load is the other gap. A generator rated for the average load may stall on a motor starting surge, and a battery sized for the average energy may still fail if its inverter cannot deliver the peak watts. Check sustained current and short-duration limits against the generator and inverter datasheets separately, before treating either side as adequate. This is the uncertainty that a Generator vs Battery Calculator worksheet should make visible.
The calculator cannot approve a backup design. Fuel storage, ventilation, exhaust, transfer switching, battery wiring and local codes must all be checked against the equipment documentation and qualified advice. A correct session-cost result says nothing about whether the installation is safe.
Running costs accumulate faster than a single session suggests, and the arithmetic is worth doing before choosing a side. Twenty sessions a year at the $18.40 default cost 20 × $18.40 = $368 per year, and five years of the same use cost $1,840 in running costs alone. That figure still excludes the generator's purchase price, servicing, fuel storage and eventual replacement, and it excludes the battery's purchase price entirely. A lifetime comparison needs both purchase prices beside the running cost, the expected number of sessions per year, and the battery's cycle life — and until those are on the table, the session cost is a starting point, not a verdict. A second Generator vs Battery Calculator scenario can reveal whether that difference matters.
Sources and verification status
Author: Saqib Jillani · Reviewer: lithiumbattery.info Editorial Team
The worked numbers on this page are arithmetic from the inputs stated beside them — every figure can be reworked with a pocket calculator. The $2.30 per hour generator cost is the workbench default, not a measured fuel price for any specific generator. The 80% depth of discharge and 90% efficiency figures used for the battery column are the planning conventions from this site's battery guides, not datasheet values. The warning that a 3 to 7 year payback claim is not universal is carried over from this page's earlier version. No generator model, fuel price or battery purchase price is claimed here. For background on how batteries store energy, see the U.S. Department of Energy battery reference linked below.