Sun Position & Shadow Length Calculator | Noon Altitude, Sunrise Direction, Magic Hour & Sunlight with a Building in Front

The Sun Position & Shadow Length Calculator takes a prefecture (or your current location or latitude/longitude) and a date and time, and calculates the sun’s altitude and azimuth at that moment, plus the length of an object’s shadow and the direction it falls. It also shows sunrise and sunset times and directions (how many degrees off due east or west), solar noon time and altitude, day length, and the golden hour and blue hour for photography, and draws the sun’s path seen from directly above, overlaid with the summer and winter solstices. Enter the height and distance of a house or apartment building in front, and it compares the hours of sunlight on your window or balcony on the selected day and at the winter solstice, and finds the distance needed for sunlight to reach at winter solstice noon. It also explains how to calculate the noon altitude (90° − latitude + declination) and includes a monthly quick reference table. All calculations run in your browser, and your location is never sent to a server.

Location and date/time

Tokyo (Shinjuku) (Tokyo)

The sun on 6/21/2026

Sunrise

4:26

ENE, 30° north of due east

Solar noon (highest point)

11:43

Noon altitude 77.8°

Sunset

19:00

WNW, 30° north of due west

Day length

14 h 35 min

Declination 23.44°

NSEW30°60°56789101112131415161718
Selected dateSummer solsticeWinter solsticeCenter = straight overhead, edge = horizon, numbers = hours

Sun at 12:00

Altitude 77.2°Azimuth SSW (198° from north)

How to calculate the noon altitude

Noon altitude = 90° − latitude + declination = 90 − 35.7 + (23.4) ≈ 77.7°

Declination is 0° at the equinoxes, about +23.4° at the summer solstice, and about −23.4° at the winter solstice. The noon altitude shown includes atmospheric refraction, so it comes out slightly higher.

  • Summer solstice
    77.8°
  • Spring/autumn equinox
    54.3°
  • Winter solstice
    30.9°

Shadow length and direction

Shadow 39 cm1.7 mSun altitude 77.2°
NSEW

The shadow points NNE

Shadow at 12:00

39 cm

Times the height

0.23×

Shadow at winter solstice noon

2.84 m

Summer solstice: 37 cm

TimeAltitudeSun azimuthShadow directionShadow of 1.7 m
5:005.5°ENEWSW17.6 m
6:0016.8°ENEWSW5.64 m
7:0028.6°EW3.12 m
8:0040.7°EW1.98 m
9:0052.8°EW1.29 m
10:0064.6°ESEWNW81 cm
11:0074.6°SENW47 cm
12:0077.2°SSWNNE39 cm
13:0069.3°WSWENE64 cm
14:0058.0°WSWENE1.06 m
15:0045.9°WE1.64 m
16:0033.8°WE2.54 m
17:0021.8°WNWESE4.25 m
18:0010.3°WNWESE9.38 m

Magic hour (golden hour & blue hour)

Golden hour is when the sun’s altitude is +6° to −4°, and blue hour is −4° to −6° (common guidelines in photography).

Morning

Civil dawn (sky begins to brighten)
3:56
Blue hour
3:56 – 4:07
Golden hour
4:07 – 5:04
Sunrise
4:26

Evening

Sunset
19:00
Golden hour
18:22 – 19:19
Blue hour
19:19 – 19:30
Civil dusk (gets dark)
19:30

Sunlight with a building in front (window/balcony)

Calculates the hours of sunlight on a window from the height and distance of a house, apartment building, or wall in front of it. Useful when house hunting or when a house will be built next door.

6/21 (selected date)

Hours of sunlight 6 h 45 min8:20–15:05

468101214161820

Winter solstice (12/22)

Hours of sunlight 3 h 20 min10:00–13:20

468101214161820
SunlitShadow of building in frontSun behind the windowNight

Angle from the window up to the roof

28.8°

Sunlight reaches the window when the sun is higher than this (when facing the window)

Noon altitude at winter solstice

30.9°

Sunlight reaches even at winter solstice noon

Distance needed for sun at winter solstice noon

9.2 m or more

