Solar energy at home
Explain how to estimate the daily energy from a rooftop solar system. Include a formula, a comparison table, a Python example, and sample data.
Estimate daily energy
A solar array turns sunlight into electricity. A simple estimate uses rated panel capacity, equivalent full-sun hours, and an efficiency factor.
For a 4 kW system with five sun-hours and 80% efficiency, the estimated output is 16 kWh per day.
Compare three conditions
| Sun hours | Efficiency | Daily energy |
|---|---|---|
| 3 | 80% | 9.6 kWh |
| 5 | 80% | 16.0 kWh |
| 7 | 80% | 22.4 kWh |
Calculate it in Python
python
def daily_energy(capacity_kw, sun_hours, efficiency=0.8):
return capacity_kw * sun_hours * efficiency
print(daily_energy(4, 5)) # 16.0 kWh
The example image illustrates relative daily output. The attached CSV contains synthetic readings. Actual production varies with weather, orientation, and shading.

daily-output.csvFILE