geoprimsField-grade geospatial math

Moon position

The moon's azimuth and altitude at a place and instant, with and without refraction, and its right ascension, declination, distance, horizontal parallax, and semidiameter

the moon is 34.9 degrees above the horizon, bearing 132.0degrees true

the moon is 34.9 degrees above the horizon, bearing 132.0 degrees true.

Azimuth
Altitude
Altitude before refraction
Right ascension
Declination
Distance
Provenance
Computed by
time.moon.position 1.0.0, core 0.1.0
Model
The moon's apparent right ascension and declination from ELP 2000-82B, carried to the true equator and equinox of date by IAU 2006 precession and IAU 2000A nutation; the observer's place on the WGS 84 ellipsoid subtracted to give the topocentric direction, so parallax moves the altitude; refraction from the NOAA formula; horizontal parallax asin(a / d) and semidiameter asin(0.2725076 sin HP)
Accuracy
The topocentric altitude is within 0.04′ and the declination within 0.02′ of the US Naval Observatory's celestial-navigation data at 129 places and instants from 1995 to 2045. Its published azimuth is that of the moon's geocentric place, which sits up to 0.36′ from the topocentric azimuth below 85° of altitude because the geodetic and geocentric verticals differ; above that, azimuth itself is ill-conditioned
Notes
None
Cites
Bureau des Longitudes, distributed by CDS Strasbourg, ELP 2000-82B lunar theory (Chapront-Touze and Chapront), VizieR catalog VI/79; International Earth Rotation and Reference Systems Service (Petit and Luzum, eds.), IERS Conventions (2010), IERS Technical Note 36, Chapter 5; US Naval Observatory, Astronomical Applications Department, USNO Astronomical Applications API (rise, set, and twilight; moon phases)

Something look off?

Your values

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

Loading…

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

Model: The moon's apparent right ascension and declination from ELP 2000-82B, carried to the true equator and equinox of date by IAU 2006 precession and IAU 2000A nutation; the observer's place on the WGS 84 ellipsoid subtracted to give the topocentric direction, so parallax moves the altitude; refraction from the NOAA formula; horizontal parallax asin(a / d) and semidiameter asin(0.2725076 sin HP)

Show your work

  1. The moon's place

    Apparent right ascension and declination from ELP 2000-82B

    at 2026-06-21T22:30:00Z = RA 179.7944 deg, Dec -2.5987 deg

  2. Topocentric direction

    The observer's place on the ellipsoid subtracted from the moon's

    parallax 46.15 arcmin at this altitude = altitude 34.912 deg before refraction

  3. Where to look

    Refraction added to the geometric altitude

    34.912 + 0.023 deg = the moon is 34.9 degrees above the horizon, bearing 132.0 degrees true

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

Accuracy: The topocentric altitude is within 0.04′ and the declination within 0.02′ of the US Naval Observatory's celestial-navigation data at 129 places and instants from 1995 to 2045. Its published azimuth is that of the moon's geocentric place, which sits up to 0.36′ from the topocentric azimuth below 85° of altitude because the geodetic and geocentric verticals differ; above that, azimuth itself is ill-conditioned

When to use this: Use this when you need to know where the moon is in the sky: whether it clears a ridge, how much of the night it lights, or where to point a camera. Enter the place and the instant in UTC. The tool returns the azimuth and altitude as seen from the ground, the altitude before refraction, and the moon's distance, parallax, and apparent size.

Limitations: The altitude is for a level horizon: hills and buildings hide the moon well above zero. Refraction near the horizon varies with the weather by minutes of arc, so a moon within a degree of the horizon is approximate. The place is the moon's centre, not its limb.

Worked example: The moon over Denver, 2026-06-21 at 22:30 UTC. Source: add-celestial-and-moon time/moon scenario: topocentric azimuth and altitude at a place and instant.

You enter

Observer height
1600 m
Latitude
39.7392 deg
Longitude
-104.9903 deg
UTC time
2026-06-21T22:30:00Z

You get

Where the moon is
the moon is 34.9 degrees above the horizon, bearing 132.0 degrees true
Azimuth
132.031°
Altitude
34.935°
Altitude before refraction
34.912°
Right ascension
179.7944°
Declination
-2.5987°
Distance
384,860 km
Horizontal parallax
56.43′
Semidiameter
15.53′

Review: Not yet independently reviewed by a geodesist.

Last verified: 2026-10-20, 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: 27 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Terms

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)