Sunrise & Sunset Calculator
Enter a date, latitude, longitude and applicable UTC offset to estimate sunrise, sunset and daylight duration for a location. The calculation uses standard solar geometry and is intended as a practical astronomical estimate.
Results are astronomical estimates using standard sunrise/sunset geometry. Local terrain, buildings, atmospheric conditions and daylight-saving rules can affect observed times.
How to use the Sunrise & Sunset Calculator
- Choose the date for which you want sunrise and sunset estimates.
- Enter latitude from -90 to 90 degrees.
- Enter longitude from -180 to 180 degrees, using negative values west of Greenwich and positive values east.
- Enter the UTC offset that applies to the location on the selected date.
- The calculator estimates the Sun's position using standard sunrise and sunset geometry.
- A 90.833-degree zenith is used to account approximately for atmospheric refraction and the apparent solar radius.
- The result shows estimated sunrise, sunset and total daylight duration.
- At high latitudes, sunrise or sunset may not occur on some dates.
Examples
Northern latitude
A latitude such as 45.5 represents a location north of the equator, while -45.5 represents the corresponding latitude south of the equator.
Western longitude
A longitude such as -73.57 represents a location west of Greenwich.
Daylight-saving time
Use the UTC offset that actually applies on the selected date because daylight-saving rules can change the local clock offset.
Polar day or night
At sufficiently high latitudes, the Sun may remain above or below the horizon all day during part of the year.
Frequently asked questions
Why do sunrise and sunset depend on latitude?
Latitude changes the apparent path of the Sun across the sky, which affects both sunrise and sunset times and seasonal daylight length.
Why do I need longitude?
Longitude affects local solar time because locations farther east or west experience solar noon at different universal times.
Why do I need a UTC offset?
The astronomical calculation must be converted to local clock time. The UTC offset tells the calculator how local civil time differs from UTC.
Are sunrise and sunset times exact?
No. They are astronomical estimates. Local terrain, buildings, atmospheric conditions and time-zone rules can cause observed times to differ.
Why can sunrise or sunset be unavailable?
Near the poles, the Sun may remain continuously above or below the horizon for part of the year, so a conventional sunrise or sunset does not occur.
More time & date tools
World Clock
PopularSee the current time in major cities and time zones around the world.
Open tool →Time Zone Converter
PopularConvert dates and times across multiple world time zones with IANA DST rules and UTC offsets.
Open tool →Days Until Calculator
PopularCount calendar days until or since any date with custom start date, weeks, weekday and inclusive counting.
Open tool →Date Difference Calculator
PopularCalculate calendar difference, total days and weeks between two dates with optional inclusive end-date counting.
Open tool →Calendar Generator
PopularCreate and print a monthly calendar for any selected month and year.
Open tool →Time Calculator
PopularAdd or subtract multiple time durations or calculate a clock time before or after a duration.
Open tool →