⚡ OffGrid Sizer

Home › Energy costs & conversions

Peak shaving battery calculator

Size a battery for peak shaving: the kW and kWh needed to cap your peak demand, plus yearly demand-charge and time-of-use savings and simple payback.

Results

Battery capacity needed (incl. reserve)5.3 kWh
Inverter / discharge power needed4 kW
Energy drawn from the battery per day4.22 kWh
Peak energy covered per day4 kWh
Demand charge savings per year$576
Time-of-use energy savings per year$167
Total savings per year$743
Simple paybackEnter a system cost
  • The battery would discharge at 0.76C (4.0 kW from 5.3 kWh). Many home batteries are limited to about 0.5C continuous, so check the inverter and battery power rating, not just the kWh.
  • Savings assume the battery catches every peak, every month. Demand is usually billed on the highest 15- or 30-minute average in the billing period, so one missed peak can wipe out that month's demand saving.
  • Battery wear, replacement and financing are not included. This is an estimate, not financial advice.

About this calculator

Peak shaving means using a battery to supply the top slice of your electricity demand, so the grid never sees a peak above a set level. It pays off in two ways. If your tariff has a demand charge, billed per kW of your highest 15- or 30-minute average in the month, every kW you shave cuts that charge. If your energy price changes through the day, the battery also shifts energy from expensive peak hours to cheap off-peak ones.

This calculator sizes both parts of the battery, the power (kW) and the energy (kWh), from the peak you have and the peak you want, then estimates yearly savings and payback. It's built for homes on demand or time-of-use rates, farms, workshops and small businesses.

How to use it

  1. Find your billed peak demand in kW on a recent bill, or the highest 15-minute reading in your utility's interval data. Use the worst month you want to cover.
  2. Choose a target peak. The gap between the two is the inverter power you need.
  3. Enter how many hours a day the load stays above the target and how flat that peak is. Interval data shows this. If unsure, use 100% for a conservative size.
  4. Enter your demand charge and peak and off-peak energy prices from your tariff, then an installed cost if you have a quote.

The formula

Power to shave = current peak − target peak (kW). The battery inverter must deliver this continuously.

Energy per day = kW shaved × hours above target × shape factor. A flat plateau is 100%; a straight-line spike up and down is a triangle, whose area is half the rectangle, so 50%.

Battery energy = energy per day ÷ √(round-trip efficiency). Losses are split evenly between charging and discharging. Capacity needed = battery energy ÷ (1 − reserve).

Demand savings = kW shaved × demand charge × 12 months. Energy savings = days × (energy per day × peak price − energy per day ÷ round-trip efficiency × recharge price). Payback = cost ÷ yearly savings.

Worked example (default values)

Inputs

Current monthly peak demand10 kW
Target peak6 kW
How long the load stays above the target2 h/day
Average excess as a share of the maximum50 %
Battery round-trip efficiency90 %
Capacity held back (backup reserve, DoD limit)20 %
Demand charge12 $/kW-month
Shaving days per year250 days
Energy price during the peak0.3 $/kWh
Energy price when recharging0.12 $/kWh
Installed battery cost (optional)0 $

Results

Battery capacity needed (incl. reserve)5.3 kWh
Inverter / discharge power needed4 kW
Energy drawn from the battery per day4.22 kWh
Peak energy covered per day4 kWh
Demand charge savings per year$576
Time-of-use energy savings per year$167
Total savings per year$743
Simple paybackEnter a system cost

More worked examples

Small business: 40 kW peak cut to 30 kW for 1 hour

A workshop hits 40 kW for about an hour each afternoon on a $15/kW-month demand charge. Shaving 10 kW of flat peak needs about 13 kWh of battery with the 20% reserve, and a 10 kW inverter. The demand charge alone saves $1,800 a year.

Inputs: Current monthly peak demand: 40 kW · Target peak: 30 kW · How long the load stays above the target: 1 h/day · Average excess as a share of the maximum: 100 % · Battery round-trip efficiency: 90 % · Capacity held back (backup reserve, DoD limit): 20 % · Demand charge: 15 $/kW-month · Shaving days per year: 250 days · Energy price during the peak: 0.2 $/kWh · Energy price when recharging: 0.15 $/kWh · Installed battery cost (optional): 0 $

Battery capacity needed (incl. reserve)13.2 kWh
Inverter / discharge power needed10 kW
Demand charge savings per year$1,800
Time-of-use energy savings per year$83
Total savings per year$1,883

Home on a residential demand rate: 9 kW cut to 5 kW

Some utilities bill homes a demand charge on the evening peak. Here a 4 kW spike lasting 2 hours, roughly triangular, needs about 5.3 kWh after the reserve. At $10/kW-month that's $480 a year, plus a little from shifting energy.

Inputs: Current monthly peak demand: 9 kW · Target peak: 5 kW · How long the load stays above the target: 2 h/day · Average excess as a share of the maximum: 50 % · Battery round-trip efficiency: 90 % · Capacity held back (backup reserve, DoD limit): 20 % · Demand charge: 10 $/kW-month · Shaving days per year: 365 days · Energy price during the peak: 0.25 $/kWh · Energy price when recharging: 0.12 $/kWh · Installed battery cost (optional): 0 $

