The sunset moves along the horizon through the year because Earth's axis is tilted about 23.4 degrees. The Sun only sets due west around the March and September equinoxes. In the Northern Hemisphere it sets north of west in spring and summer, reaching its farthest point near the June solstice, and south of west in autumn and winter, reaching the other extreme near the December solstice. South of the equator the seasons flip: summer sunsets fall south of west and winter sunsets north of west.
If you watch sunsets from the same window or the same hill, you have probably noticed this without knowing why. One month the Sun drops behind a particular tree; a few months later it is setting over a completely different part of the skyline. That swing is predictable, and once you understand it you can plan for it.
It depends on your latitude. The farther you are from the equator, the wider the swing.
Near the equator: about 23 degrees either side of due west.
Around 40 degrees latitude (roughly Philadelphia, Madrid or Beijing): about 31 degrees either side, a total swing of more than 60 degrees.
Around 50 degrees latitude (roughly London or Vancouver): about 38 degrees either side, a swing of more than 75 degrees.
Hold your fist at arm's length: it covers about 10 degrees. At mid-latitudes, the sunset travels six or more fist-widths along your horizon between winter and summer.
The sunset point does not move at a steady speed. Near the equinoxes it moves quickly, about one Sun-width per day at mid-latitudes, so you can see the change from week to week. Near the solstices it slows almost to a stop, lingering at its northernmost or southernmost point for days. The word solstice comes from Latin for "Sun stands still", which describes exactly this.
That has a practical consequence: if you are waiting for the Sun to set in a particular gap, notch or doorway, the window is short in March and September but can last a week or more near June or December.
Manhattanhenge: Twice a year, in late May and mid-July, the setting Sun lines up with the street grid in New York City. It happens because the grid is rotated from true east-west.
Ancient sites: Many ancient monuments are aligned with solstice sunrises or sunsets, using the extremes of the Sun's swing as a calendar.
Your own street: Most towns have some street, pier or valley that lines up with the Sun a couple of times a year. Finding yours is a fun project.
Know your directions. Use a compass app to note the bearing of the landmark you want the Sun near. Remember due west is 270 degrees.
Look up the sunset azimuth. Any Sun calculator will give the Sun's bearing at sunset for a date and place. Compare it to your landmark's bearing.
Account for the horizon. Calculators assume a flat horizon. If hills or buildings are in the way, the Sun disappears earlier and slightly to the side of the calculated point.
Keep notes. Jot down where the Sun set on a few dates. After a season you will have your own map of the swing.
Asterfold shows this swing directly. Its Light Path Studio draws the Sun's path for any place and date on a sky dome and marks the year's range of sunset and sunrise directions on the rim, with shortcuts to the year's key dates. You can save the exact spot you watch from, turn toward your view on a first-person horizon, and jump to today's sunset or the year's most northerly or southerly one. Pick a lens and Asterfold lists the dates this year when the Sun sets or rises inside your frame, plus the next seven sunsets against it. The calculations run on your iPhone and work offline, and they assume a flat horizon: hills, buildings and trees are not modelled.
Asterfold is free with in-app purchases, with the Studio and aiming included free for two viewpoints. Asterfold Plus adds unlimited viewpoints and a full year of sky events, as a subscription or a one-time Lifetime purchase.
It always sets in the western half of the sky, but exactly due west only around the equinoxes. The rest of the year it sets somewhat north or south of west depending on the season and your hemisphere.
Everywhere on Earth, around the June solstice, usually June 20 or 21. In the Northern Hemisphere that is midsummer; in the Southern Hemisphere it is midwinter, and the farthest-south sunset comes around the December solstice instead.
Both the time and the direction change fastest near the equinoxes and slowest near the solstices. Earth's elliptical orbit also shifts the timing slightly, which is why the earliest sunset is a little before the December solstice in the Northern Hemisphere.
Download Asterfold on the App Store