The golden hour calculator tells you the precise start and end times for the morning and evening golden-hour windows, the blue-hour windows, and the key solar events (sunrise, solar noon, sunset) for any location on Earth on any date. Every calculation runs entirely in your browser — no data is sent anywhere.
How it works
The underlying engine is a JavaScript implementation of the NOAA Solar Calculator algorithm, which is itself derived from Jean Meeus’s Astronomical Algorithms. The core of the calculation is the solar altitude formula:
sin(altitude) = sin(lat) × sin(dec) + cos(lat) × cos(dec) × cos(H)
where lat is your latitude, dec is the sun’s declination on the date in question, and H is the solar hour angle (how far the sun is from local solar noon). Rearranging for H gives:
cos(H) = (sin(altitude) − sin(lat) × sin(dec)) / (cos(lat) × cos(dec))
For each altitude boundary — -6°, -4°, +6° — the calculator solves this equation and converts the resulting hour angle back to a clock time using the equation of time (the difference between mean solar time and apparent solar time) and your longitude. Standard sunrise and sunset use an altitude of -0.833° to account for atmospheric refraction and the apparent radius of the solar disc.
The four photographic windows are:
| Window | Sun altitude | Character |
|---|---|---|
| Blue hour (morning) | -6° to -4° | Deep blue sky, no direct sunlight |
| Golden hour (morning) | -4° to +6° | Warm amber, long soft shadows |
| Golden hour (evening) | +6° to -4° | Same as morning, reversed |
| Blue hour (evening) | -4° to -6° | Cool blue, city lights balance sky |
Worked example
Location: London (51.5074 °N, -0.1278 °E), Date: 21 June (summer solstice), UTC offset: +1 (BST)
On the summer solstice the sun rises very early and climbs steeply — but because London is at 51.5°N the arc is still low enough to give generous golden-hour windows:
- Morning blue hour: approx. 03:45 – 04:02 (17 min)
- Morning golden hour: approx. 04:02 – 05:07 (65 min)
- Sunrise: approx. 04:43
- Sunset: approx. 21:21
- Evening golden hour: approx. 20:16 – 21:37 (81 min)
- Evening blue hour: approx. 21:37 – 21:55 (18 min)
Compare with 21 December (winter solstice): the sun rises far later and only reaches about 15° at noon, making every golden-hour window shorter and the quality of light remarkable throughout the low-sun winter day.
Formula note
The key inputs derived during calculation are:
- Solar declination — the sun’s latitude (varies from -23.44° at winter solstice to +23.44° at summer solstice).
- Equation of time — a correction of up to ±16 minutes for the eccentricity of Earth’s orbit and the tilt of the ecliptic.
- Solar noon in UT = (720 − 4 × longitude − equationOfTime) / 60.
- Hour angle for each altitude boundary, solved from the altitude formula above.
- Rising time = solarNoon − hourAngle / 15; setting time = solarNoon + hourAngle / 15.
The /15 factor converts degrees of arc to hours of time (Earth rotates 15° per hour).