Skip to content
The Calculatorz
Dates & time

Sunrise and Sunset Calculator (Day Length and Twilight)

Calculate sunrise, sunset, solar noon, day length and civil twilight for any place and date from its latitude and longitude.

Results are estimates for everyday planning.

Date and location

Location

How to use this calculator

Enter the date, the location's latitude and longitude in decimal degrees (you can copy them from any map app) and the local time zone offset from UTC, including daylight saving time if it applies on that date. The calculator uses the US National Oceanic and Atmospheric Administration (NOAA) solar equations.

Formula

The NOAA method finds the Sun's declination and the equation of time for the date, then the hour angle at which the Sun's centre is 0.833° below the horizon (allowing for refraction and the Sun's radius): cos H = [cos 90.833° − sin φ sin δ] ÷ (cos φ cos δ). Sunrise = solar noon − H ÷ 15 hours; sunset = solar noon + H ÷ 15. Civil twilight uses 96°.

Calculator credits

Calculator developmentJulia Edwards

Editorial supervision

Published byThe Calculatorz

Last updated

Read how we research, test, review and correct our calculators in our editorial policy.

Frequently asked questions

How accurate are the times?

Usually within a minute for latitudes between about ±72°. Hills, buildings and unusual atmospheric conditions can shift the visible times.

What is civil twilight?

The period when the Sun is less than 6° below the horizon; outdoor activities are usually possible without artificial light.

What is solar noon?

The moment the Sun is highest in the sky, which is rarely exactly 12:00 on the clock.

Why is there no sunrise sometimes?

Near the poles the Sun can stay above the horizon all day in summer (midnight sun) or below it all day in winter (polar night).

Which time zone should I enter?

The local offset on that date, including daylight saving time: for example +5 for Pakistan, +4 for the UAE, −5 for New York in winter.

Where do I find latitude and longitude?

In most map apps: long-press a place to see its coordinates in decimal degrees.

References & methodology sources

These sources support the calculator’s formula, definitions, thresholds, units or result interpretation.

  1. NOAA Global Monitoring Laboratory. (n.d.). Solar calculation details. View source
  2. NOAA Global Monitoring Division. (n.d.). General solar position calculations. View source
  3. Meeus, J. (1998). Astronomical algorithms (2nd ed.). Willmann-Bell. View source
  4. NASA Science. (n.d.). Moon phases. View source