Sunrise and Sunset Calculator (NOAA Solar Algorithm)
Sunrise, sunset, solar noon and day length for any latitude, longitude and date, using the NOAA solar position algorithm with standard atmospheric refraction. Enter the UTC offset of your clock (daylight saving included) to get local times.
Last updated: October 2026
Sunrise
05:25
Formula below · 2 sources (gml.noaa.gov, aa.usno.navy.mil) · Updated Oct 2026
Compare with similar
About this calculator
The calculator follows the NOAA Global Monitoring Laboratory solar calculator, which is based on Jean Meeus's Astronomical Algorithms. From the date and UTC offset it forms the Julian day, then the Julian century T from J2000.0, and computes the sun's geometric mean longitude L₀, mean anomaly M, the equation of centre, the apparent longitude λ (corrected for nutation and aberration), the obliquity of the ecliptic ε, the solar declination δ = asin(sin ε · sin λ) and the equation of time E (the difference between apparent and mean solar time, between about −14 and +16 minutes through the year). Sunrise and sunset are the moments the sun's centre is 0.833° below the horizon, which allows for the sun's semidiameter (0.267°) and average atmospheric refraction (0.567°), so the upper limb appears exactly on a flat sea-level horizon. The hour angle is H = acos( cos 90.833° / (cos φ · cos δ) − tan φ · tan δ ), and the UTC time of sunrise in minutes is 720 − 4(λ + H) − E, with longitude λ east-positive; sunset uses −H and solar noon is 720 − 4λ − E. The calculation is done twice: first with the sun's position at local noon, then again at the estimated sunrise or sunset time, which removes the error from the sun moving during the day. Adding the clock offset gives local time; day length is sunset minus sunrise. When cos H is above 1 the sun never reaches the horizon (polar night) and below −1 it never sets (midnight sun), and the calculator says so instead of inventing a time. Typical accuracy is within about a minute of published almanac times for latitudes up to 72°; the official times from the US Naval Observatory are rounded to the minute and assume the same standard refraction, which on any given day can differ because of temperature and pressure. Enter your clock's actual offset, including daylight saving (EDT is −4, EST is −5, BST is +1, CEST is +2, IST is +5.5); the calculator does not know when your zone changes.
NOAA sunrise/sunset on the June solstice 2026 (local clock time, standard refraction)
Scroll sideways to see all columns →
| Place | Lat / Lon | Offset | Sunrise | Sunset | Day length |
|---|---|---|---|---|---|
| New York | 40.71, −74.01 | −4 (EDT) | 05:25 | 20:31 | 15 h 06 min |
| London | 51.51, −0.13 | +1 (BST) | 04:43 | 21:22 | 16 h 39 min |
| Sydney | −33.87, 151.21 | +10 (AEST) | 07:00 | 16:54 | 9 h 54 min |
| Reykjavik | 64.15, −21.94 | 0 (GMT) | 02:55 | 00:04 (next day) | 21 h 09 min |
| Longyearbyen | 78.22, 15.63 | +2 (CEST) | midnight sun | midnight sun | 24 h |
How to use
Example 1 — New York on the June solstice (the defaults): latitude 40.7128, longitude −74.0060, date 2026-06-21, clock offset −4 (EDT). The Julian day at local midnight (04:00 UTC) is 2461212.667; at local noon T = 0.264 70 Julian centuries, the declination is 23.44° and the equation of time −1.91 minutes. cos H = cos 90.833° / (cos 40.713° × cos 23.438°) − tan 40.713° × tan 23.438° = −0.02090 − 0.3731 = −0.3940, so H = 113.21°. Sunrise UTC = 720 − 4 × (−74.006 + 113.21) − (−1.91) = 565.1 minutes = 09:25 UTC; adding −4 h gives 05:25 EDT. Sunset is 720 − 4 × (−74.006 − 113.21) + 1.91 = 1470.8 minutes = 00:31 UTC the next day, 20:31 EDT. Solar noon 12:58, day length 15 h 06 min. The US Naval Observatory tables give 5:25 and 8:31 PM. Example 2 — London on the same date: 51.5074, −0.1278, 2026-06-21, offset +1 (BST). The hour angle is larger at the higher latitude, 124.8°, giving sunrise 04:43 and sunset 21:22 BST, 16 h 39 min of daylight. With an offset of 0 (GMT) the same sunrise reads 03:43. Try Tromsø (69.65, 18.96) on this date and the calculator reports the midnight sun instead of a time.
Frequently asked questions
Why does the calculator need a UTC offset instead of a time zone name?
The solar calculation itself is done in UTC; the offset just shifts the answer to your clock. Entering the offset directly lets the page work for every zone, including half-hour zones such as India (+5.5) and Newfoundland (−3.5), without a database of daylight-saving rules. Use the offset your clock actually shows on that date: −4 for New York in summer (EDT) and −5 in winter (EST), +1 for London in summer (BST) and 0 in winter.
How accurate are these sunrise and sunset times?
The NOAA algorithm is accurate to within about one minute for latitudes between 72° S and 72° N, which is the same order as the uncertainty from atmospheric refraction, since the actual bending of light at the horizon varies with temperature and pressure. Official almanac times (USNO, HM Nautical Almanac Office) use the same 0.833° standard and are published to the nearest minute. Hills or buildings on your horizon delay the visible sunrise further.
What is the equation of time?
The equation of time is the difference between apparent solar time (what a sundial shows) and mean solar time (what a clock shows). It arises because Earth's orbit is elliptical and its axis is tilted, and it ranges from about −14 minutes in mid-February to about +16 minutes in early November. It is why solar noon is not at 12:00 even on a time zone's central meridian, and why the earliest sunset of the year comes before the December solstice and the latest sunrise after it.
Why are sunrise times different for places in the same time zone?
The sun rises when it crosses your local horizon, which depends on your longitude: every degree east within a zone brings sunrise 4 minutes earlier. Latitude changes the seasonal swing: near the equator the sun rises about 06:00 all year, while at 60° N sunrise moves from about 03:00 in June to 09:00 in December. The calculator applies both through the longitude term and the hour angle.
What does solar noon mean and why is it not 12:00?
Solar noon is the moment the sun crosses your meridian and reaches its highest point in the sky. It equals 12:00 only on the zone's central meridian with the equation of time at zero; elsewhere it shifts by 4 minutes per degree of longitude from that meridian plus the equation of time, and by a further hour under daylight saving time. In New York on 21 June it is 12:58 EDT.
What happens at polar latitudes?
When the sun's declination is large enough compared with your latitude, it never goes below the horizon (midnight sun) or never rises above it (polar night). Mathematically cos H falls outside −1 to 1. The calculator reports this in words rather than a time. Just outside those dates sunrise and sunset still happen but move by many minutes a day, and the one-minute accuracy no longer holds.
Related calculators
Sources & references
Think a result is wrong? Report a problem with this calculator.