<p><a href="https://en.wikipedia.org/wiki/Lunar_theory" rel="noreferrer">Lunar theory</a> is complicated. ;) The Moon's orbit around the Earth is only approximately a constant Keplerian ellipse. As I mentioned <a href="https://astronomy.stackexchange.com/a/49269/16685">here</a>, the Moon's orbit around the Earth-Moon barycentre has an eccentricity of ~0.0549 and it's quite dynamic, with relatively short apsidal and nodal <a href="https://en.wikipedia.org/wiki/Lunar_precession" rel="noreferrer">precession</a> cycles, primarily due to perturbation by the Sun.</p>
<p>The size of the Moon's orbit varies over the course of the year. Here's a daily plot (courtesy of JPL <a href="https://ssd.jpl.nasa.gov/horizons/" rel="noreferrer">Horizons</a>) of the Earth-Moon distance for 13 (<a href="https://en.wikipedia.org/wiki/Lunar_month#Anomalistic_month" rel="noreferrer">anomalistic</a>) lunar months.</p>
<p><a href="https://i.sstatic.net/T6xpo.png" rel="noreferrer"><img src="https://i.sstatic.net/T6xpo.png" alt="Earth-Moon distance" /></a></p>
<p>The mean distance over that period is roughly 384,975 km. The maximum monthly variation occurs when the Earth-Moon system is near perihelion or aphelion.</p>
<p>That plot was created using this <a href="https://sagecell.sagemath.org/?z=eJyVWHtz2kgS_59PMZFzi-SADHi9t-FKdYttudZZ21BAspXDnGoMA8jW6zQjG-Lyd7_uHklIJHtVRxWWpqenpx-_fmDDMNhYqNQXz4KlPFoLtuSKs1Uah-z3OPW_xZFkqzhlnCmeroViD_Fy12Dw4dESvix-kCJ99qM1W4hIiZToSRAr5iu7QZx_pr5SImIPOza6Zb0xMvc6va7d-Wh3PxLL5wTuFUsk9-zOmd35uWEYRqPhh0mcKpaKFnz_kwmpZIOUW2XRQsVxIFnOEqSZt-CLjdD7IVeoROA_2MpfPIFeOd9kwQOeXsUpcIC6jcaqeGXO4aaZSTFcraRQzhUPpLAajSwNgM_YKJXI_smJlEv7MQnsiEtur-PnE574J5vccd7KD4QNFKMBf7xnkUo_jvA4mA7GPXApvEW4RAoYezv4w_Xc0e_uLRCaX91Js0Erb_p15CLpi3sxHY6BPPw89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Km_AjSRoYYMeRAYrUqS5xPkQ8AXTxAb-IkC0a1DT0PIqNj2mMH4x2WC4yA0Vj-mnS1ZuQXVW4cWb0uLt9riH3hBV2wtFErkVrtgSy44qbskR4UEHOsDHmlhduxfwVu5jBM9A-dqy038Yo7K2MJUXPGbLfmzMJvFPyps2G1a_wVPgkf6&amp;lang=sage" rel="noreferrer">Sage / Python script</a>, running on the SageMathCell server. There are brief instructions on using an earlier version of that script <a href="https://space.stackexchange.com/a/55061/38535">here</a>.</p>
<hr />
<p>As Connor mentions, there are a few ways to define the average distance. Here's some info from Wikipedia <a href="https://en.wikipedia.org/wiki/Semi-major_and_semi-minor_axes" rel="noreferrer">Semi-major and semi-minor axes</a>, recycled from a <a href="https://astronomy.stackexchange.com/a/47107/16685">previous answer</a>:</p>
<blockquote>
<p>It is often said that the semi-major axis is the &quot;average&quot; distance between the primary focus of the ellipse and the orbiting body. This is not quite accurate, because it depends on what the average is taken over.</p>
<ul>
<li><p>averaging the distance over the <a href="https://en.wikipedia.org/wiki/Eccentric_anomaly" rel="noreferrer">eccentric anomaly</a> indeed results in the semi-major axis.</p>
</li>
<li><p>averaging over the <a href="https://en.wikipedia.org/wiki/True_anomaly" rel="noreferrer">true anomaly</a> (the true orbital angle, measured at the focus) results in the semi-minor axis, <span class="math-container">$b=a{\sqrt {1-e^{2}}}$</span></p>
</li>
<li><p>averaging over the <a href="https://en.wikipedia.org/wiki/Mean_anomaly" rel="noreferrer">mean anomaly</a> (the fraction of the orbital period that has elapsed since pericentre, expressed as an angle) gives the time-average, <span class="math-container">$a\left(1+{\frac {e^{2}}{2}}\right)$</span>.</p>
</li>
</ul>
</blockquote>
<p>In the above equations, <span class="math-container">$e$</span> is the <a href="https://en.wikipedia.org/wiki/Orbital_eccentricity" rel="noreferrer">eccentricity</a> of the ellipse.</p>

