Trajectory Calculator

Trace a projectile through the air with real drag, see where it lands, and read its position at regular time steps.

☄️ Trajectory Calculator
Launch speed (v0)
m/s
1200
Launch angle (θ)
°
0°89°
Launch height (h)
m
0100
Gravity (g)
m/s²
Air drag model
Table interval
s
Projectile mass
kg
Linear drag coefficient (b)
kg/s
Drag coefficient (Cd)
Frontal area (A)
m²
Air density (ρ)
kg/m³
Range
—
Peak height
—
Flight time
—
Impact speed
—
Impact angle
—
Time to peak
—
Distance at peak
—
No-drag range
—
Range change from drag
—
No-drag peak height
—
No-drag flight time
—

☄️ What is a Trajectory Calculator?

A trajectory calculator traces the path of a projectile after it is launched and tells you where it goes, how high it climbs, how long it stays in the air and how fast it is moving when it lands. In the simplest textbook case only gravity acts, and the path is a parabola with tidy closed-form answers. This calculator keeps that case but also lets you switch on air drag, which is what really shapes the flight of a thrown ball, a kicked football, a golf shot or an artillery shell.

Trajectories matter in sport, engineering and teaching. Coaches compare launch angles for a baseball throw or a javelin, engineers estimate where debris, water jets or sprayed material will land, game developers need believable ballistic arcs, and students use trajectories to learn how forces change motion. A launch height matters too: a ball released from a cliff or a rooftop stays in the air longer and travels farther than one launched from the ground at the same speed and angle, and a downward throw from a height can be modelled with a negative launch angle.

With drag the equations have no simple closed form, so the calculator integrates the motion numerically in small time steps with a fourth order Runge-Kutta method and finds the landing point by interpolation. You can pick linear drag, where the force is proportional to speed, or quadratic drag, where the force is half the air density times the drag coefficient times the area times the speed squared. Quadratic drag is the realistic choice for fast objects in air. Both models assume still air, constant density, no spin and flat ground at zero height.

It complements the projectile motion calculator, which covers the ideal vacuum case with textbook formulas. Here you also get a table of position, speed and direction at regular time intervals, plus a chart that overlays the real path on the dashed no-drag parabola, so the effect of air resistance on range, peak height and landing angle is easy to see.

📐 Formula

dv/dt  =  −( b/m + ρ Cd A |v| / (2m) ) v − g ĵ
v = velocity vector (m/s), starting at v0 (cosθ, sinθ) from height h
g = gravity, 9.80665 m/s² by default; m = projectile mass (kg)
b = linear drag coefficient (kg/s), used only in the linear model
ρ, Cd, A = air density (kg/m³), drag coefficient and frontal area (m²), used only in the quadratic model
No drag: x = v0 cosθ t, y = h + v0 sinθ t − ½ g t², flight time T = ( v0 sinθ + √( v0² sin²θ + 2 g h ) ) / g
Range = v0 cosθ T and peak height = h + v0² sin²θ / (2g) for an upward launch
Method: RK4 integration with a step of at most 2 ms and linear interpolation of the final step to y = 0
Example: 20 m/s at 45° from the ground with no drag gives a range of 40.79 m

📖 How to Use This Calculator

Steps

1
Enter the launch conditions. Type the launch speed, the launch angle above the horizontal (negative for a downward throw) and the launch height above the ground.
2
Choose a drag model. Keep drag off for the ideal parabola, or choose linear or quadratic drag and enter the mass plus the drag coefficients.
3
Read the path, table and chart. See range, peak height, flight time and impact speed, then check the position table at your interval and the flight path chart.

💡 Example Calculations

Example 1 — Ideal Throw from the Ground

20 m/s at 45° from ground level, no drag

1
vx = vy = 20 cos 45° = 14.14 m/s. Flight time T = 2 × 14.14 / 9.80665 = 2.88 s
2
Range = 14.14 × 2.88 = 40.79 m and peak height = 14.14² / (2 × 9.80665) = 10.20 m
3
The ball lands at the same speed it left, 20.00 m/s, at 45° below horizontal. The table lists the position every 0.5 s.
Range = 40.79 m, peak = 10.20 m, time = 2.88 s
Try this example →

