geoprimsField-grade geospatial math

Celestial almanac (GHA and declination)

and declination of the Sun, Moon, and navigational planets, GHA Aries, and the SHA and declination of the 57 navigational stars and Polaris, for one instant

Planning and education aid. Not for primary navigation. Full disclaimer

the Sun's GHA is 306°29.9' and its declination N 22°16.0'; GHA Aries is 17°18.8'

At that second, the Sun's GHA is 306°29.9' and its declination N 22°16.0'; GHA Aries is 17°18.8'.

Sun, Moon, and planets
BodyGHADeclinationHorizontal parallaxSemidiameter
Sun306.4981 deg22.2670 deg0.1 arcmin15.8 arcmin
Moon1.5766 deg7.0095 deg59.6 arcmin16.2 arcmin
Venus307.1432 deg22.0356 deg0.1 arcmin
Mars353.8197 deg8.5533 deg0.1 arcmin
Jupiter317.5355 deg19.8065 deg0.0 arcmin
Saturn26.8683 deg-6.1416 deg0.0 arcmin
Sun GHA
Sun declination
GHA Aries
Moon GHA
Moon declination
Moon horizontal parallax
Provenance
Computed by
navigation.celestial.almanac 1.0.0, core 0.1.0
Model
Apparent geocentric places: the Sun and planets from VSOP87D (light time, annual aberration, the FK5 correction), the Moon from ELP 2000-82B (light time), the stars from Hipparcos 2007 (proper motion, parallax, light deflection, aberration), all carried to the true equator and equinox of date by IAU 2006 precession and IAU 2000A nutation; GHA = GAST − RA and SHA = 360° − RA, with GAST by IAU 2006/2000A; HP = asin(6,378.137 km / distance), the Moon's SD = asin(0.2725076 sin HP), the Sun's SD = 959.63″ / R; the equation of time = the Sun's GHA − 180° − 15° × UT1 hours
Accuracy
Within 2″ of JPL Horizons for the Sun, Moon, and planets from 1950 to 2050, and within 0.02′ of USNO for the Sun, planets, Aries, and stars (Venus within 0.41′ and the Moon within 0.21′, where USNO itself departs from JPL)
Reference data
version IERS Bulletin C 72 (2026-07-06) of a reference dataset
Notes
None
Cites
National Geospatial-Intelligence Agency, The American Practical Navigator (Bowditch), NGA Pub. No. 9, Volume I; International Earth Rotation and Reference Systems Service (Petit and Luzum, eds.), IERS Conventions (2010), IERS Technical Note 36, Chapter 5; Bureau des Longitudes (now IMCCE), distributed by CDS Strasbourg, VSOP87 planetary theories (Bretagnon and Francou 1988), VizieR catalog VI/81; Bureau des Longitudes (now IMCCE), distributed by CDS Strasbourg, ELP 2000-82B lunar solution (Chapront-Touze and Chapront 1983, 1988), VizieR catalog VI/79; European Space Agency (F. van Leeuwen, Astronomy and Astrophysics 474, 653), Hipparcos, the new reduction (van Leeuwen 2007), VizieR catalog I/311; US Naval Observatory, Astronomical Applications Department, USNO Astronomical Applications API (celestial navigation and sidereal time)

Something look off?

Your values

Showing an example. Change anything.
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: Apparent geocentric places: the Sun and planets from VSOP87D (light time, annual aberration, the FK5 correction), the Moon from ELP 2000-82B (light time), the stars from Hipparcos 2007 (proper motion, parallax, light deflection, aberration), all carried to the true equator and equinox of date by IAU 2006 precession and IAU 2000A nutation; GHA = GAST − RA and SHA = 360° − RA, with GAST by IAU 2006/2000A; HP = asin(6,378.137 km / distance), the Moon's SD = asin(0.2725076 sin HP), the Sun's SD = 959.63″ / R; the equation of time = the Sun's GHA − 180° − 15° × UT1 hours

