Calculates on this device. File exports run online.
Sunrise Sunset Calculator
Type a town or the latitude and longitude and choose a date. You get the times of sunrise and sunset on the clock of that place, the length of the day, solar noon, the direction of sunrise and sunset, and the three kinds of twilight. You can also make a table for a month or a year.
Enter your values
Check these values
Your values are worked out in this browser. They are not sent to a server.
Your result will show here
Fill in the values, then choose Calculate.
Your result
How it was worked out
How to use the sunrise and sunset calculator
- Type a town or city in Place, such as London or Pune. If two towns have the same name, add the country: London, Canada. You can also type the latitude and longitude: 51.4779, -0.0015 (south and west are negative, or use S and W).
- Leave Time zone empty to use the clock of the place, with daylight saving time. Or type another zone, such as UTC or Asia/Kolkata.
- Choose the date, or leave it empty for today.
- For a month or a year, choose A table of days, the first date and the number of days.
- The box under the result works the same times out again on the server from the JPL DE440s ephemeris and says if they agree.
What the times mean
- Sunrise and sunset: the top edge of the Sun is on a level horizon. The centre of the Sun is then 0.8333° below the horizon: 34′ for the bending of light by the air and 16′ for the Sun’s radius. This is the convention of the US Naval Observatory and of HM Nautical Almanac Office, the makers of the nautical almanac.
- Twilight: civil, nautical and astronomical twilight begin (dawn) and end (dusk) when the centre of the Sun is 6°, 12° and 18° below the horizon. In summer far from the equator the Sun may never go so low: there is no astronomical darkness.
- Solar noon: the Sun is highest and due south (or due north south of the tropics). It is seldom 12:00 on the clock.
- Day length: the time between sunrise and sunset. Near the poles the Sun can stay up all day (midnight sun) or stay down (polar night); the calculator says so.
- Direction: the azimuth, in degrees clockwise from north (90° is east), where the Sun rises and sets.
Worked example
London (51.5085° N, 0.1257° W) on 21 June 2026, on British Summer Time (UTC+1): sunrise 04:43 at 48.9° (north-east), solar noon 13:02 with the Sun 61.9° high, sunset 21:22 at 311.1° (north-west), a day of 16 h 38 min. Civil dusk is at 22:09 and nautical dusk at 23:24; the Sun never reaches 18° below the horizon, so there is no astronomical darkness that night.
Where the data comes from
- Towns and their time zones: Place data © GeoNames (geonames.org), CC BY 4.0, the list of towns with more than 15,000 people. Clocks and daylight saving time: the IANA time zone database, 1970 to 2050.
- Positions: Jean Meeus, Astronomical Algorithms (2nd edition): the Sun by VSOP87 (about 1″), with nutation, aberration and the parallax of the place. ΔT (the slowing of the Earth’s rotation) from Espenak and Meeus (NASA, 2006).
- The check on the server uses the JPL DE440s ephemeris (NASA Jet Propulsion Laboratory) with Skyfield. Both usually agree to about a second.
- Your place and dates are worked out in your browser. For the server check only the latitude, longitude and the day times are sent.
Limits you should know
- Times are for sea level and a level horizon. Hills, buildings or a high place change them by a few minutes, and the air near the horizon changes rises and sets by a minute or more from day to day.
- Dates from 1900 to 2100. Daylight saving rules are known for 1970 to 2050; for other years type a UTC offset such as UTC+1.
- Times after 2026 use a predicted ΔT. Sunrise and sunset move by only a few seconds.
- Postal codes are not known: type the town or the latitude and longitude.