Skip to content
Documentation sections

Solar Panel Sizing Calculator

POSThttps://rftools.io/api/py/v1/calculate

Slug solar-panel-sizing. Calculate solar panel wattage, battery capacity, and charge controller current for off-grid photovoltaic systems based on load and sun hours

Inputs

Send every one of these in inputs, in the units shown. Most are required: a call without one is refused (400) and costs nothing; one the calculator can do without takes the default shown. An input outside its range is still computed and flagged in the provenance.

Inputs of solar-panel-sizing
NameUnitRangeDefaultDescription
loadPowernumberWat least 0.1100Continuous power consumption of the load
loadHoursnumberh0.1 … 2424Hours a day the load runs. 24 = always on.
peakSunHoursnumberhrat least 0.15Average peak sun hours per day for your location
systemVoltagenumberVat least 112System Voltage
batteryCapacitynumberAhat least 1100The battery you have or plan to fit: compared with the required capacity as the days it lasts at 50% depth of discharge
daysAutonomynumbernone1 … 303Number of cloudy days the system must operate without sun
numLoadsnumbernone0 … 90Loads beside the base load, each with its own power and hours a day (0–9)
load1PowernumberW0 … 1000050Power additional load 1 draws while it runs
load1Hoursnumberh0 … 244Hours a day additional load 1 runs
load2PowernumberW0 … 1000050Power additional load 2 draws while it runs
load2Hoursnumberh0 … 244Hours a day additional load 2 runs
load3PowernumberW0 … 1000050Power additional load 3 draws while it runs
load3Hoursnumberh0 … 244Hours a day additional load 3 runs
load4PowernumberW0 … 1000050Power additional load 4 draws while it runs
load4Hoursnumberh0 … 244Hours a day additional load 4 runs
load5PowernumberW0 … 1000050Power additional load 5 draws while it runs
load5Hoursnumberh0 … 244Hours a day additional load 5 runs
load6PowernumberW0 … 1000050Power additional load 6 draws while it runs
load6Hoursnumberh0 … 244Hours a day additional load 6 runs
load7PowernumberW0 … 1000050Power additional load 7 draws while it runs
load7Hoursnumberh0 … 244Hours a day additional load 7 runs
load8PowernumberW0 … 1000050Power additional load 8 draws while it runs
load8Hoursnumberh0 … 244Hours a day additional load 8 runs
load9PowernumberW0 … 1000050Power additional load 9 draws while it runs
load9Hoursnumberh0 … 244Hours a day additional load 9 runs

Outputs

Returned in values, by key. A value that is unbounded or undefined is null.

Outputs of solar-panel-sizing
FieldUnitDescription
energyPerDayWhEnergy Per Day
panelWattageheadlineWRequired Panel Wattage
panelCurrentAPanel Current
batteryAhAhRequired Battery Capacity
chargeControllerAmpsACharge Controller Current
batteryAutonomyDaysdaysDays the entered battery carries the load at 50% depth of discharge; reaching the days of autonomy needs the required capacity

Calling it

  • Calculate: one call, the request and response in full, and its errors.
  • Batch: this calculator with others, or a sweep, in one request.
  • Solve for a target: the value of one input that brings an output to a target.