Sun Position Calculator (Altitude & Azimuth)
Twelve o'clock on a British clock is not when the Sun stands highest. A south-facing roof in Plymouth throws its shortest shadow at solar noon, which in July often falls near 13:10 BST, not 12:00. The kitchen clock follows the law. The Sun follows the meridian.
Two numbers place the disc in the sky: altitude above the horizon, and azimuth measured clockwise from true north. The calculator returns both for a date, a time and a place, together with the quantities solar design and sky-watching actually run on: declination, hour angle and the equation of time.
The time to enter is legal local time (the clock on the wall). Its offset from Universal Time must be stated, British Summer Time included — UTC+0 in winter, UTC+1 from late March to late October.
Date, time and place of observation
Terms marked with an asterisk are defined in the glossary at the foot of the page.
Clock noon and solar noon are two different events
A gnomon on a Plymouth roof casts its shortest shadow when the Sun crosses the meridian. That instant is solar noon. The clock on the wall is doing something else. In winter it shows GMT, which is close to mean solar time at Greenwich, not at Plymouth. In summer it jumps an hour to BST. Neither setting is the Sun's own hour.
Plymouth sits near 4° W. Four minutes of time per degree of longitude already put local mean noon about 16 minutes after 12:00 GMT. Add the equation of time*, then BST in July, and the shortest shadow often falls near 13:10. Shetland, farther north and a little farther west, stretches the same logic: the clock says noon, the disc is still climbing.
The form asks for legal time plus an offset from UT*. Those two, correctly stated, and the rest of the sky follows. An offset wrong by an hour reports the Sun due west while it is still on the meridian.
Altitude and azimuth as local sky coordinates
Altitude is not height in the everyday sense. It is the angle from the horizon up to the centre of the disc, 0° on the skyline, 90° in the zenith. Azimuth is the bearing of that same centre, counted clockwise from true north: 90° due east, 180° due south, 270° due west. A Sun at altitude 32° and azimuth 142° sits south-east, roughly three fists above the horizon (a fist at arm's length covers about 10°).
These two angles are horizontal coordinates. They belong to a place and an instant. At the same UT second they are not the same in Plymouth and in Shetland, because the horizon has moved and the local meridian has moved. They are not copied out of a universal almanac. They are computed.
The diagram on this page shows both at once: a compass rose on the left, a side view of the vault on the right. After a calculation the two panels redraw. That is the whole point of entering a place.
Declination: the yearly north–south swing
From June to December the Sun slides from the Tropic of Cancer to the Tropic of Capricorn. Its declination* δ runs from about +23.44° at the June solstice to −23.44° at the December solstice. Those 23.44° are the obliquity of the ecliptic: Earth's axis is not square to its orbit. At the equinoxes δ crosses zero and the Sun rises due east, refraction aside.
At 51.5° N (London), the highest altitude on 21 June is 90° − |51.5 − 23.44| ≈ 61.9°. On 21 December it falls to about 15.1°. Same roof, two seasons. An overhang sized on the June Sun lets the December disc skim the gutter. Conversely, a winter awning does nothing in June.
Declination is computed for the instant entered, not “for the month”. Between 1 and 21 June it moves by about a degree more. On a tight shade that degree shows.
Hour angle and the two solar times
Hour angle is how far the Sun has gone past the meridian. It is 0° at apparent noon, negative in the morning, positive in the afternoon, 15° per hour of apparent solar time. Apparent solar time — local apparent time, LAT* — is that clock: noon when the Sun culminates, not when the town hall strikes twelve.
Wristwatches follow a fictitious Sun that walks at a steady pace: mean solar time. That Sun is not in the sky. It lives in the tables, because a civil day of exactly 24 hours suits railways, offices and time zones. Between apparent time and mean time sits the equation of time ΔT, positive when the true Sun runs fast.
LHA = 15° · (LAT − 12 h) with LAT = UT + ΔT + 4 min/° · longitude
Four minutes per degree of longitude is not a footnote. At 4°30′ W, local mean noon already lags 18 minutes behind noon at Greenwich, before the equation of time and before BST. Mix those layers and the disc is sent west too early — or too late.
The PZX triangle and the sine formula
Three points on the celestial sphere do the work. The north celestial pole P, the observer's zenith Z, the body X (here the Sun). The spherical triangle they form is the PZX* triangle, the astronomical triangle. Its sides are the co-latitude 90° − φ, the polar distance 90° − δ, and the zenith distance 90° − h. The angle at the pole is the local hour angle*.
Latitude is known from the place. Hour angle is known from the instant. Declination comes out of the solar algorithm. Altitude and azimuth then follow from spherical trigonometry: a sine formula for h, a two-argument arctangent for Az.
sin h = sin φ · sin δ + cos φ · cos δ · cos LHA
Az = 180° + arctan2( sin LHA , cos LHA · sin φ − tan δ · cos φ )
At polar latitudes the sine of altitude can leave the range [−1, 1] on days when the Sun never rises or never sets. It is clipped, and the result is read as polar day or polar night. Azimuth is brought back from a south-based convention (the old tables) to true north, so that it matches the rose on the diagram.
Panel tilt and true south on a British roof
A fixed array gets one chance a day to look straight at the Sun — and only if tilt and azimuth were chosen for that date. In Britain the array is aimed at true south, not compass south. Year-round tilt is usually close to latitude: about 50° from Cornwall to the Central Belt. Winter-weighted arrays (heating, short days) steepen toward 55–60°. Summer-weighted arrays (hot water) flatten toward 20–30°.
A roof at 160° (south-south-east) is not a disaster. Annual yield drops by a few per cent, not by 40%. A roof at 90° (east) or 270° (west) shifts the peak to morning or evening and loses more, especially in winter. This page does not compute kilowatt-hours. It gives, hour by hour, the altitude and azimuth a yield model needs — or that an installer needs to judge whether the neighbour's ridge eats 21 December at 10:00.
Incidence on the plane is not altitude. A module tilted by β toward the south “sees” the Sun at an angle that depends on h, Az and β. Instantaneous power follows, roughly, the cosine of that angle of incidence, so long as it stays below about 80° or 90°. Beyond that the module shades itself with its own frame.
Equation of time: why a sundial disagrees with GMT
A sundial in a Plymouth garden does not agree with GMT, even after longitude is allowed for. The leftover is the equation of time, and it reaches ±16 minutes. Two causes add, and they do not look alike.
The first is orbital eccentricity. Earth moves faster near perihelion (early January) than near aphelion (early July). The true Sun then runs ahead of, then behind, a Sun walking at constant speed. The second is obliquity. Motion is along the ecliptic; time is counted in right ascension, along the equator. Projecting uniform motion from one great circle onto the other produces a twice-yearly wobble.
Early November, the true Sun is more than a quarter-hour fast. Mid-February, roughly as much slow. The gap passes through zero around 15 April, 13 June, 1 September and 25 December — dates that drift a little from year to year. A sundial that ignores the correction is a handsome object. It is not a clock. A “sunrise” app that forgets it is a quarter-hour out in November, enough to miss the first beam on a panel, or the shortest shadow of the day.
This page includes it. The reported local apparent noon already folds in longitude, the equation of time and the time-zone offset. In other words, the clock time shown is the legal time at which the Sun crosses the meridian of the place entered.
The analemma over a year
Photograph the disc at the same mean time, from the same spot, every day for a year. The Sun traces a slightly lopsided figure of eight. That curve is the analemma*. The vertical arm is declination, up to June and down to December. The horizontal arm is the equation of time: the Sun too far east (fast) or too far west (slow) at a fixed mean hour.
The lower loop (winter) is fatter, because eccentricity weighs more near perihelion. The upper loop is tighter. Sundials that carry an analemma, dual-axis trackers, and anyone who watches the sky through a year all use it. It is not a curiosity. It is the two effects already named, drawn on top of each other.
Refraction at the horizon (34′)
Air is not optically empty. It bends the ray, most of all near the horizon, where the path through the dense layers is longest. The body looks higher than it is. This refraction* is about 34′ on the horizon — a little more than the Sun's apparent radius (16′). When the upper limb “touches” the skyline, the geometric centre is already below it. Sunrise and sunset are therefore computed for a true altitude of −0.833° (standard refraction plus semi-diameter), not for 0°.
Sæmundsson's formula, the one used here, is applied to true altitude to give apparent altitude, under standard conditions (1010 hPa, 10 °C). Above 15°, the effect drops under 3.5′ and can be ignored for a panel or a gnomon. At 10° it remains near 5′. At 5°, around 10′. Below that, pressure and temperature matter: a cold anticyclone lifts the disc a little further, a gale can flatten it. Altitudes under 5° are read with caution.
Refraction also shifts the azimuth of rise and set by a fraction of a degree. For a stone alignment, that counts. For a roof array, rarely.
Sunrise, sunset and the three twilights
The disc goes. The light does not, not at once. Three twilights* are defined by how far the Sun's centre sits below the horizon. Civil twilight runs from 0° to −6°: print can be read outdoors, car headlights are not yet needed, a panel yields a trickle. Nautical twilight runs from −6° to −12°: the sea horizon holds, the bright stars come out. Astronomical twilight runs from −12° to −18°. Only after that is the sky close to astronomical night.
In June at 51° N, nautical twilight lasts. In Shetland it barely ends between evening and morning. In December it is short. Where |cos H0| exceeds 1, there is no rise and no set: midnight sun or polar night. The page flags that.
The sunrise and sunset times shown are legal times at the place, computed from the Sun's elements at local noon. They ignore hills. A Dartmoor ridge, a terrace of houses, a stand of trees can push the first ray back by many minutes. That is what the shading section is for.
Nearby ridges and winter shading
An obstacle of height H at distance d hides the sky up to arctan(H/d). An 8 m barn twenty metres off masks about 22°. In December at 51° N, the 10:00 Sun is often not much higher. If the altitude computed here falls below 22° in the barn's azimuth, the array, the conservatory, the roof-light sit in shade.
The azimuth of the mask matters as much as its height. A screen to the south-east eats the morning, nothing at 13:00. A screen due south eats winter noon, not summer evenings. “There is sun in the garden” is not a calculation — the garden is not the plane of the array, and January is not June.
For a distant mask (a ridge, a terrace opposite), the angle is taken with a clinometer or from a map plus heights, then compared with the day's path. A few instants entered in the form — 21 December at 10:00, 12:00, 14:00, then 21 June at the same hours — already sketch the useful profile.
Noon altitude as a latitude check
At the highest point of the day the geometry collapses. In the northern hemisphere, outside the tropics, the Sun culminates due south: Az = 180°. Hour angle is zero. The altitude formula reduces to a subtraction.
hmax = 90° − |φ − δ|
The relation inverts. A measured noon altitude and the day's declination give latitude: φ = 90° − hmax ± δ, the sign according to whether the Sun passes north or south of the zenith. That is the old noon sight. Here it is mainly a check: the reported maximum altitude must satisfy the same relation. It also answers a plain question. Will the noon Sun clear the hill, the ridge, the greenhouse roof? Compare hmax with the angle subtended by the obstacle.
That “noon” is not 12:00. It is apparent noon, often near 13:10 in July in southern England (BST, longitude, equation of time). A reading taken at clock noon is not a meridian altitude.
True north, not the needle
Az = 0° is geographic north, the meridian. A compass needle points to magnetic north. The difference — magnetic variation, an unlucky namesake of solar declination — is, in 2026, of the order of 0.5° to 3° west across the UK, larger in the west of Scotland, and it drifts from year to year. That is not huge. On a tight winter mask, or on an architect's “due south” brise-soleil set from a phone, it is enough to shift the December shadow.
The “south” on a smartphone sometimes mixes magnetic, GPS and a map. For an array, alignment is taken from the meridian (the gnomon's shadow at apparent noon, or the grid of the plan), not from the needle.
BST, GMT and the three clocks
The form will mix three clocks if they are not kept apart. The time entered is legal time. The offset (UTC+0 or UTC+1 in the UK) reduces it to Universal Time. Longitude and the equation of time turn that into apparent solar time. Omitting BST in August shifts the whole sky by an hour: the Sun is reported in the west while it is culminating. Treat a longitude as if the time were already UT and the same kind of error appears, quieter.
Apparent noon itself has no use for legal time. It falls when LHA = 0, full stop. In July in the South West, around 13:10. In December, nearer 12:10 GMT. At Lowestoft (1.7° E) it runs a few minutes ahead of Plymouth. Rather: “noon” is not a clock reading. It is an azimuth.
What the NOAA engine holds, and what it drops
The engine on this page is the NOAA solar algorithm: mean solar elements, a few nutation terms, the equation of time, then the PZX triangle and Sæmundsson refraction. Over 1800–2100 the position error stays of the order of 0.01° (half a minute of arc). That is ample for a panel, a gnomon, a twilight, a roof-line mask. It is not a laboratory ephemeris.
For an arcsecond, a date outside that window, the Moon or a planet, a full ephemeris is required (DE440, INPOP). Refraction here ignores the actual pressure and temperature. Rise ignores hills. None of those omissions moves a panel. All of them move a precision sight.
A panel azimuth to 2° is acceptable. A sundial alignment to 2° shows in the first week of November, when the equation of time pulls hardest. The page reports a tenth of a degree; the site is judged by the shadow.
Glossary
- UT / UTC
- Universal Time (Coordinated): the world's civil time scale, heir to Greenwich Mean Time. Time zones (UTC+0, UTC+1, …) differ from it by a whole number of hours, daylight saving included.
- Equation of time (ΔT)
- The gap, in minutes, between apparent solar time and mean solar time. It arises from the elliptical orbit and from obliquity, and reaches about ±16 minutes over the year.
- Declination δ
- The Sun's celestial latitude: the angle north (positive) or south (negative) of the celestial equator. It swings between the two tropics, roughly ±23.44°, as the seasons turn.
- LAT (local apparent time)
- Apparent solar time at the place: noon when the Sun crosses the local meridian, whether the legal clock reads 11:40 or 13:10.
- Hour angle (LHA)
- The angle, along the celestial equator, by which the Sun has passed the local meridian. Zero at apparent noon, negative in the morning, positive in the afternoon, at 15° per hour of apparent solar time.
- PZX triangle
- The spherical astronomical triangle whose vertices are the celestial pole (P), the observer's zenith (Z) and the body (X). Altitude and azimuth are computed on this triangle from latitude, declination and hour angle.
- Analemma
- The figure-of-eight the Sun traces when it is plotted every day at the same mean time, from the same place. The vertical follows declination; the horizontal, the equation of time.
- Atmospheric refraction
- The apparent lifting of a body caused by the bending of rays in air. About 34′ on the horizon, it becomes negligible above some 15° of altitude (standard conditions: 1010 hPa, 10 °C).
- Twilight
- Three bands after sunset (and before sunrise), set by the Sun's altitude: civil (to −6°), nautical (to −12°), astronomical (to −18°). Beyond that, astronomical night.