---
title: Rockets and variable mass
heading: Pushing off your own exhaust, and why rockets come in stages
eyebrow: B1 · Lesson 21 · Rockets and variable mass
xp: 40
---

::: hook
A rocket in space has nothing to push against. It moves by throwing mass backward: each kilogram of exhaust leaves at high speed, and the rocket picks up the opposite momentum. Because the rocket gets lighter as it burns, each kilogram of propellant pushes a lighter vehicle, and the speed it can reach grows only with the logarithm of how much propellant it carries. Lessons 19 and 20's momentum bookkeeping, applied to a mass that changes, gives the rocket equation, and with it the reason every orbital launcher drops empty tanks on the way up.
:::

::: play
- The curve is a rocket's speed gain, in km/s, against its mass ratio $r$, the starting mass over the burnt-out mass, for an exhaust speed $v_e$: $\Delta v = v_e\ln(m_0/m_f)$.
- Doubling the mass ratio adds the same speed whether you go from 2 to 4 or from 10 to 20. Low Earth orbit needs about 9.4 km/s including losses, out of reach of any single stage with realistic tanks.
:::

```sim plot
view: graph
x: r = 1..30 log
y: dv = 0..12
slider: ve = 2..4.5 step 0.1 = 3
plot: ve*ln(r) | label: Δv in km/s for exhaust speed v_e
plot: 9.4 + 0*r | dashed | label: low Earth orbit with losses, about 9.4 km/s
readout: mass ratio needed for 9.4 km/s = exp(9.4/ve) | digits: 3
```

::: predict
## A rocket with exhaust speed 3 km/s reaches 2 km/s by burning half its mass. How fast is it going after burning half of what's left?

- [ ] 4 km/s
- [x] About 4.2 km/s
- [ ] 3 km/s
- [ ] 2.5 km/s

::: reveal
About 4.2 km/s. Each halving of the mass adds the same $v_e\ln 2 = 2.08$ km/s, so two halvings give 4.16 km/s. It looks generous, but notice what it took: three quarters of the starting mass is gone. Each further increment of speed costs a further fixed fraction of the mass, so the propellant needed grows exponentially with the speed you want.
:::
:::

::: nameit
## Momentum with mass leaving

In a short time $dt$ the rocket, of mass $m$ and speed $v$, expels mass $|dm|$ backward at speed $v_e$ relative to itself. In the rocket's frame, conservation of momentum gives $m\,dv = v_e\,|dm|$, so with $dm < 0$ as the rocket loses mass,

$$m\frac{dv}{dt} = -v_e\frac{dm}{dt} = \dot m\,v_e$$

where $\dot m$ is the mass flow rate. The right side is the **thrust**: exhaust speed times mass flow.

## The rocket equation

Separating variables and integrating from the starting mass $m_0$ to the final mass $m_f$:

$$\Delta v = v_e\ln\frac{m_0}{m_f}$$

