Sun Path and Building Orientation Calculator

Enter a location, date and time to get the sun's altitude and azimuth, sunrise and sunset, an hour-by-hour sun path and the length of the shadows it casts.

Free · No sign-up · Runs in your browser

How to use the sun path calculator

Where the sun sits in the sky drives a building's daylight, heat gain, shading and the shadows it throws onto neighbours. This calculator gives the sun's position for any place, date and time using the NOAA solar equations, so you can orient a plan, size an overhang or answer a neighbour's question about overshadowing without opening modelling software.

  1. Pick a city preset or enter the site's latitude and longitude in decimal degrees. North and east are positive; south and west are negative.
  2. Set the UTC offset the clock shows on that date, including daylight saving time. Presets fill in the standard-time offset.
  3. Choose the date and clock time you want to test, such as a solstice afternoon.
  4. Enter an object height, for example a building, wall or tree, to get the length of its shadow on level ground.

The results show altitude, azimuth, compass direction, shadow ratio and length, sunrise, solar noon, sunset and day length, followed by a table of the sun's position for every hour of daylight.

Sun position formulas

sin(altitude) = sin φ × sin δ + cos φ × cos δ × cos h
Hour angle h = (true solar time ÷ 4) − 180°
Shadow length = height ÷ tan(altitude)
Overhang depth ≈ window height ÷ tan(noon altitude)

φ is the latitude, δ the sun's declination for the date (between −23.44° and +23.44°), and h the hour angle, which is zero at solar noon and changes by 15° per hour. True solar time corrects your clock for longitude, time zone and the equation of time, which is why solar noon is rarely exactly 12:00. Sunrise and sunset include the standard allowance for atmospheric refraction.

Sun altitudeShadow length ÷ height
60°0.58
45°1.00
30°1.73
15°3.73
5°11.4

Worked examples

Midsummer in London

On 21 June at 13:00 British Summer Time (UTC+1), the sun in London is at about 62° altitude and 179° azimuth, almost due south. A 10 m building casts a shadow of only about 5.3 m. The sun rises at about 04:43 and sets at about 21:22, giving roughly 16.6 hours of daylight.

Midwinter in London

On 21 December at 12:00 (UTC+0) the sun reaches only about 15° above the horizon. The same 10 m building now casts a shadow of about 37 m, which is why winter overshadowing dominates rights-of-light and planning discussions in northern cities, and day length falls to about 7.8 hours.

A west facade in New York

On 21 June at 15:00 EDT (UTC−4) the sun in New York is at about 59° altitude and 245° azimuth, west-southwest. Low afternoon sun from this direction is hard to block with horizontal overhangs, so vertical fins or external blinds suit west glazing better.

Southern hemisphere check

In Sydney at noon on 21 December (UTC+11), the sun is at about 74° altitude and 52° azimuth, to the northeast. South of the equator the midday sun is to the north, so living spaces and solar panels face north instead.

Who this calculator helps

  • Architects orienting buildings, placing glazing and sizing shading at concept stage.
  • Landscape architects placing gardens, terraces and planting that need sun or shade.
  • Planning consultants giving quick overshadowing answers before a full study.
  • Solar installers and engineers checking sun angles for panels and obstructions.
  • Photographers and visualisers matching render lighting to a real time and place.

Tips for designing with the sun

  • Size south-facing overhangs (north-facing in the southern hemisphere) from the summer noon altitude so they shade in summer but let low winter sun in.
  • Pair sun angles with the window-to-wall ratio calculator to keep glazing on east and west facades in check.
  • Remember that daylight and sunlight are different: check diffuse daylight with the daylight factor calculator.
  • Use the shadow length with the setback calculator to see how close a tall block can sit to a neighbour's garden.
  • Check the winter solstice for the worst case and an equinox for a fair average before presenting results.

Want to show a client the same scene at golden hour? Turn a daytime exterior photo into an evening view with Day to Dusk.

From numbers to pictures

See the space before it's built.

Once the plan works on paper, BasedFrame turns a sketch, a massing model or a site photo into a photoreal render in seconds. Try Sketch to Render or Room Redesign with free credits.

Try BasedFrame free

FAQ

Sun Path Calculator FAQ

What are sun altitude and azimuth?

Altitude is the sun's angle above the horizon, from 0° at sunrise or sunset to 90° directly overhead. Azimuth is its compass direction measured clockwise from true north, so 90° is east, 180° is south and 270° is west. Together they describe exactly where the sun is in the sky at a given moment.

How is the sun position calculated?

This calculator uses the NOAA solar position equations. They work out the sun's declination and the equation of time for the date, convert your clock time to solar time using your longitude and time zone, and then derive the hour angle, altitude and azimuth. The results are accurate to well under a degree for design work.

How do I calculate shadow length from sun altitude?

Shadow length on level ground equals the object's height divided by the tangent of the sun's altitude. At 45° the shadow is as long as the object is tall; at 15° it is about 3.7 times as long. The calculator shows this ratio for the chosen time and a shadow length for any height you enter.

Which dates should I check for a building?

Most studies check the summer solstice (about 21 June in the northern hemisphere) for the highest sun and overheating, the winter solstice (about 21 December) for the lowest sun and the longest shadows, and an equinox (about 20 March or 22 September) for the average case. Swap June and December in the southern hemisphere.

Does the calculator use true north or magnetic north?

Azimuths are relative to true north. A compass points to magnetic north, which can differ by several degrees depending on location and year. Site plans and surveys are normally drawn to true or grid north, so check which north your drawings use before setting out shading.

What time zone should I enter?

Enter the offset from UTC that the clock actually shows on the date you are checking, including daylight saving time. For example, London is UTC+0 in winter and UTC+1 in summer, New York is UTC−5 in winter and UTC−4 in summer, and Bangkok is UTC+7 all year.

Which way should a building face for the best sun?

In temperate climates in the northern hemisphere, main living spaces facing within about 30° of south get low winter sun and are easy to shade in summer with overhangs. In the southern hemisphere the same applies to north. In hot climates, minimising east and west glazing, where the low sun is hardest to shade, is usually more important.

Is this the same as a full sun path diagram or shadow study?

It gives the same underlying numbers: altitude and azimuth hour by hour, sunrise, sunset and solar noon. A full shadow study models the building and its neighbours in 3D; this calculator is a fast way to get angles for sketches, overhang sizing and planning discussions before that.

Keep exploring

More free tools for architects

Turn any listing
into rooms that sell

Start with a Zillow link or a single photo. Redesign, stage, relight and walk buyers through every room, ready to list today.