Solar Elevation Angle Calculator

Solar Elevation Angle Calculator

Estimate the Sun's elevation angle, zenith angle, shadow-length ratio, daylight flag, solar time, sunrise, and sunset from latitude, longitude, date, clock time, and UTC offset.

Solar Presets
Calculator Inputs
Use south latitudes as negative values, such as -33.8688 for Sydney.
Use west longitudes as negative values, such as -74.0060 for New York.
Declination is computed from the day of year for this date.
This is civil clock time before equation-of-time and longitude corrections.
Enter the offset in effect on the chosen date, including daylight saving time.
Apparent elevation can be slightly higher than geometric elevation near the horizon.
The daylight flag compares solar elevation with this selected threshold.
Formatting only; the internal trigonometry uses full JavaScript precision.
Options
📊Solar Angle Results
Solar elevation h -- degrees above horizon
Zenith angle -- 90 degrees minus elevation
Shadow ratio -- object height to shadow length
Daylight flag -- based on selected threshold
🧭Computed Solar Details
--DeclinationSun angle north or south of equator
--Hour angleSolar-time distance from noon
--Solar timeCorrected from clock time
--Solar azimuthCompass bearing from north
🗂Comparison Grid
--One hour earlierSame date and place
--One hour laterSame date and place
--At solar noonMaximum for this date
--Equinox noonSame latitude reference
📐Formula Breakdown
Core elevation formula: sin(h)=sin(lat)*sin(dec)+cos(lat)*cos(dec)*cos(hourAngle). Latitude, declination, and hour angle are converted to radians before trig functions are applied.
Solar time correction: true solar minutes = clock minutes + equation of time + 4 x (longitude - UTC offset x 15). Hour angle is 15 x (solar time - 12).
📋Noon Elevation Reference
LatitudeMarch or Sept EquinoxJune SolsticeDecember Solstice
0° equator90.0°66.6°66.6°
23.4° N66.6°90.0°43.1°
40.7° N49.3°72.8°25.9°
51.5° N38.5°61.9°15.0°
66.5° N23.5°46.9°0.1°
33.9° S56.1°32.7°79.5°
📏Shadow Ratio Reference
Solar elevationShadow length / heightSolar readingField note
11.43Very lowLong shadows dominate
10°5.67LowStrong obstruction risk
20°2.75Moderate lowGood for shade checks
30°1.73MidUseful winter benchmark
45°1.00BalancedShadow equals height
60°0.58HighShort shadow geometry
75°0.27Very highNear overhead sun
🌅Daylight Threshold Table
ThresholdSolar elevation hCommon labelCalculator use
Geometric horizonCenter above horizonPure trigonometry daylight
Visible sunrise-0.833°Sun edge plus refractionTypical almanac daylight
Civil twilight-6°Bright twilightOutdoor visibility estimate
Nautical twilight-12°Sea horizon twilightNavigation-style threshold
Astronomical twilight-18°Dark-sky thresholdNight-sky planning
Longitude and Solar-Time Corrections
CaseLongitude vs meridianClock correctionMeaning
On meridian0 min plus EoTClock noon near solar noon
5° east+5°+20 min plus EoTSun reaches noon earlier
5° west-5°-20 min plus EoTSun reaches noon later
UTC offset mismatch15° per hour60 min per zone hourCheck daylight saving offset
Equation of timeDate dependentabout -14 to +16 minEarth orbit and axial tilt effect
💡Practical Tips
Time input tip: Use the UTC offset that applies on the selected date. A daylight-saving mismatch moves solar time by a full hour.
Shadow tip: For a vertical object, shadow length equals height divided by tan(h). Below 10°, small angle errors create large shadow changes.

A light bulb is a constant source of light. A light switch isn’t.

The sun is a moving light source that arcs around our sky based off its elliptical path and the tilt of our earth. Because of this, the position of the sunlight through your window shift by several degrees and minutes every hour. Geometry governs energy. Understanding solar elevation doesn’t require formulas to remember; it requires a basic understanding of what geometry are doing. Once you understand where the actual sun is (not where your clock tells you the sun “should” be) you begin to plan precisely instead of guess.

How to Understand Sunlight Angles

Here’s why most people get this wrong: They think solar noon occur at twelve o’clock. After setting your location and time, the calculator do all the hard work for you. It turns the rough coordinates into something easier to use: the ratio of shade vs sunlight (shadow ratios), as well as the angle between the sun and straight overhead (the zenith angle). But how will any of that help you unless you know what these numbers mean?

First, latitude, meaning your north/south address; is most important. It determine how high the sun can goes above the horizon at its highest point. Longitude, on the other hand, is frequent overlooked, but it is very important for when the sun’s high. Because the sun “rises” in the east, living east of your local time zone’s central meridian means that solar noon come before solar noon on the wall clock. This discrepancy, called the equation of time, is built right into the tool, which corrects based off how fast the earth moves through its uneven orbit. Otherwise, the position of the sun you calculate might be wrong by up to 15 minutes or even more. And that’s a huge difference if you’re attempting to steer clear of a neighbor’s shadow.

Let’s contrast that visible sunlight with the geometry of sunlight. On the calculator you have an option to specify a daylight threshold, which modifies when sunrise (and sunset) occur. By default we assume traditional visible horizon, which takes into account atmospheric refraction. As light passes through the atmosphere, it bends, so we are able to see the sun while it remains below its physical position along the geometric horizon. This is part of why summers seem longer then pure planetary motion implies. Because air is effectively a lens, you get a few more twilight minutes, as the sun continues to shine on your facade even after the math say it is dark. That is significant if you are an architect, or photographer. What looks good on paper, designed against the geometric horizon, may not work out in reality.

For those who work in real space, maybe the most useful output is the shadow length. People is surprised to find out that shadow length doesn’t scale linearly with sun height. A little shift in sun angle produces almost no change in shadow at high sun, but just below the horizon, it’s like pulling a string and making your shadow grow (or shrink) dramatic long. The page includes a chart of relative shadow lengths; you can see how a 5 degree elevation causes a shadow to be over 11 times as long as the thing casting it. That’s what makes winter so tricky to plan. If you’re wrong by a little bit in summer, it hardly seems to matter. In winter, a little miscalculation could of mean the difference between a sunny patio and a shaded cold one.

The other thing you’ll see is that there’s a set of presets for cities such as Quito or London. Those aren’t examples, they show how wildly different the solar geometry can be. For example, in London, even on the hottest day of summer, the sun stay very low in the southern part of the sky. Near the equator, as in Quito, the sun almost moves straight across the sky. That simple fact determine where windows go, what direction buildings face, and which materials to use. What might make an ideal roof in Sydney will be terrible in Reykjavik, because the angle of the incoming radiation is completely different.

You get the numbers from the tool, then you must figure out what those numbers mean for your project. The bottom line: The sun is not intuitive, though it’s predictable. Our minds are trained to think about it in terms of clocks, an average of the Earth’s motion, accounting for its irregularities and smoothing out the real daylight. When you break down the average by figuring out the exact elevation angle, you see past that and glimpse the reality. You can predict exactly when direct beam radiation hits a window, or when a garden enters shadow. It makes the sky a tangible thing, something to measure rather than merely an imprecise backdrop.

Now everything look a little sharper… Every design decision. The sun is no longer just light; it’s a series of angles.

Solar Elevation Angle Calculator