(Building height − window height (5.5 m)) ÷ tan(winter solstice noon altitude)

The building in front is assumed to run parallel to the window and extend far enough to the left and right. Sunlight coming around the sides of the building, reflected light, and tree shadows are not included.

Monthly quick reference for Tokyo (Shinjuku) (Tokyo) (2026, 21st of each month)

MonthSunriseSolar noonNoon altitudeSunsetDay lengthNoon shadow (× height)
16:4811:5334.4°16:5710 h 8 min1.46×
26:2211:5543.7°17:2811 h 7 min1.05×
35:4411:4954.5°17:5312 h 9 min0.71×
45:0211:4066.1°18:1913 h 18 min0.44×
54:3211:3874.5°18:4414 h 11 min0.28×
64:2611:4377.8°19:0014 h 35 min0.22×
74:4111:4874.8°18:5414 h 14 min0.27×
85:0411:4466.5°18:2413 h 19 min0.44×
95:2811:3455.1°17:4012 h 12 min0.70×
105:5311:2643.7°16:5911 h 6 min1.05×
116:2211:2734.4°16:3110 h 9 min1.46×
126:4711:3930.9°16:319 h 44 min1.67×

Times are calculated with NOAA’s solar position formulas and may differ by about 1 minute from the National Astronomical Observatory of Japan’s almanac. Differences due to elevation, mountains, or buildings are not included.

ABOUT

About Sun Position & Shadow Length Calculator | Noon Altitude, Sunrise Direction, Magic Hour & Sunlight with a Building in Front

The Sun Position & Shadow Length Calculator calculates the sun’s altitude (angle above the horizon) and azimuth, and the length and direction of an object’s shadow, just by choosing a place, date, and time. It brings together sunrise and sunset times and directions, solar noon time and altitude, day length, and the golden hour and blue hour for photography on one screen, and shows the sun’s path in a diagram overlaid with the summer and winter solstices. Enter the height and distance of a house or apartment building in front, and you can compare the hours of sunlight on your window or balcony on the selected day and at the winter solstice, so it’s also useful for checking sunlight when house hunting or when a house will be built next door.

How to use Sun Position & Shadow Length Calculator | Noon Altitude, Sunrise Direction, Magic Hour & Sunlight with a Building in Front

  1. 1Choose a place from the prefecture list (you can also press “Use current location” or enter latitude and longitude directly)
  2. 2Choose a date. The “Summer solstice”, “Winter solstice”, “Spring equinox”, and “Autumn equinox” buttons jump straight to that date in the year
  3. 3Move the time slider to change the sun’s altitude and azimuth for that time and the sun’s position in the sun path diagram
  4. 4In “Shadow length and direction”, enter the height of an object (a person, pole, house, utility pole, etc.) to see the shadow’s length and direction and an hourly table of shadow lengths
  5. 5To check sunlight, enter the height of the building in front, the distance to it, the window height, and the window orientation, then compare the hours of sunlight on the selected day and at the winter solstice
  6. 6Press “Copy results” to copy the results, or “Copy URL with these settings” to send the settings to someone

Great for

  • Find out how far the shadow of a two-story house extends at noon on the winter solstice
  • Before viewing an apartment, check whether it gets sunlight in winter even with a building in front
  • Hearing that a house will be built next door, estimate how much sunlight the garden or first-floor windows will lose
  • Check how to calculate the noon altitude (90° − latitude ± 23.4°) for science homework
  • Find the sunrise direction and magic hour times to photograph sunrises and sunsets
  • Compare the sun’s height and direction by season to choose a spot for a vegetable garden or drying laundry
  • Check what time and in which direction the shadows of solar panels or a carport fall