(Tsiolkovsky's equation), with no gravity or drag. Chemical rockets have $v_e$ of 2.5 to 4.5 km/s; ion thrusters reach 20 to 50 km/s but with tiny thrust.

## Staging

The final mass $m_f$ includes empty tanks and engines. Dropping them partway lets the remaining propellant push only what's still useful. Two stages give $\Delta v = v_e\left(\ln\frac{m_{0,1}}{m_{f,1}} + \ln\frac{m_{0,2}}{m_{f,2}}\right)$, and dropping dead mass makes the second stage's ratio much larger than one big stage could achieve.

## Where else it appears

The same bookkeeping governs a conveyor belt picking up sand, a hose's recoil, a jet engine (which also takes in air) and the reaction of a cable-laying ship. Any system that gains or loses mass needs $\frac{d(mv)}{dt}$ applied to a well-chosen system, not $F = ma$ for a mass that's changing.
:::

::: example
## An engine burns 100 kg of propellant per second with an exhaust speed of 3000 m/s. What thrust does it make, and what $\Delta v$ does a rocket with a mass ratio of 5 get from it?

::: solution
1. **Thrust.**
   $$\begin{aligned} F &= \dot m v_e \\ &= 100 \times 3000 \\ &= 3 \times 10^5\ \text{N} \end{aligned}$$
   that is, 300 kN.
2. **Delta-v.** With $m_0/m_f = 5$,
   $$\begin{aligned} \Delta v &= 3000\ln 5 \\ &= 4828\ \text{m/s} \end{aligned}$$
3. **What each sets.** The thrust sets how quickly the speed builds and must beat the rocket's weight to lift off; the mass ratio alone sets how much speed it gets in the end, with no gravity or drag.

**Answer:** the engine makes 300 kN of thrust, and the rocket gets a $\Delta v$ of 4828 m/s.
:::
:::

::: example
## A 100 t rocket carries a 1 t payload, 90 t of propellant and 9 t of tanks and engines, with $v_e$ = 3000 m/s. Compare one stage with two stages that split the tanks and propellant 3 to 1 (stage 1: 6.75 t of structure and 67.5 t of propellant; stage 2: 2.25 t and 22.5 t).

::: solution
1. **One stage.** With $m_0 = 100$ t and $m_f = 10$ t,
   $$\begin{aligned} \Delta v &= 3000\ln 10 \\ &= 6908\ \text{m/s} \end{aligned}$$
2. **Stage 1 of two.** It burns from 100 t to 32.5 t, a ratio of 3.08, then drops its 6.75 t of structure, leaving 25.75 t.
3. **Stage 2.** It burns from 25.75 t to 3.25 t, a ratio of 7.92.
4. **Total for two stages.**
   $$\begin{aligned} \Delta v &= 3000\left(\ln 3.08 + \ln 7.92\right) \\ &= 9581\ \text{m/s} \end{aligned}$$
5. **Compare.** The same propellant and structure give 2.7 km/s more, enough to turn a suborbital hop into an orbit, purely because the second stage doesn't haul the first stage's empty tanks.

**Answer:** one stage gives 6908 m/s and two stages give 9581 m/s, 2.7 km/s more.
:::
:::

::: example
## How much of a 9.4 km/s single-stage-to-orbit rocket must be propellant, with $v_e$ = 4.4 km/s (the best chemical engines)?

::: solution
1. **Mass ratio.**
   $$\begin{aligned} \frac{m_0}{m_f} &= e^{9.4/4.4} \\ &= e^{2.14} \\ &= 8.5 \end{aligned}$$
2. **Propellant fraction.** Since $m_f = m_0/8.5$, 88% of the liftoff mass must be propellant, leaving 12% for tanks, engines, structure and payload together.
3. **What it means.** Hydrogen tanks are bulky, so that margin is almost all structure, which is why single-stage-to-orbit vehicles have stayed on paper.

**Answer:** 88% of the rocket's liftoff mass must be propellant.
:::
:::

::: check
given: ve = 2.5 | 3 | 4.4; r = 2 | 5 | 10 | 20
answer: ve*1000*ln(r)
unit: m/s
tolerance: 0.5%

## A rocket's exhaust leaves at {ve} km/s, and it burns until its mass is 1/{r} of its starting mass. What speed does it gain, ignoring gravity and drag?

::: right
Right. $\Delta v = v_e\ln(m_0/m_f)$ = {answer}.
:::

::: misses
- [ve*1000*r] The speed grows with the logarithm of the mass ratio, not the ratio itself.
- [ve*1000*log(r)] That's the base-10 logarithm. The rocket equation uses the natural log.
- [ve*1000*(1 - 1/r)] That's the fraction of mass burned times $v_e$, which treats the rocket as if it never got lighter.
- [any] Not yet. Use $v_e\ln(m_0/m_f)$.
:::
:::

::: check
given: md = 10 | 250 | 2500; ve = 2.5 | 3 | 4.4
answer: md*ve*1000
unit: N
tolerance: 0.5%

## An engine expels {md} kg of exhaust per second at {ve} km/s. What thrust does it produce?

::: right
Right. Thrust is the momentum carried away per second, $\dot mv_e$ = {answer}.
:::

::: misses
- [md*ve] Convert the exhaust speed to m/s.
- [0.5*md*(ve*1000)^2] That's the exhaust's kinetic power, in watts, not the thrust.
- [any] Not yet. Multiply the mass flow by the exhaust speed.
:::
:::

::: check
given: dv = 3 | 6 | 9.4; ve = 3 | 4.4
answer: 100*(1 - exp(-dv/ve))
unit: %
tolerance: 0.5%

## What fraction of a rocket's starting mass must be propellant for it to gain {dv} km/s with an exhaust speed of {ve} km/s?

::: right
Right. The mass ratio is $e^{\Delta v/v_e}$, so the propellant fraction is $1 - e^{-\Delta v/v_e}$ = {answer}.
:::

::: misses
- [100*dv/ve] That assumes the speed grows in proportion to the propellant. It grows only as the logarithm of the mass ratio.
- [100*exp(-dv/ve)] That's the fraction left at burnout. Subtract from 100%.
- [any] Not yet. Solve $\Delta v = v_e\ln(m_0/m_f)$ for $m_f/m_0$, then subtract from 1.
:::
:::

::: check
kind: parts
given: p = 1 | 2; s = 6 | 10; f = 0.6 | 0.75

## A 100 t rocket has a {p} t payload and {s} t of structure, the rest propellant, with $v_e$ = 3 km/s. A two-stage version gives stage 1 the fraction {f} of both the structure and the propellant.

::: part
answer: 3000*ln(100/(p + s))
unit: m/s
tolerance: 0.5%

### What $\Delta v$ does the single stage get?

::: misses
- [3000*ln(100/p)] At burnout the structure is still attached: $m_f$ is payload plus structure.
- [any] Not yet. $m_0 = 100$ t and $m_f$ = payload + structure.
:::
:::

::: part
answer: 3000*(ln(100/(100 - f*(100 - p - s))) + ln((100 - f*(100 - p - s) - f*s)/(100 - (100 - p - s) - f*s)))
unit: m/s
tolerance: 0.5%

### What $\Delta v$ do the two stages get together?

::: misses
- [3000*ln(100/(p + s))] That's the single stage. After stage 1 burns, drop its structure before stage 2 starts.
- [any] Not yet. Stage 1 burns its propellant from 100 t; drop its structure; stage 2 burns the rest of the propellant from what's left.
:::
:::

::: right
Right. The second stage starts lighter by the first stage's empty structure, so its mass ratio, and the total $\Delta v$, come out well above the single stage's.
:::
:::

::: check
kind: python
given: ve = 3000 | 4400; md = 100 | 200; m0 = 10000 | 20000

## A rocket of starting mass `m0` = {m0} kg burns `md` = {md} kg/s at `ve` = {ve} m/s straight up, against gravity $g$ = 9.81 m/s² (no drag), until 80% of its starting mass is gone. Integrate $\frac{dv}{dt} = \frac{\dot mv_e}{m} - g$ with Euler steps of 0.01 s. Set `v_end` to the speed at burnout and `dv_ideal` to $v_e\ln 5$ for comparison, and `gravity_loss` to their difference.

```python starter
import math
v_end = ve * math.log(5)
dv_ideal = v_end
gravity_loss = 0
print(v_end, gravity_loss)
```

```python solution
import math
g, dt = 9.81, 0.01
m, v, t = float(m0), 0.0, 0.0
while m > 0.2 * m0:
    v += (md * ve / m - g) * dt
    m -= md * dt
    t += dt
v_end = v
dv_ideal = ve * math.log(5)
gravity_loss = dv_ideal - v_end
print(v_end, gravity_loss, t)
```

```python tests
import math
tb = 0.8 * m0 / md
exact = ve * math.log(5) - 9.81 * tb
assert abs(dv_ideal - ve * math.log(5)) < 1e-9, "dv_ideal is ve·ln 5."
assert abs(v_end - exact) < 0.02 * ve, f"The speed at burnout should be close to ve·ln 5 − g·t_burn = {exact:.0f} m/s."
assert abs(gravity_loss - 9.81 * tb) < 0.02 * ve, "The gravity loss is about g times the burn time."
```

::: right
Right. Straight up, gravity steals $g$ times the burn time, the same whatever the mass history, so a long, gentle burn loses more than a short, hard one. That's why launchers start with high thrust and then turn sideways as soon as they can.
:::
:::

::: check
kind: derivation
vars: m = 10..100, ve = 1..5, dm = 0.01..0.5

## A rocket of mass $m$, at rest in some frame, expels a small mass $\delta$ (written `dm`) backward at speed $v_e$ (written `ve`). Derive its speed change.

::: step
answer: dm*ve/(m - dm)

### Total momentum stays zero: the rocket, now of mass $m - \delta$, moves forward at $\Delta v$ while the exhaust carries $\delta v_e$ backward. Solve $(m - \delta)\Delta v = \delta v_e$ for $\Delta v$.
:::

::: step
answer: dm*ve/m

### For a very small $\delta$, what does that become, to first order?
:::

::: right
Right. $dv = v_e\,|dm|/m$: each bit of exhaust is worth more as the rocket gets lighter, and adding up these steps gives $v_e\ln(m_0/m_f)$.
:::
:::

::: check
kind: choice

## A rocket fires in empty space with nothing to push against. Where does its forward force come from?

- [x] From the exhaust it throws backward: the gas gains backward momentum, so the rocket gains forward momentum
- [ ] From the exhaust pushing on the air behind it
- [ ] It can't accelerate in a vacuum
- [ ] From the pressure of light

::: right
Right. The combustion chamber pushes the gas backward and the gas pushes the chamber forward, Newton's third law; the total momentum of rocket plus exhaust stays zero. Air only gets in the way.
:::

::: misses
- [2] A rocket works better in vacuum, where there's no air at all.
- [3] It accelerates fine in a vacuum, by throwing its own mass backward.
- [4] Light pressure is far too small to move a rocket.
:::
:::

::: explain
## Why does a rocket's attainable speed grow only with the logarithm of its mass ratio, and what does that imply for reaching orbit?

::: model
Each bit of propellant gives the rocket a speed increase proportional to the bit's mass divided by the rocket's mass at that moment. Early on the rocket is heavy and each kilogram does little; only as it empties does each kilogram count for more. Adding up these increments gives $v_e\ln(m_0/m_f)$: every equal fractional reduction in mass adds the same speed. So reaching a speed several times the exhaust speed needs a mass ratio that grows exponentially, around 8 to 25 for orbit, leaving almost nothing for structure and payload. Staging escapes this by throwing away empty structure partway, so each stage starts its own exponential from a lighter vehicle.
:::
:::

::: practice

::: check
given: ve = 3 | 4; dv = 3 | 6
answer: exp(dv/ve)
tolerance: 0.5%

## What mass ratio does a rocket with {ve} km/s exhaust need to gain {dv} km/s?

::: misses
- [dv/ve] Invert the logarithm: $m_0/m_f = e^{\Delta v/v_e}$.
- [any] $m_0/m_f = e^{\Delta v/v_e}$.
:::
:::

::: check
given: F = 100 | 2000; ve = 2.5 | 4
answer: F*1000/(ve*1000)
unit: kg/s
tolerance: 0.5%

## An engine makes {F} kN of thrust with an exhaust speed of {ve} km/s. What mass does it burn per second?

::: misses
- [any] $\dot m = F/v_e$.
:::
:::
:::
