Knowing exactly when the light changes is the difference between catching a shot and missing it. This calculator computes sunrise, sunset, golden hour, and all three twilight stages for any location and date using the same NOAA solar position algorithm that powers professional almanacs.
How it works
The sun’s position is found from the date’s Julian century, which gives the geometric mean longitude, the equation of time, and the solar declination. For a target sun altitude angle, the hour angle is:
cos(H) = ( sin(altitude) − sin(lat)·sin(declination) )
/ ( cos(lat)·cos(declination) )
The hour angle H (in degrees) is converted to minutes and applied either side
of solar noon. Solar noon itself is 720 − 4·longitude − equationOfTime
minutes UTC, which is then shifted to your local clock. Each event uses a
different altitude angle: -0.833 degrees for sunrise and sunset (allowing for
refraction and the sun’s radius), -6 for civil, -12 for nautical, and -18 for
astronomical twilight.
Tips and notes
At high latitudes in summer the sun may never reach -18 degrees, so astronomical
twilight never ends and the sky stays partly lit all night. The tool reports
No darkness in that case. For the warmest landscape light, shoot during the
golden hour window flagged around sunrise and sunset; for deep-sky targets wait
until astronomical twilight ends. Remember the offset you enter is your standard
or daylight-saving offset from UTC, so add an hour during summer time if your
region observes it.