3D Visualizer

3D Sun Path & Shadow Simulator

See where the sun is at any hour, where your house casts its shadows, and which roof face gets the most sun for solar panels

Quick Answer:In New York on June 21 the sun rises at 5:25 am and sets at 8:31 pm (15 h 6 min of daylight) and climbs to 72.7° at solar noon. On December 21 it is up only 9 h 15 min (7:17 am to 4:32 pm) and peaks at 25.9°, so at midday a shadow is about twice as long as the object casting it. In the northern hemisphere a south-facing roof collects the most sun.

Time --

Sun --

Today's path

June solstice

December solstice

12:00 PM

Place and date

House and surroundings

Pitch 4/12 ≈ 18°, 6/12 ≈ 27°, 8/12 ≈ 34°, 12/12 = 45°. Use 0 for a flat roof.

Tree

Distance and direction from the middle of the house. Height 0 removes the tree.

Neighbouring building

A 33 × 26 ft (10 × 8 m) block. Height 0 removes it.

Daylight on --

--

Sunrise -- · Sunset -- · Solar noon --

Highest sun today

--

Sun at --

--

--

Shadow length at --

--

Hours of direct sun on --

Counts only time the sun shines on the surface without the house, tree or neighbouring building in the way.

SurfaceFacesDirect sun

Best roof face for solar panels (whole year)

Clear-sky direct sunlight reaching each roof face over a year, including shading. Clouds and diffuse light are not included, so use it to compare faces, not to size a system.

Roof faceAvg sun h/daykWh/m²/yrvs. ideal

Calculating…

Turn this into kWh and savings with the solar panel calculator.

Tips for reading the shadows

  • Check both solstices. June shows the longest days and highest sun; December shows the lowest sun and the longest shadows, which is when trees and neighbours shade a roof or garden the most.
  • Gardens: most vegetables want at least 6 hours of direct sun; "partial shade" plants manage with 3–6.
  • Solar panels: in the northern hemisphere a south-facing roof collects the most; east and west faces usually reach 80–90% of that. Shade from a single tree in winter can cost more than a less ideal direction.

How the 3D Sun Path & Shadow Simulator works

For each moment of the chosen day the simulator computes the sun's position with the NOAA solar position algorithm (based on Jean Meeus, Astronomical Algorithms): its declination and the equation of time give the hour angle at your longitude, and from that the elevation above the horizon and the compass azimuth, corrected for atmospheric refraction. Sunrise and sunset are the moments the sun's centre is 0.833° below the horizon, which allows for refraction and the sun's radius, the same convention almanacs use.

Shadows are traced, not estimated: every five minutes the tool sends a ray from several points on each roof face and in the yard toward the sun, and counts the time only if the ray is not blocked by the house, the tree or the neighbouring building and the sun is in front of the surface. The yearly comparison repeats this on the 21st of each month and weights each moment by clear-sky direct sunlight (the Meinel model with the Kasten–Young air mass), so roof faces can be compared on equal terms.

sin(elevation) = sin(latitude) × sin(declination) + cos(latitude) × cos(declination) × cos(hour angle)

Hour angle = (true solar time ÷ 4) − 180°, true solar time = UTC minutes + equation of time + 4 × longitude

Shadow length = object height ÷ tan(elevation)

Worked example

New York (40.71° N) on December 21, an 18 ft (two-storey) wall.

  1. The sun's declination is −23.44°, so at solar noon (11:54 am) its elevation is about 90° − 40.71° − 23.44° = 25.9°.
  2. tan 25.9° = 0.485, so a shadow is 1 ÷ 0.485 = 2.06 times the height of the object casting it.
  3. 18 ft × 2.06 = 37.1 ft of shadow pointing due north, at the highest the sun gets that day.

Result: At midday on the shortest day the house shades about 37 ft of ground behind it; on June 21 (sun at 72.7°) the same wall casts only 5.6 ft.

Noon sun height and daylight by latitude (northern hemisphere)

Noon sun height and daylight by latitude (northern hemisphere)
LatitudeJune 21March 20December 21
20° N86.6° · 13 h 21 min70.0° · 12 h 07 min46.6° · 10 h 55 min
25° N88.4° · 13 h 42 min65.0° · 12 h 07 min41.6° · 10 h 35 min
30° N83.4° · 14 h 05 min60.0° · 12 h 07 min36.6° · 10 h 13 min
35° N78.4° · 14 h 31 min55.0° · 12 h 08 min31.6° · 9 h 48 min
40° N73.4° · 15 h 01 min50.0° · 12 h 08 min26.6° · 9 h 20 min
45° N68.4° · 15 h 37 min45.0° · 12 h 09 min21.6° · 8 h 46 min
50° N63.4° · 16 h 22 min40.0° · 12 h 10 min16.6° · 8 h 04 min
55° N58.4° · 17 h 23 min35.0° · 12 h 11 min11.6° · 7 h 10 min
60° N53.5° · 18 h 52 min30.0° · 12 h 13 min6.7° · 5 h 52 min

Sun elevation at solar noon · hours of daylight, computed with the same NOAA algorithm as the simulator. For the southern hemisphere swap the June and December columns. Miami is about 26° N, New York 41°, London 51.5°, Oslo 60°.

Shadow length by sun elevation

Shadow length by sun elevation
Sun elevationShadow ÷ height6 ft fence30 ft tree
5°11.4368.6 ft343 ft
10°5.6734.0 ft170 ft
15°3.7322.4 ft112 ft
20°2.7516.5 ft82 ft
25°2.1412.9 ft64 ft
30°1.7310.4 ft52 ft
40°1.197.2 ft36 ft
45°1.006.0 ft30 ft
50°0.845.0 ft25 ft
60°0.583.5 ft17 ft
70°0.362.2 ft11 ft
80°0.181.1 ft5 ft

Assumptions and limits

  • Sun hours count direct sunlight only. Clouds, haze and diffuse skylight are not modelled, so a cloudy climate gets less than the clear-sky figures.
  • The house is a simple box with a gable or flat roof, and terrain, hills and other buildings beyond the one you add are ignored.
  • Positions are accurate to about 0.01° and rise and set times to about a minute for dates between 1800 and 2100.

Sources

Last reviewed November 8, 2026 · How we build and check our calculators

Frequently Asked Questions About Sun Path and Shadows

What is a sun path diagram?

A sun path diagram shows where the sun is in the sky through the day at a given place: its compass direction (azimuth) and height above the horizon (elevation). Paths for the June and December solstices mark the highest and lowest the sun gets during the year; every other day falls between them. This simulator draws all three in 3D around your house.

Which direction gets the most sun?

In the northern hemisphere, south-facing roofs and gardens get the most direct sun, followed by west and east; north-facing slopes get the least, especially in winter. In the southern hemisphere it is the reverse: north faces get the most. East-facing surfaces get morning sun and west-facing ones afternoon sun.

How do I calculate the length of a shadow?

Shadow length = object height ÷ tan(sun elevation). With the sun 30° high, a 6 ft fence casts a 6 ÷ tan 30° = 10.4 ft shadow; at 45° the shadow equals the height, and below about 10° shadows become more than five times longer than the object. The shadow points directly away from the sun.

Browse all 39 3d visualizers & ai tools calculators →

Copied!