Garden sunlight calculator

Is your garden spot full sun, part shade or shade? Add the fences, walls, hedges, trees and buildings around it and see how many hours of direct sun it gets in every month, when during the day, and in 3D.

Full sun

Six or more hours of direct sun: good for vegetables, most flowers, herbs and fruit.

Growing season April – SeptemberApr – Sep
Average direct sun 11 h 12 min
November 14 24 min 6:44 AM–7:00 AM, 11:36 AM–11:44 AM Plus 12 min of filtered sun through bare trees
  • Move the garden. Drag your spot onto your garden, or tap the map. Zoom in to see your plot.
  • Turn the garden. Drag the round arrow to turn all the obstacles around your spot together, so they line up with the real ones.
  • Add an obstacle. Press Add under Things that cast shade to add a wall, fence, hedge, tree or building. It appears in a free direction; set its distance, height and width in the list, or switch to 3D and drag it into place.

Tap or click the map to move the spot. On a phone, move and zoom with two fingers; with a mouse, drag and scroll.

Trees in leaf count as solid. Deciduous trees count as bare from November to March (May to September in the southern hemisphere), evergreens never; sun through bare branches shows as filtered sun, not as direct sun. This fixed window fits mid-latitudes best: in warm climates trees leaf out earlier, far north later. In the tropics, trees count as in leaf all year, although some shed their leaves in the dry season.

9:24 PM

Things that cast shade

Raised bed The sun hours are worked out for the middle of the bed.

Direct sun by month

0.0 Jan
7.1 Feb
8.4 Mar
9.7 Apr
12.0 May
13.4 Jun
12.7 Jul
10.7 Aug
8.7 Sep
8.3 Oct
0.3 Nov
0.0 Dec

Hours of direct sunlight on the 15th of each month.

Hatched: filtered sun through the bare branches of deciduous trees, not counted as direct sun.

When the sun reaches it

When the sun reaches itJanFebMarAprMayJunJulAugSepOctNovDec12a3a6a9a12p3p6p9p12a

Each cell is one hour on the 15th of the month. Darker cells get more minutes of direct sun.

Hatched: filtered sun through the bare branches of deciduous trees, not counted as direct sun.

Calculated with Astronomy Engine, an open-source library verified against the US Naval Observatory and NASA JPL. How we calculate

How to use this tool

  1. Set the place and the bed. The spot is at the centre of the 3D view. Set the width and length of your bed; the hours are worked out for its middle.
  2. Add obstacles. Press Add under Things that cast shade (or the plus button in the 3D view) for each new one. For each fence, wall, hedge, tree or building, choose the type, the direction from your spot, the distance, the height and the width (for a tree, whether it is deciduous or evergreen; for anything else, the angle if it doesn’t face your spot). Three example obstacles are already there; change or remove them. On the map, drag your spot onto your garden and turn the round arrow until the obstacles line up with the real ones.
  3. Read the verdict. The result card tells you whether the spot counts as full sun, part sun / part shade or shade, based on the average hours of direct sun in the growing season. Its tiles show the growing season, that average and the hours of direct sun on the selected day.
  4. Look closer. The bar chart shows the hours for each month (the grey bars show what the spot would get without obstacles), the heatmap shows the sunny hours of the day, and the 3D view shows the shadows moving. In 3D, tap a label such as Tree to drag it across the lawn, turn it, change its height and width with the handles or type its values. The plus button adds a wall, fence, hedge, tree or building, and Your garden spot changes the size of the bed.

How obstacles are calculated

Each obstacle raises the horizon in its direction. From your spot, an obstacle blocks the sun when the sun is lower than the angle to its top edge: arctan(height ÷ distance). A 2 m fence 3 m away blocks the sun up to about 34° in its direction; the same fence 8 m away only up to about 14°. The distance is measured along the line of sight, so a long obstacle blocks less towards its ends, and one turned at an angle blocks more at its nearer end.

This is why the direction of obstacles matters so much. At mid-northern latitudes the sun is in the south at midday, so obstacles to the south cast the longest shade. Obstacles to the north hardly matter. East and west obstacles cut off morning or evening sun, especially in summer.

What grows where

  • Full sun (6+ hours): vegetables such as tomatoes, peppers and squash, most herbs, roses, lavender, fruit trees.
  • Part sun / part shade (3 to 6 hours): salad greens, spinach, peas, many perennials, hydrangeas.
  • Shade (under 3 hours): ferns, hostas, astilbes and woodland plants.

For more on the classifications and how to measure a garden, see full sun, part shade, shade. For the length of a single shadow, use the shadow length calculator.

Last updated November 3, 2026

Frequently asked questions

What does full sun mean in hours?

Full sun usually means at least six hours of direct sun per day in the growing season. Part sun or part shade is about three to six hours, and shade less than three.

How do I measure the distance and height of an obstacle?

Pace out or measure the distance from your spot to the obstacle, and estimate its height (a storey of a house is about 3 m, a typical garden fence 1.8 m). Width is how long it is from end to end. An obstacle that does not face your spot squarely, such as a fence running at a slant, can be given an angle: 0° faces the spot, a positive angle turns it clockwise as seen from above.

Are trees handled correctly?

Mark each tree as deciduous (the default) or evergreen. A tree in leaf is treated as a solid block, so the result is a little on the shady side: real leaves let some light through. Deciduous trees count as bare from November to March (May to September in the southern hemisphere). Sun through their bare branches is shown hatched as filtered sun and is not counted as direct sun, because branches still take part of it: in a USDA Forest Service study (Heisler, 1986), a leafless sugar maple still cut the sunlight in its shade by nearly 40 percent, against about 80 percent in leaf. The fixed window fits mid-latitudes best: in warm climates trees leaf out earlier, and far north later, and the dates also vary with the species and the weather. In the tropics, trees count as in leaf all year, although in dry-season climates some shed their leaves for weeks or months.

Which months does the classification use?

The average of April to September in the Northern Hemisphere, and October to March in the Southern Hemisphere, which is roughly the growing season.