solar sizing
solar_sizingSizes an off-grid solar power system by calculating the number of panels and battery bank capacity required for a given daily energy consumption. Accounts for system losses (inverter, wiring, charge controller), battery depth-of-discharge, and autonomy days for cloudy weather. Outputs panel count, total panel wattage, battery capacity in kWh and Ah, and minimum charge controller amperage (with 25% safety margin per NEC 690.8). Supports 12V, 24V, and 48V system architectures. Use for cabin, RV, telecom tower, and remote IoT deployments.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dod | No | Battery depth of discharge (0-1), default 0.8 for LiFePO4 | |
| daily_kwh | Yes | Daily energy consumption in kilowatt-hours (kWh) | |
| panel_watts | No | Rated wattage per solar panel (W) | |
| peak_sun_hours | No | Average peak sun hours per day for your location (hours) | |
| system_voltage | No | Battery bank system voltage: 12, 24, or 48 V | |
| system_efficiency | No | Overall system efficiency (0-1), accounts for inverter, wiring, and controller losses | |
| battery_autonomy_days | No | Number of days the battery bank should sustain load without solar input |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| battery_ah | Yes | Required battery bank capacity in amp-hours at system voltage | |
| battery_kwh | Yes | Required battery bank capacity in kWh (before DoD) | |
| panels_needed | Yes | Number of solar panels required (rounded up) | |
| daily_solar_kwh | Yes | Daily solar energy needed after accounting for system losses (kWh) | |
| total_panel_watts | Yes | Total installed panel wattage (W) | |
| charge_controller_amps | Yes | Minimum charge controller current rating in amps (with 25% margin) |