Sunrise equation
In-game article clicks load inline without leaving the challenge.

The sunrise equation or sunset equation can be used to derive the time of sunrise or sunset for any solar declination and latitude in terms of local solar time when sunrise and sunset actually occur.
Geometric equation
The time at which a celestial object crosses the horizon can be calculated by converting its coordinates from the equatorial coordinate system to the horizontal coordinate system, and then solving the equation for an altitude of zero. We then obtain
cos H 0 = − tan ϕ tan δ {\displaystyle \cos H_{0}=-\tan \phi \,\tan \delta }
where:
- H 0 {\displaystyle H_{0}} is the solar hour angle at either sunrise (when the negative value is taken) or sunset (when the positive value is taken);
- ϕ {\displaystyle \phi } is the latitude of the observer on the Earth;
- δ {\displaystyle \delta } is the Sun's declination.
This gives the geometric rise or set time (ignoring refraction) of the center of the Sun. See below for an equation which accounts for these effects.
The Earth rotates at an angular velocity of 15°/hour. Therefore, the expression H 0 / 15 ∘ {\displaystyle H_{0}/\mathrm {15} ^{\circ }}, where H 0 {\displaystyle H_{0}} is in degrees, gives the interval of time in hours from sunrise to local solar noon or from local solar noon to sunset.
The sign convention is that the observer latitude ϕ {\displaystyle \phi } is 0 at the equator, positive for the Northern Hemisphere and negative for the Southern Hemisphere, and the solar declination δ {\displaystyle \delta } is 0 when the Sun is exactly above the equator, positive during the Northern Hemisphere summer and negative during the Northern Hemisphere winter.The declination of the Sun is nearly, but not exactly, zero at the equinoxes.
The equation has no solution when | tan ϕ tan δ | > 1 {\displaystyle |\tan \phi \,\tan \delta |>1}. This occurs north of the Arctic Circle or south of the Antarctic Circle, during the polar night, when the Sun is not visible above the horizon at local midday.
Hemispheric relation
Suppose ϕ N {\displaystyle \phi _{N}} is a given latitude in Northern Hemisphere, and H N {\displaystyle H_{N}} is the corresponding sunrise hour angle that has a negative value, and similarly, ϕ S {\displaystyle \phi _{S}} is the same latitude but in Southern Hemisphere, which means ϕ S = − ϕ N {\displaystyle \phi _{S}=-\phi _{N}}, and H S {\displaystyle H_{S}} is the corresponding sunrise hour angle, then it is apparent that
cos H S = − cos H N = cos ( − 180 ∘ − H N ) {\displaystyle \cos H_{S}=-\cos H_{N}=\cos(-180^{\circ }-H_{N})},
which means
H N + H S = − 180 ∘ {\displaystyle H_{N}+H_{S}=-180^{\circ }}.
The above relation implies that on the same day, the lengths of daytime from sunrise to sunset at ϕ N {\displaystyle \phi _{N}} and ϕ S {\displaystyle \phi _{S}} sum to 24 hours if ϕ S = − ϕ N {\displaystyle \phi _{S}=-\phi _{N}}, and this also applies to regions where polar days and polar nights occur. This further suggests that the global average of length of daytime on any given day is 12 hours without considering the effect of atmospheric refraction.
Generalized equation

