# Solar Panel Calculator (Array and Battery Size)

URL: https://hifreetools.com/science/solar-panel-calculator

> Enter how many kWh you use per day, your site's peak sun hours and the panel wattage. The calculator gives the array size in kWp and the number of panels; switch to Off-grid to size the battery bank in Ah from days of autonomy, depth of discharge and efficiency.

## Quick answer

Array size (kWp) = daily kWh ÷ (peak sun hours × derate). For 10 kWh a day at 4.5 peak sun hours and a 77 % derate that is 2.89 kWp, or 8 panels of 400 W (3.2 kWp). An off-grid battery is daily Wh × days ÷ (battery V × depth of discharge × efficiency): 5 kWh a day for 2 days on 24 V at 50 % DoD and 85 % efficiency needs 980 Ah.

## Formula

- Array size (kWp) = daily energy (kWh) ÷ (peak sun hours × derate)
- Panels = array W ÷ panel W, rounded up
- Battery (Ah) = daily Wh × days of autonomy ÷ (battery V × depth of discharge × efficiency)

## Inputs

- Daily energy use (kWh/day) (0 to 100000); default 10
- Peak sun hours (h/day, your site) (0 to 12); default 4.5
- System derate (%, default 77) (0 to 100); default 77
- Panel rating (W) (0 to 2000); default 400
- Days of autonomy (0 to 30); default 3
- Battery bank voltage (V) (0 to 1500); default 48
- Allowed depth of discharge (%) (0 to 100); default 80
- Battery + inverter efficiency (%) (0 to 100); default 85

## Worked examples (computed by the page's own function)

- Daily energy use (kWh/day) = 10, Peak sun hours (h/day, your site) = 4.5, System derate (%, default 77) = 77, Panel rating (W) = 400 → Array size needed (kWp) = 2.89, Number of panels = 8, Installed array with whole panels (kWp) = 3.2, Expected output of that array (kWh/day) = 11.09  (10 kWh ÷ (4.5 h × 77%) = 2.886 kWp → 8 × 400 W)
- Daily energy use (kWh/day) = 30, Peak sun hours (h/day, your site) = 4.5, System derate (%, default 77) = 80, Panel rating (W) = 400 → Array size needed (kWp) = 8.33, Number of panels = 21, Installed array with whole panels (kWp) = 8.4, Expected output of that array (kWh/day) = 30.24  (30 kWh ÷ (4.5 h × 80%) = 8.33333 kWp → 21 × 400 W)
- Daily energy use (kWh/day) = 5, Peak sun hours (h/day, your site) = 4, System derate (%, default 77) = 77, Panel rating (W) = 300, Days of autonomy = 2, Battery bank voltage (V) = 24, Allowed depth of discharge (%) = 50, Battery + inverter efficiency (%) = 85 → Array size needed (kWp) = 1.62, Battery capacity needed (Ah) = 980, Number of panels = 6, Installed array with whole panels (kWp) = 1.8  (5000 Wh × 2 d ÷ (24 V × 50% × 85%) = 980.392 Ah)
- Daily energy use (kWh/day) = 10, Peak sun hours (h/day, your site) = 4.5, System derate (%, default 77) = 77, Panel rating (W) = 400, Days of autonomy = 2, Battery bank voltage (V) = 48, Allowed depth of discharge (%) = 80, Battery + inverter efficiency (%) = 90 → Array size needed (kWp) = 2.89, Battery capacity needed (Ah) = 579, Number of panels = 8, Installed array with whole panels (kWp) = 3.2  (10000 Wh × 2 d ÷ (48 V × 80% × 90%) = 578.704 Ah)

## Verification

Checked against 18 reference cases (expected values computed independently). Reviewed 2026-10-30. Latest change 2026-10-30: New tool: PV array size and panel count from daily kWh, peak sun hours and derate, plus off-grid battery Ah from days of autonomy, depth of discharge and efficiency. No location data built in.

## FAQ

**How many solar panels do I need?**
Divide your daily kWh by peak sun hours × derate to get the array kWp, then divide by the panel rating and round up. A home using 10 kWh a day with 4.5 peak sun hours and a 77 % derate needs 2.89 kWp, which is 8 panels of 400 W. Your daily kWh is your bill's monthly kWh divided by about 30.

**What are peak sun hours and where do I find mine?**
Peak sun hours are the day's solar energy on the panel surface expressed as hours of full 1,000 W/m² sun, so 4.5 kWh/m²/day is 4.5 peak sun hours. They depend on location, season, tilt and orientation. Free tools such as NREL's PVWatts and the European Commission's PVGIS give monthly values for any address.

**What derate or system loss should I use?**
PVWatts V5 uses 14 % default system losses plus a 96 % inverter, about 0.825 overall before temperature effects; PVWatts V1 used an overall derate of 0.77. Values of 75–85 % are typical for the simple sun-hours method. Use the lower end for hot climates, partial shading or long cable runs.

**How do I size a battery for an off-grid system?**
Multiply daily watt-hours by the days of autonomy, then divide by battery voltage × allowed depth of discharge × efficiency. For 5 kWh a day, 2 days, 24 V, 50 % DoD and 85 % efficiency: 10,000 ÷ 10.2 = 980 Ah. Use the depth of discharge and efficiency from your battery's datasheet.

**How many days of autonomy do I need?**
It depends on how critical the load is, the climate and whether you have a generator. SunWize's summary of IEEE 1562 cites 5–7 days for non-critical loads in sunny areas and 7–14 days for critical loads or low-sun areas; systems with a backup generator often use fewer days.

**Why is the installed array bigger than the calculated size?**
Panels come in whole units, so the count is rounded up. With 400 W panels, a 2.89 kWp requirement becomes 8 panels = 3.2 kWp, and the tool shows what that larger array produces per day.

**Can I install solar panels and batteries myself?**
In most countries PV and battery systems must meet the local electrical code, need a permit and grid-tied systems need utility approval. DC circuits from panels and batteries can carry high fault currents and arc. Use this tool for planning and have a licensed installer design and connect the system.


## Sources

- [NREL — PVWatts Version 5 Manual (Dobos, NREL/TP-6A20-62641, 2014): 14 % default system losses, 96 % inverter efficiency, V1 derate 0.77](https://www.osti.gov/biblio/1158421)
- [PVWatts Calculator — location-specific solar resource and production estimates](https://pvwatts.nlr.gov/)
- [European Commission JRC — PVGIS, photovoltaic geographical information system](https://re.jrc.ec.europa.eu/pvg_tools/en/)
- [Sandia National Laboratories — Stand-Alone Photovoltaic Systems: A Handbook of Recommended Design Practices (SAND87-7023)](https://www.osti.gov/biblio/6959528)
- [IEEE 1562 — Guide for Array and Battery Sizing in Stand-Alone Photovoltaic (PV) Systems](https://ses.jrc.ec.europa.eu/eirie/en/standard-regulations/ieee-guide-array-and-battery-sizing-stand-alone-photovoltaic-pv-systems)

Runs in the browser; nothing is uploaded. Cite as: HIFreeTools, "Solar Panel Calculator (Array and Battery Size)", https://hifreetools.com/science/solar-panel-calculator
