Peak shaving calculator: battery peak demand simulation
Peak shaving means discharging a battery whenever site load rises above a target, so that the highest power drawn from the grid comes down. The calculation walks through the load series step by step: above the target the battery discharges the difference, below it the battery charges without lifting the draw over the target, and the resulting new peak is read off. The bill saving depends on how the kW reduction is tied to your demand charge, and the tool estimates it by multiplying the reduction by the monthly demand charge you enter.
Result
- Peak after battery
- 897 kW
- Peak reduction
- 103 kW
- Previous peak 1,000 kW
- Peak before battery
- 1,000 kW
- Peak reduction share
- 10.3%
- Automatically found target
- 897 kW
- Energy above target (before battery)
- 414 kWh
- Shaved energy (discharge)
- 414 kWh
- Equivalent full cycles (period)
- 1.04
- Annual equivalent cycles
- 379
- Annual demand charge saving
- –
Have an engineer review this result
This calculation is a pre-assessment. We can check your inputs and facility data against the single-line diagram and actual operating conditions.
Request a technical pre-assessment| Period | Peak before(kW) | Peak after(kW) | Reduction(kW) | Monthly saving(currency) |
|---|---|---|---|---|
| Series | 1,000 | 897 | 103 | – |
← Scroll sideways to see the whole table →
Hours from the start of the series
Hours from the start of the series
- No demand charge entered; technical results are shown. To see the saving, enter the demand charge per kW per month from your tariff (in your own currency).
- The battery is assumed full at the start of the period; it charges only while the load is below the target and only as far as keeps the draw under the target. Charging therefore does not create a new peak.
Results are a preliminary estimate based on the values you enter; they do not replace project calculations or field measurements.
The simulation takes an hourly or 15-minute load series and shows how far a battery can lower the peak. You can enter the target yourself or let the tool find the lowest peak this battery can hold. The result gives the new peak, the shaved energy, equivalent full cycles and, if you enter a demand charge, the saving.
What is peak shaving and how is it calculated?
Peak shaving lowers the peak by covering from the battery whatever the load exceeds the target peak by, and two quantities set independent limits. Battery power (kW) decides how much load can be taken at any instant, and usable energy (kWh) decides how long that support can last. To cut a load peak that lasts three hours in the afternoon, high power alone is not enough: if the battery runs empty before the peak ends, grid draw climbs back to the peak and that month's demand charge is still billed on it.
The simulation applies one rule at each step. When the load is above the target, the battery covers the difference as far as its power limit and remaining energy allow. When the load is below the target, the battery charges only as much as keeps grid draw under the target. For a given target this rule holds the state of charge as high as it can possibly be at every moment, so it shows correctly whether the target can be held. The automatic target is found by bisection as the lowest value that still holds.
Efficiency is split equally between the two directions: when charging, √η of the energy drawn from the grid enters the cells, and when discharging, √η of the energy taken from the cells reaches the grid. Usable energy is the part of the rated energy between the lower and upper SoC limits. An equivalent full cycle is the total energy drawn from the cells divided by that usable energy, and it can be used as an input to degradation calculations.
What a demand charge depends on varies with the tariff and the contract: some structures bill the highest monthly draw, others the contracted capacity. The tool assumes the charge follows the highest monthly draw. If your charge follows contracted capacity, a lower peak reaches the bill only once the contracted capacity is reduced. When the series is longer than thirty days, the tool splits it into 30-day periods, finds the peak reduction of each period separately and multiplies the average by twelve months. If you enter a single day or a short series, that series is taken to represent the peak day of every month; this assumption can make the annual saving look optimistic.
Formulas
P_dis(t) = min( L(t) − H, P_bat, (E(t) − E_min) · √η / Δt ) (L > H)
- L(t): load at the step (kW)
- H: target peak (kW)
- P_bat: battery power (kW)
- E(t): energy in the cells (kWh)
- Δt: step length (hours)
P_chg(t) = min( H − L(t), P_bat, (E_max − E(t)) / (√η · Δt) ) (L < H)
- η: round-trip efficiency
- E_max, E_min: energy corresponding to the SoC limits (kWh)
Saving (per year) = mean( P_before − P_after ) · c_demand · 12
- c_demand: monthly demand charge (per kW-month), entered by the user
- The mean is taken over 30-day periods
EFC = Σ E_cells / (E_rated · (SoC_max − SoC_min))
- EFC: number of equivalent full cycles
Assumptions and limits
The calculation rests on the assumptions below; outside these conditions the result may deviate:
- The battery starts the period full, at the upper SoC limit. A warning is given if it has not returned to its starting level by the end of the series.
- Dispatch is a greedy rule that works without knowing the future; an energy management system with load forecasting may choose a different charging schedule.
- Load values are taken as constant average power over each step. Hourly data averages out short peaks within the hour, so 15-minute data gives more reliable results.
- The demand charge is assumed to depend only on the highest monthly draw; structures tied to contracted capacity, excess-demand charges, reactive charges and time-of-use differences are not included. Check from your own tariff and contract documents whether this assumption holds.
- Capacity fade of the battery over the years is not modelled here; first-year performance is shown.
Worked example
On the example daily profile the peak is 1,000 kW. With a 500 kWh, 250 kW battery at 88% efficiency working between 10% and 95% SoC, the lowest peak that can be held is 897 kW, a reduction of 103 kW or 10.3%. To do this the battery discharges 414 kWh during the day and completes 1.04 equivalent cycles. If the demand charge is set to a placeholder of 300 per kW-month and this day stands for the peak day of every month, the annual demand charge difference is about 370,656 in the same currency. Replace the placeholder with your own tariff.
Produced with the example values by the calculation engine on this page.
Example inputs
- Data interval
- Hourly
- Site load series
- 24 values
- Battery rated energy
- 500 kWh
- Battery power (AC)
- 250 kW
- Round-trip efficiency
- 88 %
- SoC lower limit
- 10 %
- SoC upper limit
- 95 %
- Target peak
- Automatic (lowest)
- Demand charge
- 300 currency/kW-month
Result
- Peak after battery
- 897 kW
- Peak reduction
- 103 kW
- Previous peak 1,000 kW
- Peak before battery
- 1,000 kW
- Peak reduction share
- 10.3%
- Automatically found target
- 897 kW
- Energy above target (before battery)
- 414 kWh
- Shaved energy (discharge)
- 414 kWh
- Equivalent full cycles (period)
- 1.04
- Annual equivalent cycles
- 379
- Annual demand charge saving
- 370,656 currency/yr
Frequently asked questions
What is the difference between peak shaving and energy arbitrage?
Peak shaving targets the demand charge, that is, the highest draw of the month; the battery works only when load climbs toward the peak and completes few cycles a year. Arbitrage earns from price differences between hours and needs close to a full cycle almost every day. One battery can do both, but the priority must be set explicitly so it is not empty at the moment of the peak.
Is the automatic target peak always right?
The automatic target is the lowest value this battery can hold on the series you entered. If the series covers a single day, it knows nothing of heavier days; in real operation the target will not hold on those days and the monthly peak rises. It is safer to work with at least a year of 15-minute data and to leave a margin slightly above the automatic value.
Does battery power or energy limit the peak reduction?
On short, sharp peaks the limit is usually power: if the gap between the peak and the target is larger than battery power, the target cannot be held. On long, broad peaks energy runs short and the battery empties before the peak is over. Raising power first and then energy, and checking whether the result changes, shows which one is binding.
How many cycles does peak shaving use, and how much does it age the battery?
The cycle count depends on the load profile; if a peak occurs every day it can reach a few hundred equivalent cycles a year, and far fewer if the peaks are only seasonal. The tool gives equivalent cycles for the period and per year. That figure can be fed into a battery degradation calculation to estimate capacity fade over the years and when the warranty cycle limit is reached.
Can charging create a new peak?
Not in this simulation, because charging power is limited so that grid draw never rises above the target. In real systems, if overnight charging is scheduled at a fixed power, a new peak can appear even in low-load hours. The charging rule of the energy management system must therefore respect the target peak too, or part of the demand charge saving is lost.
Related calculators
Solar battery sizing calculator for hybrid PV optimization
Solar battery sizing calculator: sweep battery sizes on your PV and load series and compare self-consumption, import, export, annual benefit and NPV by size.
Open the calculator: Solar battery sizing calculator for hybrid PV optimizationBattery degradation calculator (battery ageing)
Battery degradation calculator: enter calendar loss, cycle loss, yearly cycles and a DoD factor to get the capacity curve, end-of-life year and warranty limit.
Open the calculator: Battery degradation calculator (battery ageing)Electricity bill analysis
Open the calculator: Electricity bill analysisBESS feasibility
The value of peak shaving is modelled together with a year of 15-minute metering, the tariff structure and degradation; battery power and energy are then selected from that model in a BESS feasibility study.
Related article: The 5 Most Common Mistakes in BESS Feasibility Studies
Last updated: