A commercial building pays about USD 89,600 a year in demand charges. Each month’s charge is set by a single 15-minute interval: the highest one. A battery can shave that interval off. The question every engineer and building owner asks next is simple: how big does the battery need to be?
The answer is rarely “a little bigger than the peak”. In this article you will see why shaving the first 25 kW needs only 59 kWh of battery while shaving 100 kW needs 743 kWh, why a battery 20% too small loses 27% of the savings, and how to turn savings into the highest installed cost a project can justify. Then you will size one yourself with our free Colab notebook, a full year of 15-minute meter data and an Excel battery simulator.
What you will get
- How demand charges work and why one interval sets the whole month
- A sizing method you can do by hand: energy above target on the worst day
- A 15-minute battery simulation over 35,040 intervals, with real limits
- Break-even installed cost per kWh, from USD 915/kWh for the first 25 kW to USD 208/kWh at 150 kW
1. How a demand charge works
Most commercial and industrial tariffs bill two things: energy (kWh) and demand (kW). The demand charge uses the highest average power in any 15-minute interval of the billing month:
Monthly demand charge = Pmax, month (kW) × demand rate (USD per kW-month)
Example, July: 467.4 kW × USD 18/kW = USD 8,413. A single hot afternoon decides it, even if the building ran at half that load for the rest of the month.
Demand rates vary widely. An NREL survey of more than 10,000 US tariffs (2017) found that nearly 5 million commercial customers could be on tariffs with demand charges above USD 15/kW, and some locations above USD 30/kW. This article uses USD 18/kW-month as an assumption; the lab lets you enter your own.

2. How peak shaving works

The controller picks a target T for the month. Whenever the building load rises above T, the battery supplies the difference, so the meter reads T instead of the real peak. When the load falls below T, typically at night, the battery recharges without pushing the meter above T. If the battery holds the line every day of the month, the demand charge drops by (Pmax − T) × rate.
3. Sizing: power is easy, energy is the hard part
To shave R kW, the battery needs at least R kW of power. Energy is where designs go wrong. On each day the battery must supply all the energy above the target:
Energy above target on one day: Eday = Σ max(Pload − T, 0) × 0.25 h
Nameplate energy: Enameplate = max(Eday) / ηdischarge / DoD
with ηdischarge = 0.95 and usable depth of discharge DoD = 0.90 (a 10% reserve the battery never uses).
Worked example, R = 100 kW: the worst day (June 4) has 635 kWh above the June target of 409.9 − 100 = 309.9 kW.
635 / 0.95 = 669 kWh from the cells → 669 / 0.90 = 743 kWh nameplate, or 7.4 hours of storage at 100 kW.
Now look at the shape of the load. The load duration curve sorts every 15-minute interval of the year from highest to lowest:

The tip of the peak is narrow; the shoulders are wide. Every extra slice you cut is wider than the one before, so battery energy grows much faster than the kW shaved:

4. Simulating the battery every 15 minutes
A sizing rule is a start; a simulation is proof. The lab runs a simple, common controller through all 35,040 intervals of the year: discharge above the target (limited by battery power and the 10% reserve), recharge below it (without creating a new peak), 0.95 efficiency each way.

With 100 kW / 743 kWh the meter stays 100 kW lower in all twelve months: 1,200 kW-months × USD 18 = USD 21,600 a year.
The cost of being 20% too small
Size the same battery at 594 kWh and it runs empty on the longest afternoons. Because one interval sets the month, a single failure wipes out most of that month’s saving:

Energy is not the only trap. At a deep 150 kW target, January and February fail even with a battery sized for the worst day: the building’s night heating load sits close to the target, leaving too little headroom to recharge, so the battery starts some days only 54% full. Always check the recharge window, not just the discharge.
5. What can the project afford?
Break-even installed cost (USD per kWh) = annual savings × years / nameplate kWh
R = 100 kW: 21,600 × 10 / 743 = USD 291 per kWh (undiscounted, 10 years)
Discounted at 7%: 21,600 × 7.02 / 743 = USD 204 per kWh (7.02 is the 10-year annuity factor at 7%)

Compare these figures with real installed-cost quotes in your market. If a quote is above the break-even value, demand charges alone will not pay for the project; other value streams (energy time-shifting, demand response programs, backup power, incentives) must close the gap. This simple method also ignores battery degradation and maintenance, so treat it as a screening tool, not a final investment case.
6. Six lessons from the lab
- Start from interval data. Monthly bills hide the shape of the peak. You need 15-minute data for at least a year.
- Size energy on the worst day, not the average day. One failed afternoon resets the month.
- The first kW are the cheapest. Narrow peaks are ideal for batteries; wide plateaus are not.
- Check the recharge window. Night load close to the target means the battery cannot refill.
- Forecasting matters. The lab assumes the controller knows each month’s peak. Real controllers must predict it, usually with a margin, which costs some savings.
- Use your own tariff. Some tariffs use ratchets, time-of-use demand windows or coincident peak charges, and each changes the sizing.
7. Free hands-on lab kit
GIEE Battery Peak Shaving Lab Kit
| GIEE_BESS_Peak_Shaving_Lab.ipynb | Google Colab notebook: demand bill, load duration curve, sizing table, 15-minute simulation, undersized case, break-even cost. Expected output after every step |
| giee_building_load_15min_2025.csv | 35,040 fifteen-minute readings of a commercial building, with outdoor temperature |
| GIEE_BESS_Peak_Shaving_Excel_Lab.xlsx | Worst-day battery simulator (type target, kW, kWh) and a yearly savings and break-even sheet. No coding needed |
| README.txt | How to start and the full table of expected results |
Python track (about 30 minutes): open colab.research.google.com, choose File > Upload notebook, and run each cell with Shift + Enter. Only pandas, numpy and matplotlib are used.
Excel track (about 20 minutes): on the “Worst day” sheet, type a target, battery power and energy, and watch the meter line, the state of charge and the “Target met all day?” check respond.
| Check your result | Expected |
|---|---|
| Annual demand charges without battery | USD 89,582 |
| Nameplate kWh for 25 / 50 / 100 / 150 kW | 59 / 226 / 743 / 1,350 kWh |
| 100 kW / 743 kWh battery, annual savings | USD 21,600 |
| Same battery at 594 kWh | USD 15,694 (−27%) |
| Break-even, 100 kW, 10 years | USD 291/kWh (USD 204/kWh discounted at 7%) |
Try it yourself
- Your tariff: enter your demand rate. How does the break-even cost move?
- No foresight: set each month’s target from the previous month’s peak. How many months fail?
- Your building: export a year of 15-minute data from your utility portal (many US utilities offer Green Button downloads) and run all cells.
For a quick first estimate of battery size from a single load profile, try our free Battery Storage Sizing Calculator. Share your lab result on LinkedIn with #GIEElab.
Where to go next
Peak shaving is one of several commercial battery applications, alongside energy time-shifting, solar self-consumption, demand response and backup power. To understand battery technologies, system components, sizing and the economics of commercial and utility-scale storage in a structured way, continue with EE220: Battery Energy Storage Systems: Technologies and Applications. Earn PDHs upon completion.
Sources: NREL and Clean Energy Group, “Identifying Potential Markets for Behind-the-Meter Battery Energy Storage: A Survey of U.S. Demand Charges” (2017). This article and lab use synthetic data generated by GIEE for education; the USD 18/kW-month tariff is an assumption. Use your utility’s tariff, measured interval data and vendor quotes for real projects.
GIEE NEWSLETTER
Engineering insight for the modern grid, once a month
Free engineering tools, worked examples with real numbers, new GIEE publications and free webinar dates.









