HohoTools

Sunrise Sunset Calculator

This free sunrise sunset calculator computes the sun's daily schedule for any place on Earth with the same published equations the NOAA Solar Calculator uses: the Julian day, the sun's geometric mean longitude, its true and apparent longitude, the axial-tilt correction, the declination, the equation of time and the sunrise hour angle, refined twice for accuracy.

How to use

  1. Enter a date, then a latitude (-90 to 90) and longitude (-180 to 180) — or use the location button.
  2. Read sunrise, solar noon and sunset, shown in your browser’s local time zone.
  3. Check the day length row for how long the sun stays above the horizon.
  4. Near the poles the tool reports midnight sun or polar night explicitly instead of times.

Frequently asked questions

Which algorithm does the calculator use?

The NOAA Solar Calculator equations: Julian day, geometric mean longitude, true and apparent longitude, obliquity correction, declination, the equation of time and the sunrise hour angle, each refined a second time at the event’s own moment. Results are checked against NOAA reference values to under a minute.

How accurate are the times?

Minute-level. Refraction and the solar disc are approximated the standard way with a 90.833° zenith, matching the NOAA calculator’s display convention. Local terrain, horizon elevation and weather are not modeled, so real-world sunrise can shift by a few minutes in hills or mountains.

What do “sun does not rise / does not set” mean?

Those are the polar night and midnight sun cases. When the hour-angle cosine leaves the range [-1, 1], no sunrise or sunset exists on that date at that latitude, and the calculator states it explicitly instead of returning an error or a meaningless time.

Which time zone are the results shown in?

Your browser’s own time zone, resolved through the standard Intl APIs — the same clock you live by. Keep in mind the event itself belongs to the date at the location you entered, so for distant coordinates the displayed calendar date can differ from the input date.

What does the location button do with my data?

It asks the browser for a one-off position and fills the latitude and longitude fields. If you decline or the fix fails, the tool simply asks you to type the coordinates. The position is never stored, logged or sent anywhere — all arithmetic happens on your device.

Related tools

About this tool

This free sunrise sunset calculator computes the sun's daily schedule for any place on Earth with the same published equations the NOAA Solar Calculator uses: the Julian day, the sun's geometric mean longitude, its true and apparent longitude, the axial-tilt correction, the declination, the equation of time and the sunrise hour angle, refined twice for accuracy. Enter a date plus a latitude and longitude, or press the location button and let your browser fill in the coordinates, and the tool returns sunrise, solar noon and sunset converted into your browser's own time zone, together with the total day length. Near the poles, when the hour-angle term leaves its legal cosine range, the result says so plainly — sun up all day (midnight sun) or sun below the horizon all day (polar night) — instead of showing an error or a broken time. Atmospheric refraction is approximated the standard way through a 90.833° zenith, accuracy is at the minute level, and terrain or altitude is not modeled. Everything is computed locally in your browser and nothing is uploaded.