← SciSim / Earth & Space

Journey Through Space: Fly a Rocket from Earth to the Moon and to Mars

🚀 Tier: Middle School → High School → AP Physics (Grades 6–12; NGSS MS-PS2-4, MS-ESS1-2, HS-PS2-1, HS-PS2-4, HS-ESS1-4; forces, Newton’s laws, gravitation, orbits)
Fly two separate missions: Earth → Moon (about 3 days) and Earth → Mars (about 8½ months). Watch a rocket lift off, push through max-Q, drop its stages and reach orbit; then a departure burn sends it on a curved transfer orbit to arrive in lunar orbit, swing around the Moon and come home, or capture into orbit around Mars. Every path comes from Newton’s laws solved step by step by the computer. Turn on Physics mode to change thrust and mass and see what happens.

🚀 Mission Simulator: Launch, Orbit and Transfer

Earth → Moon
Drag to turn · scroll or pinch to zoom · keys: arrows, + / −, space = launch / pause
    Mission phase
    Ready on the pad
    Mission elapsed time
    T+00:00:00
    Altitude above Earth
    —
    Speed relative to Earth
    —
    Distance from Earth’s centre
    —
    Distance to the Moon
    —
    Fuel: Stage 1
    —
    Acceleration felt
    —
    Mass
    —
    Δv used / left
    —
    Stage 1 100%
    Stage 2 100%
    Departure stage 100%
    Spacecraft 100%
    Physics right now
    Mission log

      Important moments are announced, and the mission log lists every event with its time.

      Flight

      Arrival plan

      Simulation speed

      Now: Auto. Auto slows down for burns and important moments.

      Camera

      Show

      Learning

      Engine errors make course corrections necessary, as in real flights.

      Physics mode

      ⚠️ A teaching model, not mission software. Planets move on circular orbits in one plane, the rocket is fictional (with realistic numbers) and the air is simplified. The motion itself is honest Newtonian physics solved numerically. What the model simplifies.

      💡 The Idea, Step by Step

      Key numbers. Low Earth orbit needs about 7.8 km/s sideways; escape from Earth needs 11.2 km/s at the surface. The Moon is 384,400 km away (about 3 days of coasting). A Hohmann trip to Mars takes about 259 days, and good launch windows come every 26 months.
      Start — throw a ball very, very fast

      Throw a ball sideways and it curves down to the ground. Throw it faster and it lands farther away. Isaac Newton imagined a cannon on a high mountain: fire fast enough and the ball falls around the curved Earth without ever reaching the ground. That is an orbit. A rocket’s job is to climb above the air and then go sideways fast enough to keep missing the Earth.

      Build — forces, speed and fuel

      On the pad, two forces fight: thrust pushing up and weight ($W = mg$) pulling down. The rocket lifts off only when thrust is bigger than weight, and Newton’s second law gives the acceleration: $a = (T - W - D)/m$. As it burns propellant the mass drops, so the acceleration grows. In orbit at 200 km, gravity is still 94% as strong as on the ground; the spacecraft just moves sideways at about $v = \sqrt{GM/r} \approx 7.8$ km/s. Getting that speed is hard: the rocket equation $\Delta v = v_e \ln(m_0/m_f)$ says most of a rocket must be propellant, which is why rockets drop empty stages.

      Deepen — energy, ellipses and transfers

      To go higher you do not point at the target; you speed up along your orbit. That adds orbital energy $\varepsilon = v^2/2 - GM/r$ and stretches the circle into an ellipse whose far point rises (vis-viva: $v^2 = GM(2/r - 1/a)$). For the Moon, a 3.1 km/s burn makes the far point reach the Moon’s distance, timed so the Moon is there when the spacecraft arrives. For Mars, the burn must beat escape speed and leave about 2.9 km/s pointing along Earth’s motion around the Sun: the spacecraft then coasts on half of a Hohmann ellipse from 1 AU to 1.52 AU. Near the target its gravity takes over (its sphere of influence) and the path relative to it is a hyperbola: brake at the closest point to be captured, or let it swing you onto a new path (a flyby). The computer finds the path by adding up gravity from every body in tiny time steps (Runge–Kutta integration), not by drawing ready-made curves.

      Close — try this in the simulator

      1. Physics mode: set thrust to 65% and launch. Thrust is less than weight, so the rocket sits on the pad burning fuel until it is light enough to lift off (about 43 s); by then too much propellant is gone and it falls back. 2. Add 6 t of cargo and fly to the Moon: the departure burn runs out of propellant and the spacecraft is stranded (the rocket equation at work). 3. Fly to Mars with the window offset at +30°: the departure burn has to be bigger and the spacecraft cannot brake at Mars. 4. Fly the Moon free return and watch the figure-8 path bring the spacecraft home without a single extra burn.

      📐 The Physics: Thrust, Gravity, Orbits and Transfers

      The simulator does not follow pre-drawn curves. In small time steps (a tenth of a second at launch, hours between the planets) it adds up all the forces on the spacecraft, works out its acceleration, and steps its position and velocity forward. These are the equations it uses.

      1 · Newton’s second law for a rocket
      $$m\frac{d\vec v}{dt} = \vec T + \vec F_g + \vec D,\qquad \frac{dm}{dt} = -\dot m = -\frac{T}{v_e}$$

      Thrust $\vec T$ points along the rocket; the propellant flow $\dot m$ is constant for each stage. On the first stage, thrust rises from 7,607 kN at sea level to 8,227 kN in vacuum because the outside air pressure on the nozzle disappears. Drag $D = \tfrac12 \rho v^2 C_D A$ uses an exponential atmosphere $\rho = \rho_0 e^{-h/H}$ with $\rho_0 = 1.225$ kg/m³ and $H = 8.5$ km. The quantity $q = \tfrac12\rho v^2$ is the dynamic pressure; its peak is max-Q.

      2 · The rocket equation and staging
      $$\Delta v = v_e \ln\frac{m_0}{m_f}, \qquad v_e = I_{sp}\, g_0$$

      $I_{sp}$ is the specific impulse in seconds ($g_0 = 9.80665$ m/s²). Stage 1 uses kerosene engines ($I_{sp}$ about 288 s at sea level, 311 s in vacuum), Stage 2 a vacuum engine (348 s) and the departure stage hydrogen (450 s). Dropping each empty stage raises the mass ratio $m_0/m_f$ of the next one.

      3 · Newtonian gravity from every body
      $$\vec a_g = -\sum_i \frac{GM_i}{|\vec r - \vec r_i|^3}(\vec r - \vec r_i)$$

      The Moon mission includes the Earth and the Moon; the Mars mission includes the Sun, Earth and Mars. For a circular orbit $v_c = \sqrt{GM/r}$; escape speed is $v_{esc} = \sqrt{2GM/r}$; the period is $T = 2\pi\sqrt{r^3/GM}$.

      4 · Energy and the vis-viva equation
      $$\varepsilon = \frac{v^2}{2} - \frac{GM}{r} = -\frac{GM}{2a}, \qquad v^2 = GM\left(\frac{2}{r} - \frac{1}{a}\right)$$

      Negative energy means a closed ellipse with semi-major axis $a$; zero or positive means escape. The departure and braking burns are cut off when $\varepsilon$ reaches the planned value.

      5 · Hohmann transfer and the launch window
      $$a_t = \frac{r_1 + r_2}{2}, \quad \Delta v_1 = \sqrt{\frac{GM}{r_1}}\left(\sqrt{\frac{2r_2}{r_1 + r_2}} - 1\right), \quad t_{transfer} = \pi\sqrt{\frac{a_t^3}{GM}}$$

      Earth to Mars: $\Delta v_1 = 2.94$ km/s (relative to Earth, far away: $v_\infty$), $t = 259$ days. Mars moves 136° in that time, so it must be 44° ahead of Earth at departure. Leaving from a 200 km orbit, the burn must give $v_p = \sqrt{v_\infty^2 + 2GM_E/r_p} \approx 11.4$ km/s, a $\Delta v$ of about 3.6 km/s.

      6 · Numerical integration (Runge–Kutta, 4th order)
      $$\mathbf y_{n+1} = \mathbf y_n + \frac{\Delta t}{6}\left(\mathbf k_1 + 2\mathbf k_2 + 2\mathbf k_3 + \mathbf k_4\right), \qquad \mathbf y = (x,\,y,\,v_x,\,v_y,\,m)$$

      Each $\mathbf k$ is the rate of change (velocity, acceleration, mass flow) evaluated at the start, twice in the middle and at the end of the step. The step $\Delta t$ is 1% of the local orbital time scale $\sqrt{r^3/GM}$ (at most 0.5 s while an engine burns, 0.1 s in the lower atmosphere). In a test of 20 orbits around a lone Earth, the energy changed by less than 1 part in a billion.

      Try the equations

      🚀 Rocket equation

      🌍 Orbit speed and escape speed

      🛰️ Hohmann transfer

      🌙 Moon vs Mars: Two Very Different Trips

      The two missions are separate: a Mars mission does not stop at the Moon. Stopping there would mean braking into lunar orbit and then speeding up again, which costs much more Δv than flying straight from Earth orbit to Mars.

      Earth → MoonEarth → Mars
      Distanceabout 384,400 km (average)55 to 400 million km, depending on where the planets are
      Trip timeabout 3 daysabout 7 to 9 months (Hohmann: 259 days)
      Departure burn from a 200 km orbitabout 3.1 km/s (trans-lunar injection)about 3.6 km/s (trans-Mars injection)
      Braking to stayabout 0.85 km/s into a 100 km lunar orbitabout 0.9 km/s into a long elliptical orbit (about 2 km/s for a low circular one)
      When can you go?Almost any time; the Moon comes round every 27.3 daysOnly in launch windows, about every 26 months
      Radio delay (one way)about 1.3 secondsabout 3 to 22 minutes
      Surface gravity1.62 m/s² (about 1/6 of Earth’s)3.71 m/s² (about 3/8 of Earth’s)
      Main force on the coastEarth’s gravity, then the Moon’sThe Sun’s gravity for most of the trip

      Sources: NASA Planetary and Lunar Fact Sheets (NSSDCA); NASA Mars Exploration Program. Trip times and Δv are typical values; real missions vary.

      🧠 Quiz: 10 Questions

      Ten questions are picked from a bank of 20. Each answer is explained.

      ⚠️ What the Model Simplifies

      This is a teaching simulator. It shows the real physics of rocket flight and orbits, but it must not be used to plan or check a real mission. Its simplifications:

      • Orbits of the planets and the Moon are circles in one plane. In reality the Moon’s orbit is tilted about 5° to Earth’s orbit (18–29° to Earth’s equator) and is slightly elliptical (e = 0.055); Mars’s orbit is tilted 1.85° and clearly elliptical (e = 0.093), so real trip times and Δv change from one window to the next.
      • Launch site on the equator, already in the plane of the target’s orbit. Real launch sites are at other latitudes and real missions must line up orbital planes.
      • Gravity is point-mass Newtonian gravity. Earth’s flattening, the Sun’s pull in the Moon mission, the Moon’s pull in the Mars mission, other planets, sunlight pressure and relativity are left out.
      • Atmosphere and drag use a simple exponential air model and a simple drag coefficient, with no winds. The rocket never throttles down.
      • Guidance: before liftoff the flight computer tries different pitch-over angles on a copy of the rocket and keeps the best one; the upper stages steer with simple feedback. Real rockets use more advanced closed-loop guidance.
      • The rocket is fictional, with stage masses, thrust and Isp typical of a modern medium-lift rocket plus a hydrogen departure stage.
      • Mission planning uses simple numerical shooting (aiming, measuring the miss, adjusting). The engine error that makes course corrections necessary is a fixed, deliberate 0.6 m/s.
      • Not simulated: aerobraking at Mars, landing, re-entry heating, crew, communications, and spacecraft attitude (the spacecraft is simply drawn pointing along its motion).
      • Numerics: fourth-order Runge–Kutta with a step that follows the orbital time scale, in double precision. Accurate enough to show the physics correctly, but not checked against professional mission software.
      • Drawing: when you zoom far out, the planets and the spacecraft are drawn bigger than their true size so you can see them; a note on the view tells you when this happens.

      ❓ FAQ

      Numbers How long does it take to get to the Moon?►

      About 3 days. The crewed lunar flights of 1968 to 1972 took about three days to reach the Moon. In this simulator the coast from the trans-lunar injection burn to the lunar orbit insertion burn takes about 3.4 days.

      Key takeaway: about 3 days of coasting after the departure burn.
      Numbers How long does it take to get to Mars?►

      About 7 to 9 months. A Hohmann transfer, the slowest but most fuel-efficient simple path, takes about 259 days. Real missions often use a little more energy to arrive sooner: the Perseverance rover took 203 days in 2020 to 2021.

      Key takeaway: 259 days on a Hohmann transfer; real missions take about 7 to 9 months.
      Concept Why does the rocket not fly straight to the Moon or Mars?►

      Because everything is moving. The spacecraft starts in orbit moving sideways at 7.8 km/s, and the Moon and Mars move along their own orbits. Gravity bends every path into a curve, so mission planners aim where the target will be when the spacecraft arrives and let gravity do most of the work. Speeding up along the orbit is far cheaper than fighting gravity in a straight line.

      Key takeaway: aim for where the target will be and let gravity curve the path.
      Numbers How fast must a rocket go to reach orbit?►

      About 7.8 km/s sideways at 200 km altitude. Because the rocket also has to climb and push through the air, it loses about 1.5 to 2 km/s to gravity and drag on the way up, so a rocket needs about 9.4 km/s of delta-v in total, even with the free 0.47 km/s that Earth’s spin gives a rocket launched east from the equator.

      Key takeaway: about 7.8 km/s, which costs about 9.4 km/s of delta-v.
      Concept What is a launch window, and why do Mars missions wait 26 months?►

      A launch window is the period when the planets are in the right places for an efficient trip. For a Hohmann transfer, Mars must be about 44 degrees ahead of Earth when the spacecraft leaves. Earth goes round the Sun faster than Mars and catches up with it again only every 780 days, about 26 months, so the windows repeat on that cycle. Try the window offset slider in Physics mode to see the cost of launching at the wrong time.

      Key takeaway: the right planet positions repeat only every 26 months.
      Concept What is a Hohmann transfer orbit?►

      It is half of an ellipse that just touches both orbits: for an outward trip it touches the starting orbit at its closest point to the Sun or planet and the target orbit at its farthest point. One burn puts the spacecraft on the ellipse and a second burn at the other end matches the new orbit. Between two circular orbits in the same plane it is the two-burn transfer that needs the least delta-v, but it is slow.

      Key takeaway: half an ellipse between two orbits, with a burn at each end.
      Concept Why does the rocket tilt over soon after liftoff?►

      Orbit needs sideways speed, not just height. A few seconds after liftoff the rocket tips over by a few degrees and then lets gravity bend its path more and more horizontal: a gravity turn. Following the direction of motion keeps the air from pushing sideways on the rocket, which matters most near max-Q.

      Key takeaway: orbit is about going sideways fast; the gravity turn does it gently.
      Equation What does the rocket equation tell us?►

      Delta-v = v_e ln(m0/mf): the speed a rocket can gain depends on its exhaust speed and on the ratio of its full to empty mass. Because of the logarithm, each extra km/s needs a much bigger mass ratio. That is why most of a rocket is propellant, why rockets use stages, and why a few extra tonnes of cargo can make a mission impossible.

      Key takeaway: delta-v depends on exhaust speed and the full-to-empty mass ratio.
      Concept Why are the Moon and Mars separate missions here?►

      Real Mars missions do not stop at the Moon on the way. Stopping would mean braking into lunar orbit and speeding up again, which costs extra delta-v. Leaving straight from a low Earth orbit is cheaper, so the simulator treats the Moon and Mars as two different journeys.

      Key takeaway: a stop at the Moon would cost extra fuel.
      Accuracy How accurate is this simulator?►

      The physics is real: Newtonian gravity from every body, thrust, mass loss and drag, solved with a fourth-order Runge-Kutta method. The main numbers come out close to real values, such as about 3.1 km/s for trans-lunar injection, 3 days to the Moon and 259 days to Mars. But the planets move on circles in one plane, the launch site is on the equator and the rocket is fictional, so it is a learning tool, not mission-planning software.

      Key takeaway: real physics with simplified planets and a fictional rocket.

      ⚠️ Misconceptions & Common Errors

      ❌ "Rockets push against the air to move."✅ A rocket pushes its exhaust backwards and the exhaust pushes the rocket forwards (Newton’s third law). Engines work even better in a vacuum: Stage 1’s thrust rises from 7,607 kN at sea level to 8,227 kN in space.🔍 Action and reaction, no air needed.
      ❌ "There is no gravity in space, so astronauts float."✅ At 200 km gravity is still about 94% of its value on the ground. Astronauts float because they and their spacecraft are falling around the Earth together.🔍 Orbit is free fall, not zero gravity.
      ❌ "To reach the Moon, point the rocket at the Moon."✅ The spacecraft speeds up along its orbit on the side opposite the arrival point. That raises the far end of the orbit to the Moon’s distance, timed so the Moon is there when it arrives.🔍 Aim ahead and speed up sideways.
      ❌ "A spacecraft needs its engine on all the way to Mars."✅ After the departure burn, it coasts for months on an orbit around the Sun. Only a few small course corrections and the braking burn at Mars use the engine.🔍 Most of the trip is coasting.
      ❌ "More thrust fixes any rocket."✅ Thrust decides whether the rocket can lift off and how fast it gains speed, but the total speed change depends on the mass ratio and exhaust speed (the rocket equation). Too much cargo cannot be fixed by thrust alone.🔍 Delta-v comes from mass ratio and exhaust speed.
      ❌ "Mars is always the same distance away."✅ The distance changes from about 55 million to about 400 million km as Earth and Mars move around the Sun at different speeds. That is why missions launch in windows.🔍 Distances in the solar system keep changing.
      Sources: NASA Planetary Fact Sheets and Moon Fact Sheet (NSSDCA) for masses, radii and orbits; NASA Mars Exploration Program for trip times and launch windows; H. D. Curtis, Orbital Mechanics for Engineering Students (Butterworth-Heinemann) for the Hohmann transfer, vis-viva and patched-conic equations.