Sunrise & Sunset Calculator
Result
Sunrise & Sunset Calculator — free online calculator.
Formula
- Sunrise & Sunset Calculator calculates its result from Latitude (deg), Longitude (deg), Day of year, UTC offset (hours). It uses the formula Sunrise/sunset use the sun's hour angle at −0.833° altitude (allowing for refraction and the sun's disc). Change any input to recalculate the result instantly.
- The main inputs are Latitude, Longitude, Day of year, UTC offset. Enter them in the units and format shown in the calculator.
- Use the units, labels and assumptions shown beside each input so the formula is applied consistently.
- Changing any input above recalculates the result with the same calculation engine used by this page.
Example: Sunrise & Sunset
- Latitude: 39.7667 deg
- Longitude: 30.5256 deg
- Day of year: 180
- UTC offset: 3 hours
Using Latitude (deg) = 39.7667, Longitude (deg) = 30.5256, Day of year = 180, UTC offset (hours) = 3, the calculated result is Sunrise hour local: 5.4851175111 | Sunset hour local: 20.4448024889 | Day length hours: 14.9596849778.
Sample result: Calculating…
Frequently asked questions
What does the Sunrise & Sunset calculate?
Sunrise & Sunset Calculator — free online calculator.
Which values should I enter?
Enter Latitude, Longitude, Day of year, UTC offset using the units and format shown beside each field.
What formula does this calculator use?
The calculator uses the following relationship: Sunrise/sunset use the sun's hour angle at −0.833° altitude (allowing for refraction and the sun's disc).
Why might my result differ from another source?
Results can differ when another source uses different units, rounding rules, conventions or assumptions. Compare the inputs and definitions before comparing results.
Does the result update automatically?
Yes. Changing an input updates the result using the same calculation engine shown on this page.