Connect via MCP →

Enter Calculation

Formula

Advertisement

Results

Sun position at first weekly sample (Jan 1)
31.34°
elevation · azimuth 180.16° from North
77.73°
Highest elevation (Jun 18)
30.92°
Lowest elevation (Dec 24)
Date Elevation (°) Azimuth (°)
Jan 1 31.34 180.16
Jan 8 32.09 179.30
Jan 15 33.20 178.53
Jan 22 34.62 177.86
Jan 29 36.35 177.33
Feb 5 38.34 176.95
Feb 12 40.57 176.73
Feb 19 42.98 176.70
Feb 26 45.55 176.84
Mar 5 48.22 177.17
Mar 12 50.97 177.68
Mar 19 53.74 178.36
Mar 26 56.51 179.18
Apr 2 59.24 180.14
Apr 9 61.88 181.21
Apr 16 64.42 182.33
Apr 23 66.81 183.46
Apr 30 69.04 184.53
May 7 71.06 185.46
May 14 72.87 186.14
May 21 74.43 186.47
May 28 75.71 186.35
Jun 4 76.71 185.73
Jun 11 77.38 184.61
Jun 18 77.73 183.12
Jun 25 77.73 181.48
Jul 2 77.38 179.95
Jul 9 76.70 178.76
Jul 16 75.71 178.02
Jul 23 74.42 177.78
Jul 30 72.86 177.99
Aug 6 71.06 178.54
Aug 13 69.03 179.35
Aug 20 66.81 180.31
Aug 27 64.43 181.34
Sep 3 61.90 182.37
Sep 10 59.27 183.35
Sep 17 56.56 184.24
Sep 24 53.81 185.02
Oct 1 51.05 185.65
Oct 8 48.32 186.12
Oct 15 45.66 186.42
Oct 22 43.10 186.55
Oct 29 40.70 186.50
Nov 5 38.47 186.28
Nov 12 36.47 185.90
Nov 19 34.74 185.36
Nov 26 33.29 184.70
Dec 3 32.17 183.93
Dec 10 31.39 183.07
Dec 17 30.97 182.16
Dec 24 30.92 181.23
Dec 31 31.24 180.32

What this calculator does

This tool computes the Sun's elevation (altitude above the horizon) and azimuth (compass direction, measured clockwise from North) for an observer anywhere on Earth. Instead of a single moment, it samples one row per week through an entire calendar year, all at the same local clock time, so you can watch how the Sun's height and direction drift with the seasons. It is universal physics — only the defaults are region-flavored (Tokyo coordinates and a +9 time-zone offset).

How to use it

Enter your longitude (East positive, West negative) and latitude (North positive, South negative). Set the time-zone offset of your civil clock from UTC (e.g. +9 for Japan, −5 for US Eastern Standard Time). Pick a year between 1900 and 2099, then the observation hour and minute of local standard time. The headline shows the first weekly sample; the cards show the highest and lowest weekly elevations; the table lists every weekly date with its elevation and azimuth.

The formula explained

From the calendar date and local clock time the algorithm builds the Julian Day, then derives the Sun's ecliptic longitude, declination (delta) and right ascension using low-precision NOAA/Meeus series. Greenwich sidereal time plus your longitude gives local sidereal time, and subtracting right ascension yields the hour angle \(H\). Finally

$$\text{elevation} = \arcsin\!\big(\sin\phi\cdot\sin\delta + \cos\phi\cdot\cos\delta\cdot\cos H\big)$$

and

$$\text{azimuth} = \operatorname{atan2}\!\big(-\sin H,\; \tan\delta\cdot\cos\phi - \sin\phi\cdot\cos H\big).$$

Accuracy is within roughly an arcminute for 1900–2099, degrading slightly at high latitude.

Celestial sphere triangle relating observer latitude, solar declination and hour angle to the Sun's position.
The formula combines latitude (\(\phi\)), solar declination (\(\delta\)) and hour angle (\(H\)) to give elevation.
Diagram showing the Sun's position defined by elevation angle above the horizon and azimuth angle measured around from north.
Solar elevation (altitude) is the angle above the horizon; azimuth is the compass direction measured clockwise from north.

Worked example

Tokyo (longitude \(139.7447^\circ\), latitude \(35.6544^\circ\)), offset +9, 11:45 local time. On the summer-solstice week the Sun reaches about \(77.6^\circ\) elevation — nearly overhead. Around the winter solstice the same 11:45 clock time gives a much lower Sun, illustrating the seasonal swing.

Key Terms and Variables

Elevation (altitude)
The angle of the Sun above the local horizon, from \(-90^\circ\) (nadir) through \(0^\circ\) (horizon) to \(+90^\circ\) (zenith). Computed here as \(\arcsin(\sin\phi\sin\delta + \cos\phi\cos\delta\cos H)\).
Azimuth
The Sun's compass bearing measured clockwise from true north: \(0^\circ\) N, \(90^\circ\) E, \(180^\circ\) S, \(270^\circ\) W.
Latitude (\(\phi\))
The observer's north–south angular position, \(+90^\circ\) at the North Pole to \(-90^\circ\) at the South Pole. A primary input to the elevation and azimuth formulas.
Solar declination (\(\delta\))
The latitude on Earth where the Sun is directly overhead at noon on a given day, ranging \(\pm 23.44^\circ\) over the year. Derived from the ecliptic longitude via \(\delta = \arcsin(\sin\varepsilon\sin\lambda)\).
Hour angle (\(H\))
The angular distance of the Sun east or west of the local meridian, increasing by \(15^\circ\) per hour; \(H = 0\) at solar noon. Here \(H = (\text{GMST} + \text{longitude}) - \alpha\).
Right ascension (\(\alpha\))
The Sun's east–west coordinate on the celestial sphere, the celestial analogue of longitude, measured along the equator from the vernal equinox.
Julian Day (JD)
A continuous count of days (and fractions) since noon UT on 1 January 4713 BC, used to give every instant a single decimal number. The term \(n = \mathrm{JD} - 2451545\) counts days from the J2000.0 epoch.
Sidereal time (GMST)
Greenwich Mean Sidereal Time — time measured by the apparent rotation of the stars rather than the Sun. It links the Sun's right ascension to the observer's local meridian.
Ecliptic longitude (\(\lambda\))
The Sun's position along the ecliptic (Earth's orbital plane), \(0^\circ\) at the vernal equinox increasing to \(360^\circ\). Computed from the mean longitude \(L\) and the equation of center using the mean anomaly \(g\).
UTC offset (timeZoneOffset)
The number of hours your local clock is ahead of (positive) or behind (negative) Coordinated Universal Time; used to convert your observation hour to universal time. Tokyo/JST is \(+9\).
Solar vs civil time
Civil (clock) time is fixed by time zones and daylight rules, whereas solar time is set by the Sun's actual position (solar noon = Sun on the meridian). The two differ by the equation of time, longitude offset within the zone, and any daylight-saving adjustment, so the Sun is rarely due south at exactly 12:00 on the clock.

FAQ

Why is elevation sometimes negative? The Sun is below the horizon at that clock time — night, or before sunrise / after sunset.

Which way is azimuth measured? Clockwise from North: 0 = North, 90 = East, 180 = South, 270 = West.

Do I need both longitude and the time-zone offset? Yes. The offset converts your civil clock to UTC; the longitude converts UTC sidereal time to local sidereal time. They are different things.

Last updated: