Sun Position Calculator
Where exactly will the Sun be at 3 p.m. on July 15th — and where will the shadows fall? This calculator answers with the two numbers astronomers use for everything: solar azimuth, the Sun's compass bearing measured clockwise from true north, and solar elevation, its angle above the horizon. Together they pin the Sun to a single point in your sky for any place and any moment.
Enter an object height — a fence, a building, a tree — and the tool projects its shadow: the direction the shadow points and how long it stretches across the ground. A sky-dome diagram visualises it all at a glance, with the Sun's bearing around the horizon circle and its height shown as distance from the centre.
Solar installers use it to check roof shading, gardeners to map sun and shade through the seasons, photographers to plan the light, and architects to test daylighting. Because the math is the standard NOAA solar model, the positions are good to a fraction of a degree — the same equations behind professional solar software.
Last updated: 13 October 2026
Shadow length = height / tan(elevation). Very low sun gives very long shadows — values under 0.5° elevation are hidden as unreliable.
Overhead view: the sun's bearing around the horizon circle, distance from centre = 90° − elevation.
Formula: NOAA solar equations: azimuth measured clockwise from true north, elevation above the ideal horizon (no terrain). Times you enter are interpreted in your browser's local time zone.
How to use Sun Position Calculator
Search for a place by name or type latitude and longitude directly. The calculation needs your exact position because the Sun's path across the sky changes with latitude — the same clock time gives a completely different Sun in Oslo and in Nairobi.
Choose any date and time; it is interpreted in your browser's local time zone and converted internally. Try the solstices (June 21, December 21) and equinoxes to feel the full annual swing of the Sun's arc.
Azimuth is the compass bearing: 90° means the Sun is due east, 180° due south, 270° due west (in the northern hemisphere at midday it sits near 180°). Elevation is degrees above the horizon: 0° at rise and set, up to 90° if the Sun ever passes directly overhead at your latitude.
Type in a height — say 2 metres for a fence or 10 for a house — and the tool returns the shadow's compass direction (always exactly opposite the Sun) and its length on flat ground. Long morning shadows shrink toward noon, then stretch out again.
The diagram is an overhead view of your sky: the rim is the horizon in every compass direction, and the Sun's dot sits at its bearing, closer to the centre the higher it climbs. It is the fastest way to internalise a whole day's solar path.
Below 0.5° elevation the tool hides shadow results as unreliable — when the Sun is that low, tiny errors in position become huge errors in shadow length, and real horizons are never perfectly flat anyway.
What is Sun Position Calculator used for
Before mounting panels, check the Sun's elevation and azimuth through the year for your roof's orientation. A chimney or neighbouring building that shades the roof at winter noon can wipe out a surprising fraction of annual yield.
Vegetables want six or more hours of direct sun; shade plants want the opposite. Run the calculator for a few dates to map which beds are sunny in June versus December before you plant.
Golden-hour light happens when the Sun sits within a few degrees of the horizon. Knowing the exact azimuth of sunset on your shoot date tells you which side of a building or valley the warm light will rake across.
Architects test whether a new block will overshadow a courtyard or whether low winter sun will glare through a glass facade. The shadow-length math here is the same first-order check professionals start with.
Planning disputes often hinge on who shades whom. A quick azimuth/elevation check for the contested dates gives both sides the same objective numbers before anyone hires a surveyor.
A west-facing trail at 6 p.m. in summer means walking straight into the Sun. Checking the azimuth beforehand tells you whether to pack sunglasses, a cap — or pick the east-facing ridge instead.
Homebuyers check how much direct sun a flat, balcony or garden truly receives before committing. Running the calculator for winter and summer dates reveals whether that sunny terrace is sunny in December too — or only in the brochure photos taken in July.
How Sun Position Calculator works
Positions come from the NOAA solar calculation method, the standard low-precision solar model used across the industry. From the date it derives the Sun's declination (its celestial latitude, ±23.44° through the year) and the equation of time (the correction between clock time and solar time, up to about a quarter of an hour). Local clock time is converted to true solar time, and the hour angle — how far the Sun is from solar noon, at 15° per hour — follows directly.
Elevation then comes from the spherical law of sines: sin(elevation) = sin(latitude)·sin(declination) + cos(latitude)·cos(declination)·cos(hour angle). Azimuth is measured clockwise from true north, the compass convention, computed from the same triangle. Shadow geometry is pure trigonometry on flat ground: the shadow points at azimuth + 180°, and its length equals object height divided by tan(elevation).
Accuracy is a fraction of a degree in position — comparable to dedicated solar software. The honest limits: the model assumes a flat, unobstructed horizon, so hills, trees and buildings are invisible to it; atmospheric refraction near the horizon is only approximately handled, which is why results below 0.5° elevation are suppressed; and the time you enter is only as good as your device clock and time-zone database. The sky-dome diagram uses a polar projection: the rim is the horizon in every compass direction, and the Sun's plotted distance from the centre equals 90° minus its elevation, so the zenith maps to the centre point. This mirrors the sun-path diagrams used in architectural shading studies, making the tool's output directly comparable to professional daylighting analysis.
Related earth tools
Sun Position Calculator FAQs
What is solar azimuth?
The Sun's compass bearing, measured clockwise from true north: 0° is north, 90° east, 180° south, 270° west. At solar noon in the northern hemisphere the Sun stands due south (180°); in the southern hemisphere it stands due north (0°/360°). Azimuth tells you which direction to face; elevation tells you how high to look.
What is solar elevation (altitude)?
The Sun's angular height above the ideal horizon, in degrees: 0° when its centre is on the horizon at rise and set, 90° if it passes directly overhead. Elevation controls everything about light quality — low elevations give long shadows and warm golden light; high elevations give short shadows and harsh midday light.
How is the Sun's position actually calculated?
From three ingredients: your latitude, the Sun's declination for the date (±23.44° through the year), and the hour angle (how far the Sun is from solar noon). Spherical trigonometry combines them into elevation and azimuth — the same NOAA equations used by solar-industry software, accurate to a fraction of a degree.
What is the difference between solar noon and clock noon?
Solar noon is when the Sun crosses your meridian (its highest point); clock noon is 12:00 on your watch. They differ because of your longitude within the time zone, the equation of time (up to ~15 minutes), and daylight saving. Solar noon can fall anywhere from roughly 11:30 to 13:30 clock time.
What is the equation of time?
The difference between clock time and true solar time, caused by Earth's elliptical orbit and axial tilt. It swings between about −14 and +16 minutes through the year, which is why the earliest sunset and the latest sunrise do not fall exactly on the shortest day — a subtlety sundials have displayed for centuries.
Why does the Sun rise in different places through the year?
Sunrise happens due east only at the equinoxes. In summer the Sun's declination is northerly, so in the northern hemisphere it rises north of east and sets north of west, tracing a long high arc; in winter the whole arc shifts south and shrinks. The swing totals 2 × 23.44° of declination — very visible even to casual observers.
How are shadow direction and length computed?
Shadows point exactly away from the Sun, so shadow bearing = solar azimuth + 180°. Length is object height divided by tan(elevation): at 45° elevation the shadow equals the object's height; at 10° it stretches nearly six times as long. The math assumes flat ground and a clear horizon.
What are the golden hour and blue hour?
The golden hour is the period when the Sun is within a few degrees of the horizon — light turns warm, soft and long-shadowed, beloved by photographers. The blue hour follows after sunset (or precedes sunrise), when the Sun is roughly 4–6° below the horizon and the sky glows deep blue. Both are shortest at the equator and can last for hours near the poles in summer.
What is the analemma?
The figure-8 pattern the Sun traces if you photograph it at the same clock time every few days for a year. Its vertical extent comes from the changing declination (the seasons); its sideways wobble comes from the equation of time. It is a beautiful single image of the two cycles this calculator models.
Does the calculator account for hills or buildings?
No — it computes the Sun's position against an ideal flat horizon. A ridge to your east will delay the visible sunrise and a building can shade you long before the calculated sunset. For critical shading studies, combine these numbers with a horizon survey or 3D model of your site.
Why are results hidden when the Sun is very low?
Below about 0.5° elevation, tiny uncertainties in the Sun's position translate into enormous errors in shadow length (dividing by tan of a near-zero angle), and real horizons are never perfectly flat. Hiding the numbers there is more honest than showing wildly swinging digits.
Should I use true north or magnetic north with azimuth?
True north — the geographic North Pole — which is what this calculator uses. A magnetic compass points to magnetic north, currently in the Canadian Arctic and drifting yearly; the gap between the two (magnetic declination) exceeds 20° in some regions. Never mix compass bearings with these azimuths without correcting for your local declination.
What is the solar constant?
About 1,361 watts per square metre — the Sun's power arriving at the top of Earth's atmosphere on a surface facing it directly. It is the starting point for solar-panel yield math; what reaches the ground is less, reduced by atmosphere, clouds and the Sun's angle — which is exactly what the elevation figure here describes.