Find the altitude and azimuth of the sun for any place, date and clock time, and how long a shadow it casts, with the NOAA solar equations.
01How it counts
The sun angle calculator, step by step
FormulaNOAA solar equations: declination and equation of time from the date, hour angle from the true solar time, then altitude = 90° − zenith (with refraction) and azimuth clockwise from north; shadow = height ÷ tan( altitude )
ExampleRome (41.9° N, 12.48° E), 21 June 2025, 13:12 summer time (UTC+2): the sun is due south at 71.5°, so a 10 m object casts a shadow of 10 ÷ tan 71.5° = 3.3 m.
Work it out from a real site
The shadow study draws the shadows of every building around your site, hour by hour, for the solstices, the equinoxes or a date you choose, from the sun positions of each hour.
Sun altitude 66.2°, azimuth 135.3° (south-east). An object 10 m high casts a shadow 4.4 m long.
The sun is highest at about 13:12 summer time, at 71.5° due south.
New York in December
Units
Imperial
Date
21 December 2025
Clock time
12:00
Hours from UTC
-5
Latitude
40.71°
Longitude
-74.01°
Height of an object
33 ft
Sun altitude 25.9°, azimuth 181.4° (south). An object 33 ft high casts a shadow 68 ft long.
Around the winter solstice the midday sun is at its lowest and shadows at their longest.
What the sun angle calculator does
Where the sun stands in the sky decides how deep light reaches into a room, which side of a street is in shade at lunch and how far a new building throws its shadow over the neighbours. Two angles describe it. The altitude is the height of the sun above the horizon, from 0° at sunrise and sunset to 90° straight overhead. The azimuth is its compass direction, measured clockwise from north: 90° is east, 180° south and 270° west. This calculator works both out for any place, date and clock time, and turns the altitude into the length of the shadow of an object of a height you choose.
Context model around the Pantheon in Rome: buildings drawn at their heights, estimated heights in a lighter tone
How to use it
Date and clock time. The local time on the clock at the site.
Hours from UTC. The time zone, including summer time: Rome in summer is +2, in winter +1; New York in winter is -5. Half hours are allowed.
Latitude and longitude. In decimal degrees, north and east positive, south and west negative. Rome is about 41.9 and 12.48.
Height of an object. A building, a tree or a wall, in metres or feet.
Read the result. The altitude, the azimuth with its compass direction, and the shadow length. At night the calculator says the sun is below the horizon.
Wind rose of central Rome for 2025 from NASA POWER hourly data: petals show how often the wind blew from each direction, by speed
How it counts
The calculator follows the solar calculation published by the NOAA Global Monitoring Laboratory, which is based on the equations in Jean Meeus’s book Astronomical Algorithms. In outline:
The date and time become a Julian day, a running count of days used in astronomy, and from it the number of centuries since the year 2000.
From that, the sun’s position along the ecliptic and the tilt of the Earth’s axis give the declination, the latitude at which the sun stands overhead that day: about +23.4° at the June solstice, about 0° at the equinoxes and about -23.4° at the December solstice.
The equation of time corrects for the Earth’s elliptical orbit: sundial time runs up to about a quarter of an hour ahead of or behind clock time over the year.
The clock time, the time zone, the longitude and the equation of time give the true solar time and the hour angle: how far the sun is from its highest point, 15° for every hour.
Latitude, declination and hour angle give the zenith angle; the altitude is 90° minus the zenith angle, corrected for atmospheric refraction, which lifts the sun slightly near the horizon. The azimuth follows from the same angles.
The shadow is plain trigonometry on flat ground: shadow length = height ÷ tan( altitude ). It points away from the sun, at the azimuth plus 180°.
Shadow study around the Pantheon on 21 June at 9:00, 12:00 and 15:00: buildings in black, shadows in grey
Worked example 1: Rome at midsummer
21 June 2025 at 12:00 in Rome (41.9° N, 12.48° E), summer time, UTC+2. The calculator shows Sun altitude 66.2°, azimuth 135.3° (south-east). An object 10 m high casts a shadow 4.4 m long. Noon on the clock is not noon in the sky: with summer time and Rome lying west of the 15° E meridian of its time zone, the sun is highest at about 13:12, when it stands due south at 71.5°. That value is easy to check by hand: at solar noon the altitude is 90° minus the latitude plus the declination, 90 − 41.9 + 23.4 = 71.5°.
Worked example 2: New York in December
21 December 2025 at 12:00 in New York (40.71° N, 74.01° W), UTC-5, for a building 33 ft high. Choose Imperial and the calculator shows Sun altitude 25.9°, azimuth 181.4° (south). An object 33 ft high casts a shadow 68 ft long. The winter sun is low, and a shadow twice the height of the building reaches far across a street. In Rome on the same day at noon (UTC+1) the sun stands at 24.7° and a 10 m object casts a shadow of 21.77 m.
Reading the result for design
Winter solstice at noon is the lowest midday sun of the year: the shadow then is the longest you will see at midday, which is why many daylight and overshadowing checks start there.
Summer solstice gives the highest sun and the shortest midday shadows, and the sun rises and sets furthest to the north east and north west in the northern hemisphere.
The equinoxes in March and September sit halfway between: on 20 March 2025 at 13:00 in Rome the sun stands at 47.1° and a 10 m object casts a shadow of 9.3 m.
Late afternoon shadows grow fast: at 18:00 on 21 June in Rome the sun is at 28.5° in the west and the same object casts 18.42 m.
A sun path diagram shows all of these at once for one latitude: the curves of the sun across the sky on the key dates, with the hours marked.
From one angle to a shadow study
One sun angle answers one question. A shadow study answers the design question: where the shadows of every building around a site fall, hour by hour. In Archisheet you pick the location, draw the area and choose the date and the hours; the app works out the sun position of every hour in your browser and draws the shadow of each building as a plan, for the solstices and equinoxes or any date, as PDF or PNG pages and frames for an animation. Building heights come from Overture Maps; where a height is missing it is estimated from the number of floors and marked as such. The shadow study is part of the Pro plan.
Limits
The shadow length assumes flat ground and a sharp edge. On a slope a shadow is longer downhill and shorter uphill, and trees, balconies and roof shapes change the outline. The calculator also cannot know whether a summer time rule applies on a given date where you are, so type the hours from UTC that the clock at the site uses that day.
03How it works
Step by step
01
Type the date and time
The local clock time at the site on the day you want.
02
Type the time zone
The hours from UTC on that date, with summer time included.
03
Type the place
Latitude and longitude in decimal degrees, north and east positive.
04
Type a height
The height of the building or object whose shadow you want.
05
Read the angles
The altitude, the azimuth with its direction and the shadow length.
04Avoid
Common mistakes, and what to do instead
Forgetting summer time
In summer most of Europe and North America are one hour further from UTC; the wrong offset moves the sun by 15°.
Taking clock noon as solar noon
The sun is highest when the true solar time is noon, which can be more than an hour from 12:00 on the clock.
Longitude with the wrong sign
West of Greenwich the longitude is negative; New York is -74.01, not 74.01.
Azimuth from the wrong reference
The azimuth here is clockwise from true north; some tools measure from south, and grid north on a plan may differ from true north.
Shadow on a slope
The formula assumes flat ground; on a slope the real shadow is longer or shorter.
05Questions
Questions and answers
What is the difference between solar altitude and azimuth?
The altitude is how high the sun stands above the horizon, from 0° to 90°. The azimuth is its compass direction, measured clockwise from true north: 90° east, 180° south, 270° west. Together they place the sun in the sky.
How do I calculate the length of a shadow?
Divide the height of the object by the tangent of the sun's altitude. A 10 m building with the sun at 45° casts a 10 m shadow; at 24.7° the shadow is 21.77 m. The shadow points away from the sun.
Why is the sun not highest at 12:00?
The sun is highest at solar noon, which depends on your longitude within the time zone, on summer time and on the equation of time. In Rome in summer, solar noon is around 13:12 on the clock.
How high is the sun at noon on the solstice?
At solar noon the altitude is 90° minus the latitude plus the declination. The declination is about +23.4° at the June solstice and about -23.4° at the December solstice, so in Rome (41.9° N) the noon sun stands at about 71.5° in June and 24.7° in December.
Which equations does the calculator use?
The solar calculation of the NOAA Global Monitoring Laboratory, based on Jean Meeus's Astronomical Algorithms, with its correction for atmospheric refraction near the horizon.
Can Archisheet draw the shadows of a whole site?
Yes. The shadow study generator draws the shadows of every building around the area you pick, hour by hour, for the solstices, the equinoxes or a date you choose, as PDF and PNG pages. It is part of the Pro plan.