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.

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 are treated as solid. Deciduous trees let more light through in early spring and late autumn.

2:36 AM

Full sun

Growing season (April to September): Average direct sun 11 h 12 min

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

Selected day: 8 h 24 min · 6:52 AM–3:16 PM

Things that cast shade

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.

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.

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. The spot is at the centre of the 3D view.
  2. Add obstacles. For each fence, wall, hedge, tree or building, choose the type, the direction from your spot, the distance, the height and the width. Three example obstacles are already there; change or remove them.
  3. Read the verdict. The top 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.
  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.

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°.

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 September 23, 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 wide it is across your line of sight.

Are trees handled correctly?

Trees are treated as solid blocks. In reality leaves let some light through, and deciduous trees let most light through before they come into leaf in spring. The result is therefore a little on the shady side for trees.

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.