Example 2 — Launch from a 50 m Cliff

15 m/s at 30° from a height of 50 m, no drag

1
vx = 15 cos 30° = 12.99 m/s and vy = 15 sin 30° = 7.5 m/s
2
T = ( 7.5 + √( 7.5² + 2 × 9.80665 × 50 ) ) / 9.80665 = 4.05 s, so the range is 12.99 × 4.05 = 52.59 m
3
Peak = 50 + 7.5² / (2 × 9.80665) = 52.87 m. Impact speed is 34.72 m/s at 68.0° below horizontal.
Range = 52.59 m, flight time = 4.05 s
Try this example →

Example 3 — Baseball Throw with Quadratic Drag

40 m/s at 35° from 1.5 m, mass 0.145 kg, Cd = 0.35, A = 0.0043 m², air 1.225 kg/m³

1
k = ρ Cd A / (2m) = 1.225 × 0.35 × 0.0043 / 0.29 = 0.00636 per metre
2
Numerical integration gives a range of 95.31 m, a peak of 21.75 m and a flight time of 4.13 s. With no drag the same throw would reach 155.43 m.
3
The ball lands at only 24.92 m/s (from 40 m/s at launch), 48.1° below horizontal, a much steeper angle than the 35° launch. Range falls by 38.7 %.
Range = 95.31 m (38.7 % less than without drag)
Try this example →

Example 4 — Linear Drag Teaching Model

20 m/s at 45° from the ground, mass 0.5 kg, linear drag b = 0.1 kg/s

1
Drag rate b/m = 0.2 per second. The velocity decays as e−0.2 t horizontally, and the exact solution for the landing time is T = 2.65 s
2
Range = (vx0 m / b)(1 − e−0.2 T) = 29.10 m, against 40.79 m with no drag
3
Peak height 8.58 m at 1.27 s. The impact speed is 14.49 m/s at 54.9° below horizontal.
Range = 29.10 m, flight time = 2.65 s
Try this example →

Example 5 — Soccer Ball Kick

25 m/s at 30° from the ground, mass 0.43 kg, Cd = 0.25, A = 0.038 m²

1
k = 1.225 × 0.25 × 0.038 / (2 × 0.43) = 0.01353 per metre
2
Integration gives a range of 37.25 m, a peak of 6.39 m and a flight time of 2.28 s. The ideal values would be 55.19 m, 7.97 m and 2.55 s.
3
The ball arrives at 16.28 m/s, 39.3° below horizontal. A light, large ball is slowed strongly by air.
Range = 37.25 m (32.5 % less than without drag)
Try this example →

Example 6 — Downward Throw from a Building

10 m/s at −20° (below horizontal) from a height of 30 m, no drag

1
vx = 10 cos 20° = 9.40 m/s and vy = −10 sin 20° = −3.42 m/s
2
T = ( −3.42 + √( 3.42² + 2 × 9.80665 × 30 ) ) / 9.80665 = 2.15 s, so the range is 9.40 × 2.15 = 20.20 m
3
Impact speed = 26.24 m/s at 69.0° below horizontal. The peak height equals the launch height of 30 m because the throw starts downward.
Range = 20.20 m, flight time = 2.15 s
Try this example →

❓ Frequently Asked Questions