CC BY-SA 4.0
2022-05-03T21:06:00.923Z
2022-05-05T20:28:59.450Z
2022-05-05T20:28:59.450Z
PM 2Ring
<p>Your guess on the requirement for calculus is correct. What you need to do is integrate the moon's distance over one orbit to find an average distance.</p>
<p>Starting from the equation below, the Moon's (or really any orbiting body's) orbital distance, <span class="math-container">$r$</span>, as a function of azimuthal angle <span class="math-container">$\theta$</span> is given by the <a href="https://en.wikipedia.org/wiki/Orbit_equation" rel="noreferrer">Orbit Equation</a>.</p>
<p><span class="math-container">$$r(\theta) = \frac{L^2}{m^2\mu}\frac{1}{1+e\cos(\theta)}$$</span></p>
<p>In this equation, the variables have the following definitions:</p>
<ul>
<li><span class="math-container">$r$</span> - The distance the body is from the body it is orbiting.</li>
<li><span class="math-container">$\theta$</span> - The angle of the body at a given point in the orbit, as measured from the periapsis. This  means <span class="math-container">$\theta = 0$</span> at periapsis and <span class="math-container">$\theta = \pi$</span> at apoapsis.</li>
<li><span class="math-container">$L$</span> - The orbital angular momentum of the body. This is simply given by <span class="math-container">$mrv$</span> where <span class="math-container">$m$</span> is the mass, <span class="math-container">$r$</span> is the distance at any point in the orbit, and <span class="math-container">$v$</span> is the orbital velocity at that point. Because the orbital angular momentum is conserved, any point along the orbit will give the same value. The fact sheet you linked to gives both the apoapsis distance and the velocity at that point so you could calculate <span class="math-container">$L$</span> from this.</li>
<li><span class="math-container">$m$</span> - As above, the mass of the orbiting body. Note that technically the formula for <span class="math-container">$L$</span> cancels with the <span class="math-container">$m$</span> in this equation, which is why you often see the <span class="math-container">$L^2/m^2\mu$</span> portion often written as <span class="math-container">$\ell^2/\mu$</span> where <span class="math-container">$\ell$</span> is the angular momentum per unit mass (i.e., just <span class="math-container">$rv$</span>).</li>
<li><span class="math-container">$\mu$</span> - The <a href="https://en.wikipedia.org/wiki/Standard_gravitational_parameter" rel="noreferrer">standard gravitational parameter</a> of the system, given by <span class="math-container">$G(m_1 + m_2)$</span> where <span class="math-container">$m_1$</span> and <span class="math-container">$m_2$</span> are the masses of the two bodies involved (the Earth and the Moon in this case) and <span class="math-container">$G$</span> is the gravitational constant.</li>
<li><span class="math-container">$e$</span> - The eccentricity of the orbit. Also on the fact sheet.</li>
</ul>
<p>So there's a bit of work here, but you can find all the numbers and plug them in to the equation.</p>
<p>Now, here comes the calculus part. In order to find the average orbital distance, <span class="math-container">$\bar{r}$</span>, you have to integrate <span class="math-container">$r(\theta)$</span> over an entire orbit. So the average becomes</p>
<p><span class="math-container">$$\bar{r} = \frac{1}{2\pi}\int_0^{2\pi} r(\theta)\ d\theta = \frac{\ell^2/\mu}{2\pi}\int_0^{2\pi} \frac{1}{1+0.0549\cos(\theta)}\ d\theta$$</span></p>
<p>I have no interest in doing that nasty integral so I'll just <a href="https://www.wolframalpha.com/input?i=1%2F%282*pi%29+*+integral+from+0+to+2*pi+1%2F%281%2B0.0549*cos%28x%29%29+dx" rel="noreferrer">plug it into a calculator for me</a>. I find that this works out to the following:</p>
<p><span class="math-container">$$\bar{r} = 1.00151\frac{\ell^2}{\mu}$$</span></p>
<p>This boils down to just calculating <span class="math-container">$\ell$</span> and <span class="math-container">$\mu$</span> now and plugging in. Using the fact sheet you linked in your question, I find the following values of <span class="math-container">$\ell = 3.922\times10^{11}\:\mathrm{m^2/s}$</span> and <span class="math-container">$\mu = 4.033\times10^{14}\:\mathrm{m^3/s^{-2}}$</span>. Which means, when I plug those numbers into the equation, I get a mean orbital distance of</p>
<p><span class="math-container">$$\bar{r} = 384\ 234\:\mathrm{km}$$</span></p>
<p>However, all of that was a lot of work to calculate something that could've been arrived at much easier. Remember above, I said that <span class="math-container">$L$</span> is conserved so the value is constant at any point in the orbit. Thus you can say <span class="math-container">$r_1v_1 = r_2v_2$</span> and because the fact sheet gives you the radius and velocity at apogee and the average velocity, you can easily calculate the average radius. You'll find the same value though.</p>
<p>And here again, we've done more work than we need. We integrated over the true anomaly to find the average orbital distance, but <a href="https://en.wikipedia.org/wiki/Semi-major_and_semi-minor_axes#Average_distance" rel="noreferrer">that's just the semi-minor axis</a> which is <span class="math-container">$383\ 800\:\mathrm{km}$</span>, not too far off from what I calculated. We could've just looked it up from the get go!</p>

