Sun Position Calculator

Calculate the sun's azimuth and elevation angle for any location, date, and time using the NOAA solar position algorithm.

Use the Sun Position Calculator

Location & Time

Location permission is optional. Coordinates are used only in this browser calculation.

Enter location and time to see sun position

Summary

Calculate the sun's azimuth and elevation angle for any location, date, and time using the NOAA solar position algorithm.

How it works

  1. Enter your latitude and longitude (or click "Use My Location" to auto-fill from your browser).
  2. Select the date and local time you want to evaluate.
  3. Enter your UTC offset to convert local time to Universal Time.
  4. The tool computes the Julian Day Number and Julian Century for the given moment.
  5. Solar geometric angles (declination, equation of time, hour angle) are derived using NOAA polynomial coefficients.
  6. Azimuth and elevation are calculated from the hour angle and declination, then corrected for atmospheric refraction.

Use cases

  • Inspect solar azimuth and elevation before planning a solar-energy site assessment.
  • Determine shading patterns for building design and architecture.
  • Plan landscape or portrait photography at the golden hour or blue hour.
  • Schedule outdoor activities around peak sun intensity.
  • Find sunrise and sunset times for any location on Earth.
  • Calculate solar noon for accurate sundial calibration.
  • Check when direct sunlight may enter a window or cast a shadow.
  • Support agricultural planning by knowing daily sun exposure hours.

Frequently Asked Questions

Last updated: 2026-09-19 · Reviewed by Nham Vu