Good to know

  • The sun’s position is calculated with the same formulas as NOAA’s (U.S. National Oceanic and Atmospheric Administration) Solar Calculator. Sunrise and sunset times may differ by about 1 minute from the National Astronomical Observatory of Japan’s almanac.
  • Sunrise and sunset are the times when the upper edge of the sun touches a flat horizon. Differences in visibility due to elevation, mountains, or buildings are not included.
  • Shadow length is the length on flat ground. Shadows on slopes, steps, or walls are not calculated. When the sun is low in the morning and evening, shadows become very long.
  • Sunlight with a building in front is calculated assuming the building runs parallel to the window and extends far enough to the left and right. Sunlight coming around the sides of the building, reflected light, and tree shadows are not included, so results lean toward less sunlight than in reality.
  • Golden hour is defined as the sun’s altitude between +6° and −4°, and blue hour between −4° and −6°. Perceived brightness varies with weather and air clarity.
  • Your current location is used only in your browser and is never sent to a server.

Questions this tool answers

Use Sun Position & Shadow Length Calculator | Noon Altitude, Sunrise Direction, Magic Hour & Sunlight with a Building in Front for searches like these:

  • Calculate shadow length hour by hour
  • Find the length of a building’s shadow at the winter solstice
  • Learn how to calculate the noon altitude and its values at the summer and winter solstices
  • Calculate the sun’s altitude and azimuth from a place and time
  • Find the direction of sunrise and sunset
  • Find the times of magic hour and blue hour
  • See how the distance to the neighboring house affects winter sunlight
  • Calculate the hours of sunlight on a balcony or window

FAQ

How do I calculate the noon altitude of the sun?
Noon altitude = 90° − latitude + declination. Declination is 0° at the spring and autumn equinoxes, about +23.4° at the summer solstice, and about −23.4° at the winter solstice, so the equinoxes give 90° − latitude, the summer solstice 90° − latitude + 23.4°, and the winter solstice 90° − latitude − 23.4°. For Tokyo (35.7° N), that’s about 77.8° at the summer solstice, about 54.3° at the equinoxes, and about 30.9° at the winter solstice. This tool uses the declination for the selected day and shows the formula alongside the result.
How is shadow length calculated?
Shadow length = object height ÷ tan(sun altitude). At a sun altitude of 45° the shadow is as long as the height, at 30° about 1.73 times, and at 20° about 2.75 times. Around noon on the winter solstice in Tokyo, the sun’s altitude is about 31°, so a 170 cm person’s shadow is about 2.8 m and a 7 m two-story house’s shadow is about 11.7 m.
How far from the building in front do I need to be to get sunlight at the winter solstice?
A rough guide to the distance for sunlight to reach a window at noon on the winter solstice is (height of building in front − window height) ÷ tan(winter solstice noon altitude). In Tokyo, with a 7 m two-story house in front and a first-floor window at 1.5 m, you need at least 5.5 ÷ tan 30.9° ≈ 9.2 m. Enter the heights and distance in this tool to see a chart of the hours of sunlight on the window on the selected day and at the winter solstice.
How much does the sunrise direction change with the seasons?
At the spring and autumn equinoxes the sun rises almost due east, but around the summer solstice it rises about 30° north of due east, and around the winter solstice about 29° south of due east (for Tokyo). Sunsets shift the same way: north of due west in summer and south of due west in winter. The higher the latitude, the larger the shift.
What time is magic hour?
It’s the few dozen minutes around sunset. In the evening, golden hour begins when the sun’s altitude drops below about 6° (from 30–40 minutes before sunset to a little over ten minutes after), followed by blue hour, when the sky turns blue (roughly 15–30 minutes after sunset). The times change with the season and place, so choose a date and location in this tool to check.
Isn’t the sun highest at exactly 12:00?
Japan’s time is based on longitude 135° E (Akashi, Hyogo), so in Tokyo, further east, solar noon comes before 12:00 (around 11:40), and in Fukuoka, further west, it comes later (around 12:15). In addition, because of the equation of time, solar noon shifts by more than ten minutes earlier or later depending on the season, even at the same place.
When is the winter solstice?
The winter solstice is the day when the sun’s ecliptic longitude reaches 270°, which is December 21 or 22 each year. The summer solstice is around June 21, the spring equinox March 20 or 21, and the autumn equinox September 22 or 23. This tool calculates the spring equinox, summer solstice, autumn equinox, and winter solstice for the selected year, and you can switch to any of them with one button.