Sun Position Calculator
Calculate the sun's azimuth (compass direction) and elevation (altitude above the horizon) for any date, time, and geographic location. See the sun plotted on an interactive sky dome, trace the full day's sun path, and get sunrise, solar noon, sunset, day length, shadow length, and the current solar phase with a step-by-step astronomical breakdown.
Your ad blocker is preventing us from showing ads
MiniWebtool is free because of ads. If this tool helped you, please support us by going Premium (ad‑free + faster tools), or allowlist MiniWebtool.com and reload.
- Allow ads for MiniWebtool.com, then reload
- Or upgrade to Premium (ad‑free)
About Sun Position Calculator
The Sun Position Calculator tells you exactly where the sun is in the sky — its azimuth (compass direction) and elevation (height above the horizon) — for any date, time, and location on Earth. It plots the sun on an interactive sky dome, traces the entire day's sun path, and reports sunrise, solar noon, sunset, day length, shadow length, and the current solar phase. It is perfect for photographers chasing golden hour, gardeners planning sunlight, solar-panel installers, architects, and anyone curious about the sky.
What Are Solar Azimuth and Elevation?
The sun's position is described with two angles. Azimuth is the horizontal compass direction to the sun, measured clockwise from true north: 0° points north, 90° east, 180° south, and 270° west. Elevation (also called altitude) is the vertical angle of the sun above the horizon, ranging from 0° at the horizon to 90° straight overhead at the zenith. With both angles you can point to the exact spot the sun occupies in the sky.
Sun Position Formula
The calculator follows the standard NOAA solar position algorithm. The key relationships are:
Here \(h\) is the elevation, \(A\) is the azimuth, \(z = 90^\circ - h\) is the zenith angle, \(\phi\) is your latitude, \(\delta\) is the sun's declination, and \(H\) is the hour angle. The declination and the equation of time come from the date; the hour angle comes from the true solar time at your longitude. A small atmospheric refraction correction is then added to the elevation so the value matches what you actually observe.
How to Read the Sky Dome
The sky dome is a top-down map of the sky above you. The outer rim is the horizon (elevation 0°) and the centre is the point straight overhead (the zenith, elevation 90°). Compass directions run around the edge — north at the top, east on the right, south at the bottom, west on the left. The glowing dot is the sun's current position, and the trail of small gold dots is the full path the sun travels across that day, from sunrise on one side to sunset on the other.
Sun Elevation and the Time of Day
| Sun Elevation | Phase | What It Means |
|---|---|---|
| Above 6° | Daytime | Full daylight; the sun is comfortably above the horizon |
| 0° to 6° | Golden Hour | Low, warm light — ideal for photography |
| 0° (at horizon) | Sunrise / Sunset | The sun is crossing the horizon |
| 0° to −6° | Civil Twilight | Enough light for most outdoor activity |
| −6° to −12° | Nautical Twilight | Horizon faint; brighter stars visible |
| −12° to −18° | Astronomical Twilight | Sky nearly dark; faint stars appear |
| Below −18° | Night | Full astronomical darkness |
What You Can Use It For
Find golden hour and blue hour, and know exactly where the sun will be for backlighting and shadows.
Use elevation and azimuth to set the best panel tilt and orientation, and spot shading through the day.
See how much direct sun a bed receives across the day and seasons to place plants wisely.
Plan windows, overhangs, and shading for daylight and passive solar heating.
Predict shadow length and remaining daylight for hikes, events, and field work.
Check when the sun is far enough below the horizon for dark-sky observing.
How to Use This Calculator
- Enter your location: Type your latitude and longitude, click a quick-example city, or use the "Use My Location" button to fill in your coordinates.
- Set the date and time: Choose the date and local clock time, then select the matching UTC time-zone offset.
- Click Calculate: The tool computes the sun's azimuth and elevation instantly.
- Review your results: See the sun on the sky dome, the day's sun path, sunrise and sunset, day length, shadow length, and a full step-by-step breakdown.
Frequently Asked Questions
What are solar azimuth and elevation?
Azimuth is the sun's compass direction measured clockwise from true north, where 0 degrees is north, 90 is east, 180 is south and 270 is west. Elevation (also called altitude) is the angle of the sun above the horizon, from 0 degrees at the horizon to 90 degrees straight overhead. Together they pinpoint exactly where the sun appears in the sky.
How is the sun's position calculated?
The calculator uses the standard NOAA solar position algorithm. From the date it computes the sun's declination and the equation of time, combines them with your local time to get the hour angle, then applies your latitude and longitude to find elevation and azimuth. A small atmospheric refraction correction is added so the result matches what you actually see.
What is the difference between azimuth and elevation?
Azimuth tells you which horizontal direction to look (the compass bearing), while elevation tells you how high to look (the angle above the horizon). You need both to describe the sun's position completely: azimuth points you the right way, and elevation tells you how far up to tilt your gaze.
Why is solar noon not at 12:00 on the clock?
Solar noon is the moment the sun crosses the local meridian and reaches its highest point. It rarely lands on 12:00 because your longitude usually sits east or west of your time zone's central meridian, and because the equation of time shifts the sun up to about 16 minutes earlier or later through the year. The calculator reports the true solar noon for your exact location.
How do I find the sun's position for solar panels?
Enter your site's coordinates and check the elevation and azimuth at the times of day that matter for your installation. The elevation tells you the ideal panel tilt, and the azimuth shows the direction to face. Tracing the day's sun path also reveals when nearby buildings or trees might cast shade on your array.
How long is the shadow of an object?
Shadow length equals the object's height divided by the tangent of the sun's elevation. When the sun is high the shadow is short, and as the sun drops toward the horizon the shadow grows very long. The calculator shows the shadow multiplier and the shadow cast by a 1.8 metre (about 6 foot) person for your chosen moment.
Additional Resources
Reference this content, page, or tool as:
"Sun Position Calculator" at https://MiniWebtool.com/sun-position-calculator/ from MiniWebtool, https://MiniWebtool.com/
by miniwebtool team. Updated: June 14, 2026