Sunrise & Sunset Calculator

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

Definitive Answer

In New York City on the summer solstice (June 21), sunrise is at 5:25 AM and sunset at 8:31 PM, giving 15h 6m of daylight. On the winter solstice (Dec 21), sunrise is 7:16 AM, sunset 4:32 PM — only 9h 15m.

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 is calculated using the sun's declination angle (which depends on the day of year) and the observer's latitude. These determine the hour angle — the angular distance the Earth must rotate before the sun crosses the horizon. For New York (40.7°N), the hour angle ranges from about 69° in December to 113° in June, producing sunrise times from 5:25 AM to 7:16 AM.
Why does sunrise time change throughout the year?
Earth's rotational axis is tilted 23.45° relative to its orbital plane. As Earth orbits the Sun, the subsolar point shifts between 23.45°N (June solstice) and 23.45°S (December solstice). At 40°N, this tilt creates a daylight variation of nearly 6 hours between summer (15h 6m) and winter (9h 15m).
When is the earliest and latest sunrise of the year?
In the Northern Hemisphere at mid-latitudes, the earliest sunrise occurs around June 14–17, not on the summer solstice (June 21). In New York, the earliest sunrise is about 5:24 AM around June 14. The latest sunrise is around January 4–5 at approximately 7:20 AM. This offset from the solstices is caused by the equation of time.
Does latitude affect sunrise and sunset times?
Yes, latitude is the primary factor. At the equator (0°), day length varies only about 12 minutes throughout the year. At 40°N (New York), it ranges from 9h 15m to 15h 6m. At 60°N (Helsinki), the range is 5h 49m to 18h 50m. Above the Arctic Circle (66.5°N), the sun does not set at all around the summer solstice.
What is civil twilight?
Civil twilight is the period when the sun is between 0° and 6° below the horizon. During this time, there is enough natural light for most outdoor activities without artificial lighting. Morning civil twilight begins about 25–35 minutes before sunrise, and evening civil twilight ends about 25–35 minutes after sunset. In New York on June 21, civil twilight extends daylight-usable time from roughly 4:53 AM to 9:02 PM.

Related Solar Tools