Solar Panel and Battery 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.

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
Yearly output if sun hours are a yearly average (kWh)
4,047
10 kWh ÷ (4.5 h × 77%) = 2.886 kWp → 8 × 400 W

FreeNo sign-upPrivate — runs in your browser, nothing is uploaded

Estimate only. This is a sizing estimate from the peak-sun-hour method, not a production simulation or a system design. Solar PV and battery installations must follow your local electrical code (e.g. NEC Articles 690 and 706, or IEC 60364-7-712 and national rules), usually need a permit and utility approval, and should be designed and installed by a licensed professional.

Checked against 18 reference cases · NREL/TP-6A20-62641, PVWatts Calculator, European Commission JRC · Reviewed · How we check

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 & method

Array size and panel count

Array (kWp) = E ÷ (PSH × derate);  panels = ⌈Array W ÷ panel W⌉
  • E — energy the loads use per day, kWh/day
  • PSH — peak sun hours: daily solar energy on the panel plane in kWh/m², i.e. hours at 1 kW/m² — look it up for your site and tilt
  • derate — fraction of nameplate output that reaches the loads after soiling, shading, wiring, mismatch, temperature and inverter losses
  • kWp — array nameplate (peak) power at standard test conditions

The default derate of 77 % is the PVWatts Version 1 default DC-to-AC derate. PVWatts V5's 14 % default system losses (14.08 %) plus a 96 % inverter give 0.8592 × 0.96 = 0.825 before temperature losses (NREL/TP-6A20-62641, p. 10).

Off-grid battery bank

Battery (Ah) = E (Wh) × N ÷ (V_bat × DoD × η)
  • N — days of autonomy: days the battery must carry the load with no solar input
  • V_bat — nominal battery bank voltage, V (12, 24, 48 …)
  • DoD — maximum depth of discharge you allow, from the battery datasheet
  • η — battery round-trip and inverter efficiency for energy taken from storage

Same structure as the battery sizing in Sandia's stand-alone PV handbook (SAND87-7023) and IEEE 1562: load × storage days, divided by the usable fraction of the battery.

PVWatts V5 default system losses (NREL/TP-6A20-62641, Table 6) — compounded, not added

Loss mechanismDefault loss
Soiling2 %
Shading3 %
Snow0 %
Mismatch2 %
Wiring2 %
Connections0.5 %
Light-induced degradation1.5 %
Nameplate rating1 %
Age0 %
Availability3 %
Total (1 − ∏(1 − loss))14 % (14.08 %)

Examples

Example 1: Grid-tied home using 10 kWh a day

Input
10 kWh/day, 4.5 peak sun hours, 77 % derate, 400 W panels
Result
2.89 kWp → 8 panels = 3.2 kWp, about 11.09 kWh/day
Why
10 ÷ (4.5 × 0.77) = 2.886 kWp. 2,886 W ÷ 400 W = 7.2, rounded up to 8 panels. Eight panels (3.2 kWp) give 3.2 × 4.5 × 0.77 = 11.09 kWh on an average day, or about 4,047 kWh a year if 4.5 h is the yearly average.

Example 2: Larger home: 30 kWh a day

Input
30 kWh/day, 4.5 peak sun hours, 80 % derate, 400 W panels
Result
8.33 kWp → 21 panels = 8.4 kWp
Why
30 ÷ (4.5 × 0.80) = 8.33 kWp; 8,333 W ÷ 400 W = 20.8, so 21 panels.

Example 3: Off-grid cabin on a 24 V lead-acid bank

Input
5 kWh/day, 4 sun hours, 77 %, 300 W panels; 2 days autonomy, 24 V, 50 % DoD, 85 % efficiency
Result
980 Ah at 24 V (23.53 kWh nominal, 11.76 kWh usable); array 1.62 kWp → 6 × 300 W
Why
5,000 Wh × 2 days = 10,000 Wh. Divide by 24 V × 0.50 × 0.85 = 10.2 to get 980 Ah. The array is 5 ÷ (4 × 0.77) = 1.62 kWp, so six 300 W panels (1.8 kWp).

Example 4: 48 V lithium battery, 2 days

Input
10 kWh/day; 2 days, 48 V, 80 % DoD, 90 % efficiency
Result
579 Ah at 48 V (27.78 kWh nominal, 22.22 kWh usable)
Why
20,000 Wh ÷ (48 × 0.80 × 0.90) = 578.7 Ah. A deeper allowed discharge and higher efficiency shrink the bank compared with the lead-acid case.

When to use this tool

  • Getting a first estimate of how many panels cover your electricity use before asking installers for quotes.
  • Sizing a battery bank for an off-grid cabin, boat, RV or remote equipment.
  • Seeing how a different panel wattage, derate or number of autonomy days changes the system.

Common mistakes

  • Using daylight hours instead of peak sun hours. Morning and evening sun is far below 1 kW/m², so a long day of daylight counts as only a few peak sun hours; take the figure for your address and tilt from PVWatts or PVGIS.
  • Sizing an off-grid system with the yearly average. Off-grid arrays and batteries are sized for the worst month (lowest sun, highest load), which IEEE 1562 also recommends.
  • Leaving out losses. A 100 % derate gives the theoretical minimum array; the PVWatts figures (0.77 overall in V1, 0.825 in V5 before temperature) show how much is lost to soiling, wiring, temperature and the inverter.
  • Mixing Ah at different voltages. 980 Ah at 24 V is the same energy as 490 Ah at 48 V; compare batteries in kWh (Ah × V ÷ 1000).
  • Taking DoD from a rule of thumb rather than the battery datasheet; the allowed depth of discharge sets cycle life and varies by chemistry and maker.

Assumptions

What the result takes for granted:

  • Peak sun hours are for your site and the panel tilt and orientation; no location data is built into the tool.
  • One derate covers all losses from panel nameplate to the loads (including temperature and inverter).
  • Battery efficiency covers round-trip battery losses and the inverter for energy drawn from storage.
  • Yearly output assumes the sun hours you entered are a yearly average.

Limitations

Where this tool stops — and what to use instead:

  • Not a production simulation: PVWatts and PVGIS model hourly weather, temperature, tilt and shading and are more accurate for a given address.
  • It does not size the inverter, charge controller, cables, fuses or isolators, and does not check string voltage against inverter limits.
  • Off-grid designs often add an array margin for battery losses and a backup generator; this tool uses the array formula as given.
  • Solar and battery installations must follow your local electrical code (for example NEC Articles 690 and 706 in the US, IEC 60364-7-712 elsewhere) and usually need a permit and a licensed installer.

Frequently asked questions

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 & references

External references open in a new tab. We are independent and not affiliated with these organizations.

Disclaimer

This is a sizing estimate from the peak-sun-hour method, not a production simulation or a system design. Solar PV and battery installations must follow your local electrical code (e.g. NEC Articles 690 and 706, or IEC 60364-7-712 and national rules), usually need a permit and utility approval, and should be designed and installed by a licensed professional.

  • Free
  • No sign-up
  • Runs entirely in your browser — nothing is uploaded.
  • Formula and method shown above

Provided “as is” for general information only — results may be inaccurate, so verify before you rely on them. No warranty; use at your own risk.

Built and reviewed by HIFreeTools against the formula shown above and any authoritative references cited on this page. See our methodology and editorial standards below.

Related tools

Embed this tool on your site

Free to embed, no sign-up. Paste this code where you want the tool to appear: