Sunrise & Sunset Calculator
Compute sunrise, sunset, solar noon and the three twilight phases for any latitude, longitude and date. Everything runs in your browser.
What this calculator returns
It computes the seven moments of the solar day for the coordinates you enter: sunrise (upper limb crosses the horizon), solar noon (sun's highest point), sunset, and the start/end of civil, nautical and astronomical twilight. All times are shown in your device's local time zone. Day length is the interval between sunrise and sunset.
How to use it
Enter your latitude and longitude in decimal degrees (north and east are positive; south and west are negative — for example, Sydney is roughly -33.87, 151.21). Pick a date. The result panel updates instantly. The Use my location button asks the browser for permission and fills the coordinates from GPS or Wi-Fi positioning — coordinates are never sent off your device.
How the times are calculated
The calculator uses the standard solar position model published by the U.S. National Oceanic and Atmospheric Administration. It computes the Julian date for your local civil date, derives the Sun's mean longitude, mean anomaly, equation of centre and equation of time, and from those obtains the solar declination. The hour angle for each event is then arccos((sin(h₀) − sin(φ)·sin(δ)) ÷ (cos(φ)·cos(δ))), where h₀ is the geometric altitude of the Sun's centre at the event (−0.833° for sunrise/sunset to account for atmospheric refraction and the Sun's apparent radius, −6° for civil twilight, −12° for nautical, −18° for astronomical). Solar noon plus or minus the hour angle (in time units) gives the moment of the event in UT, which is then displayed in your local zone.
What each twilight phase means
Civil twilight (Sun 0° to 6° below horizon): bright enough to read outside without artificial light; the brightest planets become visible. Nautical twilight (6° to 12°): the horizon is still distinguishable at sea, useful for celestial navigation. Astronomical twilight (12° to 18°): the sky is dark enough that 6th-magnitude stars become visible, but a faint glow may still affect deep-sky photography. After astronomical dusk, true night begins.
Frequently asked questions
How accurate are these times?
Why does the result say 'polar day' or 'polar night'?
What latitude and longitude format does it accept?
35.6762, 139.6503, Buenos Aires is -34.6037, -58.3816. If your source uses degrees-minutes-seconds, convert first: D + M/60 + S/3600.
EN
PT
ES