Solar Azimuth Calculator

Solar Azimuth Calculator

Calculate the Sun's azimuth from true north, compass direction, elevation angle, declination, hour angle, and the opposite shadow bearing for any latitude, longitude, date, and local time.

Real-World Presets
Calculator Inputs
Manual modes expose the core latitude, declination, and hour-angle formula.
North is positive; south is negative.
East is positive; west is negative.
Used to estimate solar declination and equation of time.
Enter the civil clock time at the location.
Use the offset in effect on that date, including daylight saving time.
Used in manual-declination modes; solstices are about +/-23.44°.
H is negative before solar noon, 0 at solar noon, positive after noon.
Solar azimuth 0.00° from true north, clockwise
Compass direction N 16-point bearing label
Solar elevation 0.00° geometric altitude above horizon
Shadow direction 180.00° opposite the Sun bearing
🔢Current Solar Geometry
23.44°Declination
-45.00°Hour angle
09:00Clock time
08:58Solar time
172Day number
-1.8 minEquation time
DaylightSun state
LongShadow read
🧭Comparison Grid
NowBaselineRun the calculator to compare nearby hours.
📐Formula Breakdown
Declination from dateThe date mode estimates solar declination delta from the fractional year angle gamma using a standard Fourier approximation.
True solar timetrue solar time = local clock minutes + equation of time + 4 x longitude - 60 x UTC offset. Longitude is east-positive.
Hour angleH = true solar time / 4 - 180°. Negative H means before solar noon; positive H means after solar noon.
Elevationsin(elevation) = sin(phi)sin(delta) + cos(phi)cos(delta)cos(H), where phi is latitude.
Azimuth from northazimuth = atan2(-sin(H), tan(delta)cos(phi) - sin(phi)cos(H)), then normalized to 0–360° clockwise from true north.
Shadow directionshadow bearing = azimuth + 180°, normalized to 0–360°. A low or negative elevation means the shadow is very long or the Sun is below the horizon.
📊Solar Landmark Angles
Solar GeometryDeclinationHour AngleTypical Elevation CueAzimuth Pattern
March equinox noon at equatorNear 0°Near 90°Azimuth unstable near zenith
June solstice noon, Northern Hemisphere+23.44°Highest noon Sun of the yearUsually south at mid-north latitudes
December solstice noon, Southern Hemisphere-23.44°Highest noon Sun of the yearUsually north at mid-south latitudes
Before solar noonDate-dependentNegativeRising or morning sideEastern half of the sky
After solar noonDate-dependentPositiveFalling or afternoon sideWestern half of the sky
Below horizonDate-dependentAnyElevation below 0°Azimuth is geometric only
🗺Preset Reference Table
PresetLatitudeLongitudeDate and TimeUTC OffsetWhy It Is Useful
Greenwich Equinox Noon51.4779°-0.0015°2026-03-20 12:00+0Near-meridian Sun with equinox declination
New York June Morning40.7128°-74.0060°2026-06-21 09:00-4Morning Sun with positive declination
New York Winter Afternoon40.7128°-74.0060°2026-12-21 15:00-5Low afternoon winter Sun
Los Angeles Summer34.0522°-118.2437°2026-07-15 17:00-7Western Sun and long shadow direction
Singapore Equinox1.3521°103.8198°2026-03-20 13:00+8Near-equatorial high Sun
Sydney December Noon-33.8688°151.2093°2026-12-21 12:00+11Southern summer noon with Sun to the north
Reykjavik June Night64.1466°-21.9426°2026-06-21 23:30+0Very low midnight-sun geometry
Tromso Polar Night69.6492°18.9553°2026-12-21 12:00+1Below-horizon winter geometry
Quito Overhead Sun-0.1807°-78.4678°2026-03-20 12:15-5Near-zenith equatorial case
Cape Town June Morning-33.9249°18.4241°2026-06-21 10:00+2Southern winter morning Sun
🧭Compass Bearing Reference
Bearing RangeCompass LabelMain DirectionShadow OppositeCommon Reading
348.75° to 11.25°NNorthSouthSun is toward true north
33.75° to 56.25°NENortheastSouthwestMorning or high-latitude geometry
78.75° to 101.25°EEastWestNear sunrise side of the sky
123.75° to 146.25°SESoutheastNorthwestCommon morning Sun north of tropics
168.75° to 191.25°SSouthNorthTypical solar noon direction in mid-north latitudes
213.75° to 236.25°SWSouthwestNortheastCommon afternoon Sun north of tropics
258.75° to 281.25°WWestEastNear sunset side of the sky
303.75° to 326.25°NWNorthwestSoutheastEvening or high-latitude geometry
📘Formula Symbols and Units
SymbolMeaningUnitSign ConventionCalculator Source
phiObserver latitudedegreesNorth positiveLatitude input
lambdaObserver longitudedegreesEast positive, west negativeLongitude input
deltaSolar declinationdegreesNorth of celestial equator positiveDate model or manual input
HSolar hour angledegreesMorning negative, afternoon positiveSolar time or manual input
eSolar elevationdegreesAbove horizon positiveTrigonometric result
ASolar azimuthdegrees0° north, 90° eastatan2 result normalized to 0–360°
EOTEquation of timeminutesAdded to clock minutes in date modeFractional-year approximation
ShadowOpposite bearingdegreesSun azimuth + 180°Normalized to 0–360°
💡Practical Angle Tips
Check the offset on the date: UTC offset changes with daylight saving time in many locations. A one-hour offset mistake shifts solar hour angle by about 15°.
Use true-north bearings: The calculator returns astronomical azimuth from true north. A magnetic compass can differ by local magnetic declination.

