Sun Position Calculator (Elevation, Azimuth, Sunrise and Sunset)

Find where the Sun is in the sky for any place and moment: its elevation above the horizon and its compass bearing, together with the times of sunrise, sunset and solar noon and the length of the day. Useful for solar panel layout, photography, architecture and teaching how the seasons work.

Inputs

Results

Apparent solar elevation (with refraction)
59.53
Geometric elevation (no refraction)
59.52
Azimuth (clockwise from north)
151.2
Compass direction of the Sun
SSE (151.2°)
Sunrise (local time)
04:43
Sunset (local time)
21:21
Solar noon (local time)
13:02
Day length
16.64
Elevation at solar noon
61.94
Solar declination
23.45
Equation of time
-1.319

    RefESS-AST-008
    MethodNOAA general solar position equations (Spencer Fourier series)
    UnitsSI
    Date2026-11-24

    Working

    Calculated in SI base units; inputs are converted from the units you choose.

    1. Day of year and fractional yearγ = 2π/365 × (day − 1 + (UTC hour − 12)/24)21 June 2026 is day 172; γ = 2.94291 rad
    2. Equation of time and declinationNOAA Fourier series in γEoT = -1.319 min, δ = 23.45°
    3. True solar time and hour angleTST = clock time + EoT + 4·longitude − 60·zone; H = TST/4 − 180°TST = 658.2 min, H = -15.46°
    4. Elevationcos Z = sinφ sinδ + cosφ cosδ cosH; elevation = 90° − Zgeometric 59.52°, refraction +0.00949°, apparent 59.53°
    5. AzimuthA = atan2(sinH, cosH sinφ − tanδ cosφ) + 180°A = 151.2° (SSE)
    6. Sunrise and sunsetcos H₀ = cos 90.833°/(cosφ cosδ) − tanφ tanδ; times = 720 − 4(λ ± H₀) − EoT minutes UTCsunrise 04:43, solar noon 13:02, sunset 21:21

    How the calculation works

    The calculator uses the equations published by NOAA’s Global Monitoring Laboratory, which express the Sun’s declination and the equation of time as short Fourier series in the day of the year. The hour angle comes from the true solar time, which corrects clock time for longitude, time zone and the equation of time. Sunrise and sunset are taken when the Sun’s centre is 0.833° below the horizon, allowing for refraction and the Sun’s radius. Accuracy is about a minute of time for latitudes within about 72° of the equator.

    Assumptions and limits

    • Sea-level observer with a flat horizon and standard atmospheric refraction.
    • Approximate series for declination and the equation of time; within roughly ±1 minute for rise and set times between 72° N and 72° S.
    • Enter the time zone offset including any daylight saving time in force on that date.

    References

    • NOAA Global Monitoring Laboratory, General Solar Position Calculations (solar position equations from Spencer, 1971).
    • Spencer, J. W. (1971), Fourier series representation of the position of the Sun, Search 2(5), 172.
    • Meeus, J., Astronomical Algorithms, 2nd ed., Willmann-Bell, 1998.

    Questions

    When does the Sun rise and set in London on 21 June 2026?
    Sunrise is at 04:43 and sunset at 21:21 British Summer Time, giving 16.6 hours of daylight, with the Sun 61.9° high at solar noon (13:02).
    Why is solar noon not at 12:00?
    Clock time ignores your position within the time zone, summer time and the equation of time, which shifts solar noon by up to about 16 minutes through the year.

    This calculator is a design aid. Check results against the governing code or standard and have critical work verified by a qualified engineer. Read the disclaimer.