Moon Phases and Seasons Simulator

Spin the Earth, Moon and Sun yourself. Drag the Moon to see each phase, check tonight's Moon, line up an eclipse, and tilt Earth to find the real reason for the seasons. The pictures are not to scale, but the numbers are real.

Start here: drag the Moon around Earth in the picture, or press Play. The small window shows what the Moon looks like from Earth.

Predict first: the Moon goes to the far side of Earth, opposite the Sun. What will we see?

Choose a prediction to unlock the button.

Phase
Lit, as seen from Earth
Angle from the Sun
Growing or shrinking
Next full Moon in
The arithmetic

Why does the Moon have phases?

The Moon is always half lit by the Sun. Its phases come from how much of that lit half we can see from Earth as the Moon travels around us. [1] When the Moon sits between Earth and the Sun, its lit side faces away and we see a new Moon. When it is on the far side of Earth, we look straight at the lit half and see a full Moon. In between, we see part of the day side and part of the night side.

A full set of phases takes 29.53 days, called the synodic month. [2] The Moon actually circles Earth in 27.32 days, but Earth moves along its own orbit at the same time, so the Moon needs about 2.2 more days to line up with the Sun again (29.53 − 27.32, our arithmetic). The phases are not caused by Earth's shadow. Earth's shadow only touches the Moon during a lunar eclipse, which is rare.

The simulator measures the Moon's position as an angle from the Sun, seen from Earth. Day 0 is new Moon at 0°, and each day adds 360° ÷ 29.53 = 12.19°. The lit fraction we see is (1 − cos angle) ÷ 2, so at 90° it is exactly one half.

The eight phases of the Moon

NASA lists the eight phases in this order. [1] New, first quarter, full and last quarter are exact moments, so the simulator uses those names for about one day either side of each moment (12° of the orbit) and the in-between names the rest of the time.

PhaseAngle from the SunLitWhat is happening
New Moon0°0%The lit side faces away from us. The Moon is up in the daytime, lost in the Sun's glare.
Waxing crescent0° to 90°0 to 50%A thin, growing sliver. Waxing means growing.
First quarter90°50%Half of the face we see is lit. The Moon is a quarter of the way around.
Waxing gibbous90° to 180°50 to 100%More than half lit, and still growing.
Full Moon180°100%Earth is between the Sun and the Moon, so we see the whole lit half.
Waning gibbous180° to 270°100 to 50%Shrinking now. Waning means shrinking.
Last (third) quarter270°50%Half lit again, but the other half.
Waning crescent270° to 360°50 to 0%A thin sliver before the next new Moon.

In the Northern Hemisphere a waxing Moon is lit on the right. From the Southern Hemisphere you see the Moon upside down compared with the north, so the lit side is on the left. Tick the Southern Hemisphere box in the first tab to see it. The same side of the Moon always faces Earth, because the Moon is tidally locked. [1]

How Tonight's Moon is calculated

Your browser works out where the Sun and Moon are along their paths in the sky for the date you pick, at 9 p.m. in your own time zone. It uses the formulas in Paul Schlyter's widely used guide, How to compute planetary positions: the Moon's orbit with its twelve largest wobble terms, and the Sun's position on Earth's slightly oval orbit. [8] The angle between the Sun and the Moon, called the elongation, gives the lit fraction: (1 + cos(180° − elongation)) ÷ 2.

The guide puts its Moon positions within 1 to 2 arc minutes. As our own check, we used the same code to find all 148 new, quarter and full Moon moments for 2025, 2026 and 2027 and compared them with the U.S. Naval Observatory's table. [6] The average difference was 3 minutes and the largest about 10 minutes. That is plenty for planning a night of Moon watching, but for exact times use the official tables. The percent lit is rounded to a whole number and is worked out for 9 p.m. your time.

Why isn't there an eclipse every month?

Eclipses can only happen at new Moon or full Moon, but not at every one, because the Moon's orbit is tilted by about 5 degrees compared with Earth's orbit around the Sun. [11] The average tilt is 5.145°, and the two places where the Moon's orbit crosses Earth's orbital plane are called the nodes. [12] Most months, the new Moon passes a little above or below the Sun, and its shadow misses Earth. Five degrees sounds tiny, but at the Moon's distance of 384,400 km it lifts the Moon up to 34,500 km above or below Earth's orbital plane (384,400 × sin 5.145°, our arithmetic). Earth is only about 12,742 km wide (2 × 6,371 km). [3]

An eclipse needs a new or full Moon close to a node. That happens during "eclipse seasons," whose middles are 173.3 days apart, so roughly twice a year. [12] From one lunar month to the next, the Sun's angle from the node line shifts by about 30.7° (29.53 × 360 ÷ 346.6, our arithmetic). The tool's "Next half month" button uses that step.

When the shadow reaches: the tool's numbers

We worked out the shadow sizes with straight lines from the edges of the Sun past the Moon or Earth, using the NASA fact-sheet sizes and average distances. [4] This is our own geometry, so treat it as a model:

