Garden Bed Sunlight Mapper
One bed bakes in sun all day while the one ten feet away sits in shade by 3 p.m. — and the difference is usually a fence, a house wall, or a tree you stopped noticing. Enter each bed's orientation, the obstructions around it, and your latitude, and get an estimate of direct sun hours per bed, plus which crops actually fit each one.
Lower 48 US is roughly 25°–49°. Search "latitude of [your town]" if you don't know it.
Sun angle and day length change through the season — check the one that matches when your crops will be growing.
| Bed | Direct sun | Sun class | Best crops for this bed |
|---|
Estimates assume a clear day. Clouds, leafed-out trees, and reflected light aren't modelled — on a sunny day, watch each bed once an hour and compare with the estimate.
How the math works
Three numbers drive the estimate. First, day length comes from your latitude and the season's solar declination: day length = 2 × arccos(−tan latitude × tan declination) ÷ 15. At 40° latitude in mid-May that's about 14.2 hours of daylight, and the sun peaks at 90° − |latitude − declination| ≈ 68.8° above the horizon at noon.
Second, each obstruction casts a shadow the tool converts into lost sun. A fence or wall of height h at distance d blocks the sun whenever its altitude is below arctan(h ÷ d). Because the sun's altitude roughly follows a sine curve from sunrise to sunset, the hours lost at each end of the day are (day length ÷ π) × arcsin(sin(block angle) ÷ sin(noon altitude)). A south obstruction steals from both ends of the day; east steals the morning, west steals the afternoon, and southeast/southwest count at 75% since they only clip part of one end.
Third, a small orientation adjustment: a bed whose long axis runs north–south loses 0.2 hours (tall plants shade each other along the row at low sun angles), diagonal beds lose 0.1, and east–west beds lose nothing. Direct sun = day length − lost hours − orientation adjustment, clamped between 0 and the full day length.
Sun classes follow the standard garden definitions: full sun is 6+ hours of direct sun, partial sun 4–6, partial shade 2–4, and deep shade under 2. Our guide to how much sun a vegetable garden needs explains why those cut-offs matter.
Next steps after you have your map
- Full-sun beds: plant your heat lovers there — see how to grow tomatoes and how to grow peppers for beginners.
- Partial-shade beds: leafy greens are the winners — how to grow lettuce for beginners covers the easiest one.
- Deep-shade beds: try shade-tolerant herbs in pots you can move — the easiest herbs to grow for beginners lists the forgiving ones.
- Once you know what goes where, lay out the planting with the Square-Foot Planting Planner and figure out the soil with the Raised Bed Soil Calculator.
More tools: Try the Seed-Starting Date Calculator and the Crop Rotation Planner.