Battery capacity needed (incl. reserve)5.3 kWh
Inverter / discharge power needed4 kW
Demand charge savings per year$480
Time-of-use energy savings per year$170
Total savings per year$650

Time-of-use only: shift 10 kWh a day, no demand charge

With no demand charge, all the value comes from the price gap. 5 kW flat for 2 hours is 10 kWh a day. At $0.40 peak and $0.15 off-peak with 90% efficiency, each day saves $4 minus $1.67 of recharge, about $850 a year over 365 days. With a $12,000 example cost, payback is about 14 years.

Inputs: Current monthly peak demand: 5 kW · Target peak: 0 kW · How long the load stays above the target: 2 h/day · Average excess as a share of the maximum: 100 % · Battery round-trip efficiency: 90 % · Capacity held back (backup reserve, DoD limit): 20 % · Demand charge: 0 $/kW-month · Shaving days per year: 365 days · Energy price during the peak: 0.4 $/kWh · Energy price when recharging: 0.15 $/kWh · Installed battery cost (optional): 12000 $

Battery capacity needed (incl. reserve)13.2 kWh
Time-of-use energy savings per year$852
Total savings per year$852
Simple payback14.1 years

When energy shifting loses money

If peak and off-peak prices are close, recharge losses eat the gap. At $0.16 peak and $0.15 off-peak the energy side goes negative, so the battery only pays through the demand charge.

Inputs: Current monthly peak demand: 10 kW · Target peak: 6 kW · How long the load stays above the target: 2 h/day · Average excess as a share of the maximum: 50 % · Battery round-trip efficiency: 90 % · Capacity held back (backup reserve, DoD limit): 20 % · Demand charge: 12 $/kW-month · Shaving days per year: 250 days · Energy price during the peak: 0.16 $/kWh · Energy price when recharging: 0.15 $/kWh · Installed battery cost (optional): 0 $

Demand charge savings per year$576
Time-of-use energy savings per year$-7
Total savings per year$569

Battery size table and tips

How big a battery do I need to shave a peak?

This table is computed with this page's calculator for a flat peak (shape 100%), 90% round-trip efficiency and a 20% reserve. For a triangular spike, halve the figure. The inverter must also be rated for the kW in the first column.

Battery capacity (kWh, including a 20% reserve) to shave a flat peak, 90% round-trip efficiency
kW shaved15 min30 min1 h2 h3 h4 h
1 kW0.30.71.32.64.05.3
2 kW0.71.32.65.37.910.5
3 kW1.02.04.07.911.915.8
5 kW1.63.36.613.219.826.4
10 kW3.36.613.226.439.552.7
20 kW6.613.226.452.779.1105.4

Power usually matters more than energy. Demand charges reward kW, and most peaks are short. A 10 kW, 30-minute spike needs only about 6.6 kWh of storage but a 10 kW inverter. Check that the battery's continuous discharge rating covers the shave, not just its capacity.

Get interval data. Most utilities let you download 15-minute or hourly usage from their website or a smart meter portal. It shows how tall and wide your peaks really are, which is the single biggest input here.

Reduce the peak first. Staggering when big loads start, such as a well pump, kiln, compressor or EV charger, often cuts demand for free. Each motor's surge and running watts are in the generator size calculator, and the appliance energy cost calculator shows what a single load costs to run.

Backup is a bonus. A battery kept partly charged for peak shaving can also carry critical loads in an outage. The reserve setting above is that backup share. To size for outages instead, use the home backup battery size calculator, and if solar recharges the battery, the solar payback calculator covers the panel side.

Frequently asked questions

What is peak shaving?

Peak shaving is using stored energy, usually a battery, to supply the highest part of your electricity demand so the grid peak stays below a set level. It lowers demand charges, which are billed per kW of your highest 15- or 30-minute average in the billing period, and can also shift energy from expensive to cheap hours.

How do you calculate peak shaving battery size?

Subtract the target peak from the current peak to get the kW the battery must deliver. Multiply by the hours the load stays above the target, and by a shape factor (100% for a flat peak, 50% for a triangular spike), to get kWh per day. Divide by the square root of round-trip efficiency and by one minus any reserve. Shaving 4 kW flat for 2 hours at 90% efficiency with a 20% reserve needs about 10.5 kWh.

What is the difference between peak shaving and load shifting?

Peak shaving targets the maximum kW the grid sees, which matters on tariffs with demand charges. Load shifting, or time-of-use arbitrage, moves kWh from expensive hours to cheap hours. One battery can do both, and this calculator counts both savings.

Is peak shaving worth it for a home?

Only on the right tariff. If you pay a demand charge or a large peak and off-peak price gap, the savings can be meaningful. On a flat-rate tariff with no demand charge there is nothing to shave, and a battery is better justified by backup or solar self-consumption. Run your own rates through the calculator before getting quotes.

Why does one missed peak matter?

Demand charges are usually set by the single highest interval in the month. If the battery runs out or is offline during one unusually long peak, that interval sets the bill and the month's demand saving can be lost. Size with some margin and use the shape factor at 100% if you're unsure.

Related calculators

More energy costs & conversions calculators

Estimates for planning only, based on the assumptions shown. Real-world performance varies with equipment, temperature and installation. Updated November 24, 2026. See our methodology.