Math · Every step shown

Sunrise & Sunset Calculator

Find the sunrise and sunset time for any location and date.

Enter your numbers

Press Solve with steps to see the answer and how to get it.

Job: Time
Your answer

Press Solve with steps to see the answer and every step.

How it works, examples and FAQ

Uses the standard sunrise/sunset equation based on the date (day of the year), latitude, and longitude, then converts the result from UTC to your local time using the offset you provide.

Example: San Francisco (37.77°N, 122.42°W) on the June solstice has a sunrise around 5:48 AM and sunset around 8:35 PM Pacific time.

How accurate is this?
Within a few minutes for most locations — it uses the standard sunrise equation, though it doesn't account for elevation, hills, or unusual horizons.

Why do I need to enter my UTC offset?
Latitude and longitude alone don't determine a location's time zone, so the offset tells the calculator how to show the result in your local time.

What happens near the poles in summer or winter?
The calculator will note that the sun doesn't have a normal sunrise or sunset, since it can stay above or below the horizon for extended periods there.

More math calculators

Snap a photo of a problem →   All math tools →   All calculators →

These calculators show the method as well as the answer, so you can learn the steps and check your own work. If a result ever looks wrong, tell us on the Contact page with the numbers you entered.

Save or print your results

On a phone, choose Save as PDF on the next screen to keep a copy.