Sunrise, Sunset, Golden Hour & Moon Phase Calculator
Calculate exact sunrise, sunset, golden hour, civil twilight, day length, and moon phase by city or coordinates.
How Sunrise, Sunset & Moon Phase Calculator Works & Calculation Reference
Runs the NOAA general solar position equations and synodic lunar cycle formulas locally for any city preset, custom Latitude/Longitude, or browser geolocation.
Accuracy & Formula
Sunrise and sunset use standard 90.833° solar zenith accounting for atmospheric refraction; civil twilight uses 96° and photography golden hour uses sun altitude +6°.
Worked Example
On June 21 (Summer Solstice) in New York (40.71°N), daylight spans roughly 15 hours and 5 minutes from ~5:25 AM sunrise to ~8:30 PM sunset.
Civil Twilight vs. Golden Hour Windows
Civil dawn begins when the sun center is 6° below the horizon—bright enough for outdoor visibility without artificial lighting. Golden hour covers the final hour before sunset (or first hour after sunrise) while the sun sits within 6° above the horizon, casting warm, low-contrast light.
How Lunar Age & Synodic Illumination Work
A complete lunar cycle (synodic month) averages 29.53 days from New Moon through First Quarter (~Day 7.4), Full Moon (~Day 14.8), and Last Quarter (~Day 22.1). Illumination percentage varies smoothly from 0% to 100% along the cosine curve of the lunar phase angle.
Solar Elevation Definitions & Lunar Phase Stages
Astronomical zenith angles and lunar cycle illumination benchmarks.
| Event / Stage | Solar Zenith / Lunar Age | Visual Lighting Condition |
|---|---|---|
| Civil Dawn / Dusk | 96.0° (-6° below horizon) | Clear horizon visible; ambient sky glow |
| Sunrise / Sunset | 90.833° (upper limb refraction) | Upper edge of sun crosses horizon |
| Golden Hour | 84.0° (+6° above horizon) | Warm directional sunlight ideal for photography |
| New Moon (0%) | Day 0.0 / 29.5 | Moon aligned near sun; dark night sky |
| First / Last Quarter (50%) | Day ~7.4 / ~22.1 | Half-disc lit; crisp crater shadows |
| Full Moon (100%) | Day ~14.8 | Rises near sunset; illuminates landscape all night |
Sunrise, Sunset & Moon Phase Calculator — Frequently Asked Questions
Why do I have to pick a matching Time Zone when entering custom coordinates?
NOAA formulas yield UTC solar timestamps; selecting your local IANA zone formats Sunrise and Sunset in local wall-clock time automatically.
Why can polar latitudes show Polar Day or Polar Night?
Above 66.5°N or below 66.5°S near solstices, Earth’s axial tilt keeps the sun continuously above or below the horizon for 24 hours.
Is GPS location transmitted to any server?
No. If you click Use My Location, coordinates stay strictly inside browser memory to run local math.