Sunrise & Sunset Calculator

Calculate exact sunrise and sunset times for any latitude, longitude, and date using solar position equations.

Quick Answer

Enter your latitude, longitude, and date below to get exact sunrise and sunset times. At 40°N (New York, Madrid, Beijing), today's sunrise is around 5:30-6:30 AM and sunset is around 7:30-8:30 PM in spring/summer. Results are accurate to within 1-2 minutes.

Sunrise & Sunset Times for Major Cities (Mid-Year Reference)

City Lat Jun 21 Sunrise Jun 21 Sunset Dec 21 Sunrise Dec 21 Sunset Day Length Range
New York40.7°N5:25 AM8:31 PM7:16 AM4:32 PM9h 15m - 15h 6m
London51.5°N4:43 AM9:21 PM8:04 AM3:53 PM7h 50m - 16h 38m
Tokyo35.7°N4:25 AM7:01 PM6:47 AM4:28 PM9h 45m - 14h 35m
Sydney33.9°S7:01 AM4:53 PM5:37 AM8:09 PM10h 3m - 14h 25m
Singapore1.4°N6:59 AM7:12 PM7:01 AM7:04 PM12h 0m - 12h 12m
Reykjavik64.1°N2:55 AM12:04 AM11:22 AM3:30 PM4h 7m - 21h 8m

Times are approximate local standard time. Sydney shows Southern Hemisphere seasons (Jun = winter, Dec = summer).

How It Works

Enter your latitude, longitude, and date. The calculator uses solar declination and the equation of time to compute the hour angle at sunrise and sunset, then converts to local time.

Formula

Solar declination = 23.45 x sin(360/365 x (284 + dayOfYear))

Frequently Asked Questions

How is sunrise time calculated?

Sunrise occurs when the sun's center crosses the horizon. The calculation uses solar declination (based on day of year) and latitude to find the hour angle, then converts to local time.

Why does sunrise time vary by location?

Sunrise depends on latitude and longitude. Higher latitudes see more extreme seasonal variation. Longitude determines your offset within a time zone.

How accurate is this sunrise sunset calculator?

Results are typically accurate to within 1-2 minutes for sunrise and sunset times. Minor variations can occur due to local terrain, altitude, and atmospheric conditions that affect refraction. The calculator accounts for the sun's apparent diameter and standard atmospheric refraction (0.833 degrees).

Related Solar Tools