On this page
Spacecraft bound for the outer planets borrow speed from planets on the way. A craft swings close to a planet and leaves much faster relative to the Sun, yet relative to the planet it leaves with exactly the speed it came in with. The trick is adding two vectors. Here it is for Jupiter, with NASA's numbers.
What is a gravity assist?
A gravity assist (slingshot, swing-by) is a close flyby in which a planet's gravity turns a spacecraft's path. In the planet's frame the path is a hyperbola. The craft climbs out of the same gravity well it fell into, so its far-away speed is unchanged. Only the direction changes.
Three results we use without re-deriving:
In the planet's frame, the turn angle is δ = 2 arcsin(1/e) with e = 1 + r v∞²/GM, and the velocity change is Δv = 2v∞ sin(δ/2). These are worked step by step in our post on how one Earth flyby changes asteroid Apophis's year.
In the head-on limit the planet acts like a moving wall, and a craft approaching at u leaves at u + 2U. That is the frame-shift argument in the speed of a ball after an elastic collision with a moving wall.
A burn deep in a gravity well is a different effect that uses fuel; see why rocket burns at perigee give more energy.
How does a planet add speed if the speed relative to it is unchanged?
Call the planet's velocity round the Sun U. Call the craft's velocity relative to the planet, far from it, v∞. Relative to the Sun, the craft's velocity is the vector sum:
Before: v(Sun) = U + v∞(in)
After: v(Sun) = U + v∞(out)
The two v∞ vectors have the same length but different directions, so the two sums can have very different lengths. Squaring and subtracting gives the kinetic energy change per kilogram, relative to the Sun:
ΔKE per kg = U · Δv, where Δv = v∞(out) − v∞(in)
So the craft gains energy when Δv has a component along the planet's motion, and loses energy when Δv points backward.
Why does passing behind the planet speed you up?
The planet pulls the craft towards itself throughout. By the hyperbola's symmetry, the total Δv points from the closest-approach point straight at the planet's centre.
Pass behind the planet (closest approach on its trailing side): Δv points forward, along U. U · Δv is positive, so the craft gains speed relative to the Sun.
Pass in front of the planet (closest approach on its leading side): Δv points backward. U · Δv is negative, so the craft slows down.
To head outward you pass behind; to fall in towards the Sun you pass in front.
Worked example: a flyby of Jupiter
Data from NASA's Jupiter fact sheet: GM = 1.26687 × 10⁸ km³/s², equatorial radius 71,492 km, mean orbital speed U = 13.06 km/s. Its real speed varies from 12.44 to 13.72 km/s; we use the mean.
Take an illustrative craft with v∞ = 6.0 km/s, passing behind Jupiter at 5 Jupiter radii from its centre (r = 357,460 km).
Eccentricity. e = 1 + r v∞²/GM = 1 + (357,460 × 36) / 1.26687 × 10⁸ = 1.102.
Turn angle. δ = 2 arcsin(1/1.102) = 130.4°.
Velocity change in Jupiter's frame. Δv = 2 × 6.0 × sin 65.2° = 10.89 km/s, pointing along U for this pass.
Directions. For Δv to point exactly along U, the incoming and outgoing v∞ must be mirror images. Take x along U and y outward from the Sun. Then v∞(in) = (−5.45, 2.52) km/s and v∞(out) = (+5.45, 2.52) km/s. Each has length 6.0 km/s.
Add U = (13.06, 0). Before: (7.61, 2.52), speed √(7.61² + 2.52²) = 8.02 km/s. After: (18.51, 2.52), speed 18.68 km/s.
Result. The craft goes from 8.0 to 18.7 km/s relative to the Sun, a gain of 10.66 km/s, with no fuel burned.
Energy check. (18.68² − 8.02²)/2 = 142.3 km²/s², and U · Δv = 13.06 × 10.89 = 142.3 km²/s². Since 1 km²/s² = 1 MJ/kg, that is 142 MJ for every kilogram of spacecraft.
Mirror the path so the craft passes in front of Jupiter, and it goes from 18.68 to 8.02 km/s instead.
Units check: r v∞²/GM is km³/s² ÷ km³/s², a pure number, as e must be.
What is the largest speed gain from one flyby?
For a fixed v∞, a closer pass gives a smaller e, a bigger turn and a bigger Δv. The limit is a pass grazing the cloud tops, r = 71,492 km; real craft keep further away.
e = 1 + (71,492 × 36) / 1.26687 × 10⁸ = 1.020
δ = 2 arcsin(1/1.020) = 157.1°
Δv = 2 × 6.0 × sin 78.5° = 11.76 km/s, close to the 2v∞ = 12 km/s ceiling, which would need a full 180° turn.
With the same mirror-image geometry, the speed relative to the Sun goes from 7.28 to 18.98 km/s, a gain of 11.70 km/s.
There is also a ceiling that holds for any v∞. At a grazing pass, Δv = 2v∞/e = 2v∞ / (1 + R v∞²/GM). This is largest when v∞ = √(GM/R), and the maximum Δv is √(GM/R) itself. For Jupiter that is √(1.26687 × 10⁸ / 71,492) = 42.1 km/s, the speed of an orbit skimming its cloud tops. No single Jupiter flyby can change a craft's velocity by more than that.
Where does the energy come from?
From the planet. Momentum is conserved in the planet-plus-craft system. If the craft's velocity changes by Δv, the planet's changes by ΔV = −(m/M)Δv.
Take an illustrative 1,000 kg craft. Jupiter's mass is 1.898 × 10²⁷ kg (NASA fact sheet).
ΔV = 1,000 × 10,890 / 1.898 × 10²⁷ = 5.7 × 10⁻²¹ m/s, slowing Jupiter down.
The craft gains 1,000 × 142.3 MJ = 1.4 × 10¹¹ J. Jupiter's kinetic energy changes by M U ΔV = −1.4 × 10¹¹ J, so the books balance. Jupiter's orbit shrinks by an amount far too small to measure.
How do JEE questions use gravity assist?
It appears as a relative velocity and conservation problem:
"A probe approaches a planet head-on at u. Find its speed after a half-turn." Go to the planet's frame, reverse, add U back: u + 2U.
"Find the speed relative to the Sun after the probe's direction turns by θ in the planet's frame." Add vectors, then use the cosine rule.
If you are preparing for JEE Main and Advanced, Fermi Test Prep offers personalised preparation for JEE Main & Advanced with an AI tutor, live classes, adaptive mocks, mentorship and a study plan that updates based on mastery. To check your working on relative velocity numericals, the Fermi Problem Library is a step-by-step solver that explains the reasoning.
Quick checklist
In the planet's frame: same speed in and out, direction turned by δ.
In the Sun's frame: v = U + v∞, added as vectors.
Energy gained per kg = U · Δv: positive behind the planet, negative in front.
Δv ≤ 2v∞, and for Jupiter never more than √(GM/R) = 42.1 km/s.
The planet pays: ΔV = −(m/M)Δv, far too small to notice.



