Calculate Sun Position in Sky
This solar calculator determines the sun's position in the sky based on your location, date, and time. You'll get the sun's azimuth (compass direction) and altitude (angle above horizon) for any given moment.
How to Use This Calculator
Enter your location coordinates, select the date and time, then click "Calculate". The results will show the sun's position in degrees and a visual representation.
For best accuracy, use precise latitude and longitude values. The calculator uses standard astronomical algorithms to account for Earth's tilt and orbital position.
Sun Position Basics
The sun's position is defined by two key measurements:
- Azimuth: The compass direction from north (0°) to east (90°), south (180°), and west (270°)
- Altitude: The angle above the horizon (0° at horizon, 90° at zenith)
These values change throughout the day and vary by season due to Earth's axial tilt. The calculator accounts for these variations using the following assumptions:
- Earth's axial tilt of 23.44°
- Orbital eccentricity of 0.0167
- Atmospheric refraction (0.5667°)
Formula Used
The calculator uses the following algorithm to determine sun position:
This algorithm is based on standard astronomical calculations with adjustments for atmospheric refraction.
Worked Example
Let's calculate the sun's position for New York City (40.7128° N, 74.0060° W) on June 21 at 12:00 PM (solar noon):
- Julian Day calculation: JD = 2459345.0
- Days since J2000.0: n = 7800.0
- Mean solar time: Jstar = 7798.0
- Solar mean anomaly: M = 102.9372°
- Equation of center: C = 1.9148°
- Ecliptic longitude: λ = 282.9372°
- Solar declination: δ = 23.44°
- Hour angle: H = 0°
- Solar zenith angle: θ = 46.56°
- Solar azimuth: 180° (south)
- Solar altitude: 43.44°
At solar noon on the summer solstice, the sun reaches its highest point in the sky for the year in New York City.
Frequently Asked Questions
What is the difference between solar time and clock time?
Solar time is based on the sun's position, while clock time follows a standardized 24-hour cycle. The difference varies by location and time of year, with a maximum variation of about 16 minutes.
Why does the sun's position change throughout the year?
The sun's position changes due to Earth's axial tilt (23.44°) and its elliptical orbit around the sun. This creates seasonal variations in the sun's path across the sky.
How accurate is this calculator?
This calculator uses standard astronomical algorithms with an accuracy of about ±0.1° for most locations. For precise applications, consult professional astronomical data.