Sun Position Calculator: Azimuth & Elevation
Find the sun's elevation and azimuth for any place and time from 1900 to 2100, with shadow length and direction, air mass and an hour-by-hour table.
Decimal degrees (37.5665, 126.978) or DMS with a hemisphere letter (37°33'59"N).
The offset your clock uses at that date, including daylight saving: +9, -5, +5:30.
The sun is up.
Without refraction the elevation would be +74.1196°.
Through the day
| Time | Elevation | Azimuth |
|---|---|---|
| 00:00 | −28.49° | 351.19° |
| 01:00 | −28.69° | 6.87° |
| 02:00 | −25.72° | 21.98° |
| 03:00 | −19.98° | 35.56° |
| 04:00 | −12.10° | 47.30° |
| 05:00 | −2.69° | 57.42° |
| 06:00 | +7.91° | 66.35° |
| 07:00 | +19.04° | 74.58° |
| 08:00 | +30.67° | 82.67° |
| 09:00 | +42.51° | 91.39° |
| 10:00 | +54.30° | 102.14° |
| 11:00 | +65.46° | 118.45° |
| 12:00 | +74.12° | 150.44° |
| 13:00 | +74.80° | 203.48° |
| 14:00 | +66.78° | 238.67° |
| 15:00 | +55.79° | 256.20° |
| 16:00 | +44.04° | 267.39° |
| 17:00 | +32.18° | 276.27° |
| 18:00 | +20.51° | 284.39° |
| 19:00 | +9.29° | 292.57° |
| 20:00 | −1.39° | 301.38° |
| 21:00 | −10.97° | 311.32° |
| 22:00 | −19.08° | 322.84° |
| 23:00 | −25.12° | 336.18° |
Computed in your browser. Azimuth is clockwise from true north; elevations include refraction when it is switched on.
How to use
- Enter the latitude and longitude in decimal degrees or degrees, minutes and seconds.
- Set the date, the local clock time and that clock's UTC offset (for example +9, -5 or +5:30), or press Now.
- Read the elevation, azimuth and shadow; adjust the pressure, temperature or object height, and scroll the hourly table for the rest of the day.
About this tool
ShowHide
Computes where the sun stands in the sky for a latitude, longitude, date and clock time: its elevation above the horizon, its azimuth measured clockwise from true north, the zenith angle, declination, local hour angle and the equation of time. From those it gives the length and direction of the shadow cast by an object of the height you enter, the relative air mass (Kasten and Young, 1989) and an hour-by-hour table for the whole day, which is what you want for placing a solar panel, planning a photograph or checking whether a window gets direct sun. The solar coordinates follow Meeus's Astronomical Algorithms with the nutation and aberration corrections and a ΔT model, and agree with PyEphem to about 0.01° anywhere on Earth between 1900 and 2100; NREL's published SPA test case comes out within 0.006°. Refraction is added with Sæmundsson's formula for the pressure and temperature you give, which matters most near the horizon, where it lifts the sun by about half a degree; switch it off to see the airless geometric position. Refraction at very low elevations depends on the actual air layers, so a sunrise-grazing value can be off by a tenth of a degree or more whatever the model. The UTC offset is entered by hand, because daylight saving time is a local rule the tool cannot know for every place and year; use the button to take the current time and offset from your device.
Frequently asked questions
Why do I have to type the UTC offset?
Daylight saving time is set by local law and has changed many times, so the offset for a given place and year is not something the tool can safely guess. Enter the offset your clock was using at that moment, for example -4 for New York in summer.
How accurate is it?
Checked against PyEphem, the airless elevation and azimuth agree to about 0.01° for any location from 1900 to 2100. Near the horizon the real refraction varies with the weather and can differ from the standard model by several arcminutes.
Is the azimuth measured from true north or magnetic north?
True north, clockwise: 90° is east, 180° south, 270° west. A compass needs your local magnetic declination added or subtracted.
Why does the shadow length disappear?
When the sun is at or below the horizon there is no direct shadow, so the tool says so instead of showing an infinite or negative length.
What do the twilight names mean?
Civil, nautical and astronomical twilight are the periods when the sun's centre is less than 6°, 12° and 18° below the horizon; below 18° it is full night.
Related tools
Moonrise, Moonset & Moon Position
Moonrise, moonset and transit times for any place and date, plus the Moon's altitude, azimuth, distance and illuminated fraction at a chosen moment.
Time
Psychrometric Calculator (Moist Air Properties)
From dry bulb plus relative humidity, wet bulb, dew point or humidity ratio, get every moist-air property: enthalpy, specific volume, density and more.
Science & Engineering
Resistor Color Code Calculator
Decode 4/5/6-band axial resistors into ohm value with tolerance — interactive color picker, gold/silver multipliers and tolerances supported.
Science & Engineering
Standard Resistor Value Finder (E24, E96)
Find the nearest standard resistor in E3 to E192 for any value, and the best pair of standard resistors in series or parallel to hit it more closely.
Science & Engineering
Capacitor Code Calculator
Decode 3-digit ceramic capacitor codes (104, 473K, 4R7) into picofarads, nanofarads and microfarads, with the tolerance-letter lookup.
Science & Engineering
Ohm's Law Calculator
Solve V, I, R, P from any two known values. V=IR, P=VI, P=V²/R, P=I²R — pick which pair you have, get the other two instantly.
Science & Engineering