FlatwalkGuidesGet the app
Guide · Sun · 2026

Shadow calculator: how long is a shadow, and will it reach your window? (2026)

The one formula for shadow length, worked tables for five cities in winter, spring and summer, and what a building opposite does to your window.

Join the waiting list
£0to plan one whole flat
1 tryof every AI tool, free
True sizefurniture from real shops
See the sun at your window

Type your address · pick your floor and window · see the hours of sun on any day

Try it free

Free, in your browser, no sign-up. Best data in the UK, US, Canada, Germany, Poland and Lithuania.

Last checked: 22 October 2026. Written by the Flatwalk team.

Short answer. Shadow length = height ÷ tan(sun's height). When the sun is 45° up, a shadow is as long as the thing that casts it; at 15° it is almost four times as long; at 60° a little over half. So the same 10 m building throws a midday shadow of about 37 m in London in December and about 5 m in June. To see what a real building opposite does to your own window, hour by hour and month by month, use a sun tool that knows the street.

Try it free: type your address, add the building opposite, see the hours of sun you keep

The shadow length formula

On flat, level ground:

shadow length = height ÷ tan(sun altitude)

The sun's altitude is its height above the horizon in degrees. You can get it for any place and time from a sun path calculator, or work out the midday value yourself: 90 minus your latitude, plus about 23.4° in late June, 0 in late March and September, minus about 23.4° in late December.

Multiply the height of the object by this factor to get its shadow:

Sun heightShadow is this many times the height
5°11.4
10°5.7
15°3.7
20°2.7
25°2.1
30°1.7
40°1.2
45°1.0
50°0.84
60°0.58
70°0.36
80°0.18

A 2 m fence with the sun at 20°: 2 × 2.7 = a shadow about 5.5 m long.

Which way it points. A shadow points straight away from the sun. At solar noon in the northern hemisphere the sun is due south, so the shadow points due north. On a December morning in London the sun is in the southeast, so shadows point northwest.

Worked table: the shadow of a 10 m building

A 10 m object is roughly a three-storey building or a big tree. Worked out with the standard sun formulas, flat ground, nothing else in the way. "Midday" is solar noon; "9 am / 3 pm" is three hours either side of it (solar time; with summer time the clock reads an hour later).

City21 Dec, midday21 Dec, 9 am / 3 pm21 Mar, midday21 Mar, 9 am / 3 pm21 Jun, midday21 Jun, 9 am / 3 pm
Los Angeles (34° N)About 16 mAbout 30 mAbout 7 mAbout 14 mAbout 2 mAbout 8.5 m
New York (40.7° N)About 21 mAbout 42 mAbout 8.5 mAbout 16 mAbout 3 mAbout 9 m
Toronto (43.7° N)About 24 mAbout 50 mAbout 9.5 mAbout 17 mAbout 3.5 mAbout 9 m
London (51.5° N)About 37 mAbout 110 mAbout 12.5 mAbout 20 mAbout 5.5 mAbout 10 m
Edinburgh (56° N)About 53 mAbout 300 mAbout 15 mAbout 23 mAbout 6.5 mAbout 10.5 m

For any other height, scale it: a 5 m house in New York at midday on 21 December throws about 10 m; a 30 m tower about 62 m.

Three things the table shows:

Slopes, width and real streets

The formula assumes flat ground and a thin object like a pole. Real life adds:

What the building opposite does to your window

The shadow question most people really have is: will the building across the street put my window in shade? Turn the formula around:

  1. Take the height of the building above your window: its height minus the height of your window above the ground.
  2. Divide it by the distance from your window to the building.
  3. The angle whose tangent is that number is the angle from your window up to the top of the building. Whenever the sun is lower than that angle, and behind the building, your window is in its shadow.

An example in London. Your window is 4.5 m above the street (first floor, in UK terms). Due south of it stands a 15 m block, 20 m away. It rises 10.5 m above your window; 10.5 ÷ 20 = 0.525, which is an angle of about 28°. The midday sun in London only climbs above 28° from about 23 February to 18 October. For four months of the year, the window gets no midday sun.

Building due south, 10.5 m taller than your windowMidday sun clears it in LondonMidday sun clears it in New York
20 m away (an angle of about 28°)About 23 Feb to 18 OctAbout 14 Jan to 27 Nov
30 m away (an angle of about 19°)About 26 Jan to 15 NovAll year

Moving the building 10 m further away gives the London window almost two more months of midday sun. That is why the distance on the planning drawings matters as much as the height. In the morning and afternoon the sun comes from the side, so a building that is narrow or set off to one side lets some sun past; that part is hard to do by hand, and it is what the tool below works out.

More on this: will a new building next door block my sun? and which floor gets the most sun.

Check the shadows on your own window, step by step

Flatwalk's free tool, Sun at your window, works out the shadows of the buildings, trees and hills around your address and counts the hours of direct sun left on each window.

  1. Type your address under "See the sun at your window" and find your building on the satellite map. The one under the pin is green; tap another if it is wrong.
  2. Choose A whole house or A flat and set your floor and the storey height.
  3. Put your window on the wall. Each outside wall has a tag, such as "South wall · sun side". Tap the wall, then tap where the window is, or drag to draw it.
  4. Tap See my sun. You get the hours of direct sun today, the first and last sun, and "x% of the glass in sun" at each moment. Drag the hour to watch the shadows move; tap Shortest for December.
  5. Read "What takes your sun". It names each blocker, such as a building to the south or a tree to the east, with the months and hours it takes.
  6. Test the building opposite. Tap Something off? to fix the height of any building or tree, or Add a building: tap its corners where it stands (or will stand) and set its height in metres. After "Recalculating", a badge shows the change, such as "-1 h 05 today" or "No change today".
  7. Copy link to keep the view, with your added buildings, or send it to a neighbour.

Try it free: see whose shadow falls on your window

What it cannot tell you

What Flatwalk does that older planners skip

Flatwalk on a phone: Lights

Lights

Add ceiling lights, lamps and LED strips and see where you need them after the sun goes down.

Flatwalk on a phone: Your flat in its city

Your flat in its city

Enter your address and the street and buildings around you appear in 3D, wherever the map has them.

Flatwalk on a phone: Sun for your address

Sun for your address

Real sunlight by date and hour, and how long each room gets direct sun.

Flatwalk on a phone: One piece, in your own room

One piece, in your own room

Through the live camera or in a photo of the room, stand a sofa on your own floor at its true size.

Flatwalk on a phone: Detail

Detail

Window and door types, kitchens, wardrobes and bathrooms built piece by piece.

Flatwalk on a phone: Made for a thumb

Made for a thumb

Slide the hour with one finger and watch the light move through the rooms.

Swipe for more. Every picture is the app itself.

One flat, free

£0for one whole flat

Most people plan one home. For that, Flatwalk costs nothing: no time-limited trial and no card needed. Drawing the flat, the sun for its address, lights, furniture and walking through it are all part of it, and each AI tool comes with one free try. A membership is for people who want more flats or more AI.

Questions people ask

How do you calculate the length of a shadow? Divide the height of the object by the tangent of the sun's height above the horizon. With the sun at 30°, a 10 m building casts a shadow about 17 m long on flat ground.

How long is a shadow at noon? It depends on the date and your latitude. In London at solar noon a 10 m building casts about 37 m in late December, 12.5 m in late March and 5.5 m in late June. In New York, about 21 m, 8.5 m and 3 m.

When is the shadow the same length as the object? When the sun is 45° above the horizon. In London the midday sun only gets that high from about early April to early September; the rest of the year every shadow is longer than the thing that casts it.

Will the building opposite shade my window? Work out the angle from your window to its top (height above your window divided by the distance, then the angle with that tangent). Whenever the sun is lower than that, and behind the building, you are in its shadow. A sun tool with the real buildings gives the hours.

Does a shadow calculator count trees and hills? A plain calculator does not: it only knows the sun. Flatwalk's sun tool counts the buildings, trees and hills it has on its maps, and lets you add or fix any that are wrong.

Flatwalk puts the real sun for your address into a 3D plan of your flat, by date and hour, free for one flat. It is coming soon to Google Play; join the waiting list at flatwalk.app.

Join the waiting list

Try it on your own flatPhotograph the floor plan, walk through your flat in 3D and try real furniture in it. Coming soon to Google Play.
Join the waiting list

Sun and light

Guides · Sun and light 38

Flatwalk: draw your flat, walk through it in 3D


© 2026 Flatwalk · Privacy · Terms