Connect via MCP →

Enter Calculation

Formula

Show calculation steps (1)
  1. Solar Azimuth

    Solar Azimuth: Solar Elevation and Azimuth Daily Calculator

    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.

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

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.$$
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.

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: