How do video games decide how high a character jumps?

A game gives the jump an upward speed, and gravity takes some away every moment until the character stops at the top and falls. The height works out to the speed squared divided by twice the gravity. Designers tune those two numbers, and many make you fall faster than you rise so the jump feels tight.

7.5 tiles high, 1.82 s in the airup in 1 s, down in 0.816 s (falling at 1.5× gravity)top: 7.5 tileslands 18.2 tiles away
Jump height
7.5 tiles
Time in the air
1.82 s
Distance covered
18.2 tiles

Challenge: Make a snappy jump at least 4 tiles high that's in the air for under 0.8 seconds.

tiles/s
How fast the character leaves the ground, in tiles (blocks) per second.
tiles/s²
How fast the jump slows and falls. Games often use far stronger gravity than real life for snappy controls.
More settings
×
A classic game-feel trick: extra gravity on the way down makes jumps feel tight instead of floaty.
tiles/s

Play

Press "Run it" on the floaty preset, then on the snappy one. Feel the difference?

Challenge: Make a snappy jump at least 4 tiles high that's in the air for under 0.8 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

h=v22g,tair=vg(1+1m)h = \frac{v^2}{2g},\qquad t_{air} = \frac{v}{g}\left(1 + \frac{1}{\sqrt{m}}\right)

A jump starts with an upward speed vv. Every second, gravity gg takes gg away, so the character rises for v/gv/g seconds, stops, and falls. The height is a quadratic:

h=v22gh = \frac{v^2}{2g}

Press "Run it" to watch the hero follow the curve. The dots are the path, and the dashed line marks the top. With the fall multiplier in "More settings" above 1, gravity is stronger on the way down, so the curve is steeper on the right side. That's the trick that makes jumps feel tight.

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. Gravity slows the jump until it stops at the topt_{up} = \frac{v}{g} = \frac{15}{15} = 1\ \text{s}
  2. The height is a quadratic: speed squared over twice gravityh = \frac{15^2}{2 \times 15} = 7.5\ \text{tiles}
  3. Falling with 1.5× gravity from the topt_{down} = \frac{v}{g\sqrt{m}} = \frac{15}{15\sqrt{1.5}} = 0.8165\ \text{s}
  4. Distance while running10 \times 1.816 = 18.16\ \text{tiles}

Export

Export PDF

Set the jump speed and gravity. "More settings" adds the faster fall and a running speed, which shows how far the jump carries you.

  • Game engines run this math for you every frame. Knowing it lets you design levels that fit the jump.

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

Cheat card

h=v22gh = \frac{v^2}{2g}
tup=vgt_{up} = \frac{v}{g}
tdown=vgmt_{down} = \frac{v}{g\sqrt{m}}
SymbolMeaningUnit
vvjump speed straight uptiles/s
gggravitytiles/s²
mmextra gravity while falling×
  • Double the jump speed and the jump gets four times as high. That's the square at work.
  • Strong gravity with a fast jump feels snappy. Weak gravity with a slow jump feels floaty, like the Moon.
  • Lots of games add extra gravity on the way down so you're not left hanging in the air.

Print this card

Where it’s used

  • Computer Science
    Game designers tune jump speed and gravity until the controls feel right, then build the levels around that jump.
  • Physics
    Real thrown objects follow the same curve. Games just pick their own gravity.
  • Hobbies & Crafts
    Speedrunners know exactly how many tiles a jump clears and plan their routes around it.

Questions people ask

Why do some game jumps feel floaty?

Low gravity and a slow jump keep you in the air a long time at the top. Many games fix it by making gravity stronger on the way down.

Do games use real gravity?

Rarely. If one tile is a meter, real gravity is 9.8 tiles/s², which feels slow and floaty in a game. Platformers often use several times that.

Why is jump height a square?

Faster jumps go up for longer and also cover more ground each moment, so the height grows with the speed times itself.

Updated : First published.

See everything that’s new on Maps for Math