Where’s the Sun? That’s not a question for “looking up” as much as it is a precise geometric factor in photography, architecture, and solar energy. Depending on the date and our location on Earth, it shift by degrees each minute. Get this wrong, and you cast unwelcome shadows… Or miss out on sunshine. Let the calculator do the math … but understand what the numbers are telling you so you can make good choices.

Solar geometry boils down to three things: latitude (position in relation to the equator), longitude (accounting for time zones) and UTC offset (which can be tricky, particularly when accounting for daylight saving time). Get this wrong, even by an hour, and you will move the sun fifteen degrees. That shift alter a panel’s position from facing south to facing east. Enter the offset for that specific date, not just standard time zone.

Understanding Sun Positions and Shadows

The other number, the one that really defines the seasons, is declination: how far above or below the earth’s equator a line drawn from us to the sun runs. That swings yearly between twenty-three point four four degrees north and south of the equator line. In June the sun lift high overhead (because the Northern Hemisphere is tilted toward it); in December, it dip low. Entering the calendar date will cause the tool to estimate this; you can also enter it by hand if you want. This is what account for changes in day length and strength.

The other thing is hour angle: how far off is the sun from what we call solar noon? (That’s not necessarily 12 o’clock.) That depends on an equation called the equation of time, which factors in the fact that Earth is tilted and orbits in an oval, not a circle. The calculator do the conversion from clock time to true solar time and then calculates this angle. Before noon, it’s negative (meaning the sun is in the east). After noon, it’s positive (the sun is in the west), which has implications for analyzing shade. A western wall receive full-on afternoon sunlight, while an eastern one gets softer morning light.

The azimuth (measured from true north clockwise) indicates which way the sun is shining. North = zero degrees; East = 90; South = 180; West = 270. For mid-latitude locations in the northern hemisphere the sun will be located in southern part of the sky. For those in the southern hemisphere it will be up north. Closer to the equator, the azimuth may quickly change as the sun pass overhead. The calculator handles this situation with a constant bearing.

Opposite of the sun’s azimuth is your shadow direction. When the sun is at forty-five degrees, your shadow will point in the direction of two hundred twenty-five degrees. In city planning, this is important because you need to know which direction shadows will fall to avoid covering solar arrays or properties.

Geometric altitude describes height of the sun over the horizon. Short and sharp shadows occur with a high elevation. Long and diffuse shadows result from a low elevation.

True north is not magnetic north. True north is related to the rotation of the earth’s axis and is used when we do solar calculations. Magnetic north is what the compass point toward and changes with time and place. If you use a physical compass, you’ll need to adjust for local magnetic declination to correct for this. This adjustment is small, but important if you need to be exact.

Here’s what that looks like in the reference table. It allows you to see where the sun is positioned at different times and latitudes. If you entered data manualy, you can use this table to check that it is correct.

When doing an install on your roof, for example, you’d want a direct heading and high elevation. If you’re photographing, perhaps you are looking for low angle shots from sunrise and sunset; that light is going to be soft and warm. Actualy, you should of wanted a direct heading for best results. It is all about light and solar geometry.

If you want to place your dish, design your house or determine where things will be shady in the garden, solar geometry predicts light. It doesn’t matter what year it is; the sun moves predictably across the sky. Once you understand how time, date, and latitude play a part, you begin seeing patterns in the shadow play. Even though we can’t always trust the clock, we can trust the sun.

Solar Azimuth Calculator