Power swing storage calculator

How much storage it takes to hide an AI training job's power swings from the grid, through each swing and through one full drop at a ramp limit.

ElectricityE = ΔP² ÷ 2r

Storage fills the gap between what the load draws and what the grid is allowed to see.

Formulas used: E = d(1 − d) × ΔP × TE = ΔP² ÷ 2r

The load

Power while computing
35 MW
Power while communicating
7 MW
One full swing takes
2 s
Share of time at high power
50%
Ramp limit
10 MW/min

Answer

Storage energy for each swing
3.89 kWh
Storage energy for one full drop
653 kWh
Storage power for the swing
14 MW
Size of the swing
28 MW 80% of the high power

In words

The load swings by 28 MW, from 35 MW to 7 MW, a drop of 80%, 0.5 times a second. Holding the grid’s draw at 21 MW takes storage that can move 14 MW but only 3.89 kWh each swing. If the load drops for good, ramping the grid down at 10 MW/min takes 2 min 48 s, and the storage has to absorb 653 kWh, 168 times as much.

Working

  1. Size of the swing35 MW − 7 MW = 28 MW
  2. Average draw7 MW + 0.5 × 28 MW = 21 MW
  3. Storage power for the swing0.5 × 28 MW = 14 MW
  4. Storage energy for each swing0.5 × 0.5 × 28 MW × 2 s = 14 MJ = 3.89 kWh
  5. Swing frequency1 ÷ 2 s = 0.5 Hz
  6. Time to ramp down28 MW ÷ 10 MW/min = 2.8 min
  7. Storage energy for one full drop½ × 28 MW × 2.8 min = 653 kWh

Theory model only: an ideal square-wave load, lossless storage and a grid draw that ramps in a straight line. It doesn’t size, approve or certify storage, protection or an interconnection.

A training job on 50,000 GPUs can draw 35 MW while it computes and 7 MW while it communicates, a drop of 28 MW, every few seconds [1]. Hiding that swing from the grid takes storage that can move 14 MW, but only 3.89 kWh each time if a swing takes 2 seconds. If the job stops for good and the grid may only ramp down 10 MW a minute [2], the storage has to soak up 653 kWh. The calculator starts from that case so you can try your own. For why the grid cares and what’s being done about it, read How AI training swings a data centre’s power, and why the grid cares.

How the numbers are worked out

The load is a square wave. It sits at the high power for a share d of each period T and at the low power for the rest. Its swing ΔP is the high power minus the low.

To give the grid a flat draw, the storage tops up the load while it’s high and soaks up the spare while it’s low, so the grid sees the average, the low power plus d × ΔP. The most the storage has to move is the larger of d × ΔP and (1 − d) × ΔP. Over one swing it takes in and gives back d × (1 − d) × ΔP × T. That’s in megajoules when ΔP is in megawatts and T in seconds, and 3.6 MJ make 1 kWh.

A full drop is different. If the load falls by ΔP at once and the grid’s draw may only fall at a ramp rate r, the ramp takes ΔP ÷ r. All that time the grid is still delivering more than the load uses, and the storage absorbs the difference. That’s a triangle with ΔP as its height and the ramp time as its base, so its area is ½ × ΔP × ΔP ÷ r, or ΔP² ÷ 2r. With ΔP in MW and r in MW per minute, divide by 60 for MWh.

The same triangle in reverse is the energy storage has to supply when a job starts.

Model assumptions

  • The load is an ideal square wave. Real power traces have ramps and spikes of their own.
  • The storage is lossless, and it starts each full drop with enough room to absorb it.
  • The grid’s draw ramps down in a straight line at exactly the limit.
  • Nothing else on the site, such as cooling, changes during the swing.

It is a theory model. It shows how big the energy and power of storage would have to be in an ideal case. It doesn’t size, approve or certify storage, protection or an interconnection.

Things to try

  • Halve the ramp limit. The full-drop energy doubles, because the ramp takes twice as long at the same height.
  • Double the swing. The swing energy doubles, but the full-drop energy goes up four times.
  • Set the ramp limit to 210 MW/min, which is 10% of 35 MW every second, the rate EasyRider aims for [1]. Compare the energy with the 10 MW/min case.
  • Shrink the load to one rack, 0.01 MW high and 0.002 MW low, with a ramp limit of 0.06 MW/min. How many watt-hours is the full drop?

Sources

Embed this calculator

Free to use on your own site or course page. Paste this code where the calculator should go. It resizes itself to fit and keeps the credit line under it.

Planning a project?

Tell us where your systems are today and where you want them to be, and we’ll work out where to start.

Contact us