Aim ahead of a moving planet

Mars Mission Simulator

Follow a spacecraft around half an ellipse while Earth and Mars keep orbiting. Start with ideal alignment, then use a date below to see why the same transfer can miss.

Ideal alignment: Mars is deliberately placed 44.3° ahead of Earth. This is a teaching example, not a calculated launch opportunity for the calendar date.

Transfer flight time
259 days
Illustrative start (UTC)
Choose a start date below
Illustrative arrival · ideal model
Available with JavaScript

Mars Is a Moving Target

During this 259-day flight Mars travels about 135.7° around the Sun. Aim for where it will be when the spacecraft arrives, rather than where it starts.

A Hohmann transfer from Earth’s orbit to Mars’s orbitThe Sun sits at one focus of a half-ellipse. Earth and Mars move on circular reference orbits; the spacecraft follows the Keplerian transfer. Hollow and diamond markers show Mars at launch and model end. Body symbols are enlarged.SunEarthMarsCraft
EarthMars△ Spacecraft□ Transfer endpoint

In ideal alignment, the diamond and the transfer endpoint meet. Compare the moving Mars symbol with its hollow launch marker in the map above.

Elapsed travel time0 days

Model clock (UTC)Available with JavaScript

Spacecraft speed relative to Sun32.7 km/s

Paused at departure. No autoplay.

Orbit radii share one linear scale; body symbols are enlarged. This flight uses circular, coplanar reference orbits and solar gravity. The selected-date view does not solve a real transfer trajectory.

How this simulator works

The spacecraft’s position comes from Kepler’s equation, not a constant-speed sweep around the ellipse. The Sun is at a focus. Earth and Mars move at the circular angular rates implied by the same solar gravitational parameter. Changing playback speed accelerates their shared clock without changing the flight path.

In ideal mode, the phase angle is deliberately imposed. In selected-date mode, starting longitudes come from the existing solar system map, projected onto the reference circles; subsequent motion stays circular. The model end date is a calendar offset, not a validated real arrival. No Lambert solver, spacecraft thrust history, planetary escape or landing is modeled.

When Should You Launch a Mission to Mars?

Choose a date to inspect the planets’ calculated starting positions. The ideal circular model needs Mars about 44.3° ahead of Earth; other configurations send the same half-ellipse to a different place from Mars.

Dates mean 00:00 UTC. Supported range: 2000–2049. The default simulator imposes ideal alignment; “Preview this date” uses the calculated starting phase instead.

Calculated Earth and Mars positions for the selected UTC date, using the Solar System Map moduleEarthMars
Calculated Mars-ahead phase
Enable JavaScript
Ideal circular phase
44.3°
Difference from ideal
Enable JavaScript

The date view compares calculated positions with an ideal alignment; it does not certify a launch window.

The small map uses the same approximate heliocentric position module as our Solar System Map. Orbit shapes and radii are uncompressed, with enlarged planet symbols. The phase is a projected longitude difference, measured prograde from Earth to Mars, from 0° to 360°.

For context, the simultaneous 3D Earth–Mars distance at this date is available with JavaScript, calculated with the same Earth-center distance engine as our Mars distance page. This number is not divided by a spacecraft speed to produce the mission flight time.

How Does the Flight Path Affect Travel Time?

Idealized Hohmann transfer

Approximately 259 days around half a transfer ellipse. A useful low-energy baseline between two circular, coplanar orbits, provided the phase is right. It does not include launch from Earth’s surface or capture at Mars.

Why no single “faster spacecraft” number?

Higher-energy trajectories can be faster under suitable launch and arrival conditions. Their duration, departure energy and arrival excess speed have to be solved together. This page does not calculate those trajectories or assign them an invented fixed flight time.

How Long Did Real Mars Missions Take?

These verified examples include flybys, orbit insertion and landings. A flyby does not have to stop at Mars, and an orbiter can arrive well before its lander touches down.

Perseverance: 203 calendar days from launch to landing, about 56 days shorter than the idealized Hohmann baseline.

Mariner 4229 days
Mariner 7131 days
Viking 1304 days
Mars Pathfinder212 days
Spirit208 days
Opportunity201 days
Curiosity254 days
Perseverance203 days
UTC calendar dates and date-to-date cruise intervals; differences use midnight on each date.
Mission / typeLaunch (UTC)Mars event (UTC)Cruise intervalArrival means
Mariner 4Flyby229 daysClosest approach
Mariner 7Flyby131 daysClosest approach
Viking 1Orbiter + lander304 daysMars orbit insertion
Mars PathfinderLander + rover212 daysLanding
SpiritRover208 daysLanding
OpportunityRover201 daysLanding
CuriosityRover254 daysLanding
PerseveranceRover203 daysLanding
Date conventions and sources

Intervals are calculated from the listed UTC dates at midnight, so they are whole-calendar-day comparisons, not exact event-to-event flight times. Mission names link to NASA records. Mariner 4’s July 14 US encounter falls on July 15 UTC; Spirit’s January 3 US landing falls on January 4 UTC. Opportunity launched July 7 in US local time, July 8 UTC. The Spirit UTC date is also documented in JPL’s landing report; Opportunity’s UTC launch is listed in NASA’s mission event record.

For Viking 1, arrival means orbit insertion on June 19, 1976, not landing on July 20. The different encounter types make this an illustration of mission diversity rather than a speed ranking of otherwise identical journeys.

How Long Would a Straight-Line Trip to Mars Take?

A hypothetical distance ÷ constant speed comparison.

This is a simplified straight-line calculation, not a realistic spacecraft trajectory.

Both planets move, gravity curves the flight path, and real spacecraft speed changes. Launch geometry and the energy needed to arrive or brake at Mars also matter.

The 225 million km starting distance is a freely editable example, not today’s distance. Unit changes preserve the physical input. Distance limit: 1 trillion km or its mile equivalent; speed limit: the speed of light.

At a constant 10 km/s over 225 million km, the arithmetic travel time is approximately 260.4 days.

Keep Exploring Mars and Its Neighbors

Check the current Earth–Mars distance, see which planet is closest to Earth, explore planet positions, or open the solar system map. Distance, orbital position and travel time answer different questions, and these tools let you compare them without mixing the definitions.