Code tool

Sunrise & Sunset Calculator

Estimate sunrise, sunset, solar noon and daylight duration from your coordinates, date and UTC offset.

In-browser processingNo account requiredPrivacy details ↗

Supply the offset active on this date, including daylight saving if applicable. No city lookup or automatic legal time-zone rules. Full dates show events crossing midnight; the pair belongs to the solar cycle centered on the reference date, not a civil-day event list.

Numerical approximation, rounded to minutes. Uses one noon-based solar position for the reference date and a level horizon. Errors can grow near polar transitions. Terrain, height, atmospheric conditions and weather can change observations; visibility is not guaranteed.

Formula source: NOAA — General Solar Position Calculations

A QUICK WALKTHROUGH

How to use this tool

  1. Enter decimal coordinates and the reference date.
  2. Enter the UTC offset that applies on that date.
  3. Calculate and read the full event dates and approximation limits.

Time zone: UTC offset in hours (−12 to +14)

Supply the offset active on this date, including daylight saving if applicable. No city lookup or automatic legal time-zone rules. Full dates show events crossing midnight; the pair belongs to the solar cycle centered on the reference date, not a civil-day event list.

Estimated daylight duration

Numerical approximation, rounded to minutes. Uses one noon-based solar position for the reference date and a level horizon. Errors can grow near polar transitions. Terrain, height, atmospheric conditions and weather can change observations; visibility is not guaranteed.

GOOD TO KNOW

Common questions

Does the tool detect my time zone?

No. You supply coordinates and the UTC offset, including any daylight-saving adjustment.