Toolvito

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

Your values

A town or city (London, Pune, São Paulo; add a country to choose: London, Canada) or the latitude and longitude (51.4779, -0.0015 or 51°28′40″N 0°0′5″W).

Leave empty for the place’s own time zone, or type a city, a time zone such as Europe/London, an abbreviation such as EST, or an offset such as UTC+5:30.

Leave empty for today (in the time zone of the place).

More options

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.

Sun times checked on the server

Sun times checked on the server

Uses the place and days of the result above. The server finds sunrise, sunset, solar noon and the twilights from the JPL DE440s ephemeris with Skyfield and compares each time with the page’s.

The calculator above works on your device. When you run a task in this section, Toolvito receives the values and result you submit to make the file or run the check. Download the result within one hour after the job finishes. Choose Delete files now to request earlier removal. The hourly cleanup normally removes files within one to two hours after completion.

How to use the sunrise and sunset calculator

  1. 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).
  2. 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.
  3. Choose the date, or leave it empty for today.
  4. For a month or a year, choose A table of days, the first date and the number of days.
  5. 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.

Related tools