Code tool

Battery Tariff Arbitrage Calculator

Estimate signed energy savings per cycle and year from your battery, rates and cycling frequency.

In-browser processingNo account requiredPrivacy details ↗
Efficiency scenarios (optional, 1–20 rows)

Each cycle buys B = capacity × DoD/100 kWh and delivers D = B × efficiency/100. Cost = B × charge rate; replaced value = D × peak rate; signed net = value − cost; annual net = net × cycles/week × 52; break-even peak = charge rate ÷ (efficiency/100).

Assumes all delivered energy replaces peak-rate purchases and the same full-cycle pattern repeats for 52 weeks. Negative savings remain negative. Excludes degradation, wear, standby draw, inverter overhead, export, load scheduling and purchase cost. Break-even is a per-kWh rate, including when capacity or cycling is zero. No recommended inputs or lifetime assumptions.

JavaScript binary floating-point numbers are approximate; results are arithmetic estimates.

A QUICK WALKTHROUGH

How to use this tool

  1. Enter your battery, rates, currency and weekly full-cycle count.
  2. Optionally add efficiencies to compare, then calculate.
  3. Copy the report or download it as TXT.

Formula and units

Each cycle buys B = capacity × DoD/100 kWh and delivers D = B × efficiency/100. Cost = B × charge rate; replaced value = D × peak rate; signed net = value − cost; annual net = net × cycles/week × 52; break-even peak = charge rate ÷ (efficiency/100).

Scope

Assumes all delivered energy replaces peak-rate purchases and the same full-cycle pattern repeats for 52 weeks. Negative savings remain negative. Excludes degradation, wear, standby draw, inverter overhead, export, load scheduling and purchase cost. Break-even is a per-kWh rate, including when capacity or cycling is zero. No recommended inputs or lifetime assumptions.

Local processing

Your entries stay in your browser. Copy and TXT export include the inputs, formula and scope.

GOOD TO KNOW

Common questions

How should I use the result?

Use it as an arithmetic estimate based on your supplied inputs.