Web Analytics
Projectile motion with air resistance – simulation

Projectile motion with air resistance

The formulas for projectile motion hold when there is no air. On Earth, however, a ball has to “push its way” through the air and loses speed: the path is no longer a parabola, the range is shorter, and the ball comes down more steeply than it went up. How big the difference is depends on the body – for a steel shot it hardly exists, but for a table tennis ball it is huge.

Simulation

Choose a body, the initial speed and the angle, then click Throw. The grey dashed path is ideal projectile motion (without air), and the orange one is the real path with air resistance. For each body the simulation also finds the angle that gives the largest range.

Reminder: projectile motion without air resistance

A body thrown with speed v0 at an angle α to the horizontal, without air resistance, moves along a parabola:

D = v₀² · sin 2α / g        H = v₀² · sin² α / (2g)        t = 2 · v₀ · sin α / g

The range is largest at an angle of 45°, and the path is symmetrical: the body lands at the same angle and speed at which it was thrown.

The force of air resistance

When a body moves through air, it collides with air molecules and a drag force acts on it, always opposite to the velocity. At the speeds of balls it is approximately:

Fd = ½ · ρ · C · A · v²

How much the drag changes the motion depends on the ratio of the drag force to the weight. A heavy, small steel shot hardly feels the air, while a light table tennis ball feels it strongly.

Terminal velocity

A falling body speeds up, so the drag grows – until it equals the weight. Then the net force is zero and the body keeps falling at a constant terminal velocity:

m · g = ½ · ρ · C · A · vt²        →        vt = √(2 · m · g / (ρ · C · A))

For a table tennis ball the terminal velocity is only about 8 m/s, for a tennis ball about 23 m/s, and for a skydiver before opening the parachute about 55 m/s (200 km/h). The simulation shows it for the chosen body.

How air resistance changes the path

Example: a tennis ball thrown at 30 m/s at an angle of 45° would travel 91.7 m without air, but with air resistance it only reaches 43.1 m – less than half.

How a computer calculates it

With air resistance there is no simple formula for the range. The motion is therefore calculated step by step: in each short instant Δt the force is calculated, from it the acceleration, then the new velocity and the new position (Euler's method). This is what the program looks like in Python:

import math

g = 9.81            # m/s²
rho = 1.2           # air density, kg/m³
m = 0.057           # mass of a tennis ball, kg
d = 0.067           # diameter, m
C = 0.5             # drag coefficient
k = 0.5 * rho * C * math.pi * d**2 / 4

v0, angle = 30, 45
vx = v0 * math.cos(math.radians(angle))
vy = v0 * math.sin(math.radians(angle))
x, y, t, dt = 0, 0, 0, 0.001

while y >= 0:
    v = math.hypot(vx, vy)
    ax = -k / m * v * vx
    ay = -g - k / m * v * vy
    vx += ax * dt
    vy += ay * dt
    x += vx * dt
    y += vy * dt
    t += dt

print(f"Range: {x:.1f} m, time of flight: {t:.2f} s")
print(f"Without air resistance: {v0**2 * math.sin(math.radians(2 * angle)) / g:.1f} m")

Program output:

Range: 43.1 m, time of flight: 3.41 s
Without air resistance: 91.7 m

Change the mass, the diameter or the angle and compare with the simulation. The simulation on this page uses a more accurate method (Runge–Kutta), but the result is the same.

Problems

Use g = 9.81 m/s² and ρ = 1.2 kg/m³. Solve the problem, then check the solution (and in the simulation).

  1. What would the range of a ball thrown at 20 m/s at 45° be if there were no air?
    Solution

    D = v₀² · sin 90° / g = 400 / 9.81 ≈ 40.8 m.

  2. What is the terminal velocity of a table tennis ball (m = 2.7 g, d = 4 cm, C = 0.5)?
    Solution

    A = π · 0.04² / 4 ≈ 0.00126 m²; vt = √(2 · 0.0027 · 9.81 / (1.2 · 0.5 · 0.00126)) ≈ 8.4 m/s. That is why a table tennis ball cannot be thrown far.

  3. What is the drag force on a football (d = 22 cm, C = 0.25) at 25 m/s? Compare it with the weight of the ball (m = 0.43 kg).
    Solution

    A = π · 0.22² / 4 ≈ 0.038 m²; Fd = ½ · 1.2 · 0.25 · 0.038 · 25² ≈ 3.6 N. The weight is 0.43 · 9.81 ≈ 4.2 N – the drag is almost equal to the weight!

  4. If the speed of a ball doubles, how many times does the drag force increase?
    Solution

    4 times, because the drag force is proportional to the square of the speed.

  5. Why does a tennis ball come down more steeply than it went up?
    Solution

    Air resistance keeps reducing the horizontal speed, so in the second part of the flight the horizontal component is much smaller, while the vertical one (because of gravity) keeps growing – the path gets steeper.

Check your knowledge

1. At the speeds of balls, the drag force is proportional to:

2. How does air resistance change the range?

3. With air resistance, the largest range is reached at an angle:

4. A body falls at terminal (constant) velocity when:

5. Which body feels air resistance the most?

Related: projectile motion without air resistance, free fall and Newton's laws and friction.

🛠 Build this kind of simulation yourself: Projectile motion in Processing – the path step by step

💻 Program it yourself in p5.js: Air resistance in p5.js – a projectile slowed by air

👩‍🏫 For teachers – lesson plan

Projectile with air resistance – for teachers – lesson plan

Level: Secondary school (projectile motion, drag force); competitions and extension work

Lesson goals

  • the student explains what the drag force depends on and what terminal velocity is
  • compares the path with drag and the ideal parabola (range, height, symmetry, angle of maximum range)
  • understands how motion is calculated step by step (Euler's method) and modifies the Python program

Suggested lesson flow (45 min)

  1. Introduction (10 min): a question from everyday life, then the theory and formulas on this page.
  2. Work with the simulation (15 min): the activity below, in pairs.
  3. Tasks (10 min): the tasks on this page; students check their answers in the simulation.
  4. Check your knowledge (5 min): the quiz at the end of the introduction.
  5. Discussion (5 min): the questions below.

Activity with the simulation

For all five bodies at 30 m/s and 45° students record the range with and without drag and the angle of maximum range, then rank the bodies by how much the air slows them and link this to the terminal velocity. Then they run the Python program, change the mass and diameter and check the result in the simulation.

Discussion questions

  • Why does a shot put ball hardly feel air resistance, while a table tennis ball feels it strongly?
  • Why is the angle of maximum range smaller than 45° with air resistance?