Sun Angle Calculator

Created by Wojciech Sas, PhD
Reviewed by Steven Wooding
Based on research by
Meeus J Astronomical Algorithms, Second Edition Willmann-Bell Inc. (1998)See 1 more source
NOAA Solar Calculations Earth System Research Laboratories, Global Monitoring Laboratory
Last updated: Nov 21, 2022

Welcome to Omni's sun angle calculator, which tells you the Sun's location at any given place on the Earth and time. Read on to learn how to define the Sun's position in the sky and how to calculate Sun's elevation and azimuth angles.

Our solar angle calculator also shows the Sun angles charts for a given date and answers frequently asked questions regarding Sun's altitude.

🔎 If you want to know when the Sun rises and sets, head to our sunrise sunset calculator.

How to define the Sun position in the sky?

We can express the Sun's location in the sky using two values, imaging it travels on a sphere's surface. Unlike a flat Cartesian plane, it's more convenient to use angles instead of x- and y-coordinates. The most common way to tell someone the Sun's position is to give its elevation and azimuth angles, which closely relate to spherical coordinates. You can read more about them in our spherical coordinates calculator.

Omni's sun angle calculator uses the following convention:

  • The elevation (α\boldsymbol{\alpha}) measures the Sun's height relative to the horizon line. It ranges from -90° to 90°. The positive values denote the Sun is above the horizon, while negative ones mean it's below. The Sun reaches the maximal angle in the zenith – directly above your head.

  • The azimuth (β\boldsymbol{\beta}) tells you how much you should turn clockwise to look directly at the Sun. The reference direction is usually north, and the azimuth angle spans 0° and 360°. Following this convention, the most common bearings are North (0°), East (90°), South (180°), and West (270°).

The graphical visualization of solar angles: the elevation (α) and the azimuth (β).

🔎 If you need to travel between two points of known coordinates, we recommend using our azimuth calculator so that you can choose the shortest distance.

Where is the Sun right now? The use of the solar angle calculator

Let's say you're in Saint Louis (38.6° N 90.2° W), and it's the 20th of February 2023. The sky is completely overcast, the clock has just hit 3 pm, and you are wondering: "Where is the Sun right now?". The quickest way to solve the problem is to use Omni's solar angle calculator:

  1. Type the city's coordinates, 38.6° for latitude and -90.2° for longitude.
  2. Set the date to 20th of February 2023 and the time to 3 pm.
  3. The calculator sets the time zone based on your location by default. If you're currently in a different time zone than the location of our interest, you can change this setting manually. In our case, it should be CST (UTC-6).
  4. As a result, you can see that the solar elevation angle equals 27.38°, and the solar azimuth angle is 226.97°. It means that the Sun's location is roughly at a third on the way between the horizon and the zenith and is close to the southwest direction.

💡 The exact values you get from the sun angle calculator may fluctuate a bit from year to year.

  1. Additionally, you can choose if you want to see any of the Sun angle charts for the selected day at the bottom.

Instead of wondering where the Sun is right now, you may ask at what time the Sun hits the horizon 🌄. Omni's sunset calculator will tell you in a second!

The formulas for solar elevation and azimuth angles – Computing the Sun's location

