keisoku

Sunrise & Sunset Calculator (by Latitude and Longitude)

Estimate sunrise, sunset, solar noon and daylight length for any point on Earth from its latitude, longitude and date. Includes coordinate presets for major cities.

Input

Enter a latitude, longitude and date to estimate that location's sunrise, sunset, solar noon and length of daylight. Use positive values for north latitude and east longitude, and negative values for south latitude and west longitude.

Fill coordinates from a major city

Selecting a city auto-fills the latitude and longitude (optional)

°
°
2026/06/27
Standard time (time zone)

Result

Daylight hours (estimate)

14h 34m

Sunrise

04:27

Solar noon (sun at midday)

11:44

Sunset

19:01


Calculation details

Daylight hours14h 34m
Solar altitude at noon77.7°
Solar declination23.4°

An estimate using a standard atmospheric refraction value (0.833° below the horizon). It does not account for elevation, terrain or weather conditions.

How it works

  • Enter a latitude, longitude, date and standard time (time zone) to calculate that location's sunrise, sunset and solar noon times, along with the length of daylight between them. Use positive values for north latitude and east longitude, and negative values for south latitude and west longitude.
  • The calculation uses an astronomical approximation based on solar declination and hour angle: it derives the declination and equation of time from the day of the year, then computes the sunrise hour angle for the given latitude. Atmospheric refraction at the horizon is treated with a standard value, taking the moment the sun's center reaches 0.833° below the horizon as sunrise and sunset.
  • Solar noon (the moment the sun is due south and at its highest) is derived from the difference between the location's longitude and the reference meridian of its standard time, together with the equation of time. The solar altitude at noon and the solar declination are also shown as reference values.
  • At high latitudes there can be a 'midnight sun' in summer, when the sun never sets all day, and a 'polar night' in winter, when the sun never rises. In those cases no sunrise or sunset is shown and the condition is indicated instead.
  • Elevation, surrounding terrain and same-day weather (refraction changes due to temperature or pressure) are not taken into account, so the result is only an estimate. Errors of a few minutes can occur.
  • Use it as a guide for farm work, photography, astronomy or planning sunlight exposure for a home. If you need official sunrise and sunset times for navigation, aviation or other official purposes, refer to published values from authorities such as a national observatory.