Sun Angle Calculator

Estimate solar elevation, azimuth, and declination by latitude, day, and solar time.

Solar position calculation
Use local solar time, where 12 is solar noon.

About sun angles

The Sun's apparent position can be described with elevation and azimuth. Solar elevation is the angle of the Sun above the horizon: zero degrees lies on the horizon and 90 degrees is directly overhead. A negative elevation means the calculated Sun position is below the horizon. Solar azimuth gives the compass direction measured clockwise from north, so east is 90 degrees, south is 180 degrees, and west is 270 degrees. This calculator estimates declination with a common day-of-year approximation, then combines declination, latitude, and hour angle using spherical astronomy relationships. Solar declination is the angular position of the Sun north or south of Earth's equatorial plane. It varies from about -23.45 degrees at the December solstice to +23.45 degrees at the June solstice and is near zero at the equinoxes. The hour angle changes by 15 degrees per hour and is zero at local solar noon. Local solar time is not always the same as the clock shown on a phone or wall. Clock time is organized around civil time zones and may include daylight saving time. Solar time also shifts with longitude within a time zone and the equation of time, which reflects Earth's orbital geometry. For precise work, convert civil time to apparent solar time before using this simplified calculator. Enter southern latitudes as negative values and northern latitudes as positive values. Sun-angle estimates support solar-panel orientation, shading studies, daylight planning, photography, agriculture, and educational astronomy. The approximation is useful for quick analysis but omits atmospheric refraction, observer elevation, terrain, and the small year-to-year changes handled by high-precision ephemerides. Refraction is especially important close to the horizon. For navigation, legal sunrise definitions, concentrated solar design, or safety-critical planning, use authoritative astronomical data and location-specific methods. Always check whether an application defines azimuth from north or from south, because both conventions appear in technical references.

Sun angle examples

Results use local solar time and a 365-day declination approximation.

Latitude, day, solar timeElevation and azimuthSituation
40°; day 172; 12:0073.45°; 180°Northern summer solar noon
0°; day 81; 09:0045°; 90°Equator near equinox
40°; day 172; 15:0048.83°; 260.19°Summer afternoon

How to calculate the Sun's position

  1. Enter geographic latitude, using a negative value south of the equator.
  2. Enter the day number within the year.
  3. Enter local solar time as decimal hours.
  4. Select Calculate sun angle and review elevation, azimuth, and declination.

Sun angle FAQ

What is solar elevation?

Solar elevation is the angle between the Sun and the local horizon. Positive values place the Sun above the horizon, while negative values place it below.

How is azimuth measured here?

Azimuth is measured clockwise from true north. Therefore east is 90 degrees, south is 180 degrees, and west is 270 degrees.

What is local solar time?

Local solar time sets noon at the instant the Sun crosses the local meridian. It can differ from civil clock time because of longitude, time zones, daylight saving, and the equation of time.

How accurate is the result?

The formulas are suitable for estimates and education. Precise applications should use a full solar ephemeris plus corrections for refraction, longitude, date, and observer conditions.

What does a negative elevation mean?

It means the geometric center of the Sun is below the local horizon. Terrain and atmospheric refraction may change actual visibility near sunrise or sunset.