Why doesn't it cancel out?
Sending a spacecraft to Jupiter or Saturn takes a lot of fuel. Yet real spacecraft regularly pick up a large amount of speed, or lose it, just by passing close to a planet, with almost no fuel used. This is called a gravity assist, or swing-by.
Here is something that should bother you. On the way in, the planet's gravity pulls the spacecraft forward and speeds it up; on the way out, it pulls it back and slows it down. It looks as if the two should cancel. And indeed, seen from the planet, the spacecraft leaves with exactly the speed it arrived with. So how can it end up faster?
The key is the question "faster as seen by whom?". In this simulation we watch the same flyby from the Sun and from the planet, side by side, and solve the puzzle. Solving it let us send spacecraft to the far edge of the solar system, places that fuel alone could never have reached.
Seen from the planet, seen from the Sun
First, ride along with the planet. The planet is at rest; the spacecraft comes in from far away, its path is bent by gravity, and it flies off again. Gravity is a conservative force, so mechanical energy is conserved, and far from the planet the speed afterwards equals the speed before. Only the direction changes.
Now watch from the Sun. The planet itself is moving around the Sun, at about 13 km/s in the case of Jupiter. The spacecraft's velocity relative to the Sun is the planet's velocity plus the velocity seen from the planet, . Even if keeps its size, its direction changes, and so the size of the sum changes. If is swung around toward the direction of , the spacecraft speeds up; if it is swung away from , it slows down.
The velocity addition is the relative-velocity rule from basic physics, a Galilean transformation. Just by switching frames, "the speed does not change" and "the speed changes" become compatible statements.
Pass behind to speed up
Which way it swings depends on which side you pass. Pass behind the planet, on the side opposite to its motion, and the spacecraft is bent as if dragged forward by the planet: it speeds up. Pass in front and it is bent as if held back: it slows down. Think of the planet as an invisible racket that returns the ball without ever touching it: a ball returned by a racket swinging forward flies off faster. How far can this picture be trusted? Let's check.
Throw a ball head-on at the front of an oncoming train. In the train's frame the ball bounces back with the same speed, if the bounce is elastic; in the ground frame its speed increases by twice the train's speed . A gravity assist is like an elastic collision without contact, and conservation of momentum and energy alone give the same kind of formula. It sounds like an analogy, but as physics it really is the same thing.
A hyperbola around the planet
Seen from the planet, the spacecraft feels only the planet's gravity. Its mechanical energy per unit mass,
is conserved. The path is a hyperbola, and the angle through which it is turned is
where is the closest-approach distance, is the planet's mass times the gravitational constant, and is the eccentricity. Closer passes, slower approaches and heavier planets all give larger turns. These two formulas go beyond high school, so here is just the outline. Seen from the planet the path is a hyperbola, and far away the spacecraft moves along its two asymptotes. A property of the hyperbola fixes the angle between the asymptotes through , and combining energy conservation at closest approach, , with conservation of angular momentum gives the eccentricity in the form above.
Elliptical planetary orbits and the parabolic or hyperbolic paths of comets are all motion under gravity, classified by the eccentricity : gives an ellipse, a hyperbola.
The approach here is to consider only the planet's gravity near the planet and only the Sun's gravity far away, and to stitch the two motions together. Because each piece of the path is a conic section, an ellipse, parabola or hyperbola, this is called the patched-conic approximation, and mission designers use it for first estimates. Solving the three-body problem of Sun, planet and spacecraft head-on is hard, but split up this way you can get a good idea of the answer with pencil and paper.
To be honest about the model: we treat the planet as moving in a straight line at constant velocity during the few days of the flyby, and we ignore the Sun's gravity. Real mission design includes the gravity of the Sun and planets in full detail.
The energy change seen from the Sun
Seen from the Sun, the change in kinetic energy, using , is
because makes the other terms cancel. Indeed, expanding , both and are the same before and after, so only the difference of the middle term survives. It is the dot product of with the change in the planet frame. points from the closest-approach point toward the planet's center, so if closest approach is behind the planet, points along and the energy increases.
In the figure, and have the same length and open at an angle . So the size of is the base of an isosceles triangle, . However close the pass, the change in velocity can never exceed .
What decides between speeding up and slowing down is this dot product , so the humble dot product from mathematics class ends up deciding how much fuel a space mission needs.
Where does the extra energy come from? From the planet. While the spacecraft is pulled forward, the planet is pulled backward with an equal force and loses a tiny amount of its orbital momentum and energy. But a planet is more than times as massive as a spacecraft, so the change is far too small to measure, far smaller even than the effect of a fly hitting a supertanker.
Fuel alone won't get you there
The idea of borrowing a planet's gravity "for free" goes back to the days when spaceflight was still a dream. A rocket moves by throwing burned fuel out of the back, so to go faster it must also carry the fuel for going faster, and the fuel needed grows steeply with the speed you want. Reaching the outer planets on fuel alone looked hopeless.
Around 1918–1919 Yuri Kondratyuk, an engineer born in the Russian Empire, in what is now Ukraine, wrote in a manuscript that a spacecraft traveling between planets could be accelerated by the gravity of the planets' moons. It was published only much later. In 1925 Friedrich Zander wrote a paper showing a deep understanding of how a gravity assist works. The first spacecraft actually to use one is usually said to be the Soviet probe Luna 3 in 1959. After photographing the Moon's far side, it was swung around by the Moon's gravity onto a path that brought it back where the pictures could be sent home to Earth. That assist was for changing direction, not for gaining speed.
Chaining planets outward
Serious calculations with planets were done at NASA's Jet Propulsion Laboratory, JPL. In 1961 Michael Minovitch, a graduate student at the University of California, Los Angeles, working summers at JPL, used the fastest computer of the day, an IBM 7090, to search for solutions to the three-body problem of Sun, planet and spacecraft. Similar ideas had been published before, and who came first is disputed. In the mid-1960s, Gary Flandro, a Caltech graduate student also working at JPL, noticed that in the late 1970s Jupiter, Saturn, Uranus and Neptune would line up just right: chaining gravity assists together, a spacecraft could visit one outer planet after another without extra fuel and in far less time. Sources date this to the summer of 1964 or 1965. This "Grand Tour" idea led to the Voyager missions. In the end, NASA says, gravity assists cut Voyager 2's flight time to Neptune from 30 years to 12.
The most famous gravity-assist spacecraft of all is Voyager 2. Launched in 1977, it visited Jupiter in 1979, Saturn in 1981, Uranus in 1986 and Neptune in 1989. That alignment of the planets won't come around again until the middle of the twenty-second century, and Voyager 2 is still the only spacecraft ever to have visited Uranus and Neptune.
Gravity assists have even sent spacecraft beyond the reach of the solar wind. Boosted by Jupiter and the other giants, Voyager 2 picked up enough speed to escape the Sun's gravity, and in November 2018 it left the heliosphere, the bubble filled by the solar wind, and began sending back measurements from interstellar space. The outer edge of the solar system itself is still far beyond. The close-up pictures of Uranus and Neptune you see in books were taken the same way. Many missions to the outer planets or close to the Sun rely on orbits built from gravity assists.
Recent missions use the trick too. JAXA's asteroid explorer Hayabusa2 made an Earth swing-by on December 3, 2015, passing about 3,090 km above the Pacific near Hawaii. According to JAXA, its path was bent by about 80°, and its speed relative to the Sun rose by about 1.6 km/s to about 31.9 km/s, setting course for the asteroid Ryugu. The Saturn probe Cassini reached Saturn only after two gravity assists from Venus and one each from Earth and Jupiter. Saving fuel means waiting for the planets to be in the right places, and taking the long way around.
Journeys toward the Sun
Gravity assists have served journeys toward the Sun as well. The first spacecraft to use a gravity assist to reach another planet was NASA's Mariner 10. It passed Venus in February 1974, bent its path, and went on to fly past Mercury three times. The orbit that let it meet Mercury again and again was found and proposed by the Italian celestial-mechanics expert Giuseppe Colombo, known as Bepi: after the first encounter, if the spacecraft's period around the Sun is exactly twice Mercury's, about 176 days, it returns to the meeting point just as Mercury, after two laps, arrives there again. His name lives on in BepiColombo, the European–Japanese Mercury mission.
Gravity assists are also used to slow down. The Parker Solar Probe passed Venus seven times, the last in November 2024, to shed speed and creep closer to the Sun, and the Mercury mission BepiColombo slowed itself with nine flybys on its way in: one of Earth, two of Venus and six of Mercury. Surprisingly, getting closer to the Sun requires losing speed: you have to throw away the momentum of the Earth's orbit before you can fall inward.
Gravity assists mattered for more than saving fuel. The idea of relative velocity from introductory physics, that speed and energy depend on who is watching, redrew the map of what we could explore in the solar system.
Fly it yourself
- Press Speed-up example. The left view is from the Sun, the right view from the planet. Under Results, compare Speed seen from the planet (before → after) with Speed seen from the Sun (before → after). Which one changes?
- Press Slow-down example and compare again. In the right-hand view, which side of the planet does the spacecraft pass?
- Look at the velocity diagram at the lower left. The blue Sun-frame velocity ends on the dashed circle centered at the tip of the planet's velocity , the brown arrow. Predict first: in which direction must the planet-frame velocity point for the blue arrow to be longest?
- In the speed graph at the lower right, check that the orange planet-frame speed peaks at closest approach and returns to the same value afterward.
- Double Closest approach (in planet radii). What happens to Turning angle δ (planet frame) and to Change in speed? Predict, then try. Changing a setting puts the spacecraft back at its starting point, so press 🚀 Launch to fly it.
- Change Planet to Earth or Venus with the same approach speed. Which planet turns the spacecraft most? Which gives the biggest speed-up? Keep an eye on the orbital speed .
Fine print: time is hugely speeded up: one second on screen is several to tens of hours, and the real elapsed time is shown in the panel. The Sun's gravity is ignored and the planet moves in a straight line at constant velocity during the flyby. In the Sun-frame view the planet is drawn at least 5 px across so that it stays visible.
Speed depends on who is watching
Seen from the planet, the spacecraft follows a hyperbola and leaves with the same speed it arrived with, because energy is conserved; only its direction changes. Seen from the Sun, its velocity is , so turning changes the size of . Passing behind the planet speeds it up, passing in front slows it down, and the energy change is . The energy comes from the planet's orbital motion, but the planet is so massive that its change is unmeasurably small.
The early-twentieth-century dream of speeding up with a moon's gravity became, through computer solutions of the three-body problem in the 1960s and the discovery of a rare planetary alignment, the journeys of Mariner 10 and Voyager 2. Today Hayabusa2 and the Parker Solar Probe still fly on this "speed that depends on who is watching."
One step further: there is a limit to how much speed one flyby can give. For given and , in which direction should leave to make the Sun-frame speed as large as possible, and how large is it then?
Sources and further reading
The facts in this article were checked mainly against these sources.
- Basics of Space Flight, Chapter 4: Trajectories, NASA
- Voyager 2, NASA mission page (launch and flyby dates; the only spacecraft to visit Uranus and Neptune)
- Planetary Voyage, NASA Voyager mission page (an alignment that occurs about every 175 years; flight time to Neptune cut from 30 years to 12)
- NASA's Voyager 2 Probe Enters Interstellar Space, NASA Jet Propulsion Laboratory, 2018
- Mariner 10, NASA mission page (Venus flyby on February 5, 1974, and three Mercury flybys)
- Missions to Mercury, European Space Agency (Colombo's proposal and Mariner 10's Mercury flybys)
- BepiColombo factsheet, European Space Agency (dates of the nine flybys)
- Results of the Hayabusa2 Earth swing-by (in Japanese), JAXA, 2015
- Cassini Trajectory, NASA (gravity assists from Venus twice, Earth and Jupiter)
- NASA's Sun-Bound Parker Solar Probe Swings Through Final Venus Flyby, Johns Hopkins Applied Physics Laboratory, 2024
- The Man Behind the Mission, PBS, The Farthest (Flandro and the Grand Tour)
Further reading (encyclopedia):