Sun simulator

Sun angle calculator

Sun elevation is its height above the horizon; azimuth is its direction clockwise from true north. Choose your place, date and time to calculate both.

For your place, date and time

Times use the selected place’s local time, including daylight saving.

During a daylight saving change, a skipped time moves forward by the gap; a repeated time uses its first occurrence.

Elevation

Above the horizon

Azimuth from true north

Clockwise direction

Solar noon on this date

The sun’s daily highest point

Yearly noon elevation range

Highest and lowest daily solar noon

Angles describe the sun’s centre without atmospheric refraction.

See this place, date and time in the sun path simulator → Follow the sun’s path and shadows over a map.

Solar panel tilt from sun geometry

Tilt is measured up from horizontal. These panels face the equator: south in the northern hemisphere and north in the southern hemisphere.

Fixed all year

—from horizontal

Summer half-year

—from horizontal

Winter half-year

—from horizontal

Geometry only: this is not a prediction of electricity output or a site-specific installation recommendation. It omits weather, shading, diffuse sky light, ground reflections, roof limits, electrical losses and tariffs.

Reading the sun’s angles

Elevation is measured above a flat horizon. Zero degrees is on the horizon, 90° is overhead and negative values put the sun below it. This is geometric elevation: atmospheric refraction can make the visible sun appear higher, especially near sunrise and sunset.

Azimuth is measured clockwise from true north: 0° north, 90° east, 180° south and 270° west. The compass label uses sixteen points. A magnetic compass needs a local declination correction. Near the zenith and at the geographic poles, direction can be unstable or have little practical meaning.

Solar noon is the sun’s daily transit and usually differs from 12:00 on the clock. The yearly range checks every date in the selected year, so it also shows when the noon sun stays below the horizon during polar winter.

Calculation method and limits

The open-source SunCalc library calculates position in your browser, with an offline IANA time-zone lookup. Positions are displayed to 0.1°, which is display resolution, not a universal accuracy guarantee. Selected representative cases agree within 0.1° with the NOAA solar calculator; other dates can differ by a few tenths of a degree. NOAA’s calculator includes an atmospheric correction and is no longer maintained. Near-horizon apparent angles need particular care.

For tilt, the calculator sums the direct light hitting an equator-facing panel at half-hour intervals through the selected year. It tries tilts from 0° to 90° in 1° steps and chooses the greatest total, assuming the same beam strength whenever the sun is above the horizon. It also finds the best tilt for each seasonal half: April–September and October–March, with summer and winter reversed south of the equator. This geometry model does not model atmospheric attenuation or real clear-sky irradiance variation.

Your absolute latitude is a conventional starting point for fixed tilt; it need not be the maximum of this model. For example, the 2026 geometric maximum is about 33° at 35°N and 38° in New York (40.71°N). Local weather and diffuse light can move a real installation’s optimum.

The page starts in New York with today’s date there and noon local time. Device location is requested only when you press “Use my location”. Coordinates stay in your browser; a place-name search sends the query to OpenStreetMap’s Nominatim service. Nothing is stored.

For light windows, see golden hour and blue hour times. For compass bearings at the horizon, see where the sun rises and sets.

Questions

What is the sun’s elevation angle?

Elevation is the angle of the sun’s centre above a flat horizon: 0° is on the horizon and 90° is directly overhead. A negative angle means it is below the horizon. This calculator gives geometric elevation without atmospheric refraction, so the apparent sun can be slightly higher, especially near the horizon.

What is the sun’s azimuth?

Azimuth is the direction along the horizon, measured clockwise from true north: north is 0°, east 90°, south 180° and west 270°. The compass point beside the angle uses sixteen directions. Magnetic compasses can differ because magnetic north is not true north.

What angle should solar panels be tilted?

For a simple fixed installation, your latitude is a useful starting point for tilt from horizontal, with panels facing the equator. The calculator integrates the sun’s position over the selected year and finds the tilt that collects the most direct light in a constant-beam geometry model. Its seasonal tilts optimise two six-month periods separately. Weather, shading, roof limits, diffuse light, electrical losses and tariffs can change the practical choice.