How do games decide how a ball bounces?

Games give every object a bounciness between 0 and 1. Each bounce keeps that share of the speed, so the ball rises to that number squared times the last height. The heights shrink by the same fraction every time. In theory it bounces forever, but the bounces get so short that it settles in seconds.

Each bounce reaches 56.3% of the last height (e² = 0.75²)8 bounces over 1 cm, all over in 3.16 sdropped from 1 m56.3 cm31.6 cm17.8 cm
Bounces higher than 1 cm
8
First bounce height
0.563 m
Time until it rests
3.16 s
Total distance up and down
3.57 m

Challenge: Find a ball that bounces at least 10 times above 1 cm and still settles within 6 seconds.

×
Physicists call it the coefficient of restitution. A basketball is about 0.75; a superball about 0.9.

Play

Press "Run it: drop the ball" for the basketball, then the superball. Count the bounces.

Challenge: Find a ball that bounces at least 10 times above 1 cm and still settles within 6 seconds. The box under the picture turns green when you get it.

Stuck? Pick one of the examples from the “Try an example” menu, or press “New example.”

Understand

hn=h0 e2n,D=h0 1+e21−e2h_n = h_0\,e^{2n},\qquad D = h_0\,\frac{1 + e^2}{1 - e^2}

A ball that hits the ground at speed vv leaves at e ve\,v, where ee is its bounciness. Height goes as speed squared, so each bounce reaches e2e^2 of the last:

hn=h0 e2nh_n = h_0\,e^{2n}

That's a geometric sequence, and the total up-and-down distance is a geometric series: D=h0(1+e2)/(1−e2)D = h_0(1 + e^2)/(1 - e^2). The surprise: the ball bounces infinitely many times, but each bounce is shorter than the last, so the total time is finite too. Press "Run it" to drop the ball and count.

Use

Every input has a unit menu, so you can type values in the units you already have. Results follow your units.

Show the work

  1. A bounce keeps e of the speed, and height goes as speed squaredh_1 = 1 \times 0.75^2 = 0.5625\ \text{m}
  2. So the heights form a geometric sequenceh_n = 1 \times 0.5625^{\,n}
  3. Total up-and-down distance, summed foreverD = 1\,\frac{1 + 0.75^2}{1 - 0.75^2} = 3.571\ \text{m}
  4. Total time is finite too: endless bounces, each shorter, add up tot_0\,\frac{1 + e}{1 - e} = 0.452 \times \frac{1 + 0.75}{1 - 0.75} = 3.16\ \text{s}

Export

Export PDF

Set the bounciness and the drop height, or start from a real ball.

  • This leaves out air drag and spin. Real bounciness also changes a little with speed.

For learning and estimation. Verify with applicable codes, standards, and a qualified professional before using in design, construction, or safety-critical work.

Cheat card

hn=h0 e2nh_n = h_0\,e^{2n}
D=h0 1+e21−e2D = h_0\,\frac{1 + e^2}{1 - e^2}
T=t0 1+e1−e,t0=2h0/gT = t_0\,\frac{1 + e}{1 - e},\quad t_0 = \sqrt{2h_0/g}
SymbolMeaningUnit
eebounciness (speed kept per bounce)
h0h_0drop heightm
  • Height goes with speed squared, so a ball that keeps 75% of its speed keeps only 56% of its height.
  • Bounciness near 1 makes the bounces go on and on. Even 0.9 to 0.95 more than doubles the count.
  • Game engines call this restitution. Many also stop the bounce when it gets tiny, so objects don't jitter forever.

Print this card

Where it’s used

  • Computer Science
    Physics engines give every material a restitution value, from rubber near 0.9 to clay near 0.
  • Physics
    The same geometric series shows up in a famous puzzle: infinitely many steps can add up to a finite total.
  • Sports & Games
    Basketballs must bounce to a set height when dropped. Officials check the bounciness before games.

Questions people ask

Why does a ball stop bouncing?

Each bounce loses some energy to heat, sound, and squishing, so it keeps only a share of its speed. The heights shrink until they're too small to see.

Does a ball bounce forever?

In the ideal math, it bounces infinitely many times, but the times add up to a finite total, so it still settles. Real balls also stop once the bounces get tiny.

What is the coefficient of restitution?

The speed right after a bounce divided by the speed right before. It's the bounciness number games and physicists use.

Updated : First published.

See everything that’s new on Maps for Math