How do you calculate the trajectory of a projectile with air resistance?+
Integrate the equations of motion numerically: acceleration is gravity plus a drag term opposing the velocity. This calculator uses fourth order Runge-Kutta steps of at most 2 ms and finds the landing point by interpolation, because quadratic drag has no simple closed form.
What is the difference between linear and quadratic drag?+
Linear drag force is b times speed and applies to slow motion in viscous fluids. Quadratic drag is 0.5 rho Cd A v squared and applies to most balls, bullets and shells in air at high Reynolds number. This page offers both so you can compare them.
How does launch height change a trajectory?+
A higher release point adds flight time and range. From 50 m with 15 m/s at 30 degrees and no drag, the flight lasts 4.05 s and covers about 52.59 m, compared with 1.53 s and 19.87 m from the ground.
What angle gives the longest range with drag?+
Less than 45 degrees. Drag removes more energy on a long, high path, so the best angle for a drag-affected projectile is typically between 30 and 40 degrees, depending on speed and the drag factor. Try several angles and compare the range.
Why is the descent steeper than the climb with drag?+
Drag slows the horizontal motion during the whole flight while gravity keeps adding downward speed. The path becomes asymmetric and the landing angle is steeper than the launch angle, which the direction column of the table shows.
What drag coefficient should I use for a ball?+
A smooth sphere is often modelled with Cd near 0.47, a baseball near 0.3 to 0.4 and a soccer ball near 0.2 to 0.25 at typical speeds. The reference area is the cross-section pi r squared. Treat these as rough values.
How accurate is the numerical integration?+
Fourth order Runge-Kutta with a step of at most 2 ms is accurate to better than 0.01 percent for the cases on this page. The no-drag answer matches the analytic formulas to every displayed digit, and the linear drag case matches its exact solution.
What does the position table show?+
At each interval it lists time, horizontal distance, height, speed and direction of motion in degrees above the horizontal. Negative directions mean the projectile is descending. The last row is the exact landing point, and the table keeps at most 40 rows.
Can this model a throw downward from a building?+
Yes. Enter a negative angle and a launch height above zero. A 10 m/s throw at -20 degrees from 30 m with no drag lands after 2.15 s and about 20.2 m away, hitting at 26.24 m/s.
How is this different from the projectile motion calculator?+
The projectile motion calculator gives the ideal vacuum answers only. This trajectory calculator adds optional drag by numerical integration, a table of positions at intervals and a chart that overlays the drag path on the ideal parabola.
Does the calculator include wind, spin or changing air density?+
No. It assumes still air of constant density, no spin or lift force and flat ground at height zero. Those effects, such as the Magnus force on a spinning ball, need a more detailed model.

How do you calculate the trajectory of a projectile with air resistance?

Integrate the equations of motion numerically: acceleration is gravity plus a drag term opposing the velocity. This calculator uses fourth order Runge-Kutta steps of at most 2 ms and finds the landing point by interpolation, which has no closed form for quadratic drag.

What is the difference between linear and quadratic drag?

Linear drag force is b times speed and applies to slow motion in viscous fluids. Quadratic drag is 0.5 rho Cd A v squared and applies to most balls, bullets and shells in air at high Reynolds number. This page offers both.

How does launch height change a trajectory?

A higher release point adds flight time and range. From 50 m with 15 m/s at 30 degrees and no drag, the flight lasts 4.05 s and covers about 52.59 m, compared with 1.53 s and 19.87 m from the ground.

What angle gives the longest range with drag?

Less than 45 degrees. Drag removes more energy on a long, high path, so the best angle for a drag-affected projectile is typically between 30 and 40 degrees, depending on speed and the drag factor.

Why is the descent steeper than the climb with drag?

Drag slows the horizontal motion during the whole flight while gravity keeps adding downward speed. The path becomes asymmetric and the landing angle is steeper than the launch angle, which the table shows in the direction column.

What drag coefficient should I use for a ball?

A smooth sphere is often modelled with Cd near 0.47, a baseball near 0.3 to 0.4 and a soccer ball near 0.2 to 0.25 at typical speeds. The reference area is the cross-section pi r squared. Treat these as rough values.

How accurate is the numerical integration?

Fourth order Runge-Kutta with a step of at most 2 ms is accurate to better than 0.01 percent for the cases on this page. The no-drag answer matches the analytic formulas to every displayed digit.

What does the position table show?

At each interval it lists time, horizontal distance, height, speed and direction of motion in degrees above the horizontal. Negative directions mean the projectile is descending. The last row is the exact landing point.

Can this model a throw downward from a building?

Yes. Enter a negative angle and a launch height above zero. A 10 m/s throw at -20 degrees from 30 m with no drag lands after 2.15 s and about 20.2 m away.

How is this different from the projectile motion calculator?

The projectile motion calculator gives the ideal vacuum answers only. This trajectory calculator adds optional drag by numerical integration, a table of positions at intervals and a chart that overlays the drag path on the ideal parabola.

Does the calculator include wind, spin or changing air density?

No. It assumes still air of constant density, no spin or lift force and flat ground at height zero. Those effects, such as the Magnus force on a spinning ball, need a more detailed model.