
Web Scripts & Software
DEV3 Sunrise, Sunset & Golden Hour Calculator — Source Code (React + Tailwind)
from $29
Live demoLoading…
Everyday tool
Free, no sign-up. Runs in your browser; nothing is uploaded. Buy the source code: $29 Regular / $69 Extended
Red marker at 12:00
| Astronomical dawn | 05:38 |
|---|---|
| Nautical dawn | 06:18 |
| Civil dawn | 07:00 |
| Blue hour (morning) | 07:00 - 07:15 |
| Sunrise | 07:39 |
| Golden hour (morning) | 07:15 - 08:37 |
| Solar noon | 11:48 |
| Golden hour (evening) | 14:59 - 16:21 |
| Sunset | 15:57 |
| Blue hour (evening) | 16:21 - 16:35 |
| Civil dusk | 16:35 |
| Nautical dusk | 17:17 |
| Astronomical dusk | 17:57 |
Local time in Europe/London. Golden hour: Sun between 6° above and 4° below the horizon. Blue hour: 4° to 6° below. Sunrise and sunset use the upper edge of the Sun and 34 arc-minutes of refraction.
Polar diagram: the centre is straight up, the outer ring is the horizon, north is at the top. The gold curve is the selected day; the blue and orange curves are the winter and summer solstice paths. Use it to plan photos, windows or solar panels.
Longest about June 20, shortest about December 21 (every 2nd day sampled).
Seasons are for the northern hemisphere naming; in the south the solstices swap seasons.
Calculated in your browser with astronomy-engine (MIT), accurate to about one minute (NOAA solar position agreement). City data © GeoNames (CC BY 4.0), loaded only when you search. Day lengths on the chart include daylight-saving shifts of the chosen place.
Need Sunrise, Sunset & Golden Hour Calculator as a full mobile or web app? We build it in about a week. Built in about a week, from $99. Send your requirements or SOW; you get a fixed quote and a delivery date.
The sunrise, sunset & golden hour calculator stays free to use online. If you want the code to run, edit and ship in your own project, get the full source from the DEV3 Marketplace. Instant download, 6 months of support.
Get the full app behind this tool. Buy once, own the source, and try each one live first.

Web Scripts & Software
from $29
Live demo
Web Scripts & Software Mobile app
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Enterprise SaaS Starters
from $99
Live demo
Web Scripts & Software
from $99
Live demo
Web Scripts & Software Mobile app
from $99
Live demo
Web Scripts & Software Mobile app
from $99
Live demo
Web Scripts & Software Mobile app
from $99
Live demoThis calculator gives the position of the Sun for any place and date, and turns it into the times that matter: sunrise, solar noon, sunset, day length, twilight, golden hour and blue hour. It works for photographers, event planners, gardeners, runners and anyone with solar panels.
The tool searches for the moment the centre of the Sun reaches a chosen altitude. Sunrise and sunset use an altitude of -0.833 degrees: 0.266 degrees for the Sun's radius and 0.567 degrees (34 arc-minutes) for atmospheric refraction. Civil, nautical and astronomical twilight use -6, -12 and -18 degrees. Golden hour runs from -4 to +6 degrees, and blue hour from -6 to -4. Solar noon is when the Sun crosses your meridian.
Arrive 20 minutes before the golden hour starts. Blue hour is best for city skylines. Use the sun-path diagram to check where the Sun will be, and the summer and winter curves to see how that changes through the year.
Pick your city and the sunset time appears at the top, in your local time and with daylight saving applied. Use the date box to look up any other day.
Golden hour is the period after sunrise and before sunset when the Sun is low, the light is soft and warm, and shadows are long. Photographers define it as the Sun being between 6 degrees above and 4 degrees below the horizon, which is what this tool uses.
Blue hour is the short time just before sunrise and after sunset, when the Sun is between 4 and 6 degrees below the horizon and the sky turns deep blue. It sits inside civil twilight.
They mark how far the Sun is below the horizon: 6 degrees for civil twilight (you can still see well outdoors), 12 degrees for nautical (the horizon fades) and 18 degrees for astronomical (the sky is fully dark for stargazing).
Far north or south, the Sun can stay above the horizon for weeks in summer (polar day) or below it in winter (polar night). The tool says so instead of showing a wrong time.
Times use the astronomy-engine library with standard refraction and agree with NOAA and timeanddate to about one minute. Hills, buildings and weather change what you actually see.