Sunrise and Sunset Finder
Sunrise, sunset, solar noon and day length for any latitude and date, from the NOAA solar position equations.
Sun times from four numbers
Enter a latitude, a longitude, a date and a time zone. The page computes the Sun's declination and the equation of time from the Julian day using the NOAA solar position equations, then places sunrise and sunset either side of solar noon at the hour angle for a 90.833 degree zenith: the refraction and solar radius that decide when the upper limb appears on the horizon.
Expect about a minute of accuracy at mid-latitudes, which is finer than haze, terrain and the height of your eye. Near the poles the hour angle has no solution, and the page reports polar day or polar night instead of printing a time. A day that carries a daylight-saving change can be an hour out at its edges, because the offset is resolved for the date rather than the minute.
The latitude, longitude, date and zone live in this tab. Nothing is uploaded and nothing is stored, so a reload with the same four figures prints the same four times.
Compute sunrise, sunset, solar noon and day length for a date and a coordinate, with the solar declination, the equation of time and the UTC offset printed as working values.
The algorithm is the standard solar-position calculation, and the page shows the intermediate values so the result can be checked rather than taken on faith.
How to use it
Set the latitude and longitude in decimal degrees — north and east positive, so Sydney is −33.8688, 151.2093 — pick the date and the zone, or jump to one of the listed cities. The table prints the four times with the working values beneath.
The working values
Solar declination and the equation of time are the two quantities the calculation turns on, and the UTC offset used is printed too. With those three visible, a reader can reproduce the arithmetic with a table instead of trusting a black box.
Where it stops
One date, one coordinate and one zone per run. Polar day and night are reported as such rather than as a missing time, the zone list comes from the browser's Intl data, and local terrain or an elevated viewpoint is not modelled.
What to Expect
Best for
- planning around a specific sunrise or sunset
- checking a solar calculation against its working values
What this tool keeps
- The coordinates and the date stay in this tab; the result is computed locally and nothing is uploaded.
Frequently asked questions
What does the page compute?
Sunrise, sunset, solar noon and day length for one date at one coordinate, from solar declination and the equation of time. Both working values and the UTC offset used are printed.
What happens inside the polar circles?
Polar day and polar night are reported as such instead of as a missing sunrise. The sun does not cross the horizon that day, so there is no time to print.
Are the coordinates uploaded?
No. The calculation runs in this tab and neither the coordinate nor the date is sent anywhere or stored.
Build custom tools for your store
Join the SDK program to create useful ecommerce utilities for your store.