YardSolver app iconYardSolver is now an app —Get it on Google Play· iPhone app coming soon
YardSolver
Know what you need. Buy exactly that.

Sun & Shadow Calculator

Step 1 · Type your numbersStep 2 · See your answerStep 3 · Print your summary

Step 1 · Where is your garden?

Latitude is the only thing the sun cares about — north is positive, south of the equator is negative (Sydney is −33.9). Not sure of yours? It is printed on any map app next to your location.

The open side of the bed — if it sits against your house, the direction it opens toward. Facing is drawn on the map below; the hours themselves come from the sun and the obstacles.

Step 2 · What stands around the bed?

Add up to three things that can shade the bed. A guess is fine — pace the distance out, and for height, a person is about 5½ ft: a fence is a bit taller than a person, a two-storey house about four people.

Obstacle 1

Obstacle 2

Obstacle 3

How to use this calculator

  1. Pick your city (or type your latitude), and the date you care about — planting day, mid-summer, whenever.
  2. Tell it which way the bed faces, and add the fence, tree or house that might shade it: roughly how tall, how far away, and in which direction. A phone compass gives the direction in seconds.
  3. Read the answer: the hours of direct sun your bed really gets, the map of its shadows, and the vegetables that suit that light.
  4. Try the Longest day and Shortest day buttons on the same bed before you commit — a bed can be full sun in June and shade all winter.

How the maths works: for your latitude and date, the calculator plots the sun's height and compass direction every 10 minutes from sunrise to sunset, using the standard NOAA solar equations — the same ones weather services use. An obstacle shades the bed when the sun is in the obstacle's direction and the shadow it throws (obstacle height ÷ tan of the sun's height) is long enough to reach the bed. Times are true solar time — solar noon is 12:00 — so your clock can read up to an hour or so different, depending on where you sit in your time zone and on daylight saving.

What are you using this for?

Tell us what you are making, and we will help you do it yourself. Type your project below — for example “a patio base” or “my tomato bed” — and we will show you the full method, step by step, using the estimate you just made.

A worked example

A standard 6 ft fence, 10 ft south of a bed in Edmonton. On June 21 the sun climbs to about 60°, the fence's midday shadow is only about 3½ ft long, and the bed keeps almost all of its roughly 17 hours of daylight. On December 21 the sun peaks at about 13°, that same fence throws a shadow about 26 ft long, and the bed gets almost no direct sun at all. Same fence — a completely different garden. Try it above: pick Edmonton, then the Longest day and Shortest day buttons.

Keep going

Planning the whole garden around light like this? The Garden Planner lays out your beds and planting dates. Deciding what fits the bed itself? The Plant Spacing Calculator. And every plant in the Plant Library states the light it wants, in plain words.

Questions people ask

How accurate is this calculator?
It is an estimate, not a survey. The sun's path is exact maths, but real shade also depends on leaves (a tree in July is a different obstacle than the same tree in January), the slope of your ground, and anything nearby you did not list. Use it to choose plants and spot problems — and if a planting decision is expensive, watch the bed for one sunny day to confirm.

What counts as full sun for vegetables?
The standard garden rule: 6 or more hours of direct sun is full sun, 3 to 6 hours is partial shade, and under 3 hours is mostly shade. Fruiting vegetables (tomatoes, peppers, squash) want the 6-plus; leafy greens and herbs are the ones that cope with less.

Does it work in the southern hemisphere?
Yes. South of the equator the sun crosses the northern sky, so a fence or house to the north is the one that steals midday sun. Pick an Australian city, or type a negative latitude (Sydney is about −33.9), and the map and the maths follow the sun there.

Does the direction my garden faces change the answer?
The sun hours depend on your latitude, the date, and what stands around the bed. Facing is drawn on the map and printed in your summary because it helps you picture the bed, but by itself it neither adds nor removes sun — what matters is what stands between the bed and the sun.