Because the Sun's angle moves only 30.7° per month and the solar window is about 33° wide (2 × 16.7°), this model always finds at least one solar eclipse each time the Sun passes a node (our arithmetic).

What really causes the seasons?

Seasons happen because Earth's axis is tilted, by 23.44°, not because Earth gets closer to or farther from the Sun. [3] [10] The axis keeps pointing the same way in space all year. In June the Northern Hemisphere leans toward the Sun: the Sun climbs higher at noon, its light falls more directly, and the days are longer. In December the Northern Hemisphere leans away, and the Southern Hemisphere gets its summer.

Here is the myth-buster. In 2026 Earth was closest to the Sun on January 3 (147.1 million km) and farthest on July 6 (152.1 million km). [5] [3] So the United States has winter when Earth is closest to the Sun. [10] The distance change does matter a little: the whole planet gets (152.100 ÷ 147.095)² = 1.069, about 7% more sunlight in early January than in early July (our arithmetic). But that is far smaller than the effect of the tilt at your latitude.

At 40° N the noon Sun stands 73.4° above the horizon at the June solstice and only 26.6° at the December solstice (90° − |latitude − Sun's overhead latitude|, our arithmetic). Low sunlight spreads the same beam over more ground: 1 ÷ sin 26.6° = 2.24 times the area at noon in December, against 1.04 times in June. Add the day length, about 15.0 hours in June against 9.3 hours in December, and the difference between summer and winter is easy to see.

How the day length is calculated

The tool uses NOAA's sunrise and sunset formula: the Sun is up while it is less than 90.833° from straight overhead, which allows for the bending of light by the air and the size of the Sun's disk. [9] The hour angle of sunrise is arccos(cos 90.833° ÷ (cos latitude × cos declination) − tan latitude × tan declination), and the daylight is twice that angle divided by 15° per hour. That is why the equator gets about 12.1 hours, not exactly 12, every day. The Sun's overhead latitude (declination) comes from the Sun's position along its yearly path and the tilt: sin declination = sin tilt × sin (Sun's longitude), from the same guide used for the Moon. [8] Treat the daylight hours as approximate: hills, buildings and the weather all change real sunrise and sunset.

How far away the Moon really is

The pictures squeeze space so that everything fits. The real Moon is 384,400 km away on average, [2] which is about 30 Earth-widths (384,400 ÷ 12,742, our arithmetic). The Sun is 149.6 million km away, [3] about 389 times farther than the Moon, and its radius of 695,700 km is about 400 times the Moon's 1,737.4 km. [4] Those two numbers are close, which is why the Moon can just cover the Sun in a total solar eclipse. To see it to scale, try this: if Earth were a ball 24 cm across, the Moon would be a ball 6.5 cm across, about 7.2 m away (our arithmetic).

What this tool simplifies

The animations move in fixed time steps of 1/120 of a second, so they run the same on any device. The numbers come straight from the formulas.

For teachers

This simulator is a model of the Earth, Sun and Moon system for the classic trio of patterns: lunar phases, eclipses and seasons. The wording below is our paraphrase, so please check the official pages linked from each code. [14]

CodePerformance expectation (paraphrased)How the simulator helps
MS-ESS1-1
Middle school
Develop and use a model of the Earth, Sun and Moon system to describe the repeating patterns of lunar phases, eclipses of the Sun and Moon, and seasons.A strong match: the four tabs are a working model of exactly these three patterns. NGSS lists physical, graphical and conceptual models as examples, so pair the tool with the lamp-and-ball activity below.
5-ESS1-2
Grade 5
Represent data in graphical displays to show daily patterns, such as day and night and the length and direction of shadows, and the stars seen in different seasons.A partial match: the Seasons tab graphs day length across the year, and students can record and plot their own values. The grade 5 assessment leaves out the causes of seasons, so the tilt explanation is enrichment there.

We also looked at HS-ESS1-4, about predicting orbits with math. Its emphasis is on Newton's law of gravity, which this tool does not use, so we left it out. The Gravity Simulator is the better fit there.

A short lesson plan

  1. Engage (5 minutes). Open Tonight's Moon and ask: "Why does the Moon change shape?" Collect ideas on the board without judging them, including "Earth's shadow".
  2. Explore (20 minutes). In pairs, students make the prediction in the Moon phases tab, then drag the Moon to each of the eight presets and sketch what they see on the worksheet. Then they press "Next half month" in the Eclipses tab until they find a line-up.
  3. Explain (15 minutes). Pairs use their sketches to explain why the full Moon happens on the far side of Earth, and why the tilt of the Moon's orbit means eclipses are rare. Return to the board and test each early idea against the model.

Discussion questions

Common misconceptions

Quick check

Ask students to draw the Sun, Earth and Moon for a first quarter Moon and shade the half of the Moon that is lit. A correct answer puts the Moon a quarter of the way around from the Sun, with the half facing the Sun lit and half of that lit half facing Earth.

Offline extension: the lamp and ball model

Darken the room and put a bright lamp on one side. Each student holds a light-colored ball at arm's length, a little above their head, and turns slowly in a circle while watching the ball. They will see crescent, half, gibbous and full phases. To show an eclipse, line the ball up with the lamp. Keep the lamp at a comfortable distance and do not stare into the bulb.

Frequently Asked Questions

What are the phases of the Moon in order?

New Moon, waxing crescent, first quarter, waxing gibbous, full Moon, waning gibbous, last (or third) quarter and waning crescent. Then the cycle starts again, about every 29.5 days.

What causes the phases of the Moon?

The Sun always lights half of the Moon. As the Moon goes around Earth, we see different amounts of that lit half. It is not Earth's shadow.

How accurate is the Tonight's Moon calculation?

In our check against the U.S. Naval Observatory's tables for 2025 to 2027, the times of new, quarter and full Moons were within about 10 minutes. The percent lit is rounded to a whole number. For official values, use the USNO tables linked in the tool.

Why don't we have a solar eclipse every new Moon?

The Moon's orbit is tilted about 5° from Earth's orbit, so at most new Moons the Moon passes above or below the Sun and its shadow misses Earth. Eclipses only happen when a new or full Moon falls near one of the two nodes, where the orbits cross.

Why do we have seasons?

Because Earth's axis is tilted 23.44°. When your half of Earth leans toward the Sun, the Sun climbs higher and the days are longer, so it is summer. Distance is not the reason: Earth is closest to the Sun in early January, during northern winter.

Which grades is this simulator for?

The Moon phases and day-length graph work for upper elementary students. The full model of phases, eclipses and seasons matches middle school standard MS-ESS1-1. See For teachers.

Dr. Pippa is a cartoon host, and her speech bubbles are jokes. The results panel holds the actual numbers. You can find more tools in the Science Lab.

References

  1. Moon Phases. NASA Science.Supports: The eight phase names in order; the Moon is always half lit by the Sun; the cycle repeats about every 29.5 days; the same side always faces Earth.
  2. Moon Fact Sheet. D. R. Williams, NASA Goddard Space Flight Center (NSSDCA).Supports: Synodic period 29.53 days; revolution period 27.3217 days; semimajor axis 384,400 km; inclination to the ecliptic 5.145°; volumetric mean radius 1,737.4 km.
  3. Earth Fact Sheet. D. R. Williams, NASA Goddard Space Flight Center (NSSDCA).Supports: Obliquity to orbit 23.44°; perihelion 147.095 and aphelion 152.100 million km; semimajor axis 149.598 million km; volumetric mean radius 6,371.0 km; equatorial radius 6,378.137 km.
  4. Sun Fact Sheet. D. R. Williams, NASA Goddard Space Flight Center (NSSDCA).Supports: Volumetric mean radius 695,700 km.
  5. Earth's Seasons and Apsides (data for 2026). Astronomical Applications Department, U.S. Naval Observatory.Supports: In 2026 (UT): perihelion January 3, 17:15; March equinox March 20, 14:46; June solstice June 21, 08:24; aphelion July 6, 17:30; September equinox September 23, 00:05; December solstice December 21, 20:50. The equinoxes mark the beginning of spring and fall.
  6. Phases of the Moon. Astronomical Applications Department, U.S. Naval Observatory.Supports: Exact times of new Moon, first quarter, full Moon and last quarter. We compared all 148 of them for 2025 to 2027 with this tool.
  7. Fraction of the Moon Illuminated. Astronomical Applications Department, U.S. Naval Observatory.Supports: Official table of the lit fraction of the Moon for any year.
  8. How to compute planetary positions. Paul Schlyter, Stockholm.Supports: The orbital elements, Moon perturbation terms, elongation and phase formulas used in Tonight's Moon and the Sun position in Seasons; stated Moon accuracy of 1 to 2 arc minutes.
  9. General Solar Position Calculations. NOAA Global Monitoring Division.Supports: Sunrise and sunset hour angle with the zenith set to 90.833° to allow for refraction and the size of the Sun.
  10. What Causes the Seasons?. NASA Space Place.Supports: Earth's tilted axis causes the seasons; the idea that distance causes them is incorrect; the Northern Hemisphere has winter when Earth is closest to the Sun, in January.
  11. Lunar Eclipses and the Moon's Orbit. NASA Scientific Visualization Studio (2014).Supports: Eclipses can only happen at new and full Moon, and not at every one, because the Moon's orbit is tilted by about 5 degrees.
  12. Eclipses and the Moon's Orbit. F. Espenak, NASA Goddard Space Flight Center.Supports: The Moon's orbit is tilted 5.145° on average (5.00° to 5.30°); its crossing points are the nodes; eclipse seasons are centered 173.3 days apart; the nodes go once around in 18.6 years.
  13. Eclipse Viewing Safety. NASA Science.Supports: Never look at a partial solar eclipse without proper eye protection that meets ISO 12312-2; regular sunglasses are not safe.
  14. Next Generation Science Standards: MS-ESS1-1 and 5-ESS1-2. NGSS Lead States, nextgenscience.org (accessed November 7, 2026).Supports: The wording paraphrased in the For teachers section.