Sun & Shadow Simulator

See where the sun is and how long and in which direction shadows fall for any place, date and time – sun path, sunrise, sunset and hours of sun on a wall.

Tool

Was this tool useful?

About this tool

About Sun & Shadow Simulator

Planning solar panels, a garden, a window or a building extension? Enter the location, date, time and the height of the building or object. The simulator works out the sun’s height and direction with the NOAA solar position formulas, the length and direction of the shadow, sunrise, solar noon and sunset, daylight hours and how many hours of sun a wall facing a chosen direction gets – and draws the day’s sun path with the shadow.

How it works

Sun position: NOAA solar calculator equations (declination, equation of time, hour angle) with refraction. Shadow length = height ÷ tan(sun elevation), pointing away from the sun’s azimuth.

Example

In Lahore on 21 June at solar noon the sun is about 82° high, so a 10 m building casts a shadow of only about 1.4 m.

How to use this tool

  1. Enter latitude, longitude and time zone (defaults: Lahore).
  2. Enter the date, time and object height.
  3. Read the shadow length and sun path; try other dates (21 June, 21 December).

Frequently asked questions

Does it include daylight saving time?

No – enter the offset in use on that date (for example 1 for UK summer time, 0 in winter).

Are hills and nearby buildings included?

No. It assumes a flat, open horizon. Real sunrise can be later behind hills or buildings.

How accurate is the sun position?

Within about a minute of time and a fraction of a degree for most places and dates, using the NOAA formulas. Real shadows are also affected by hills, trees and nearby buildings.