Sun & Moon Almanac, Explained

After reading this you will know how the almanac finds sunrise, twilight, golden hour and the moon phase for any point on Earth, how to read the altitude chart, and where the numbers can mislead you.

What the almanac does

The Sun & Moon Almanac takes a latitude, a longitude and a date, then computes where the sun and moon sit in the sky for every minute of that day. From those positions it derives the moments you care about: sunrise and sunset with the compass bearing of each, the three twilights, the golden hour window, solar noon and the sun's highest altitude, and the corresponding moonrise, moonset, phase, illumination, age and distance.

One concrete hook. On 21 June at latitude 51.48, longitude 0.00 (Greenwich), the sun rises at about 03:43 UTC bearing roughly 49^\circ (northeast), climbs to a noon altitude near 62^\circ, and sets around 20:21 UTC bearing 311^\circ (northwest). That is over 16 hours of daylight, and the compass bearings tell you the sun is rising and setting well north of due east and due west, which is what makes midsummer light so long and low.

When to use it, and when not

Use the almanac when you need the whole day at once: a photographer planning both golden hours, a sailor checking nautical twilight for star sights, a gardener estimating hours of direct sun, or anyone curious whether tonight's moon is full and when it clears the horizon.

Do not use it for high-precision astronomy. The positions come from compact series good to a couple of arc-minutes, and rise and set times land within a minute or two. That is fine for planning and photography. It is not suitable for occultation timing, precise eclipse contact times, or surveying. If all you want is sunrise, sunset and day length in a simpler view, the Sunrise & Sunset Calculator covers that case.

The geometry behind rise and set

Rise and set happen when a body's altitude crosses a threshold. Altitude h relates to the observer's latitude \phi, the body's declination \delta and its hour angle H (how far the body is from the meridian, measured in degrees of Earth rotation) like this:

\sin h = \sin\phi \sin\delta + \cos\phi \cos\delta \cos H

Here \phi is your latitude, \delta is the sun's or moon's declination for that instant, and H grows by about 15^\circ per hour as Earth turns. To find a rise or set time you fix h at the target altitude and solve for H:

\cos H = \frac{\sin h - \sin\phi \sin\delta}{\cos\phi \cos\delta}

The target altitude is not zero. For the sun's upper limb touching the horizon the tool uses h = -0.833^\circ: about 0.267^\circ for the sun's radius plus roughly 0.566^\circ for atmospheric refraction, which lifts the image above its true position. The twilights use deeper thresholds, and golden hour uses a band rather than a single line.

If the right-hand side of the \cos H equation falls outside -1 to +1, no crossing exists that day. That is how the tool detects polar day, polar night, and the roughly monthly calendar day with no moonrise.

The altitude thresholds that define each event

Every labelled moment on the chart is just the sun crossing a specific altitude. Keeping the thresholds straight is the key to reading the almanac.

Sun altitude thresholds used by the tool
EventSun altitudeWhat it marks
Sunrise / sunset-0.833^\circUpper limb on the horizon
Golden hour-4^\circ to +6^\circSoft, warm light
Civil twilight-6^\circBright enough to work outdoors
Nautical twilight-12^\circHorizon still faintly visible
Astronomical twilight-18^\circSky fully dark

Notice that golden hour straddles the horizon. Its lower bound of -4^\circ sits below sunrise, and its upper bound of +6^\circ sits above it, so golden hour begins before the sun appears in the morning and ends after it has climbed a little.

Reproducing the demo: Greenwich on the June solstice

Run the tool with its defaults: latitude 51.48, longitude 0.00, date 21 June. Follow the sun's path through the day.

  1. The sun's declination near the solstice is about +23.44^\circ, its yearly maximum.
  2. Solve the hour angle for h = -0.833^\circ with \phi = 51.48^\circ and \delta = 23.44^\circ. The result is H \approx 124.3^\circ, which is about 8.29 hours either side of noon.
  3. Solar noon at longitude 0 falls near 12:02 UTC after the equation of time correction, so sunrise is near 03:43 and sunset near 20:21.
  4. Day length is the gap: about 16h 38m.
  5. Maximum altitude at noon is 90^\circ - \phi + \delta = 90 - 51.48 + 23.44 \approx 62.0^\circ.

