How This Off-Grid Solar and Battery Calculator Works
Sizing an off-grid power system comes down to two questions. How much energy do you use in a day, and how much battery and solar capacity do you need to cover it? This page answers both with a short chain of arithmetic that you can follow by hand. Nothing is hidden: every step below is exactly what the calculator above runs in your browser, and the worked examples further down were produced by that same code.
What the calculator needs from you
- Daily loads. Each appliance’s power in watts and the hours per day it runs. Multiply the two and you have its daily watt-hours (Wh). For devices that cycle on and off, such as a compressor fridge, use the average hours of actual running time.
- System voltage. 12 V, 24 V or 48 V. This does not change how much energy you need. It changes how many amp-hours that energy represents and how much current the wiring and charge controller carry.
- Battery chemistry and depth of discharge (DoD). DoD is the share of the battery’s nominal capacity you plan to use. The presets are 85% for lithium iron phosphate (LiFePO4) and 50% for lead-acid types such as AGM, gel and flooded batteries.
- Days of autonomy. How many days the battery should carry the loads with no solar input, for example during a run of overcast weather.
- Inverter and conversion efficiency. The share of battery energy that arrives as usable power after conversion losses. The default is 85%.
- Peak sun hours and array derate. Peak sun hours describe how much sunshine your location receives, and the derate factor covers real-world panel losses. The defaults are 4.5 hours and 80%.
The seven calculation steps
- Raw daily load. Add up watts × hours for every appliance. Result in Wh per day.
- Adjusted daily load. Raw load ÷ inverter efficiency. At 85% efficiency, 85 Wh of useful work costs 100 Wh from the battery.
- Usable energy needed. Adjusted load × days of autonomy.
- Nominal battery storage. Usable energy ÷ depth of discharge. A battery you only want to drain by 85% must be larger than the energy you plan to take from it.
- Battery capacity in amp-hours. Nominal Wh ÷ system voltage, rounded up to the next whole amp-hour.
- Minimum solar array. Adjusted daily load ÷ (peak sun hours × derate factor), rounded up to the next whole watt.
- MPPT charge controller rating. Solar watts ÷ system voltage × 1.25, rounded up to the next whole amp. The 1.25 factor is a safety margin on the current.
To keep results sensible, the code limits some inputs: inverter efficiency is held between 50% and 100%, DoD between 10% and 100%, autonomy to at least half a day, peak sun hours to at least 1.0, derate between 40% and 100%, and system voltage to at least 12 V. Blank, negative or non-numeric entries are treated as zero or the default rather than producing an error.
What the calculator deliberately does not model
- Surge and peak loads. A microwave or pump may draw several times its running watts for a moment. The calculator sizes energy, not inverter surge rating or wire gauge.
- Seasonal variation. It uses one sun-hours figure. If you live in the system year-round, size for your worst month, not your average one.
- Temperature. Cold weather reduces usable battery capacity and, for lithium batteries, can block charging below freezing unless the battery has low-temperature protection.
- Charging losses. The array is sized from the daily load, so it does not add extra energy to refill the autonomy reserve after a cloudy spell. Add margin if you need fast recovery.
- DC loads. The efficiency step is applied to the whole load. If many of your loads run directly from 12 V, the result is conservative, meaning slightly larger than strictly necessary.
- Controller voltage. The MPPT figure divides by nominal battery voltage. Batteries charge at a higher voltage than nominal, so the real controller current is a little lower. That is another conservative choice.
Worked Examples
The examples use the same four-appliance cabin load that the calculator loads by default.
Example A: 12 V LiFePO4 cabin (calculator defaults)
Settings: 12 V, LiFePO4 at 85% DoD, one day of autonomy, 85% inverter efficiency, 4.5 peak sun hours, 80% derate.
- Raw load: 1,290 Wh per day.
- Adjusted load: 1,290 ÷ 0.85 = 1,517.6 Wh.
- Usable energy needed: 1,517.6 × 1 day = 1,517.6 Wh.
- Nominal storage: 1,517.6 ÷ 0.85 = 1,785.5 Wh.
- Battery: 1,785.5 ÷ 12 V = 149 Ah (rounded up).
- Solar: 1,517.6 ÷ (4.5 × 0.80 = 3.6) = 422 W (rounded up).
- Controller: 422 ÷ 12 × 1.25 = 44 A (rounded up).
Example B: the same loads on 24 V AGM with two days of autonomy
Changing to lead-acid at 50% DoD, 24 V and two days of backup shows how quickly battery size grows.
- Adjusted load is unchanged: 1,517.6 Wh per day.
- Usable energy needed: 1,517.6 × 2 days = 3,035.3 Wh.
- Nominal storage: 3,035.3 ÷ 0.50 = 6,070.6 Wh (6.1 kWh).
- Battery: 6,070.6 ÷ 24 V = 253 Ah.
- Solar array stays at 422 W because autonomy and DoD affect storage, not daily generation. The controller drops to 22 A at 24 V.
Compared with Example A, storage rose from 1,785.5 Wh to 6,070.6 Wh, because the usable window halved from 85% to 50% and the autonomy doubled.
Example C: the Example A system in winter
If winter gives only 2.5 peak sun hours instead of 4.5, the battery stays the same at 149 Ah, but the array must grow: 1,517.6 ÷ (2.5 × 0.80 = 2.0) = 759 W, and the controller becomes 80 A. This is why you should size for the season you will actually use the system in.
Why higher system voltage helps
For the Example A energy requirement, here is how the figures change with voltage. The stored energy is the same, but the current halves each time the voltage doubles. Lower current means thinner, cheaper cable and smaller fuses and controllers.
Frequently Asked Questions
How do you calculate battery bank capacity in Amp-Hours?
Add up daily watt-hours across all appliances, divide by inverter efficiency, multiply by the days of autonomy you want, divide by the usable depth of discharge, and finally divide by the nominal system voltage. The result in amp-hours is rounded up. Example A above walks through each step.
How many solar panel watts do I need to recharge my battery bank?
Divide your adjusted daily watt-hour consumption by your location’s average daily peak sun hours multiplied by the array derate factor. The derate, typically around 80%, accounts for heat, dust, wiring and controller losses.
What is the recommended Depth of Discharge for LiFePO4 vs AGM batteries?
This calculator uses 85% for LiFePO4 and 50% for AGM and other lead-acid batteries as planning values. Lead-acid cycle life falls steadily as discharge depth increases, so keeping to about 50% is a common practice. Many manufacturers allow LiFePO4 to be discharged deeper, but ratings vary, so confirm the figure on your battery’s datasheet and use it through the Custom option.
What are peak sun hours, and is that the same as hours of daylight?
No. One peak sun hour is one hour of sunshine at an intensity of 1,000 watts per square metre, which equals 1 kWh per square metre. A day with twelve hours of daylight may deliver only four or five peak sun hours once cloud cover and the angle of the sun are included. The National Laboratory of the Rockies (formerly the National Renewable Energy Laboratory, NREL) publishes location data you can look up through its PVWatts tool.
Why does the calculator round every result up?
Batteries, panels and controllers are sold in fixed sizes and real systems lose some energy. Rounding up avoids an undersized system. You should still choose the next standard product size above each result.
Should I choose 12 V, 24 V or 48 V?
As a rough guide, 12 V suits small vans and boats, 24 V suits larger RVs and cabins, and 48 V suits whole-home systems. Higher voltage reduces current, as the table above shows. Your inverter and charge controller must support the voltage you choose.
Does this replace an electrician or a system designer?
No. The results are planning estimates. Wire gauge, fusing, grounding, battery protection and local code requirements are outside this tool’s scope and must be handled by a qualified person. See our Terms of Use.
Is my data sent anywhere?
No. The calculation runs in your browser, and your appliance list is not sent to our servers. If you use the share button, the inputs are placed in the web address, so anyone with that link can see them. See the Privacy Policy.
Sources and Further Reading
Written by Setay Labs. Last reviewed December 4, 2026. The formulas on this page are covered by automated tests, and the worked examples are checked against the calculator’s code every time the page is changed. Spotted a mistake? Tell us.