Physics & Chemistry
Sunrise and Sunset Calculator (NOAA Method)
Calculate the times of sunrise and sunset for any place on Earth and any date. Enter the latitude and longitude of the location, the date and the difference between local time and Coordinated Universal Time on that date, and the calculator gives sunrise, sunset, solar noon, the length of the day and the start and end of civil twilight. It uses the equations published by the Global Monitoring Laboratory of the US National Oceanic and Atmospheric Administration (NOAA) for its solar calculator, which are based on Jean Meeus’s Astronomical Algorithms. Sunrise and sunset are defined as the moments when the upper edge of the Sun’s disc touches the horizon, which corresponds to a solar zenith angle of 90.833 degrees once atmospheric refraction is taken into account. Civil twilight ends when the centre of the Sun is 6 degrees below the horizon. Near the poles the Sun may not rise or set at all for weeks, and the calculator reports polar night or midnight sun. A table shows how sunrise, sunset and day length change at the equinoxes and solstices for the same place.
How to use this calculator
- Find the latitude and longitude of your place, for example from a map.
- Enter latitude (north positive) and longitude (east positive).
- Choose the date.
- Enter the UTC offset that applies on that date, including daylight saving time.
- Read sunrise, sunset, solar noon and day length.
Why day length changes
Because Earth’s axis is tilted about 23.4 degrees, the Sun’s declination moves between +23.4° in June and −23.4° in December. In summer the Sun follows a longer and higher arc across the sky, so days are longer; in winter the arc is shorter. At the equator the day stays close to 12 hours all year.
Near the equinoxes, around 20 March and 22 September, day and night are nearly equal everywhere, though refraction makes the day slightly longer than 12 hours.
Solar noon and clock time
Solar noon, when the Sun is highest in the sky, rarely happens at 12:00 on the clock. Time zones are wide, daylight saving time moves clocks forward an hour, and the equation of time shifts solar noon by up to about 16 minutes during the year.
Photographers use the times around sunrise and sunset, often called the golden hour, and the blue hour of civil twilight, when the light is soft and colourful.
Formula & method
Solar declination and equation of time from the NOAA equations (Meeus)Hour angle: cos H = cos(90.833°) ÷ (cos φ cos δ) − tan φ tan δ, where 90.833° allows for refraction and the Sun’s radiusSunrise = solar noon − 4H minutes; sunset = solar noon + 4H minutesSolar noon = 720 − 4 × longitude − equation of time + 60 × UTC offset (minutes); civil twilight uses a zenith of 96°The NOAA equations compute, for the Julian date, the Sun’s geometric mean longitude and anomaly, the eccentricity of Earth’s orbit, the equation of centre, the apparent longitude and the obliquity of the ecliptic, giving the solar declination δ and the equation of time. The hour angle at sunrise and sunset is H = arccos(cos 90.833° ÷ (cos φ × cos δ) − tan φ × tan δ), where φ is the latitude. Solar noon in minutes after local midnight = 720 − 4 × longitude − equation of time + 60 × UTC offset. Sunrise = solar noon − 4H and sunset = solar noon + 4H (in minutes). Day length = 8H minutes. Civil twilight uses a zenith of 96°. If the arccos argument exceeds 1 the Sun stays below the horizon all day (polar night); below −1 it stays above it (midnight sun). NOAA notes accuracy of about one minute for latitudes between 72° north and 72° south; elevation and local terrain are not included.
Worked example
London on 21 June 2026 (UTC+1)
- Latitude 51.51° N, longitude 0.13° W.
- Solar declination about +23.44°, solar noon about 13:02 BST.
- Hour angle gives sunrise about 04:43 and sunset about 21:21–21:22.
Answer: About 16 hours 38 minutes of daylight on the longest day of the year.
Frequently asked questions
How is sunrise defined?
When the upper edge of the Sun appears on the horizon, allowing for refraction (zenith 90.833°).
How accurate are the times?
About one minute between latitudes 72° N and 72° S, according to NOAA.
What is solar noon?
The moment when the Sun is highest in the sky.
What is civil twilight?
When the Sun is between 0° and 6° below the horizon.
Why is there no sunrise near the poles in winter?
The Sun stays below the horizon all day during polar night.
Do I need to include daylight saving time?
Yes. Enter the UTC offset that applies on that date.