Sunrise Sunset Calculator

Estimate solar sunrise, sunset, and daylight duration from latitude and day of year.

Sunrise and sunset calculation
Results are local solar times and do not include civil time-zone corrections.

About sunrise and sunset times

Sunrise and sunset depend mainly on latitude and the Sun's seasonal declination. Earth is tilted relative to its orbit, so the length of daylight changes through the year. Near the equator, day and night remain close to twelve hours. At middle and high latitudes, summer days become longer and winter days shorter. Within the polar circles, some dates can have continuous daylight or continuous darkness, meaning there is no ordinary sunrise-and-sunset pair. This calculator uses a standard declination approximation based on day of year. It solves the sunrise hour angle for a geometric Sun at the horizon and reports times relative to local solar noon. Solar noon is fixed at 12:00 in this result, with sunrise and sunset placed symmetrically around it. Daylight duration is twice the sunrise hour angle converted at fifteen degrees per hour. The model is useful for understanding seasonal geometry and producing quick planning estimates. Local solar time differs from civil clock time. A clock follows the legal time zone, while the Sun crosses each longitude at a different moment. Daylight saving time, longitude east or west of the time-zone meridian, and the equation of time all shift clock readings. To convert these estimates to local clock time, apply those corrections for the intended place and date. This calculator intentionally does not infer a time zone from latitude alone because many different longitudes share the same latitude. Official published sunrise and sunset commonly use an apparent solar altitude below zero to account for atmospheric refraction and the visible radius of the Sun. Elevation, terrain, buildings, weather, and local horizon shape can also alter when sunlight is actually seen. Consequently, these geometric times should not replace an astronomical almanac for navigation, religious observance, aviation, or any legal definition. They are appropriate for education, rough solar-energy studies, gardening, photography planning, and comparisons of daylight length. For leap years after February, the day number and declination approximation introduce a small additional difference, so precision work should use the full calendar date and a validated ephemeris.

Sunrise and sunset examples

Times are local solar time with solar noon at 12:00.

Latitude and daySunrise, sunset, daylightSituation
0°; day 8106:00; 18:00; 12 hEquator near March equinox
40°; day 172About 04:35; 19:25; 14.84 hNorthern summer
40°; day 355About 07:25; 16:35; 9.16 hNorthern winter

How to estimate sunrise and sunset

  1. Enter latitude, using negative degrees for locations south of the equator.
  2. Enter the date as a day number from 1 through 365.
  3. Select Calculate sunrise and sunset.
  4. Read the solar times and daylight duration, then apply civil-time corrections if needed.

Sunrise and sunset FAQ

Are these local clock times?

No, they are local solar times centered on solar noon at 12:00. Clock conversion requires longitude, time zone, daylight saving, and equation-of-time corrections.

Why can the calculator report no sunrise pair?

High latitudes can experience continuous daylight or darkness around a solstice. In that situation the geometric equation has no sunrise and sunset on the selected day.

Does atmospheric refraction affect sunrise?

Yes, the atmosphere bends sunlight and makes the Sun visible while it is geometrically below the horizon. Official tables generally include this effect, but this simplified geometric estimate does not.

How do I find the day of year?

January 1 is day 1, and each following date increments the number by one. In a leap year, dates after February have a day number one higher than in a 365-day year.

Why is daylight longer in summer?

Earth's axial tilt points a hemisphere toward the Sun during its summer. The Sun then follows a longer apparent path above that hemisphere's horizon.