Sunrise & Sunset Calculator

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

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.