You can work out the elevation (α\alpha) and azimuth (β\beta) angles by hand using the following equations:

 ⁣α=sin1[sinδsinϕ+cosδcosϕcosγ],\!\scriptsize \alpha = \sin^{-1}\left[\sin\delta\sin\phi + \cos\delta\cos\phi\cos\gamma\right],
 ⁣β={cos1[sinδcosϕcosδsinϕcosγcosα],if γ<0°360°cos1[sinδcosϕcosδsinϕcosγcosα],if γ0°\!\scriptsize \beta\! =\! \begin{cases} \cos^{-1}\left[\!\frac{\sin\delta\cos\phi - \cos\delta\sin\phi\cos\gamma}{\cos\alpha}\!\right]\!, &\hspace{-2.8em}\text{if}\ \gamma < 0\degree \\[.5em] 360\degree\!-\!\cos^{-1}\!\left[\!\frac{\sin\delta\cos\phi - \cos\delta\sin\phi\cos\gamma}{\cos\alpha}\!\right]\!,\\ &\hspace{-2.8em}\text{if}\ \gamma \ge 0\degree \end{cases}


  • δ\delta – Declination angle;
  • ϕ\phi – Latitude; and
  • γ\gamma - Local hour angle.

💡 The apparent Sun's elevation differs slightly from the actual one due to the atmospheric refraction effect. Omni's sun calculator returns the apparent Sun's altitude – the one you can actually measure 😎.

The scheme of the atmospheric refraction.

The declination is an angle between a vertical line set at the equator and the line connecting Earth's and Sun's centers. Due to Earth's tilt, it varies from -23.45° (at December's solstice) to 23.45° (at June's solstice) and depends on the year's day.

You can estimate Sun's declination for any day of the year dd using the simplified formula:

δ=23.45°×cos[360365(d+10)]\scriptsize \delta = -23.45\degree\times\cos\left[\frac{360}{365} (d+10)\right]

Following this equation, you can obtain the declination angle with an accuracy of up to 1° compared to the true value.

The local hour angle depends on the local solar time (TT). It changes between -180° and 180°, crossing 0° at local noon. The formula for the hour angle is the following:

γ=15°×(T12).\scriptsize \gamma = 15\degree\times(T-12).

The TT unit is hours, and the factor 15° comes from the fact that the Earth makes a 15° rotation during one hour.

🙋 All the formulas presented in this section are approximations. They don't consider additional effects such as the eccentricity of Earth's orbit (due to elliptical orbit) or the precession of the axial tilt. The good news is that we can get precise results using our sun angle calculator!


When is the Sun highest in the sky?

During the day, the Sun elevation angle is highest at local noon. There is usually a shift between the solar and official time due to fixed time zones.

During the year, the Sun reaches the zenith for all the locations between the tropics. For other places, it comes to the highest elevation at the summer solstice.

How fast does the Sun move across the sky?

15° per hour. To be precise, it's the Earth that makes a 360° rotation per day which equals 15° per hour. However, if you measure the azimuth angle (the projectile of the Sun's location), it changes at a different rate depending on your latitude and the date.

How do I calculate the Sun angles?

To estimate the approximate solar elevation and azimuth angles:

  1. Get your latitude ϕ.

  2. Find the declination angle δ for the given date.

  3. Evaluate the hour angle according to the local time T: γ = 15° × (T-12).

  4. The elevation angle equals:

    α = sin−1[sinδ sinϕ + cosδ cosϕ cosγ].

  5. The azimuth angle equals:

    β = cos−1[(sinδ cosϕ−cosδ sinϕ cosγ) / cosα],

    for negative γ or 360°-β for positive γ.

How does the Sun's path change from season to season?

The Sun's path throughout the year differs depending on the latitude:

  1. Between the tropics (ϕ < 23.44°) – It's similar for each day. The Sun reaches zenith twice a year, while the day and night durations are comparable.

  2. Middle latitudes (23.44° < ϕ < 66.56°) – The Sun's elevation is highest at the summer solstice and lowest at the winter solstice. In summer, the Sun rises and sets closer to the North azimuth, while in winter, these shift to the South azimuth.

  3. Polar (ϕ < 66.56°) – The Sun never sets during the summer (midnight sun) or never rises in winter (polar night). The closer to the poles, the longer these last.

Wojciech Sas, PhD
Choose your location (GPS coordinates) and time
Date & time
Time zone
Daylight saving time (DST)
UTC - Coordinated Universal Time;
GMT - Greenwich Mean Time.
Check out 19 similar astrophysics calculators 🌌
Alien civilizationBlack hole collisionBlack hole temperature… 16 more
People also viewed…

Alien civilization

The alien civilization calculator explores the existence of extraterrestrial civilizations by comparing two models: the Drake equation and the Astrobiological Copernican Limits👽

Arrow speed

Arrow speed calculator finds the real speed of an arrow for a bow with custom parameters.

Car heat

The hot car calculator shows you how fast the interior of a car heats up during a summers day.

Free fall time

With the free fall time calculator you can find the time it will take an object to travel through certain space or reach certain velocity without air resistance.
Copyright by Omni Calculator sp. z o.o.
Privacy policy & cookies
main background