Sunrise and Sunset Calculator
Enter a latitude, longitude, date and UTC offset to get sunrise, sunset, solar noon and day length, plus civil, nautical and astronomical twilight and the golden and blue hours. The math is the NOAA solar position model and runs entirely in your browser.
How to calculate sunrise and sunset
- Enter the latitude (north positive) and longitude (east positive) of your location.
- Pick the date and set the UTC offset for the time zone you want results in.
- Read sunrise, sunset, solar noon, day length, the twilights and the golden hour.
Examples
New York on the June solstice
40.71, -74.01, 2026-06-21, UTC-4
Sunrise 05:25, sunset 20:31, day length 15h 06m.
Frequently asked questions
How are sunrise and sunset calculated?
We use the NOAA solar position equations. For the date we compute the sun's declination and the equation of time, then solve for the hour angle when the sun's center sits at -0.833 degrees, the standard altitude that accounts for atmospheric refraction and the sun's radius.
Why do I need to enter a UTC offset?
Sunrise depends only on your longitude and the date in universal time. To show the answer on your wall clock we shift it by your UTC offset. Enter your standard offset, or add an hour during daylight saving time.
What is the difference between civil, nautical and astronomical twilight?
They mark how far the sun is below the horizon: civil twilight ends at 6 degrees, nautical at 12 degrees and astronomical at 18 degrees. Civil twilight is bright enough to work outdoors; after astronomical twilight the sky is fully dark.
What are the golden hour and blue hour?
The golden hour is the warm, soft light when the sun is between 6 degrees above and 4 degrees below the horizon. The blue hour is the cooler light just after that, with the sun between 4 and 6 degrees below the horizon. Both are favourites for photography.
Why does it say midnight sun or polar night?
Near the poles the sun can stay above the horizon for a full day (the midnight sun) or never rise at all (polar night). When that happens there is no sunrise or sunset to report, so the tool flags the condition instead.
How accurate are the times?
For locations where the sun actually rises and sets the times are normally within about a minute of published almanac values. Local terrain, elevation and unusual weather can shift the real horizon by a few minutes.
Learn more
- What is solar noon?
Solar noon explained: when the sun is highest, why it is rarely at 12:00, and how longitude and the equation of time move it.
Related tools
Moon Phase Calculator
Find the moon phase for any date. See the phase name, moon age in days, and percent illuminated, computed with the standard synodic method. Free and instant.
Day of the Year Calculator
Find which numbered day of the year a date is, from 1 to 366, plus how many days are left. Handles leap years and Feb 29. Free and private.
Meeting Planner Across Time Zones
Find a meeting time that works for everyone. Add each person's UTC offset and working hours to see the overlapping window in their local time and in UTC.
Add Business Days Calculator
Add or subtract working days from a date, skipping weekends and any holidays you list. See the result date and its day of the week instantly.
Add Days Calculator
Add or subtract calendar days from any date and see the result with its day of the week. Free, instant and works for past or future dates.
Add Time Calculator
Add or subtract hours and minutes from a time of day. See the new clock time and whether it crosses into another day. Free and private.