How Sunrise & sunset times works
Sunrise & Sunset Times computes the exact sunrise, sunset, solar noon and total day length for any location and date using standard astronomical algorithms, all inside your browser. You provide the latitude and longitude of your chosen location, either by typing them yourself or by tapping the location button to fill them from your device with your permission, choose a date, and the tool calculates the solar events using the NOAA solar position formulas. No query is sent to a server; the formulas run entirely in JavaScript.
The calculations account for the equation of time, the solar declination for the given date, and the observer's latitude to determine the hour angle at which the sun crosses the horizon. Civil, nautical and astronomical twilight times are also derived from the same angular calculations using their respective depression angles (6, 12 and 18 degrees below the horizon). At extreme latitudes near the poles, the tool correctly reports polar day or polar night conditions rather than fabricating a sunrise time. Pick the time zone from the list and the clock times follow it, with daylight saving resolved for the date you selected rather than a fixed numeric offset you would have to adjust twice a year.