Solar battery sizing calculator for hybrid PV optimization
The battery size for a PV plant is chosen by how much of the daytime surplus is worth carrying into the evening. The calculation simulates the same generation and load series with different battery sizes, finds how much grid import and export fall for each, and values that change at your purchase and sale prices. The best size is the point where each added kilowatt-hour stops paying back its investment, shown as the size at which NPV peaks.
Result
- Largest battery scanned
- 1,500 kWh
- at 750 kW power
- NPV of the best size
- –
- Self-consumption share (no battery)
- 76.0%
- Self-consumption share (selected size)
- 100.0%
- Self-sufficiency (selected size)
- 53.1%
- Annual grid import reduction
- 200,750 kWh/yr
- Annual export reduction
- 228,125 kWh/yr
- Annual benefit (selected size)
- –
- Simple payback (selected size)
- –
- Annual equivalent cycles (selected size)
- 168
Have an engineer review this result
This calculation is a pre-assessment. We can check your inputs and facility data against the single-line diagram and actual operating conditions.
Request a technical pre-assessment| Battery(kWh) | Power(kW) | Self-consumption | Grid import(MWh) | Export(MWh) | Annual benefit(currency) | Payback(years) | NPV(currency) |
|---|---|---|---|---|---|---|---|
| 0 | 0 | 76.0% | 1,014.7 | 228.1 | – | – | – |
| 100 | 50 | 79.4% | 985.6 | 195.1 | – | – | – |
| 200 | 100 | 82.9% | 956.5 | 162.0 | – | – | – |
| 300 | 150 | 86.4% | 927.4 | 128.9 | – | – | – |
| 400 | 200 | 89.9% | 898.3 | 95.8 | – | – | – |
| 500 | 250 | 93.4% | 869.2 | 62.8 | – | – | – |
| 600 | 300 | 96.9% | 840.1 | 29.7 | – | – | – |
| 700 | 350 | 100.0% | 814.0 | 0.0 | – | – | – |
| 800 | 400 | 100.0% | 814.0 | 0.0 | – | – | – |
| 900 | 450 | 100.0% | 814.0 | 0.0 | – | – | – |
| 1,000 | 500 | 100.0% | 814.0 | 0.0 | – | – | – |
| 1,100 | 550 | 100.0% | 814.0 | 0.0 | – | – | – |
| 1,200 | 600 | 100.0% | 814.0 | 0.0 | – | – | – |
| 1,300 | 650 | 100.0% | 814.0 | 0.0 | – | – | – |
| 1,400 | 700 | 100.0% | 814.0 | 0.0 | – | – | – |
| 1,500 (selected) | 750 | 100.0% | 814.0 | 0.0 | – | – | – |
← Scroll sideways to see the whole table →
Battery rated energy (kWh)
Hours from the start of the series
- Purchase and sale prices, unit investment and discount rate were not entered; the table shows technical results. The best size is selected by NPV once the financial values are entered.
- The battery is charged only from PV surplus and starts the period empty. Annual values are scaled from the daily average of the series; a single summer day makes the annual result look optimistic.
Results are a preliminary estimate based on the values you enter; they do not replace project calculations or field measurements.
In hybrid PV and battery optimization, both the amount and the timing of the midday surplus and the evening shortfall decide the outcome. The tool sweeps battery sizes using hourly or 15-minute generation and consumption series, and shows the results in a table and an NPV curve. If prices and investment values are not entered, only the energy flows are shown.
How is the battery size optimized for a PV system?
Battery size is optimized by simulating candidate capacities one by one and comparing the annual benefit and the investment of each. In self-consumption mode the battery does not charge from the grid; it stores only the surplus when PV generation exceeds consumption, and returns that energy to the site when generation falls below consumption. At every step the surplus or shortfall is worked out first, then the charge or discharge is set by the battery power, state of charge and efficiency limits; whatever remains goes to the grid or is drawn from it. The battery is assumed empty at the start of the period.
As the battery grows, the benefit rises at a diminishing rate. The first kilowatt-hours fill and empty almost every day; later kilowatt-hours fill only on days with a large surplus and may not be used at all in winter. Once the size reaches the point where the whole surplus can be stored, added capacity brings no benefit. Choosing a size from the surplus of a single day therefore usually ends in a battery that sits half empty for most of the year.
The annual benefit has two components. The reduction in grid import is valued at the purchase price, while the stored energy is no longer exported, so the export income is lost. The benefit therefore depends on the gap between the purchase and sale prices and on efficiency: where surplus energy earns nothing, storage is valuable, and where exports are valued close to the purchase price it is not. Net metering and netting rules set this gap directly.
When the financial fields are filled in, each size gets its investment, simple payback and an NPV calculated with a constant annual benefit over the analysis period. The size with the highest NPV is recommended, because the shortest payback usually points to the smallest battery and misses the total value. If the curve is flat around its peak, several sizes are economically close and the decision can be left to other criteria such as operating flexibility.
Formulas
F(t) = PV(t) − Load(t); F > 0: P_chg = min(F, P_bat, (E_max − E) / (√η · Δt))
- F: surplus (kW)
- P_bat = E_rated · C-rate
F < 0: P_dis = min(−F, P_bat, (E − E_min) · √η / Δt)
Self-consumption share = (E_PV − E_export) / E_PV, Self-sufficiency = (E_load − E_import) / E_load
Benefit = (ΔE_import · c_buy − ΔE_export · c_sell) · 365 / days
- Δ: reduction compared with the case without a battery (kWh)
- days: number of days covered by the series
NPV = −E_rated · c_invest + Benefit · [1 − (1 + r)^−N] / r
Assumptions and limits
The calculation rests on the assumptions below; outside these conditions the result may deviate:
- The battery is charged only from PV surplus; charging from the grid in cheap hours and peak shaving are not evaluated in this tool.
- Annual values are found by multiplying the daily average of the entered series by 365. To see seasonal differences, enter a full-year series.
- The benefit is constant every year; battery degradation, PV output loss and price changes are not included in NPV.
- Unit investment is taken as constant regardless of size; a higher cost per kWh on small systems has to be assessed separately.
- The metering and netting period is taken as equal to the step length; under monthly netting the value of storage differs.
Worked example
On the example daily profile the PV array peaks at 370 kW around midday while the site draws roughly 200 to 230 kW. Without a battery the self-consumption share is 76.0%. With placeholder values of 5 per kWh for purchase, 0.5 per kWh for export, 6,000 per kWh of battery investment and a 15% discount rate, the size with the highest NPV is 700 kWh. At that size self-consumption rises to 100.0%, annual grid import falls by 200,750 kWh, the annual benefit is 889,688 currency units and the simple payback is 4.7 years. Because this single summer day is assumed to repeat every day, the result is optimistic. Replace the placeholder prices with your own.
Produced with the example values by the calculation engine on this page.
Example inputs
- Data interval
- Hourly
- PV generation series
- 24 values
- Site load series
- 24 values
- Sweep upper limit
- 1,500 kWh
- Sweep step
- 100 kWh
- Power-to-energy ratio (C-rate)
- 0.50 kW/kWh
- Round-trip efficiency
- 88 %
- SoC lower limit
- 10 %
- SoC upper limit
- 95 %
- Grid purchase price
- 5 currency/kWh
- Export (sale) value
- 0.50 currency/kWh
- Battery investment per kWh
- 6,000 currency/kWh
- Discount rate
- 15 %
- Analysis period
- 12 years
Result
- Best battery by NPV
- 700 kWh
- at 350 kW power
- NPV of the best size
- 622,657 currency
- Self-consumption share (no battery)
- 76.0%
- Self-consumption share (selected size)
- 100.0%
- Self-sufficiency (selected size)
- 53.1%
- Annual grid import reduction
- 200,750 kWh/yr
- Annual export reduction
- 228,125 kWh/yr
- Annual benefit (selected size)
- 889,688 currency/yr
- Simple payback (selected size)
- 4.7 years
- Annual equivalent cycles (selected size)
- 360
Frequently asked questions
How many kWh of battery does a PV system need?
There is no single correct ratio; capacity depends on the distribution of the daily surplus and on how surplus energy is valued by the grid. A common mistake is to size from the surplus of the sunniest day. When a sweep is run on a full-year generation and consumption series, a knee appears where the benefit per kWh drops quickly, and the economic size is usually around that point.
What is the difference between self-consumption share and self-sufficiency?
Self-consumption share shows how much of the PV energy produced is used on site, so its denominator is generation. Self-sufficiency shows how much of consumption is met by PV and the battery, so its denominator is consumption. With a small PV plant, self-consumption can be close to one hundred percent while self-sufficiency stays low. A battery raises both, but the ratios differ.
Why does the C-rate matter, and should I choose a two-hour or four-hour battery?
The C-rate is the ratio of battery power to energy; 0.5 means a two-hour battery and 0.25 a four-hour battery. If the midday surplus is short and high, the power limit restricts charging and part of the surplus still goes to the grid. If evening consumption is long and low, a lower C-rate is enough. Changing the ratio lets you compare the two effects.
Does a battery still make sense if exports are valued highly?
If exports are valued close to the purchase price, each stored kilowatt-hour earns only the price difference, and the efficiency loss is deducted on top; a self-consumption battery then usually struggles to pay back. The picture changes where surplus energy earns little or nothing. Trying different sale values shows this sensitivity directly.
Does the battery sizing also account for peak shaving?
No, this calculation uses the battery only to shift PV surplus. The same battery's potential to reduce the demand charge is a separate income item and changes the charging schedule. To evaluate peak shaving on the same series, use the peak shaving simulation, which looks at the demand peak alone.
Related calculators
Peak shaving calculator: battery peak demand simulation
Peak shaving calculator: paste your load series, set battery power, energy and efficiency, and see the new peak demand, shaved energy and demand charge saving.
Open the calculator: Peak shaving calculator: battery peak demand simulationPV system sizing calculator
PV system sizing calculator: from annual consumption and target coverage, find installed capacity (kWp), panel count, roof or land area and inverter AC rating.
Open the calculator: PV system sizing calculatorBattery degradation calculator (battery ageing)
Battery degradation calculator: enter calendar loss, cycle loss, yearly cycles and a DoD factor to get the capacity curve, end-of-life year and warranty limit.
Open the calculator: Battery degradation calculator (battery ageing)PV-plus-storage feasibility
PV and battery power are selected together; this size sweep needs a full year of generation and consumption data, netting terms and a degradation curve, and sits at the centre of a PV-plus-storage feasibility study.
Related article: How Hourly Netting Changes Self-Consumption Strategy
Last updated: