How many hours of sun does my garden get?
Day length and hours of direct sun for any date, with obstacles blocking the low sun.
How the calculator works
The sun's position is worked out with the equations behind NOAA's solar calculator, from latitude, longitude and date. The tool steps through the day two minutes at a time and adds up the minutes when the sun is higher than the angle you set for the horizon. With the horizon at 0° that is the full day length; raising it removes the low morning and evening sun that trees and buildings block.
Worked example
In Boise, Idaho (latitude 43.6°), June 21 has 15 h 26 min of daylight and the sun climbs to 70° at midday. If trees and houses hide everything below 20°, the garden gets 11.2 hours of direct sun; with obstacles up to 30°, 9.3 hours.
| Date (Boise) | Day length | Highest sun | Sun above 20° | Sun above 30° |
|---|---|---|---|---|
| March 20 | 12 h 9 min | 46° | 8.3 h | 6.2 h |
| June 21 | 15 h 26 min | 70° | 11.2 h | 9.3 h |
| September 22 | 12 h 11 min | 46° | 8.3 h | 6.2 h |
| December 21 | 8 h 56 min | 23° | 2.9 h | 0 h |
In winter the sun never gets far above the obstacles, so a spot with plenty of summer sun can get very little.
How to estimate your horizon angle
Measure how far the obstacle is from your bed and how much taller it is than the bed. The angle is the inverse tangent of height ÷ distance. A fence 6 ft above the bed and 10 ft away blocks the sun up to about 31°; a 40 ft tree 70 ft away blocks up to about 30°.
Limits
- One horizon angle is used all the way round. A tall tree to the south matters far more than one to the north, so treat the result as an estimate.
- Clouds aren't counted; the result is the time the sun could shine on the spot.
- Leaves on deciduous trees block more in summer than in winter.
Questions
Short answers from the numbers on this page.
What does "horizon blocked up to" mean?
Trees, fences and houses hide the sun when it is low. If they block everything below 20° above the horizon, set 20 and the tool counts only the hours the sun is higher than that.
How accurate is it?
Sun positions use the NOAA solar calculator equations and are accurate to about a minute. The horizon is simplified to one angle all the way round, so treat the hours as an estimate for an open garden with obstacles on several sides.