Paritian

Science

Sunrise and Sunset Calculator

Clock times of sunrise and sunset and the length of the day for any place and day of the year, with how the day length changes through the year.

Results

Sunrise — hour 7
Sunrise — minutes 39
Sunset — hour 19
Sunset — minutes 7
Day length 11.46 h
On this day The Sun rises and sets
How it changes
Day lengthDay of the year 1 – 365. Day length: 9.50331 → 9.49384Day length051015100200300Day of the year

The dashed line marks the value you entered.

What this tool does

Sunrise and sunset are the moments the top edge of the Sun touches the horizon, which with atmospheric refraction happens when its centre is 0.833° below it — so a day at the equinox is a few minutes longer than twelve hours. The times are in the clock time you enter, so include summer time in the UTC offset. Hills, buildings and unusual refraction can shift what you actually see by a few minutes. Day of year: 1 January is 1, 21 June is 172 and 21 December is 355 in a normal year.

Formula

cos ω₀ = (sin(−0.833°) − sin φ sin δ) ÷ (cos φ cos δ) · sunrise / sunset = solar noon ∓ ω₀ ÷ 15°

Variables

SymbolMeaningUnit
laLatitude°
loLongitude (east positive)°
tzClock offset from UTC (with summer time)h
ndDay of the year—
SRHSunrise — hour—
SRMSunrise — minutes—
SSHSunset — hour—
SSMSunset — minutes—
DLDay lengthh
STOn this day—

Worked example

  • Latitude38.72 °
  • Longitude (east positive)-9.14 °
  • Clock offset from UTC (with summer time)1 h
  • Day of the year283
  • Sunrise — hour7
  • Sunrise — minutes39
  • Sunset — hour19
  • Sunset — minutes7
  • Day length11.46 h
  • On this dayThe Sun rises and sets

Limitations

  • Declination and the equation of time come from Spencer's 1971 series, good to a small fraction of a degree. Atmospheric refraction, which lifts the Sun by about half a degree at the horizon, is not included.
  • The default values are typical reference figures, not measurements of your situation. Replace them with your own data whenever you have it.