Sun Position and Shadow Length Calculator

Pick a place, date and time and enter an object's height; the calculator shows the Sun's altitude and azimuth, how long the shadow is and which way it points, a compass drawing, solar noon, sunrise and sunset, and an hour-by-hour table for the whole day.

Läuft in Ihrem Browser. Ihre Dateien verlassen nie Ihr Gerät. So prüfen Sie es

…

So geht's

  1. 1
    Place

    Choose a city or your coordinates.

  2. 2
    Date

    Pick the day to check.

  3. 3
    Time

    Slide to the time you need.

  4. 4
    Height

    Enter the object's height and unit.

  5. 5
    Read

    See Sun angle, shadow and day table.

Über dieses Tool

The Sun Position and Shadow Length Calculator works out where the Sun is in the sky at any moment and what shadow it casts. You choose a place from the city list, type latitude, longitude and a time zone, or use your location after the browser asks. Then pick a date and slide the time from 00:00 to 23:59 in that place's local time. The Sun's position is calculated with the low-precision solar formulas used by NOAA and Meeus, with atmospheric refraction added near the horizon, and is accurate to about 0.1°. Five figures update as you move the slider: the Sun's height above the horizon, its compass direction in degrees and as a point such as SSE, the shadow length, the direction the shadow points, and the ratio of shadow to height. Enter the height of the object casting the shadow, such as a 2 m fence, a 10 m tree or a 30 ft building, and choose metres or feet as the label. The shadow length is height ÷ tan(altitude), so a Sun 45° high gives a shadow equal to the height and a Sun 15° high gives one almost four times longer. When the Sun is below the horizon, the panel says so instead. A compass drawing shows the Sun as a yellow dot in its direction and the shadow as a dark bar pointing the opposite way, and a bar chart shows the Sun's height for each hour of the day with the current hour highlighted.

The day table

Below the chart, a table lists every whole hour when the Sun is up, with its height, direction and the shadow length for your object. Download day table (CSV) saves all 24 hours, with an empty shadow cell for hours of darkness, ready for a spreadsheet. A line of text gives sunrise, solar noon with the Sun's noon height, and sunset, plus the shortest shadow of the day and whether the Sun reaches the 45° at which shadow equals height.

What the examples show

In London on 21 June 2026 with a 2 m object, the Sun at 12:00 local time is 59.5° high in the south-south-east at about 151°, and the shadow is 1.18 m long. At 15:00 it is 54.0° up and the shadow is 1.45 m. On 21 December at noon the Sun is only 15.1° high and the same object casts a shadow of 7.41 m; at 9:00 it is 5.6° up and the shadow stretches to 20.38 m. In Dhaka on the June solstice the noon Sun is 89.6° high, almost directly overhead because the city lies close to the Tropic of Cancer, and the 2 m shadow shrinks to about a centimetre.

Uses

Gardeners check which beds a fence or tree will shade, homeowners test whether an extension will darken a neighbour's window in winter, solar panel owners look at low winter angles, photographers plan the light on a building, and teachers measure shadows with a class and compare them with the table. The shortest-shadow figure is also the basis of the old method for finding true north: at solar noon the shadow points directly away from the Sun, which is due north in the northern mid-latitudes.

Reading the compass

The compass drawing is oriented with north at the top. At low Sun the shadow bar reaches the edge of the circle; as the Sun climbs, it shortens towards the centre. In the southern hemisphere the noon Sun is in the north, so midday shadows point south instead.

Your settings

The place, object height and unit are remembered in this browser; the date starts at today each visit. Coordinates from Use my location are rounded to two decimal places and stay on your device.

Limits

The tool assumes flat, level ground. Slopes, walls and nearby buildings change the real shadow, and the shadow's soft edge from the Sun's width is not modelled. The time zone is taken from the zone name you set, so check it when typing custom coordinates. Use it for planning and learning, not as surveying or legal advice on rights to light.

Rechenbeispiel

In London on 21 June 2026 at noon the Sun is 59.5° high and a 2 m object casts a 1.18 m shadow; on 21 December the same shadow is 7.41 m.

Kurzinfos

Häufig gestellte Fragen

How is shadow length calculated?

Height divided by the tangent of the Sun's altitude. At 45° the shadow equals the height; at 30° it is about 1.7 times the height.

Which way does the shadow point?

Directly away from the Sun. The tool shows the shadow direction as the Sun's azimuth plus 180°.

How accurate is the Sun's position?

About 0.1°, using the standard NOAA and Meeus formulas with refraction near the horizon.

Can I use feet?

Yes. Enter the height in feet and choose ft; the shadow comes out in the same unit.

Why is my measured shadow different?

Sloping ground, uneven surfaces and the blurred edge of the shadow all change what you measure. The tool assumes flat ground.

Can I get values for every hour?

Yes. The table lists each hour the Sun is up, and the CSV download covers all 24 hours of the date.

Völlig kostenlosKeine Kosten, keine Anmeldung
Dateien bleiben privatAlles läuft in Ihrem Browser
Einfach in Ihrer SpracheIn vielen Sprachen verfügbar