Guide
Sunrise, sunset, twilight and golden hour for any place and date
The times of sunrise and sunset change with the date and with your place on Earth, and photographers, walkers, farmers and anglers all plan around them. They can be found from astronomy alone, with no tables. This calculator works out the sun’s position for your latitude and longitude, and lists sunrise, sunset, solar noon, the day length, the three twilights and the golden and blue hours.
How it is calculated
The method follows the equations published by the US National Oceanic and Atmospheric Administration. For the date it finds the sun’s declination, the angle above or below the equator at which it stands, and the equation of time, the difference between a sundial and a steady clock. With the latitude these give the hour angle at which the sun reaches a chosen height. Solar noon is when the sun crosses the meridian, and sunrise and sunset lie symmetrically before and after it. The tool repeats the step once to refine the result.
Time zones
Enter the place as latitude and longitude, in decimal degrees or degrees, minutes and seconds, and the time zone by name, such as Europe/London or America/New_York, or UTC. The names follow daylight saving time, so the times come out in the clock time people at the place would use. If you leave the zone empty the tool uses the one your browser is set to, and an empty date means today.
Twilight and the light of the day
Civil twilight ends when the sun is 6° below the horizon, when the brightest stars appear and it is still bright enough to work outdoors. Nautical twilight is the sun at 12° below, when the horizon fades at sea, and astronomical twilight at 18° below is the start of true night for astronomers. Golden hour, the warm light that photographers like, is when the sun is between about 4° below and 6° above the horizon, and blue hour is the band from 6° to 4° below it.
Worked examples
Press the first sample: London on the June solstice. Sunrise is 04:43 and sunset 21:21 British Summer Time, solar noon is 13:02 and the day is 16 hours 38 minutes. Astronomical twilight does not occur because the sun does not sink 18° below the horizon, so the table shows a dash. New York on the December solstice has sunrise at 07:16, sunset at 16:31 and 9 hours 15 minutes of daylight. Sydney on the same date has sunrise at 05:40, sunset at 20:05 and 14 hours 25 minutes. The fourth, Tromsø in Norway at 69.6° N on 21 June, has polar day: the sun stays up all day.
Polar regions
North of the Arctic Circle and south of the Antarctic Circle the sun can stay above the horizon all day in summer and below it all day in winter. The tool reports a polar day or polar night, instead of an error, and the twilight rows show a dash when the sun never reaches that height. Near the poles the times also change quickly from day to day, so check a particular date.
Accuracy
The times agree with published tables to within about two minutes for most places below 60° of latitude. The calculation assumes a flat horizon at sea level and the standard allowance for the bending of light in the atmosphere. Hills, buildings, altitude and weather change the moment you actually see the sun, and the effect of height above the sea is not included.
Limits
The date is read as a calendar date in your chosen time zone. Times are shown as hours and minutes on a 24-hour clock without a date, so an event just after midnight local time appears as a small number such as 00:12. The tool does not give the sun’s height at other times of day: use a sun angle calculator for that.
Related tools
- Moon Phase Calculator gives the phase and the dates of the main phases.
- Solar Panel Tilt Calculator uses the sun’s declination to find panel angles.
- Sun Angle Calculator finds the height and direction of the sun at any moment.
- Celsius to Fahrenheit Converter changes the temperature for the day you plan.
Checked against the current version of the Sunrise Sunset Calculator on .

