# Solar azimuth angle

The solar azimuth angle is the azimuth angle of the sun.[1][2][3] It defines in which direction the sun is, whereas the solar zenith angle or solar elevation defines how high the sun is. (The elevation is the complement of the zenith.) There are several conventions for the solar azimuth, however it is traditionally defined as the angle between a line due south and the shadow cast by a vertical rod on Earth. This convention states the angle is positive if the line is east of south and negative if it is west of south.[1][2] For example due east would be 90° and due west would be -90°. Another convention is the reverse; it also has the origin at due south, but measures angles clockwise, so that due east is now negative and west now positive.[3]

However, despite tradition, the most commonly accepted convention for analyzing solar radiation, e.g. for solar energy applications, is clockwise from due north, so east is 90°, south is 180° and west is 270°. This is the definition used by NREL in their solar position calculators[4] and is also the convention used in the formulas presented here.

## Formulas

Note: Both of these formulas assume the north-clockwise convention. The solar azimuth angle can be calculated to a good approximation with the following formula, however angles should be interpreted with care due to the inverse sine, i.e. x = sin−1(y) has two solutions (unless y is -1 or +1), only one of which will be correct.

$\, \sin \phi_\mathrm{s} = \frac{-\sin h \cos \delta}{\cos \theta_\mathrm{s}}$

The following formulas can also be used to approximate the solar azimuth angle, but these formulas use cosine, so the azimuth angle will always be positive, and should be interpreted as the angle less than 180 degrees when the hour angle, h, is negative (morning) and the angle greater than 180 degrees when the hour angle, h, is positive (afternoon). (These two formulas are equivalent if you assume the "solar elevation angle" approximation formula).[2][3][4]

$\, \cos \phi_\mathrm{s} = \frac{\sin \delta \cos \Phi - \cos h \cos \delta \sin \Phi} {\cos \theta_\mathrm{s}}$
$\, \cos \phi_\mathrm{s} = \frac{\sin \delta - \sin \theta_\mathrm{s}\sin \Phi } {\cos \theta_\mathrm{s}\cos \Phi}$

The formulas use the following terminology:

• $\, \phi_\mathrm{s}$ is the solar azimuth angle
• $\, \theta_\mathrm{s}$ is the solar elevation angle
• $\, h$ is the hour angle, in the local solar time
• $\, \delta$ is the current sun declination
• $\, \Phi$ is the local latitude