<p>The first question is quite simple if you imagine how the Earth is looked from above. To help you with that I've added a little drawing below.</p>

<p>Probably you know that the Sun rises on the East and sets on the West.  Imagine now how the sun illuminates the Earth: Europe is in the afternoon when the East cost of US is waking up. Imaging this you can see that the Earth is turning anti-clockwise if looked from the north.</p>

<p>Now, imagine you are somewhere in US (so we can use the drawing from below), the sun is rising (on the East) and the moon is above you (something close to the zenith).  This means the moon the configuration of the Sun-Earth-Moon system is something like in the drawing.  As you can see in the drawing I've kept in white what's illuminated from the Sun.  In Spanish we use to say that the moon is a bit of a liar, this comes because it shows a C shape when is waxing (decreciente) and a D shape when is crescent (creciente), so just the opposite letter of its action (don't know if there's a similar expression in other languages, and notice that the moon is not a liar for the Spanish speakers in the Souther hemisphere).  So, coming back to the drawing, you can imagine that from the red-star position you will see the moon with a C shape, therefore is waxing... which means in 7 days or so would be new moon so is going to move between the Sun and Earth.. and we can see how the moon rotates around the Earth in the same direction than the earth rotates around itself.</p>

<p><img src="https://i.sstatic.net/I8HBE.png" alt="Earth Moon Sun system - not in scale"></p>

<p>I don't really understand your second question, so I cannot help much with that.  But, if you mean to get a roughly calculation as on where the moon is at a certain time knowing its phase you can calculate it by knowing that the Earth spins 15°/hour and that the moon positions for each phase.  Therefore, new moon the moon will be closer to the zenith at noon (local solar time), 6am for waxing moon, 12 am for full moon and 6pm for crescent moon. However, this is just a roughly approximation as the moon movement happens on a plane which is 5.14° inclined from the ecliptic plane which corresponds to positions between 18.29° and 28.58° latitude on Earth.  So the same phase moon can be at different heights at different times of the year at the same hour.</p>

CC BY-SA 3.0
2013-11-12T23:26:40.420Z
2013-11-12T23:26:40.420Z
dvdgc13
<p>I highly recommend picking up a copy of <em>Astronomical Algorithms</em> by Jean Meeus. Chapter 49 covers the calculation methods that are used by many (if not most) online calculators.  </p>

<p>The somewhat dated page at <a href="http://www.aphayes.pwp.blueyonder.co.uk/sun_moon.html" rel="nofollow">http://www.aphayes.pwp.blueyonder.co.uk/sun_moon.html</a> has a link to "moon.js", the javascript that does its lunar calculations.  The calculations you need are in that file.</p>

CC BY-SA 3.0
2015-09-03T21:29:36.793Z
2015-09-03T21:29:36.793Z
dwardio
<p>Finally I found such solutions. What I was trying to achieve was to create a Moon Phase image as seen from my location/sky at the current time. I've researched from a lot of places and finally get 3 ways to achieve it. There are pros and cons to each approach. You can see my detailed blog at:
<a href="https://bthoven.blogspot.com/2022/02/formulas-to-determine-or-create.html" rel="nofollow noreferrer">Moon Phase orientation as seen from my sky location</a></p>
<p>the getMoonData.js script in the blog also gives you the current Moon altitude (height)</p>
<p>Belows are the output images from each approach and some application I utilize such images.</p>
<p><a href="https://i.sstatic.net/9qqam.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/9qqam.png" alt="output images for 3 approaches" /></a>
<a href="https://i.sstatic.net/WuMWX.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/WuMWX.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2022-02-15T17:37:00.360Z
Posting links to your blog as "answers" to multiple old questions is not an appropriate use of this site. Please stop.
Mike G
CC BY-SA 4.0
2022-02-16T02:21:22.970Z
Noted, thanks. Just think it would be useful for those who want the same solution.
bthoven
CC BY-SA 4.0
2022-02-15T16:17:55.287Z
2022-02-15T16:17:55.287Z
bthoven
<p>How could I know what phase the moon is in when it's high in the sky during sunrise? </p>

<p>How could I tell in general what its height in the sky will be at any given time? </p>

CC BY-SA 3.0
2015-07-13T16:51:56.797Z
Might try the US Naval Observatory website: http://aa.usno.navy.mil/data/docs/MoonPhase.php IIRC, they used to have a fairly detailed account of how phase is calculated, but the site's been rearranged and I 'm not finding that today. The USNO site's internal search engine was down when I tried it.
Wayfaring Stranger
CC BY-SA 3.0
2013-11-12T15:37:42.367Z
Are you looking for a program to do this, or are you looking for an equation?
astromax
CC BY-SA 3.0
2013-11-12T16:01:13.297Z
i want to understand the movement. 
i have stellarium for example but i didn't quite got it from it...
JekylHyde
CC BY-SA 3.0
2013-11-12T16:49:12.997Z
the sun is high in the sky at the summer & low at winter, right? the same with the moon... i just don't understand what determinate its height.
JekylHyde
<the-moon>
How can I calculate moon phase and height?
JekylHyde
# How can I calculate moon phase and height?

(Asked by: username_0 on 2013-11-12)

How could I know what phase the moon is in when it's high in the sky during sunrise?

How could I tell in general what its height in the sky will be at any given time?

**Tags:** the-moon

> **Comments:**
> **username_2**: Are you looking for a program to do this, or are you looking for an equation?  
> **username_0**: i want to understand the movement.  i have stellarium for example but i didn't quite got it from it...  
> **username_0**: the sun is high in the sky at the summer & low at winter, right? the same with the moon... i just don't understand what determinate its height.  
> **username_1**: Might try the US Naval Observatory website: http://aa.usno.navy.mil/data/docs/MoonPhase.php IIRC, they used to have a fairly detailed account of how phase is calculated, but the site's been rearranged and I 'm not finding that today. The USNO site's internal search engine was down when I tried it.  

---

## 3 answers

### Answer by username_3 on 2013-11-12. Score: 4

The first question is quite simple if you imagine how the Earth is looked from above. To help you with that I've added a little drawing below.

Probably you know that the Sun rises on the East and sets on the West. Imagine now how the sun illuminates the Earth: Europe is in the afternoon when the East cost of US is waking up. Imaging this you can see that the Earth is turning anti-clockwise if looked from the north.

Now, imagine you are somewhere in US (so we can use the drawing from below), the sun is rising (on the East) and the moon is above you (something close to the zenith). This means the moon the configuration of the Sun-Earth-Moon system is something like in the drawing. As you can see in the drawing I've kept in white what's illuminated from the Sun. In Spanish we use to say that the moon is a bit of a liar, this comes because it shows a C shape when is waxing (decreciente) and a D shape when is crescent (creciente), so just the opposite letter of its action (don't know if there's a similar expression in other languages, and notice that the moon is not a liar for the Spanish speakers in the Souther hemisphere). So, coming back to the drawing, you can imagine that from the red-star position you will see the moon with a C shape, therefore is waxing... which means in 7 days or so would be new moon so is going to move between the Sun and Earth.. and we can see how the moon rotates around the Earth in the same direction than the earth rotates around itself.

![Earth Moon Sun system - not in scale](https://i.sstatic.net/I8HBE.png)

I don't really understand your second question, so I cannot help much with that. But, if you mean to get a roughly calculation as on where the moon is at a certain time knowing its phase you can calculate it by knowing that the Earth spins 15°/hour and that the moon positions for each phase. Therefore, new moon the moon will be closer to the zenith at noon (local solar time), 6am for waxing moon, 12 am for full moon and 6pm for crescent moon. However, this is just a roughly approximation as the moon movement happens on a plane which is 5.14° inclined from the ecliptic plane which corresponds to positions between 18.29° and 28.58° latitude on Earth. So the same phase moon can be at different heights at different times of the year at the same hour.


---

### Answer by username_4 on 2015-09-03. Score: 2

I highly recommend picking up a copy of *Astronomical Algorithms* by Jean Meeus. Chapter 49 covers the calculation methods that are used by many (if not most) online calculators.

The somewhat dated page at <http://www.aphayes.pwp.blueyonder.co.uk/sun_moon.html> has a link to "moon.js", the javascript that does its lunar calculations. The calculations you need are in that file.


---

### Answer by username_5 on 2022-02-15. Score: 0

Finally I found such solutions. What I was trying to achieve was to create a Moon Phase image as seen from my location/sky at the current time. I've researched from a lot of places and finally get 3 ways to achieve it. There are pros and cons to each approach. You can see my detailed blog at:
[Moon Phase orientation as seen from my sky location](https://username_5.blogspot.com/2022/02/formulas-to-determine-or-create.html)

the getMoonData.js script in the blog also gives you the current Moon altitude (height)

Belows are the output images from each approach and some application I utilize such images.

[![output images for 3 approaches](https://i.sstatic.net/9qqam.png)](https://i.sstatic.net/9qqam.png)
[![enter image description here](https://i.sstatic.net/WuMWX.png)](https://i.sstatic.net/WuMWX.png)

> **Comments:**
> **username_6**: Posting links to your blog as "answers" to multiple old questions is not an appropriate use of this site. Please stop.  
> **username_5**: Noted, thanks. Just think it would be useful for those who want the same solution.  

---

