← Back to the model

What the battery model does

A plain-English walkthrough: what problem we're solving, how each piece works, what the numbers mean, and how long each step takes.

1. The question

If you build a grid battery in Germany — say 10 MW / 20 MWh (it can push or pull 10 MW of power, and holds enough energy to do that for 2 hours) — how much money will it make per year?

We give two answers:

Upper bound — the most the battery could possibly have earned if it had known every price in advance. Nobody can achieve this. It's a ceiling.

Realistic — what a real operator would have earned, making decisions without knowing the future. This is the number you would put in a business plan.

All results are quoted as € per MW per year, so you can scale them to any battery size.

2. How a battery earns money in Germany

There are three families of income. A battery can't do everything at once — every MW it promises to one market can't be used in another — so the hard part is deciding how to split it, every hour of every day.

A. Trading electricity (arbitrage) — "buy low, sell high"

B. Balancing services — "being on standby for the grid"

The grid frequency must stay at 50 Hz. The grid operators (TSOs) pay batteries to be ready to help:

C. Other grid services (small or not yet available)

Redispatch 2.0, inertia, black start, reactive power and a future capacity market. These are entered as simple € per MW per year assumptions because there's no market price history to model them from.

In 2025–26, about 60% of a German battery's income came from aFRR (capacity + energy). Trading is the second-largest source. That's why the model spends most of its effort on getting aFRR right.

3. The data we collect

Everything is real, historical, public market data, every 15 minutes, from January 2025 to September 2026:

WhatWhy we need itSource
Day-ahead pricesThe main trading priceENTSO-E (European grid operators' platform)
Intraday pricesThe "real-time" trading priceEPEX, via Energy-Charts (Fraunhofer)
FCR / aFRR / mFRR auction resultsWhat standby capacity paid, and which bids wonregelleistung.net (German TSOs)
aFRR activation pricesWhat the grid paid when it actually called on batteriesENTSO-E (free API key)
Activated reserves, imbalance priceHow much reserve was actually usednetztransparenz.de (free API login)
Grid operators' wind, solar and demand forecastsTo forecast prices the way a trader wouldEnergy-Charts

Once downloaded, everything is cached locally so it never needs downloading again.

4. Answer 1: the upper bound ("perfect hindsight")

For each day, we hand a computer optimiser all of that day's actual prices and ask: "what was the best possible plan?" — how many MW to put into FCR, aFRR and mFRR in each 4-hour block, and when to charge and discharge.

The optimiser respects the physics: the battery can't hold more than 20 MWh, loses ~12% of energy on a round trip, must keep enough energy in reserve for any standby it has promised, and can do at most 2 full cycles a day (warranty limit).

It's also paid the best price in each standby auction. So it's a ceiling — useful to know how much is on the table, but not achievable.

5. Answer 2: the realistic case ("a simulated operator")

This is the important one. We built a simulated battery operator and let it run through every day of the 17 months, making each decision at the moment a real operator would, using only what they'd know then. Then it's paid what the market actually paid.

A day in the life of the simulated operator

Day before, 08:00
Standby auctions. It forecasts tomorrow's prices (from the grid operators' wind/solar/demand forecasts and recent prices — a statistical model retrained every day). It decides how many MW to offer for FCR/aFRR/mFRR and at what price. Its bid price is chosen by looking at recent auctions: "if I bid this, how likely am I to win, and how much would I earn?" It only wins if its bid beats the actual auction result. In practice it wins about 70% of the time.
Day before, 12:00
Day-ahead auction. Using its price forecast, it plans when to charge and discharge tomorrow and submits that. It's paid the actual price — so if its forecast was wrong, it earns less.
The day itself, every hour
Re-plan. It looks at the live intraday price for the next hour, re-optimises the rest of the day from its actual battery level, and trades the difference (paying trading fees).
Every 15 minutes
Grid calls. When the grid actually needs aFRR and the price is good enough to beat the battery's asking price, the battery delivers, and is paid the actual price. That changes how much energy is left in the battery, which the next hourly re-plan has to deal with.
Midnight
Whatever charge is left carries over into the next day.

6. Checking it against a real operator

A model is only useful if it matches reality. The website bess-index.com publishes the actual monthly earnings of enspired, a company that trades real batteries in Germany (2-hour batteries, same as ours).

We ran the simulated operator over the same 17 months and compared month by month — without tuning anything to make it fit:

Average earnings (€k / MW / yr, before costs)
enspired — real trading results225
Our realistic case (simulated operator)216 (7% lower)
Our upper bound (perfect hindsight)481
Old model with haircuts, for comparison183 (19% lower)

It also follows the ups and downs month to month very closely (correlation 0.95; typical monthly miss 12%). So the realistic case is a fair, slightly cautious estimate of what a professional operator achieves.

7. The forecast to 2035

We can't simulate the future directly, so we take the last 12 months of real prices, reshape them for each future year, and re-run the whole simulation:

There are three scenarios: low, base, high. These reshaping factors are my assumptions, not a full market model — this is the least certain part of the work.

8. The results (latest 12 months, Oct 2025 – Sep 2026)

After costs (trading fees and battery wear), per MW per year, at 2 cycles a day:

BatteryRealisticUpper bound
1-hour€143k€281k
2-hour€171k€385k
4-hour€201k€451k

So a 10 MW / 20 MWh battery would have made about €1.7 million in the last year, realistically. In the base forecast this falls to about €116k per MW by 2035 as more batteries compete for the same income.

One thing that looks odd: the intraday line is slightly negative. That's because when the grid calls on the battery for aFRR, the battery later has to buy back the energy it used — that cost shows up under intraday, while the payment shows up under aFRR energy. Read the two together.

9. What takes how long

One-off: downloading the data (first time only)

DownloadTime
aFRR activation prices (ENTSO-E) — 21 months~30 min
Standby auction results (regelleistung.net)~5 min
Day-ahead, intraday, netztransparenz, forecasts~3 min

ENTSO-E is slow because it only returns about a week per request (~20 seconds each). After this, everything is saved locally.

Running the model (with data already saved)

TaskTime
Simulated operator, one day~0.1 s
One year, both answers (run.py)~36 s
17-month check vs enspired (validate.py)~48 s
Interactive app, one run~40 s
Interactive app, with forecast to 2035~15 min
Building the website data (export_web.py)~25 min

Why the website build takes 25 minutes

The website lets visitors pick 9 battery types (1, 2 or 4 hours × 1, 1.5 or 2 cycles a day). For each one we run:

That's roughly 9 × 28 ≈ 250 year-long simulations at ~35 seconds each ≈ 2½ hours of computing, spread across 9 processor cores at once → about 25 minutes.

The website itself then loads instantly, because visitors just read those pre-computed results (a 76 kB file) — nothing runs in their browser except simple rescaling for power, battery wear cost and grid services.

To update the website with newer data

  1. Download the newest month(s) — a few minutes.
  2. Re-run the check against enspired — ~1 minute.
  3. Re-build the website data — ~25 minutes.
  4. Push to GitHub — Vercel publishes it in about a minute.

10. How we got here

  1. First version: perfect-hindsight optimiser + "realistic" = upper bound with percentage haircuts. Prices partly synthetic.
  2. Real intraday prices found on Energy-Charts (no key needed).
  3. netztransparenz.de: real data on how often reserves are used.
  4. Benchmarked against bess-index.com: realistic was ~20% too low.
  5. This website page built and published.
  6. Rebuilt the realistic case as a simulated operator using forecasts and live prices — no haircuts.
  7. ENTSO-E: real aFRR activation prices. Modelling how German aFRR actually selects and pays batteries closed most of the remaining gap: from −19% to −7% versus the real operator.
  8. Fixed two bugs along the way (energy from grid calls was double-counted; grid calls weren't counted toward the 2-cycles-a-day limit).

11. What it still can't do