Because the sun rises far to the northeast and sets far to the northwest, the morning and evening golden hours are long, and astronomical twilight never quite ends: at this latitude the sun stays above -18^\circ all night in midsummer, so the tool reports no astronomical dark.

The sun peaks near 62 degrees at solar noon (marker) and never drops below about -15 degrees, so the sky never reaches astronomical darkness. The shaded span is the time above the horizon.

Reading the chart and the moon panel

The altitude chart draws both bodies across 24 hours. Where a curve crosses the horizon line you get a rise or set. Where the sun curve sits inside a shaded band you are in that twilight or golden hour. The compass bearing printed with each rise and set is the azimuth: 90^\circ is due east, 180^\circ due south, 270^\circ due west.

The moon panel adds four numbers. Read them together:

Phase
The named appearance, from new moon through full and back, driven by the sun-moon-Earth angle.
Illumination
The lit fraction of the disc, from 0% at new to 100% at full.
Age
Days since the last new moon, running from 0 to about 29.5.
Distance
Center-to-center distance, roughly 356000 km at perigee to 406000 km at apogee.

Illumination and age move together but not linearly. An age of 7.4 days is first quarter with about 50% lit; by age 11 days illumination is already near 85%, because the lit fraction follows a cosine of the phase angle, not a straight ramp.

Moon illumination follows (1 - \cos\theta)/2, where \theta is the phase angle from 0 degrees (new) to 360 degrees. At 90 degrees (first quarter) illumination is 50 percent; at 180 degrees (full) it is 100 percent. The curve is flat near new and full and steepest at the quarters.

Common mistakes

The errors below account for most confused readings of the almanac.

Times are in the reference frame the tool reports. If you compare a printed sunrise to your phone's clock, confirm both use the same time zone and the same daylight-saving state. A one hour discrepancy is almost always a zone mismatch, not a bug.

A second mistake is expecting the moon to rise every calendar day. It rises about 50 minutes later each day, so roughly once a month a rise slips past midnight and a date shows no moonrise at all. The tool reports those days rather than hiding them.

A third mistake is treating sunrise as the sun's geometric horizon crossing. It is not: the -0.833^\circ threshold already includes refraction and the solar radius, which is why the sun is fully above the true horizon when the almanac says "sunrise." A fourth mistake is reading golden hour as a fixed 60 minutes. Near the equator the sun climbs steeply and golden hour can be under 40 minutes; at high latitudes in summer it can last hours.

Related tools

If you want only the daily solar picture without the moon and the altitude chart, the Sunrise & Sunset Calculator gives sunrise, sunset, twilight and day length for any place in a leaner layout. The almanac is the fuller view when you also need the moon or the whole-day curve.

Frequently asked questions

Why is sunrise before the sun's true horizon crossing?

Atmospheric refraction bends light so the sun appears about 0.57^\circ higher than it really is, and the tool also accounts for the sun's radius. Together that puts the reported sunrise about two to three minutes earlier than a purely geometric crossing.

Why does a day sometimes show no moonrise or no moonset?

The moon's rise time drifts about 50 minutes later each day. When that drift pushes a rise across midnight, one calendar day skips the event. This happens on the order of once a month for each of moonrise and moonset.

What does the compass bearing on sunrise mean?

It is the azimuth, the direction along the horizon. A bearing of 90^\circ is due east. In summer at mid-northern latitudes sunrise bearings fall well below 90^\circ (northeast), which is why summer sun tracks across the northern sky.

How accurate are the times?

The underlying positions are good to a couple of arc-minutes, and rise and set times are typically within a minute or two. That is ample for planning and photography, but not for precise astronomical timing.

Why is illumination not proportional to the moon's age?

Lit fraction follows (1 - \cos\theta)/2, a cosine of the phase angle. Near new and full the brightness barely changes with age; near the quarters it changes fastest. So age 7 days and age 8 days differ far more in brightness than age 14 and age 15.