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.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?
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
The moon's place
Apparent right ascension and declination from ELP 2000-82Bat 2026-06-21T22:30:00Z= RA 179.7944 deg, Dec -2.5987 degTopocentric direction
The observer's place on the ellipsoid subtracted from the moon'sparallax 46.15 arcmin at this altitude= altitude 34.912 deg before refractionWhere to look
Refraction added to the geometric altitude34.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
- 2026-11-06, changed: Eight marine and celestial tools are now stable: sextant altitude corrections, sight reduction, set and drift, plane sailing, tide datum conversion, tide prediction, the moon's position, and moonrise and moonset. Nothing they compute changed. Each was already checked against a published source rather than against itself: Bowditch's own worked examples for the sights, the sailings, and the current triangle, NOAA's published tide predictions and station datums for the tides, and the US Naval Observatory's computed data for the moon. What the stable mark adds is that the build now holds them to the whole bar on each commit. Their pages no longer carry the experimental warning. The navigation MCP toolset grows to 37 tools, still under its cap. Changelog
- 2026-10-28, added: Three new experimental tools, a moon group in Time. Moonrise, moonset, and the moon's highest point for a place and local date, by the US Naval Observatory's own definition of the upper limb on the horizon, in local time and Zulu, with the dates the moon's daily retardation leaves without a rise or without a set named along with the times either side, and the polar days it never rises or sets at all. Where the moon is in the sky at an instant, as seen from the ground rather than from the centre of the Earth, with its distance, parallax, and apparent size. And how much of the disc is lit, how old the moon is, and when the next new moon, first quarter, full moon, and last quarter fall. Checked against USNO at 1,361 rise, set, and transit times over 500 places and dates and at all 208 of its published phase instants, every one within a minute. Changelog
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
- ELP 2000-82B lunar theory (Chapront-Touze and Chapront), VizieR catalog VI/79, Bureau des Longitudes, distributed by CDS Strasbourg, ELP 2000-82B, series ELP1 to ELP3 (main problem), VizieR VI/79. The main-problem series for longitude, latitude, and distance, as elp82b.f evaluates them.
- IERS Conventions (2010), IERS Technical Note 36, Chapter 5, International Earth Rotation and Reference Systems Service (Petit and Luzum, eds.), Technical Note 36, chapter 5 of 10 August 2012, with Tables 5.2e, 5.3a, and 5.3b. Equations 5.15 (ERA), 5.32 (GMST), 5.39 and 5.40 (Fukushima-Williams precession angles); Tables 5.3a and 5.3b (IAU 2000A nutation). Read free.
- USNO Astronomical Applications API (rise, set, and twilight; moon phases), US Naval Observatory, Astronomical Applications Department, API 4.0.1, rstt/oneday and moon/phases endpoints. Rise, set, and upper transit of the moon for a place and date, and the instants of the moon's phases.
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)
Learn the concept: How much light the moon will give you