Sunrise equation
The sunrise equation gives the time of sunrise or sunset at a place from two angles: the place's latitude and the Sun's declination on that day. It does not give a clock time directly. It gives the angle the Earth turns through between sunrise and solar noon (when the Sun is highest), and that angle converts to time at 15° per hour.[1]
In its simplest form the equation is . Here is the latitude, is the declination, and is the Sun's hour angle at sunset, the angle that measures how far the Sun is east or west of the local north-south line.[1]
Agencies such as the National Oceanic and Atmospheric Administration (NOAA) and the U.S. Naval Observatory use a corrected form. It allows for the bending of sunlight by the air and for the size of the Sun's disk.[2][3]
The angles involved
The equation uses three angles.[1]
- Latitude, , is how far north or south of the equator the observer is. North is positive, and the range is −90° to +90°.
- Declination, , is the Sun's angle north or south of the plane of Earth's equator at solar noon. North is positive. Over a year it stays between −23.45° and +23.45°.
- Hour angle, , is how far the Sun has moved east or west of the local meridian because of Earth's rotation. It grows at 15° per hour, is zero at solar noon, and is negative in the morning and positive in the afternoon.
Finding the declination
Declination changes through the year, so it must be found for the date in question. A simple estimate, due to Cooper (1969), is:[1]
Here is the day of the year, from 1 on 1 January. Declination changes by at most about 0.4° per day, so one value per day is good enough for most engineering work.[1]
The basic equation
The basic sunrise equation gives the hour angle at which the Sun's center crosses the horizon:[1]
- is the sunset hour angle, taken between 0° and 180°.
- is the sunrise hour angle.
- is the latitude and is the Sun's declination.
The equation has a solution only when , and it needs , so it does not apply at the poles themselves. The section on special cases explains what happens when no solution exists.
From hour angle to time
Solar time
The hour angle turns into time at 15° per hour. In solar time, where solar noon is the moment the Sun crosses the meridian, sunrise falls hours before solar noon and sunset the same amount after.[1]
The number of daylight hours, , is twice that:[1]
Here , the inverse cosine, gives the angle whose cosine is the value inside the brackets. The angle is in degrees and is in hours.
Worked example
Duffie and Beckman give this example for latitude 43° N on 16 March, when :[1]
- Compute .
- Divide by 15° per hour to get 5.85 hours, or 5 hours 51 minutes.
- Sunrise is 5 hours 51 minutes before solar noon, at 6:09 a.m. solar time.
- Sunset is 5 hours 51 minutes after solar noon, at 5:51 p.m. solar time.
Clock time
Solar time differs from clock time for two reasons.[2]
- The observer is usually away from the time zone's central meridian, the line of longitude at the center of the time zone.
- Solar noon shifts through the year because of the equation of time.
NOAA gives these formulas for times in UTC, in minutes after midnight:[2]
- is the longitude in degrees, positive east of the Prime Meridian (the 0° longitude line through Greenwich, England).[2][4]
- is in degrees. The factor 4 turns degrees into minutes, since the Earth turns 1° in 4 minutes.
- is the equation of time in minutes.
Adding the time zone offset then gives local clock time.[2]
Special cases
Some places and dates give simple results that follow directly from the basic equation.
| Condition | What the equation gives | Result |
|---|---|---|
| At the equator () | , so | 12 hours of daylight every day |
| At an equinox () | , so | 12 hours of daylight at every latitude |
| Latitude and declination on the same side of the equator | , so | More than 12 hours of daylight |
| Latitude and declination on opposite sides | , so | Less than 12 hours of daylight |
| No solution | The Sun does not set | |
| No solution | The Sun does not rise |
Polar day and night
The last two rows can happen only at high latitudes. For positive angles, is the same as . Since never exceeds 23.45°, the Sun can stay up or down all day only closer to the poles than about 66.5° north or south (90° minus 23.45°), in the regions of the midnight sun and polar night.
Derivation
The astronomical triangle
The equation comes from a triangle drawn on the celestial sphere, the imaginary sphere on which the Sun and stars appear. Its corners are the celestial pole (the point where Earth's axis, extended, meets the sky), the observer's zenith (the point straight overhead), and the Sun . It is called the astronomical triangle.[4][5]
The triangle's sides and one angle are known quantities:[4][5]
- Side is the colatitude, the angle from the pole to the zenith, equal to .
- Side is the Sun's polar distance, the angle from the pole to the Sun, equal to .
- Side is the zenith distance, the Sun's zenith angle .
- The angle at , between the observer's meridian and the Sun's meridian, is the hour angle .
Applying the law of cosines
The law of cosines of spherical trigonometry links a side to the other two sides , and the angle between them:[5]
Take , , and . Since and , this gives the zenith-angle formula:[4][2]
Setting the Sun on the horizon
When the Sun's center is on the horizon, and .[1] Solving for the hour angle gives:
The division by is why the formula needs that product to be nonzero.
Corrections for refraction and the solar disk
Why the basic equation is off
The basic equation misses two effects.
- Official sunrise and sunset are the moments when the upper edge of the Sun's disk is on the horizon, not its center.[3]
- Atmospheric refraction bends sunlight passing low through the air, which lifts the Sun's apparent position near the horizon.[6]
The U.S. Naval Observatory combines both effects into one fixed value. At sunrise or sunset the Sun's true center, ignoring refraction, is taken to be 50 arcminutes below the horizon (an arcminute, written ′, is 1/60 of a degree). That is the Sun's average apparent radius (16 arcminutes) plus the average refraction at the horizon (34 arcminutes).[3]
The general equation
The full form lets the Sun's center sit at any altitude , the angle above or below the horizon, at the moment of rising or setting:[2][1]
For sunrise and sunset, . NOAA writes the same thing as a zenith angle of 90.833°.[2][3] With the general equation reduces to the basic one.
The correction makes the day longer than the basic equation predicts. Alejandro Jenkins found that, for a Sun-center altitude of −0.85°, the added daylight is at least 7 minutes at every place outside the polar regions, on every date. It grows larger far from the equator and far from the equinoxes.[6]
As a result, even at an equinox the day from sunrise to sunset is a little longer than 12 hours.[6]
Twilight
The same general equation gives the start and end of twilight. Each kind uses a deeper position of the Sun's center below the horizon.[3]
| Event | Sun's center below horizon | Zenith angle | |
|---|---|---|---|
| Sunrise, sunset | 50′ | −0.833° | 90.833° |
| Civil twilight | 6° | −6° | 96° |
| Nautical twilight | 12° | −12° | 102° |
| Astronomical twilight | 18° | −18° | 108° |
Accuracy and limits
Even the corrected equation predicts the event under ideal conditions. The standard calculation assumes:[3]
- average air conditions;
- a level, clear horizon;
- an observer at sea level.
Real conditions differ in several ways.
- Refraction varies with the weather. Even under ideal conditions, such as a clear sky at sea, computed times may be off by a minute or more.[3]
- Mountains on the horizon and the observer's height can change the times even more. Routine calculations leave these out.[3]
- Accuracy falls at high latitudes. There the Sun crosses the horizon at a shallow angle, so small changes in refraction shift the time by many minutes.[3]
- Declination changes by up to about 0.4° per day.[1] More precise methods, such as NOAA's, therefore compute it from the hour of the day as well as the date.[2]
Testing against observations
Teresa Wilson's dissertation work at Michigan Tech compared predictions with 251 recorded sunrises and 514 sunsets.[7]
Models that used weather data did no better than the fixed 34-arcminute refraction value. She found that value cited as a standard as early as 1865.[7]
Wilson found that predictions are often off by 1 to 5 minutes. She concluded that sunrise and sunset times cannot be reliably predicted to better than 2 minutes.[7]
References
- Solar Engineering of Thermal Processes, 4th ed., John A. Duffie and William A. Beckman, Wiley, 2013.
- General Solar Position Calculations, NOAA Global Monitoring Laboratory, undated (accessed 2026).
- Rise, Set, and Twilight Definitions, U.S. Naval Observatory, undated (accessed 2026).
- Appendix H: Introduction to Principles of Astronomy, NOAA Global Monitoring Laboratory, undated (accessed 2026).
- Astronomical Triangle, University of British Columbia Mathematics 308 student project, undated (accessed 2026).
- The Sun's position in the sky, Alejandro Jenkins, arXiv, 2012.
- We Don't Really Know When the Sun Rises, Sky & Telescope, 2019.
