Solar Elevation and Azimuth Daily Calculator

Solar Elevation and Azimuth Daily Calculator

Leading AI Skill PRO

Enter Calculation

Formula

h=arcsin⁡(sin⁡ϕsin⁡δ+cos⁡ϕcos⁡δcos⁡H)where{ϕ=LatitudeH=θG+Longitude−αδ,α=Sun declination and right ascension at UTUT=t−UTC Offset\begin{gathered} h = \arcsin\!\Big( \sin\phi \, \sin\delta + \cos\phi \, \cos\delta \, \cos H \Big) \\[1.5em] \text{where}\quad \left\{ \begin{aligned} \phi &= \text{Latitude} \\ H &= \theta_G + \text{Longitude} - \alpha \\ \delta,\ \alpha &= \text{Sun declination and right ascension at UT} \\ \text{UT} &= t - \text{UTC Offset} \end{aligned} \right. \end{gathered}
Show calculation steps (1)
  1. Solar Azimuth

    A=atan2(−cos⁡δsin⁡H,sin⁡δcos⁡ϕ−cos⁡δsin⁡ϕcos⁡H)where{ϕ=LatitudeH=θG+Longitude−α\begin{gathered} A = \operatorname{atan2}\!\Big( -\cos\delta \, \sin H,\ \ \sin\delta \, \cos\phi - \cos\delta \, \sin\phi \, \cos H \Big) \\[1.5em] \text{where}\quad \left\{ \begin{aligned} \phi &= \text{Latitude} \\ H &= \theta_G + \text{Longitude} - \alpha \end{aligned} \right. \end{gathered}

    Solar azimuth A measured from the hour angle H, Sun declination delta and latitude phi. Same delta, alpha and H as the elevation, evaluated for each local hour t over the chosen date.

Usage stats

Advertisement

Results

Solar elevation at local 12:00
77.01°
Azimuth at 12:00: 199.25° (clockwise from North)
Local time (h) Elevation (°) Azimuth (°)
0:00 -30.9 4.98
1:00 -28.2 20.52
2:00 -22.56 34.44
3:00 -14.65 46.34
4:00 -5.12 56.45
5:00 5.53 65.2
6:00 16.91 73.11
7:00 28.77 80.72
8:00 40.9 88.71
9:00 53.05 98.28
10:00 64.81 112.42
11:00 74.72 141.14
12:00 77.01 199.25
13:00 68.99 239.35
14:00 57.64 257.15
15:00 45.57 267.93
16:00 33.4 276.33
17:00 21.42 283.99
18:00 9.83 291.72
19:00 -1.13 300.09
20:00 -11.13 309.62
21:00 -19.73 320.79
22:00 -26.32 333.94
23:00 -30.21 348.94
24:00 -30.86 4.92

Report an error on this page

What this calculator does

This tool computes the position of the Sun in the sky throughout a single day at any location on Earth. For each hour of local clock time it returns the solar elevation (altitude above the horizon, negative when the Sun is below it) and the azimuth (compass direction, measured clockwise from North: North = 0 degrees, East = 90, South = 180, West = 270). The astronomy is universal; only the default coordinates (Tokyo) and the default time-zone offset (+9, Japan) are region specific, so change them for your own site.

Arch-shaped curve showing the Sun's elevation rising and falling over a day
The Sun's elevation traces an arch over the day, peaking at solar noon.

How to use it

Enter your longitude (East positive, West negative), latitude (North positive, South negative), your standard-time offset from UTC (for example New York standard time is -5), and the calendar date. The calculator sweeps local clock time from 0 to 24 hours and prints one row per hour. The headline value is the elevation and azimuth at local 12:00.

The formula explained

From the Gregorian date we form a Julian day number, then the days since the J2000.0 epoch. A low-precision series gives the Sun's mean longitude, mean anomaly and apparent ecliptic longitude; combined with the obliquity of the ecliptic these yield the declination and right ascension. Greenwich Mean Sidereal Time plus your longitude gives local sidereal time, and subtracting the right ascension gives the hour angle \(H\). Finally the spherical-triangle relations convert (declination, \(H\), latitude) into elevation and azimuth.

$$h = \arcsin\!\Big( \sin\phi \, \sin\delta + \cos\phi \, \cos\delta \, \cos H \Big)$$ $$\text{where}\quad \left\{ \begin{aligned} \phi &= \text{Latitude} \\ H &= \theta_G + \text{Longitude} - \alpha \\ \delta,\ \alpha &= \text{Sun declination and right ascension at UT} \\ \text{UT} &= t - \text{UTC Offset} \end{aligned} \right.$$ $$A = \operatorname{atan2}\!\Big( -\cos\delta \, \sin H,\ \ \sin\delta \, \cos\phi - \cos\delta \, \sin\phi \, \cos H \Big)$$ $$\text{where}\quad \left\{ \begin{aligned} \phi &= \text{Latitude} \\ H &= \theta_G + \text{Longitude} - \alpha \end{aligned} \right.$$
Advertisement
Diagram showing solar elevation angle h above the horizon and azimuth measured from north
Solar elevation (h) is the angle above the horizon; azimuth is the compass direction to the Sun.

Worked example

Tokyo (139.7447 E, 35.6544 N), zone +9, 15 June 2024. Near local solar noon the Sun's declination is about 23.3 degrees (close to the solstice maximum), so the noon elevation is roughly 90 minus the difference of latitude and declination, $$90 - (35.6544 - 23.3) \approx 77.6 \text{ degrees},$$ with an azimuth near 180 degrees (due South). Early morning the Sun is low in the east; in the evening it is low in the west.

Sun Position Across Seasons and Latitudes

At solar noon the Sun crosses the local meridian and reaches its highest elevation for the day. Hour angle is zero, so the elevation formula simplifies to:

$$h_{\text{noon}} = 90^\circ - |\phi - \delta|$$

Here \(\phi\) is latitude (north positive) and \(\delta\) is the Sun's declination. Declination is about 0° at the March and September equinoxes, about +23.44° at the June solstice and about −23.44° at the December solstice. Values below are geometric (no atmospheric refraction) and rounded to 0.01°.

Location (latitude) Equinoxes (δ ≈ 0°) June solstice (δ ≈ +23.44°) December solstice (δ ≈ −23.44°)
Equator (0°) 90.00° 66.56° 66.56°
Tokyo (35.65° N) 54.35° 77.79° 30.91°
London (51.5° N) 38.50° 61.94° 15.06°
Sydney (−33.9°, i.e. 33.9° S) 56.10° 32.66° 79.54°

Worked example (Tokyo, June solstice): \(h_{\text{noon}} = 90 - |35.65 - 23.44| = 90 - 12.21 = 77.79^\circ\).

Worked example (Sydney, June solstice): \(h_{\text{noon}} = 90 - |-33.9 - 23.44| = 90 - 57.34 = 32.66^\circ\).

Hemisphere differences: In the Northern Hemisphere the Sun is highest in June and lowest in December. In the Southern Hemisphere the pattern is reversed, so Sydney's highest noon Sun is in December. At the equator the Sun is overhead twice a year, at the equinoxes, and the noon elevation never falls below about 66.56°. The equinox declination is approximate: the actual value shifts by a fraction of a degree depending on the exact date and time, and the solstice values vary slightly with the year.

Interpreting Elevation and Azimuth Results

  • Negative elevation: The Sun's center is below the geometric horizon, so it is not directly visible. An elevation of 0° is the geometric horizon, which ignores the atmosphere.
  • Visible sunrise and sunset: Atmospheric refraction lifts the Sun's apparent position by about 0.57° (roughly 34 arcminutes) near the horizon. The Sun's disk has a radius of about 0.27°. Sunrise and sunset are conventionally defined when the Sun's center is about 0.83° below the geometric horizon (0.57° + 0.27°). A geometric calculation that reads 0° therefore lags the visible sunrise and leads the visible sunset by a few minutes, depending on latitude and season.
  • Twilight: Civil twilight ends when the Sun's center reaches −6°. Nautical twilight ends at −12°. Astronomical twilight ends at −18°, after which the sky is fully dark. At high latitudes in summer the Sun may never get this far below the horizon.
  • Azimuth: Azimuth is measured as a compass bearing, clockwise from north: N = 0°, E = 90°, S = 180°, W = 270°. Intermediate values are NE = 45°, SE = 135°, SW = 225° and NW = 315°. In a daily table, azimuth normally increases through the day, from the east side in the morning to the west side in the evening.
  • Sun at solar noon: In the Northern Hemisphere outside the tropics, the Sun is due south (azimuth about 180°). In the Southern Hemisphere outside the tropics, it is due north (about 0° or 360°). Between the tropics (about 23.44° N to 23.44° S), noon azimuth can be north or south depending on whether the Sun's declination is north or south of your latitude. Near the day the Sun passes overhead, azimuth changes very rapidly.
  • Accuracy limits: The calculator uses a low-precision solar position algorithm. Expect errors of roughly 0.01° to 0.1°, which is fine for daylight planning, shading, solar panel orientation and photography. It is not suited to precision astronomy or surveying. It does not include atmospheric refraction, so elevations near the horizon are geometric rather than apparent. Also check that the UTC offset is entered correctly and does not include daylight saving time unless that is in force on the chosen date. Longitude is positive east of Greenwich, negative west.
Advertisement

Key Terms and Definitions

Solar elevation (altitude)
The angle of the Sun's center above the horizon, from −90° (nadir) through 0° (horizon) to +90° (zenith). Zenith angle is 90° minus elevation.
Azimuth
The compass direction of the Sun along the horizon, measured in degrees clockwise from true north.
Declination (δ)
The Sun's angular distance north (+) or south (−) of the celestial equator. It ranges between about −23.44° and +23.44° over a year.
Right ascension (α)
The Sun's angular position measured eastward along the celestial equator from the March equinox point, usually given in degrees or hours.
Hour angle (H)
The angular distance of the Sun west of the local meridian. It is 0° at solar noon and increases by about 15° per hour. In this calculator \(H = \theta_G + \text{longitude} - \alpha\).
Greenwich Mean Sidereal Time (GMST, θG)
The hour angle of the mean March equinox point as seen from the Greenwich meridian. It converts the Sun's right ascension into an hour angle for a given longitude.
Julian day
A continuous count of days from a fixed origin in ancient history, used to simplify time interval arithmetic in astronomy. It is usually given with a fractional part for time of day.
J2000.0 epoch
The reference instant of 1 January 2000 at 12:00 Terrestrial Time, corresponding to Julian day 2451545.0. Many astronomical formulas count time in days or centuries from this epoch.
Obliquity of the ecliptic (ε)
The tilt of Earth's rotation axis relative to its orbital plane, about 23.44° (23.439° at J2000.0), decreasing very slowly over time. It sets the range of the Sun's declination.
Solar noon
The moment the Sun crosses the local meridian and reaches its highest elevation of the day. It rarely coincides with 12:00 clock time because of longitude within the time zone, the equation of time and daylight saving time.
UTC offset
The difference in hours between local clock time and Coordinated Universal Time, for example +9 for Japan Standard Time. Universal time is computed as local time minus this offset.
Ecliptic longitude
The Sun's angular position along the ecliptic (its apparent yearly path) measured eastward from the March equinox point. It is converted with the obliquity into right ascension and declination.

FAQ

Why is the elevation negative at some hours? A negative elevation means the Sun is below the horizon: it is night, before sunrise or after sunset.

How accurate is it? The series fits are valid for years 1900 to 2099 and give a few arcseconds to a few arcminutes of error, with larger error at very high latitudes.

Which way is azimuth measured? Clockwise from due North, so 90 is East, 180 is South and 270 is West.

Last updated:

Most popular in Physics and Engineering

View all Physics and Engineering calculators