How the battery energy arbitrage calculation works
Arbitrage profit depends on the price spread, the round-trip losses and the cost of wearing out the battery. A cycle is only worth doing if the sell price, after losses, exceeds the buy price plus the wear cost per kWh.
The schedule is found by dynamic programming: the calculator works backwards through the day, computing the cheapest way to reach each charge level from every hour onwards, then follows the best path forwards. It assumes the whole day’s prices are known in advance (as with day-ahead prices) and treats the day as repeating, so the battery cannot simply sell its starting charge.
Formula
- V_t(E)
- cheapest cost from hour t onwards at charge E
- spread
- import price minus export price
Worked example
- Example day: prices from 0.15 to 0.40 per kWh; 10 kWh / 5 kW battery, 90 % round-trip, export 0.03 below import, wear 0.05 per kWh.
- The optimiser does two full cycles, buying about 19 kWh in the cheap night and midday hours and selling about 17 kWh in the morning and evening peaks.
- Trading margin 2.36 per day; after 0.85 of wear cost the net profit is 1.51 per day, or about 551 per year if every day looked like this.
Assumptions and limitations
Assumptions
- The default hourly profiles and prices are illustrative example inputs, not data for a real home, market or location.
- Perfect foresight of the day’s prices; no market fees beyond the spread entered.
Limitations
- Results are optimal for the discretised model, not guaranteed for real trading with forecasts.
- Grid export of battery energy may not be allowed for households in your area.
Frequently asked questions
Is battery arbitrage profitable for homes?
Only with large daily price spreads, permission to export, and a low wear cost. Many homes earn more by avoiding imports than by selling.
What wear cost should I use?
Battery cost divided by its lifetime throughput — the levelised cost of storage calculator estimates it.
Related calculators
Dynamic Tariff Battery Optimizer
Cost-minimising battery schedule for hourly prices vs simple rules.
Battery Levelized Cost of Storage Calculator
Cost per kWh delivered by a battery over its life (LCOS).
References and data sources
- Dynamic programming — Wikipedia
- Grid energy storage (load following, peak shaving and arbitrage) — Wikipedia
- Annual Technology Baseline (ATB) — National Renewable Energy Laboratory
Last reviewed: · Formula version 1.0.0 · Methodology