Sunrise equation

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
where:
- is the solar hour angle at either sunrise (when the negative value is taken) or sunset (when the positive value is taken);
- is the latitude of the observer on the Earth;
- is the Sun's declination.[1]: 97
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 , where 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 is 0 at the equator, positive for the Northern Hemisphere and negative for the Southern Hemisphere, and the solar declination is 0 when the Sun is exactly above the equator, positive during the Northern Hemisphere summer and negative during the Northern Hemisphere winter.[1]: 87 The declination of the Sun is nearly, but not exactly, zero at the equinoxes.[1]: 165
The equation has no solution when . 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 is a given latitude in Northern Hemisphere, and is the corresponding sunrise hour angle that has a negative value, and similarly, is the same latitude but in Southern Hemisphere, which means , and is the corresponding sunrise hour angle, then it is apparent that
- ,
which means
- .
The above relation implies that on the same day, the lengths of daytime from sunrise to sunset at and sum to 24 hours if , 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 (which lifts the solar disc — i.e. makes the solar disc appear higher in the sky — by approximately 0.6° when it is on the horizon) and the non-zero angle subtended by the solar disc — i.e. the apparent diameter of the sun — (about 0.5°). 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
where 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.[1]: 98
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.[2] 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".[3]
The dip of the horizon in radians, including refraction and the geometric correction for the observer's height above the apparent horizon, is well approximated by
where h is the height of the observer, is the radius of the Earth, and k is the ratio of the ray's curvature to the radius of the Earth.[4] For a typical value of k of 0.17, this gives
or
where the prime () indicates arcminutes, i.e. 1/60 °.[5] This should be subtracted from the altitude angle. In summary, at sunrise or sunset:
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:
- : the apparent sidereal time (or Earth Rotation Angle) at 0h Universal Time on day ,
- and , the right ascension and declination on day at 0h Universal Time,
- and , the right ascension and declination on day ,
- and , the right ascension and declination on day .
Calculate the approximate time of the sunset using
Calculate the transit, sunrise and sunset time in fractions of a day:
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:
where
- is the hour angle,
- h is the altitude of the Sun in degrees at m,
- is the result of linear interpolation between , and ,
- is similarly interpolated between , and .
The final time is then . [1]: 98
With modern ephemeris software like Skyfield, it's simpler and more precise to iteratively recompute the position of the Sun until the desired elevation angle is found.[6] However, without knowledge of the temperature profile of the atmosphere, accuracy is limited to about two minutes.[7]
See also
References
- ↑ 1.0 1.1 1.2 1.3 1.4 Meeus, Jean (1991). Astronomical algorithms (1st ed.). Richmond, Va: Willmann-Bell. ISBN 978-0-943396-35-4. https://archive.org/details/astronomicalalgorithmsjeanmeeus1991.
- ↑ "Solar Calculation Details" (in EN-US). https://gml.noaa.gov/grad/solcalc/calcdetails.html.
- ↑ "Correction Tables for Sextant Altitude". https://www.siranah.de/html/sail040h.htm.
- ↑ Young, Andrew T.; Kattawar, George W. (1998-06-20). "Sunset science II A useful diagram" (in en). Applied Optics 37 (18): 3785. doi:10.1364/AO.37.003785. ISSN 0003-6935. https://opg.optica.org/abstract.cfm?URI=ao-37-18-3785.
- ↑ Young, Andrew T.. "Dip of the Horizon". https://aty.sdsu.edu/explain/atmos_refr/dip.html.
- ↑ Rhodes, Brandon (July 2019). "Skyfield: High precision research-grade positions for planets and Earth satellites generator" (in en). Astrophysics Source Code Library: ascl:1907.024. https://ui.adsabs.harvard.edu/abs/2019ascl.soft07024R/abstract.
- ↑ Carlisle, Camille M. (January 17, 2019). "We Don’t Really Know When the Sun Rises". https://skyandtelescope.org/astronomy-news/we-dont-really-know-when-the-sun-rises/.
External links
- Sunrise, sunset, or sun position for any location — U.S. only (U.S. NOAA)
- Sunrise, sunset and day length for any location — worldwide
- Rise/Set/Transit/Twilight Data — U.S. only (U.S. Naval Observatory)
- Astronomical Information Center (U.S. Naval Observatory)
- Converting Between Julian Dates and Gregorian Calendar Dates
- Approximate Solar Coordinates
- Algorithms for Computing Astronomical Phenomena
- Astronomy Answers: Position of the Sun
- A Simple Expression for the Equation of Time
- The Equation of Time
- Equation of Time
- Long-Term Almanac for Sun, Moon, and Polaris V1.11
- Evaluating the Effectiveness of Current Atmospheric Refraction Models in Predicting Sunrise and Sunset Times