CC BY-SA 4.0
2022-05-04T02:48:21.920Z
OP wants a time average, not an angular average, as far as I can tell.
benrg
CC BY-SA 4.0
2022-05-03T18:25:31.067Z
2022-05-03T19:25:07.253Z
2022-05-03T19:25:07.253Z
zephyr
<p><a href="https://phys.libretexts.org/Bookshelves/Astronomy__Cosmology/Celestial_Mechanics_(Tatum)/09%3A_The_Two_Body_Problem_in_Two_Dimensions/9.10%3A_Mean_Distance_in_an_Elliptic_Orbit" rel="noreferrer">Mean distance averaged over time</a> for any Keplerian orbit is <span class="math-container">$a(1+\frac{1}{2}e^2)$</span>, where <span class="math-container">$a$</span> is the semi-major axis and <span class="math-container">$e$</span> is the eccentricity.  Using your NASA fact sheet, I get about 384,979 km for the Moon (which is pretty close to <a href="https://en.wikipedia.org/wiki/Orbit_of_the_Moon" rel="noreferrer">wikipedia's</a> value of 385,000 km).  This, as expected is a bit larger than <span class="math-container">$a$</span> at 384,400 km.</p>
<p><strong>Note:</strong> I wouldn't call this the &quot;actual&quot; average distance because there is more than one way to compute an average.</p>

CC BY-SA 4.0
2022-05-04T13:41:13.120Z
Indeed - beware the word "actual" in any context.
J...
CC BY-SA 4.0
2022-05-05T02:27:29.930Z
Indeed - one should also beware of the word "average". This answer gives the mean distance. Is the median distance the same or different?
Dale M
CC BY-SA 4.0
2022-05-05T16:05:00.590Z
@DaleM I think the median distance over time will be different if you define the median distance $\tilde{d}$ and  the distance between the Earth and Moon as $d$ such that $d<\tilde{d}$ for exactly half the period of the orbit.  This is because distance as a function of time is non-linear. How to calculate such a $\tilde{d}$ might be another interesting Astronomy SE question! (hint hint)
Connor Garcia
CC BY-SA 4.0
2022-05-05T17:28:11.823Z
Do you have examples of different, meaningful averages for the distance between Moon and Earth?
Eric Duminil
CC BY-SA 4.0
2022-05-05T17:57:56.697Z
@EricDuminil Yes, there are three quite nice examples from wikipedia below: https://astronomy.stackexchange.com/questions/49258/what-is-the-actual-average-distance-of-the-moon-from-earth/49267#49267.  Note that all three are the same value for circular orbits.
Connor Garcia
CC BY-SA 4.0
2022-05-03T16:46:14.850Z
2022-05-05T19:18:23.233Z
2022-05-05T19:18:23.233Z
Connor Garcia
<p>The Moon orbits Earth at a semi-major axis of 384400 km, with its periapsis being 363300 km and apoapsis being 405500 km. (All figures from <a href="https://nssdc.gsfc.nasa.gov/planetary/factsheet/moonfact.html" rel="noreferrer">this</a> NASA fact sheet.)</p>
<p><em><strong>If</strong></em> the Moon orbited Earth at a constant velocity, the average distance would be 384,400 km. Unfortunately, as Kepler found out, celestial objects move faster near periapsis and slower at apoapsis.</p>
<p>This means that the Moon's <em>actual</em> average distance from Earth is slightly bigger than 384400 km, due to it having a lower orbital velocity when farther from Earth.</p>
<p>So, what is the Moon's actual average distance from Earth? Is there a formula (I'm assuming including calculus) that would give a solution to any two-body-system?</p>

