Science & Engineering
Sunrise & Sunset Calculator
Find sunrise, sunset, solar noon and day length for any location and date from its latitude and longitude.
How to use
- 1Enter the latitude and longitude (search a map for them; south and west are negative).
- 2Pick the date and the time zone to show times in.
How it's calculated
NOAA-style sunrise equation: the Sun's declination and the equation of time from the date, then the hour angle where the Sun's center is 0.833° below the horizon (accounting for refraction and the Sun's radius).
Frequently asked questions
How accurate are the times?
Usually within about a minute. Terrain, elevation and atmospheric conditions can shift what you actually see.
Why is there no sunrise sometimes?
Above the Arctic or Antarctic Circle, the Sun can stay up (midnight sun) or down (polar night) for days.
What is solar noon?
When the Sun is highest in the sky — halfway between sunrise and sunset, rarely exactly 12:00 on the clock.
A worked example: the summer solstice in London
For London (51.5074°N, −0.1278°E) on 21 June 2024, this tool's sunrise equation puts sunrise at 4:43 am and sunset at 9:21 pm local time — a day length of roughly 16 hours 38 minutes. Run the same date and equation for New York City in December instead (40.7128°N, −74.006°W, 21 Dec 2024) and sunrise shifts to 7:16 am with sunset at 4:31 pm — about 9¼ hours of daylight. Both outputs come from the same calculation; what changes is latitude (which sets how extreme the seasonal swing is) and the date (which sets the Sun's declination).
Why latitude decides how dramatic the swing is
The calculator's hour-angle term depends on both the Sun's declination (which varies with date, from about +23.44° at the June solstice to −23.44° in December) and the observer's latitude, multiplied together inside a cosine. Near the equator that product stays small all year, so day length barely changes with the seasons. At high latitudes the same swing in declination pushes the hour angle to its limits — which is exactly why Svalbard, Norway (78.22°N) gets 24-hour 'midnight sun' around the June solstice: the Sun's position never dips the required 0.833° below the horizon at that latitude and time of year.
Why solar noon is rarely 12:00 on the clock
Solar noon — when the Sun is at its highest point — depends on your exact longitude within a time zone and a small yearly wobble called the equation of time, caused by Earth's elliptical orbit and axial tilt. A location at the eastern edge of a time zone reaches solar noon earlier in clock time than one at the western edge, which is why this tool computes solar noon separately rather than assuming it's always 12:00 or the exact midpoint between sunrise and sunset (it's usually very close to the midpoint, but not always exact).
An empty date means today, and polar days drop the rise and set
Latitude and longitude start at London, 51.5074 and −0.1278, with Europe/London selected and the date empty. An empty date uses today. Latitude must be within 90 degrees and longitude within 180, or the calculation stops. Times are shown on a 24-hour clock in the zone I picked, and I also get sunrise and sunset as minutes after midnight in that zone, which is the figure that is stable to about a minute. If the sun never crosses the horizon, the rise and set lines are replaced by a single status, midnight sun or polar night, and solar noon is still listed. Day length is hours and minutes from the hour angle.
Related tools
- Planet & Star Position Finder (What's in the Sky Tonight)
See where the Sun, Moon and planets are in your sky right now or at any date and time — altitude, compass direction, constellation, brightness, and rise and set times — plus the Moon's phase.
- Moon Phase Calculator
Find the moon phase, illumination and moon age for any date — plus the dates of the next new moon and full moon.
- Solar Panel Size & Payback Calculator
Estimate how many solar panels and what system size (kW) you need to cover your electricity use, the yearly savings and the payback period.
- Punnett Square Calculator
Build Punnett squares for monohybrid and dihybrid crosses (Aa × Aa, AaBb × AaBb) and get genotype and phenotype ratios and probabilities.
- Islamic Prayer Times by City (Salah / Namaz Timetable)
Today's Fajr, Dhuhr, Asr, Maghrib and Isha times for any city, with a monthly timetable, Qibla direction and the Hijri date. Choose the calculation method and Hanafi or standard Asr. Calculated on your device.
- Time Unit Converter
Convert seconds, minutes, hours, days, weeks, months and years, including milliseconds and microseconds.