Show your work

  1. Time scales

    UT1 = UTC + DUT1; TT = UT1 + ΔT

    DUT1 0 s = ΔT 69.2 s

  2. Apparent sidereal time

    GAST = GMST + equation of the equinoxes (IAU 2006/2000A)

    UT1 and TT = GHA Aries 17°18.8'

  3. Hour angle

    GHA = GAST − RA; SHA = 360° − RA

    Sun RA 70.8149° = the Sun's GHA is 306°29.9' and its declination N 22°16.0'; GHA Aries is 17°18.8'

The same steps an agent gets from the MCP server with explain: true.

Accuracy: Within 2″ of JPL Horizons for the Sun, Moon, and planets from 1950 to 2050, and within 0.02′ of USNO for the Sun, planets, Aries, and stars (Venus within 0.41′ and the Moon within 0.21′, where USNO itself departs from JPL)

When to use this: Use this when you reduce a sextant sight and need the almanac data for its exact second: GHA and declination of the Sun, Moon, or a planet, or GHA Aries and a star's SHA and declination, with the Moon's horizontal parallax and semidiameter for the altitude corrections. Enter the sight's UTC time, and DUT1 from IERS Bulletin A if you have it.

Limitations: These values are computed, not copied from the Nautical Almanac, which is the governing publication; check them against it before you rely on them at sea. Places are geocentric; the parallax correction to the observer's altitude is a separate step. UT1 is UTC plus the DUT1 you give; without it the Sun's GHA can be off by up to 0.2′. Before 1972, TT − UT1 is an estimate. The tool covers 1800 to 2100.

Worked example: The Spica sight of Bowditch's four-star fix, 2024-06-02 at 08h24m03s UT. Source: Bowditch 2024 §2010, Tables 2010a and 2010b: GHA Aries 11°17.0′ at 08h plus 6°01.7′ for 24m03s is 17°18.7′; Spica SHA 158°22.6′, Dec S 11°17.4′. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

DUT1 (UT1 − UTC)
0 s
UTC time
2024-06-02T08:24:03Z

You get

Sun and Aries
the Sun's GHA is 306°29.9' and its declination N 22°16.0'; GHA Aries is 17°18.8'
Sun GHA
306.4981°
Sun declination
22.267°
GHA Aries
17.313°
Moon GHA
1.5766°
Moon declination
7.0095°
Moon horizontal parallax
59.6′
Moon semidiameter
16.2′
Sun semidiameter
15.8′
Equation of time
1.94 min
ΔT (TT − UT1)
69.2 s
Series used
VSOP87D (Sun, planets), ELP 2000-82B (Moon), Hipparcos 2007 (stars), IAU 2006/2000A precession-nutation
Governing publication
Computed, not copied: the Nautical Almanac is the governing publication.

Review: Not yet independently reviewed by a geodesist.

Last verified: 2026-09-19, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 24 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Terms

DUT1: UT1 minus UTC
The difference between Earth-rotation time and UTC, always under 0.9 s, broadcast so users can recover UT1. Source: IERS Bulletin C (leap seconds)
GHA: Greenwich hour angle
How far west of the Greenwich meridian a body is, measured along the celestial equator from 0° to 360°; it grows about 15° an hour as the Earth turns. Source: The American Practical Navigator (Bowditch), NGA Pub. No. 9
IERS: International Earth Rotation and Reference Systems Service
The service that maintains the ITRF and Earth orientation data, and announces leap seconds in Bulletin C. Source: IERS Bulletin C (leap seconds)
TT: Terrestrial Time
The uniform time scale of astronomical ephemerides: TAI plus 32.184 seconds. Source: Espenak and Meeus Delta T polynomials
UT1: Universal Time 1
Time kept by Earth's actual rotation. It drifts against atomic time, and UTC is kept within 0.9 s of it. Source: IERS Bulletin C (leap seconds)
UTC: Coordinated Universal Time
The world's civil time standard, kept within 0.9 s of Earth's rotation by leap seconds. Aviation calls it Zulu time, written with a Z. Source: IERS Bulletin C (leap seconds)

GHA — Greenwich hour angle

How far west of the Greenwich meridian a body is, measured along the celestial equator from 0° to 360°; it grows about 15° an hour as the Earth turns.

Source: The American Practical Navigator (Bowditch), NGA Pub. No. 9