The equation above neglects the influence of atmospheric refraction and the non-zero angle subtended by the solar disc — i.e. the apparent diameter of the sun. The times of the rising and the setting of the upper solar limb as given in astronomical almanacs correct for this by using the more general equation:
cos H 0 = sin h 0 − sin ϕ sin δ cos ϕ cos δ {\displaystyle \cos H_{0}={\dfrac {\sin h_{0}-\sin \phi \,\sin \delta }{\cos \phi \,\cos \delta }}}
where h 0 {\displaystyle h_{0}} is the geometric altitude angle of the center of the Sun at the time of rising or setting, which is approximately −0.833° or −50.0 arcminutes, although the exact figure depends on atmospheric conditions along the line of sight.
This equation, as given by Jean Meeus, can be also used for any other solar altitude. The NOAA provides additional approximate expressions for refraction corrections at these other altitudes. There are also alternative formulations, such as a non-piecewise expression by G.G. Bennett used in the U.S. Naval Observatory's "Vector Astronomy Software".
The dip of the horizon in radians, including refraction and the geometric correction for the observer's height above the apparent horizon, can be approximated by:
ψ = 2 h R 0 ( 1 − k ) {\displaystyle \psi ={\sqrt {2{\frac {h}{R_{0}}}(1-k)}}}
where h is the height of the observer, R 0 {\displaystyle R_{0}}is the radius of the Earth, and k is the ratio of the radius of the ray's curvature to the radius of the Earth. This assumes that light rays follow a circular path, which is approximately true when the lapse rate is constant. For a typical value of k of 0.17, this gives
ψ = 1.75 ′ height in metres {\displaystyle \psi =1.75^{\prime }{\sqrt {\text{height in metres}}}}
or
ψ = 0.97 ′ height in feet {\displaystyle \psi =0.97^{\prime }{\sqrt {\text{height in feet}}}}
where the prime (′ {\displaystyle ^{\prime }}) indicates arcminutes, i.e. 1/60 °. This should be subtracted from the altitude angle. In summary, at sunrise or sunset:
h 0 = − s − ψ {\displaystyle h_{0}=-s-\psi }
where s is the semidiameter of the Sun, about 16 arcminutes.
In Universal Time
To calculate the time of the sunrise in Universal Time, Meeus recommends the following procedure. The position of the Sun in equatorial coordinates should first be calculated or looked up for the day of interest. For the day D, find:
- θ 0 {\displaystyle \theta _{0}}: the apparent sidereal time (or Earth Rotation Angle) at 0h Universal Time on day D {\displaystyle D},
- α 1 {\displaystyle \alpha _{1}} and δ 1 {\displaystyle \delta _{1}}, the right ascension and declination on day D − 1 {\displaystyle D-1} at 0h Universal Time,
- α 2 {\displaystyle \alpha _{2}} and δ 2 {\displaystyle \delta _{2}}, the right ascension and declination on day D {\displaystyle D},
- α 3 {\displaystyle \alpha _{3}} and δ 3 {\displaystyle \delta _{3}}, the right ascension and declination on day D + 1 {\displaystyle D+1}.
Calculate the approximate time of the sunset using
cos H 0 = sin h 0 − sin ϕ sin δ 2 cos ϕ cos δ 2 . {\displaystyle \cos H_{0}={\dfrac {\sin h_{0}-\sin \phi \,\sin \delta _{2}}{\cos \phi \,\cos \delta _{2}}}.}
If the right hand side has an absolute value greater than 1, then the Sun does not go below the horizon on that day and H 0 {\displaystyle H_{0}} does not exist.
Calculate the transit, sunrise and sunset time in fractions of a day:
- m 0 = α 2 + L − θ 0 360 ∘ {\displaystyle m_{0}={\frac {\alpha _{2}+L-\theta _{0}}{360^{\circ }}}}
- m 1 = m 0 − H 0 360 ∘ {\displaystyle m_{1}=m_{0}-{\frac {H_{0}}{360^{\circ }}}}
- m 2 = m 0 + H 0 360 ∘ {\displaystyle m_{2}=m_{0}+{\frac {H_{0}}{360^{\circ }}}}
where L is the geographical longitude expressed as an angle increasing westwards from Greenwich, i.e. the opposite sign convention than is typically used in geography.
These values of m can be multiplied by 24 to give the time of each event in hours, accurate to about ±0.01 days (14 minutes). For greater accuracy, the elevation angle of the Sun should be calculated at the proposed time, and then an adjustment applied to bring it to the desired elevation. The adjustment is:
Δ m = h − h 0 360 ∘ cos δ cos ϕ sin H {\displaystyle \Delta m={\frac {h-h_{0}}{360^{\circ }\cos \delta \cos \phi \sin H}}}
where
- H = θ − L − α {\displaystyle H=\theta -L-\alpha } is the hour angle,
- θ = θ 0 + 360.985647 ∘ m {\displaystyle \theta =\theta _{0}+360.985647^{\circ }m} is the sidereal time at Greenwich in degrees,
- h is the altitude of the Sun in degrees at m,
- α {\displaystyle \alpha } is the result of linear interpolation between α 1 {\displaystyle \alpha _{1}}, α 2 {\displaystyle \alpha _{2}} and α 3 {\displaystyle \alpha _{3}},
- δ {\displaystyle \delta } is similarly interpolated between δ 1 {\displaystyle \delta _{1}}, δ 2 {\displaystyle \delta _{2}} and δ 3 {\displaystyle \delta _{3}}.
The final time is then m + Δ m {\displaystyle m+\Delta m}.
Temperature variations in the atmosphere unpredictably affect the amount of refraction,limiting accuracy to about two minutes.
See also
External links
- (U.S. NOAA)
- (U.S. Naval Observatory)
- (U.S. Naval Observatory)