Skip to content
HomeEnergyTools

Hourly Battery Charging Simulator

See exactly when your battery charges, when it discharges and what is left for the grid, hour by hour.

Hourly Battery Charging Simulator

24 values in kWh. Use a PVGIS hourly export or your inverter’s app for a real day.

24 values in kWh, e.g. from a smart-meter export.

Advanced settings

Results update automatically as you type. Default values are examples — replace them with your own.

Self-sufficiency (load covered by solar)

83.5 %

Grid import
2.08 kWh/day
Grid export
15.96 kWh/day
Energy delivered by the battery
4.27 kWh/day
Self-consumption (solar used on site)
40.9 %
Equivalent full cycles
1 cycles/day
State of charge at the end of the day
10 %
  • Note: Repeating-day mode: the same day is simulated until the battery’s start-of-day charge settles, so results are not flattered by a battery that happens to start full.

Hour-by-hour energy flows

Battery state of charge by hour: 0:00 10 %, 1:00 10 %, 2:00 10 %, 3:00 10 %, 4:00 10 %, 5:00 10 %, 6:00 10 %, 7:00 16 %, 8:00 38 %, 9:00 79 %, 10:00 100 %, 11:00 100 %, 12:00 100 %, 13:00 100 %, 14:00 100 %, 15:00 100 %, 16:00 100 %, 17:00 96 %, 18:00 75 %, 19:00 52 %, 20:00 33 %, 21:00 18 %, 22:00 10 %, 23:00 10 %.

Hourly simulation (kWh)
HourSolarLoadTo batteryFrom batteryImportExportCharge %
00:0000.3000.3010
01:0000.25000.25010
02:0000.25000.25010
03:0000.25000.25010
04:0000.25000.25010
05:000.10.3000.2010
06:000.40.5000.1010
07:0010.70.300015.69
08:001.80.61.200038.46
09:002.60.452.1500079.25
10:003.20.41.093001.707100
11:003.50.40003.1100
12:003.60.50003.1100
13:003.40.40003100
14:002.90.40002.5100
15:002.20.450001.75100
16:001.40.60000.8100
17:000.70.900.20095.78
18:000.21.2010074.7
19:0001.101.10051.51
20:0000.900.90032.54
21:0000.700.70017.78
22:0000.500.3690.131010
23:0000.35000.35010

How the hourly battery charging simulator calculation works

Daily totals hide the timing that decides whether a battery is useful. This simulator steps through the day one hour at a time: solar first covers the home, any surplus charges the battery, the rest is exported. When consumption exceeds solar, the battery discharges until it reaches its reserve, and the grid supplies the remainder.

Charge and discharge losses are applied separately (the round-trip efficiency is split equally), and the battery power rating and an optional inverter limit cap how fast energy can move. In “repeating day” mode the same day is run until the battery’s start-of-day charge stops changing, so the result does not depend on a lucky full battery at midnight.

Formula

pv→load = min(PV, load)
charge = min(surplus, P_max·Δt, (E_max − E)/η_c)
discharge = min(deficit, P_max·Δt, (E − E_min)·η_d)
E_next = E + charge·η_c − discharge/η_d
import = deficit − discharge; export = surplus − charge
E
stored energy (kWh)
η_c, η_d
charge and discharge efficiency (√ round-trip)

Worked example

  1. Example sunny day: 27 kWh of solar, 12.6 kWh of consumption, a 5 kWh / 2.5 kW battery with 90 % round-trip efficiency.
  2. As a repeating day the battery cycles once, delivering 4.27 kWh in the evening; the home still imports 2.08 kWh overnight.
  3. Self-sufficiency is 83.5 % and 40.9 % of the solar is used on site; 15.96 kWh is exported.

Assumptions and limitations

Assumptions

Limitations

Frequently asked questions

Where can I get hourly solar data?

From your inverter app, a PVGIS hourly export, or a smart-meter export for consumption.

Why does the battery not reach 100 % self-sufficiency?

Either it is too small to cover the whole evening and night, or its power rating limits discharge during peaks.

Related calculators

References and data sources

Last reviewed: · Formula version 1.0.0 · Methodology