Garden Sunlight & Fence Shadow Calculator

Estimate how many hours of direct sun a garden bed gets behind south, east, and west fences or walls.

Inputs

US displays feet and 12-hour times. Metric displays meters and 24-hour times.

North is positive.
East is positive.
Use the offset on this date, including daylight saving.

Fence cross-section and direct-sun sweep

Fence section and bed sunlight timelineThe section shows the wall with the highest height-to-distance ratio. The timeline includes all walls: south 6 ft high at 8 ft, east 6 ft high at 10 ft, west 0 ft high at 10 ft. SOUTH WALL 6 ft2026-06-21 BED 8 ftSUNLIGHT AT BED12 AM6 AM12 PM6 PM12 AM
Direct sun with walls
11.98 h
Exposure
Full sun
Sun with open horizons
14.82 h
Sun lost to walls
2.84 h
Morning shade clears
8:28 AM
Afternoon sun ends
8:26 PM

Full sun means at least 6 hours. Part shade means 3 to under 6 hours. Your plant’s light requirements may vary.

Direct-sun windows
Yard modelLocal time intervals
Without walls5:37 AM – 8:26 PM
With walls8:28 AM – 8:26 PM

Follow the beam past each wall

The model checks whether a ray from the bed toward the Sun clears the southern, eastern, and western walls. Obstruction height and perpendicular distance are measured from the bed’s receiving point. Zero wall height removes that side.

Walls are treated as opaque and continuous along their own direction. Direct sunlight can arrive in multiple windows. The result describes geometric direct-beam hours, with no allowance for trees, skylight, weather, or surrounding buildings.

Common questions

Where do I measure a fence from for a raised bed?

Measure its height above the plant or soil level you want to evaluate. Measure the horizontal distance from that same point straight toward the fence.

Will moving the garden two feet away from a fence help?

Increasing the perpendicular distance lowers the wall’s apparent height. It often lengthens a direct-sun window when that wall is the main obstruction.

Why does a nearby west wall usually affect late-day sun?

The beam approaches from the west in the afternoon. In the morning the Sun usually lies on the other side of that wall’s direction.