Skip to content
Omnikalc

Sunrise and sunset direction calculator

Find the compass bearing of sunrise and sunset for any date and latitude, how far north or south of due east and west they fall, and how the direction swings between the solstices.

Updated on
Your inputs

Value out of range

°

Value out of range

Results

Sunrise azimuth (from true north, clockwise)

110.8 °

South of due east

Sunset azimuth

249.2 °

Offset from due east and due west (+ north, − south)
-20.8 °
Solar declination
-16.18 °
Largest offset at the solstices
32.5 °

Where the sun rises

The sun rises due east and sets due west only around the equinoxes, in March and September. In summer it rises north of east and sets north of west; in winter it rises south of east and sets south of west (in the Northern Hemisphere). How far it swings depends on your latitude.

The formula

The azimuth is the compass bearing measured clockwise from true north. At sunrise the sun’s center is about 0.833° below the horizon because of refraction and the size of its disk, so the calculator uses:

cos A = (sin δ − sin φ × sin(−0.833°)) ÷ (cos φ × cos(−0.833°))

where φ is the latitude and δ the solar declination, which varies from −23.44° to +23.44° through the year. Sunset is at 360° − A.

How far the direction swings

At the solstices, the sunrise moves this far from due east:

Place Latitude Offset at the solstices
Equator 0° 23.4°
Miami 25.8° N 26.7°
New York 40.7° N 32.5°
Paris 48.9° N 38.4°
Anchorage 61.2° N about 58°

Above the Arctic Circle the sun does not rise or set at all for part of the year; the calculator reports polar night or midnight sun.

Example

In New York on November 4, the solar declination is about −16.2°. The sun rises at an azimuth of about 110.8°, roughly 21° south of east, and sets at about 249°.

Uses

  • Photography: plan sunrise or sunset shots aligned with a street, a bridge or a mountain.
  • Architecture and gardening: know which windows and beds get morning or evening sun in each season.
  • Alignments: “Manhattanhenge” happens in late May and mid-July, when the setting sun lines up with Manhattan’s street grid, about 29° north of west. Stonehenge aligns with the midsummer sunrise and midwinter sunset.

Notes

The results use true north. A magnetic compass differs by the local magnetic declination, about 13° west in New York and nearly zero in Paris. Hills on the horizon delay sunrise and shift it slightly toward the south in the morning.

Frequently asked questions

Does the sun always rise in the east?

Only exactly east around the equinoxes. In summer it rises north of east and in winter south of east, by up to about 32° in New York.

Why does the sunrise direction change with latitude?

The sun's path crosses the horizon at a shallower angle at high latitudes, so the same change in declination moves the rising point farther along the horizon.

Is the azimuth relative to true or magnetic north?

True north. To use a compass, correct for the local magnetic declination, about 13° west in New York.

What happens near the poles?

Above the Arctic Circle the sun can stay above or below the horizon all day around the solstices. The calculator then reports midnight sun or polar night.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.