CC BY-SA 4.0
2022-05-04T21:41:23.897Z
All averages, especially averages of continuous quantities, require a weight function. This question seems to come down to treating the mean distance weighted by time as the "actual" average, rather than one particular average. And that's not even getting into things like arithmetic mean versus other types of mean such as geometric.
Acccumulation
<orbit><the-moon><orbital-mechanics>
What is the **actual** average distance of the Moon from Earth?
user177107
# What is the **actual** average distance of the Moon from Earth?

(Asked by: username_0 on 2022-05-03)

The Moon orbits Earth at a semi-major axis of 384400 km, with its periapsis being 363300 km and apoapsis being 405500 km. (All figures from [this](https://nssdc.gsfc.nasa.gov/planetary/factsheet/moonfact.html) NASA fact sheet.)

***If*** the Moon orbited Earth at a constant velocity, the average distance would be 384,400 km. Unfortunately, as Kepler found out, celestial objects move faster near periapsis and slower at apoapsis.

This means that the Moon's *actual* average distance from Earth is slightly bigger than 384400 km, due to it having a lower orbital velocity when farther from Earth.

So, what is the Moon's actual average distance from Earth? Is there a formula (I'm assuming including calculus) that would give a solution to any two-body-system?

**Tags:** orbit, the-moon, orbital-mechanics

> **Comments:**
> **username_1**: All averages, especially averages of continuous quantities, require a weight function. This question seems to come down to treating the mean distance weighted by time as the "actual" average, rather than one particular average. And that's not even getting into things like arithmetic mean versus other types of mean such as geometric.  

---

## 3 answers

### Answer by username_5 on 2022-05-03. Score: 59 | Accepted answer

[Mean distance averaged over time](https://phys.libretexts.org/Bookshelves/Astronomy__Cosmology/Celestial_Mechanics_(Tatum)/09%3A_The_Two_Body_Problem_in_Two_Dimensions/9.10%3A_Mean_Distance_in_an_Elliptic_Orbit) for any Keplerian orbit is $a(1+\frac{1}{2}e^2)$, where $a$ is the semi-major axis and $e$ is the eccentricity. Using your NASA fact sheet, I get about 384,979 km for the Moon (which is pretty close to [wikipedia's](https://en.wikipedia.org/wiki/Orbit_of_the_Moon) value of 385,000 km). This, as expected is a bit larger than $a$ at 384,400 km.

**Note:** I wouldn't call this the "actual" average distance because there is more than one way to compute an average.

> **Comments:**
> **username_6**: Indeed - beware the word "actual" in any context.  
> **username_7**: Indeed - one should also beware of the word "average". This answer gives the mean distance. Is the median distance the same or different?  
> **username_5**: @username_7 I think the median distance over time will be different if you define the median distance $\tilde{d}$ and  the distance between the Earth and Moon as $d$ such that $d<\tilde{d}$ for exactly half the period of the orbit.  This is because distance as a function of time is non-linear. How to calculate such a $\tilde{d}$ might be another interesting Astronomy SE question! (hint hint)  
> **username_8**: Do you have examples of different, meaningful averages for the distance between Moon and Earth?  
> **username_5**: @username_8 Yes, there are three quite nice examples from wikipedia below: https://astronomy.stackexchange.com/questions/49258/what-is-the-actual-average-distance-of-the-moon-from-earth/49267#49267.  Note that all three are the same value for circular orbits.  

---

### Answer by username_2 on 2022-05-03. Score: 24

[Lunar theory](https://en.wikipedia.org/wiki/Lunar_theory) is complicated. ;) The Moon's orbit around the Earth is only approximately a constant Keplerian ellipse. As I mentioned [here](https://astronomy.stackexchange.com/a/49269/16685), the Moon's orbit around the Earth-Moon barycentre has an eccentricity of ~0.0549 and it's quite dynamic, with relatively short apsidal and nodal [precession](https://en.wikipedia.org/wiki/Lunar_precession) cycles, primarily due to perturbation by the Sun.

The size of the Moon's orbit varies over the course of the year. Here's a daily plot (courtesy of JPL [Horizons](https://ssd.jpl.nasa.gov/horizons/)) of the Earth-Moon distance for 13 ([anomalistic](https://en.wikipedia.org/wiki/Lunar_month#Anomalistic_month)) lunar months.

[![Earth-Moon distance](https://i.sstatic.net/T6xpo.png)](https://i.sstatic.net/T6xpo.png)

The mean distance over that period is roughly 384,975 km. The maximum monthly variation occurs when the Earth-Moon system is near perihelion or aphelion.

That plot was created using this [Sage / Python script](https://sagecell.sagemath.org/?z=eJyVWHtz2kgS_59PMZFzi-SADHi9t-FKdYttudZZ21BAspXDnGoMA8jW6zQjG-Lyd7_uHklIJHtVRxWWpqenpx-_fmDDMNhYqNQXz4KlPFoLtuSKs1Uah-z3OPW_xZFkqzhlnCmeroViD_Fy12Dw4dESvix-kCJ99qM1W4hIiZToSRAr5iu7QZx_pr5SImIPOza6Zb0xMvc6va7d-Wh3PxLL5wTuFUsk9-zOmd35uWEYRqPhh0mcKpaKFnz_kwmpZIOUW2XRQsVxIFnOEqSZt-CLjdD7IVeoROA_2MpfPIFeOd9kwQOeXsUpcIC6jcaqeGXO4aaZSTFcraRQzhUPpLAajSwNgM_YKJXI_smJlEv7MQnsiEtur-PnE574J5vccd7KD4QNFKMBf7xnkUo_jvA4mA7GPXApvEW4RAoYezv4w_Xc0e_uLRCaX91Js0Erb_p15CLpi3sxHY6BPPw89T7fXU8nSP3jtn3ZbIzdK290M7gjRvfi5no0vb7Q5MnXyVTLvL4YXzUbIMa7GI7HSLkb3rmacjM4d28mmqYpl-7NdOBNC9LF5It3NRzfDqalesPzT97lYDqonpoOzm9IiV-aOoS_lZExQ76V_jfh-JEyTy2rsRQrthJqsfEQdaZGWCsHUotJICh8xAn-FYnVJ7Bol61Q-rv37yfDq8Zr4cq3xsXw9nZwd4kavGqBb6C7ezd1yeBXLRxok-lgPPWm17ek7StdRuThqEqNEyK6I29y_a-CKJAId7twN6qBWh0lKdoFSli0BrwCd4FaO4mlMgE9Lcow57Wpcdfss6YSW9V8azGEi4QdP0oy3DCbIKzZQnutNy10j6FU2FLwdLExU2MwumZf3PHkenjXv5fH5v3k2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olKqOjgvWeMMEjaG7_E2qRYG27c07boQcVO2OmehtpAT3FQpWNgQWH0rOESUZnbiSqUe6QPeNfcdTAq8DVBIly73FlwT89CWXhjrwodMrUeKEwIcAc6HU0GQagKSQWBUBlNNIZoWjpSYGHN6yjRXizih8Xl8Jq9h78LSO7MIry3ApPQB-hHC8EehHqBpgSzkMA27BexDmI8WYQZa0-OKBiaajtYdPKtECU72nsnYAhwtlFStWStjPr9DnvFY337dPXGnsJi5DpiE6qTqNY65ckGGqXa0DKsncfSTSdGIAoX6OggbhEbuXPj54t50Yfpb0vPUGoXCMfo51k5wqjjzGGSmkbt_MHx_OeS4oHHoZxFIbQbxwjEShVGPL1AO6L89hfKzIOjoN0IZ2VcFhbQ777XSrN6Yypmr5VW9navhwb8rFN_SYo7s1kGjqd0yfL2IyTYaIT8MU6NOU4miyev_J3o9I5n5WJeyONbIb2AP4gAJBr7Eg2mG08hQzEVFo_mlq7dPcOxf00r_JN7z_YE1nrv6WUpbT3AmNoJuUd8PYbsk4QcnsB8qqQJ9kD32htUYgx0oJvOahEoB4mDvCORD5TVXsLVxtTJc3A2R9lguay03V3oR5As8HsPgjaycYnjC77xbTHr7KigAwtUBXq26RzWhI7dOStrGBZZKPxlaA40JJRRO6FyjKm_AjSRoYYMeRAYrUqS5xPkQ8AXTxAb-IkC0a1DT0PIqNj2mMH4x2WC4yA0Vj-mnS1ZuQXVW4cWb0uLt9riH3hBV2wtFErkVrtgSy44qbskR4UEHOsDHmlhduxfwVu5jBM9A-dqy038Yo7K2MJUXPGbLfmzMJvFPyps2G1a_wVPgkf6&lang=sage), running on the SageMathCell server. There are brief instructions on using an earlier version of that script [here](https://space.stackexchange.com/a/55061/38535).

---

As username_5 mentions, there are a few ways to define the average distance. Here's some info from Wikipedia [Semi-major and semi-minor axes](https://en.wikipedia.org/wiki/Semi-major_and_semi-minor_axes), recycled from a [previous answer](https://astronomy.stackexchange.com/a/47107/16685):

> It is often said that the semi-major axis is the "average" distance between the primary focus of the ellipse and the orbiting body. This is not quite accurate, because it depends on what the average is taken over.
>
> * averaging the distance over the [eccentric anomaly](https://en.wikipedia.org/wiki/Eccentric_anomaly) indeed results in the semi-major axis.
> * averaging over the [true anomaly](https://en.wikipedia.org/wiki/True_anomaly) (the true orbital angle, measured at the focus) results in the semi-minor axis, $b=a{\sqrt {1-e^{2}}}$
> * averaging over the [mean anomaly](https://en.wikipedia.org/wiki/Mean_anomaly) (the fraction of the orbital period that has elapsed since pericentre, expressed as an angle) gives the time-average, $a\left(1+{\frac {e^{2}}{2}}\right)$.

In the above equations, $e$ is the [eccentricity](https://en.wikipedia.org/wiki/Orbital_eccentricity) of the ellipse.


---

### Answer by username_3 on 2022-05-03. Score: 6

Your guess on the requirement for calculus is correct. What you need to do is integrate the moon's distance over one orbit to find an average distance.

Starting from the equation below, the Moon's (or really any orbiting body's) orbital distance, $r$, as a function of azimuthal angle $\theta$ is given by the [Orbit Equation](https://en.wikipedia.org/wiki/Orbit_equation).

$$r(\theta) = \frac{L^2}{m^2\mu}\frac{1}{1+e\cos(\theta)}$$

In this equation, the variables have the following definitions:

* $r$ - The distance the body is from the body it is orbiting.
* $\theta$ - The angle of the body at a given point in the orbit, as measured from the periapsis. This means $\theta = 0$ at periapsis and $\theta = \pi$ at apoapsis.
* $L$ - The orbital angular momentum of the body. This is simply given by $mrv$ where $m$ is the mass, $r$ is the distance at any point in the orbit, and $v$ is the orbital velocity at that point. Because the orbital angular momentum is conserved, any point along the orbit will give the same value. The fact sheet you linked to gives both the apoapsis distance and the velocity at that point so you could calculate $L$ from this.
* $m$ - As above, the mass of the orbiting body. Note that technically the formula for $L$ cancels with the $m$ in this equation, which is why you often see the $L^2/m^2\mu$ portion often written as $\ell^2/\mu$ where $\ell$ is the angular momentum per unit mass (i.e., just $rv$).
* $\mu$ - The [standard gravitational parameter](https://en.wikipedia.org/wiki/Standard_gravitational_parameter) of the system, given by $G(m\_1 + m\_2)$ where $m\_1$ and $m\_2$ are the masses of the two bodies involved (the Earth and the Moon in this case) and $G$ is the gravitational constant.
* $e$ - The eccentricity of the orbit. Also on the fact sheet.

So there's a bit of work here, but you can find all the numbers and plug them in to the equation.

Now, here comes the calculus part. In order to find the average orbital distance, $\bar{r}$, you have to integrate $r(\theta)$ over an entire orbit. So the average becomes

$$\bar{r} = \frac{1}{2\pi}\int\_0^{2\pi} r(\theta)\ d\theta = \frac{\ell^2/\mu}{2\pi}\int\_0^{2\pi} \frac{1}{1+0.0549\cos(\theta)}\ d\theta$$

I have no interest in doing that nasty integral so I'll just [plug it into a calculator for me](https://www.wolframalpha.com/input?i=1%2F%282*pi%29+*+integral+from+0+to+2*pi+1%2F%281%2B0.0549*cos%28x%29%29+dx). I find that this works out to the following:

$$\bar{r} = 1.00151\frac{\ell^2}{\mu}$$

This boils down to just calculating $\ell$ and $\mu$ now and plugging in. Using the fact sheet you linked in your question, I find the following values of $\ell = 3.922\times10^{11}\:\mathrm{m^2/s}$ and $\mu = 4.033\times10^{14}\:\mathrm{m^3/s^{-2}}$. Which means, when I plug those numbers into the equation, I get a mean orbital distance of

$$\bar{r} = 384\ 234\:\mathrm{km}$$

However, all of that was a lot of work to calculate something that could've been arrived at much easier. Remember above, I said that $L$ is conserved so the value is constant at any point in the orbit. Thus you can say $r\_1v\_1 = r\_2v\_2$ and because the fact sheet gives you the radius and velocity at apogee and the average velocity, you can easily calculate the average radius. You'll find the same value though.

And here again, we've done more work than we need. We integrated over the true anomaly to find the average orbital distance, but [that's just the semi-minor axis](https://en.wikipedia.org/wiki/Semi-major_and_semi-minor_axes#Average_distance) which is $383\ 800\:\mathrm{km}$, not too far off from what I calculated. We could've just looked it up from the get go!

> **Comments:**
> **username_4**: OP wants a time average, not an angular average, as far as I can tell.  

---

