Projectile Motion Simulator
Simulate projectile motion with adjustable speed, angle and height. Watch the trajectory animate with live range, apex and flight-time readouts.
Simulator
- Range
- 40.77 m 133.8 ft
- Max height
- 10.19 m 33.44 ft
- Flight time
- 2.883 s
- Impact speed
- 20 m/s 44.74 mph
- Impact angle
- 45°
- Time to apex Half the flight time when the launch and landing heights match and there is no air resistance.
- 1.442 s
Height against time
Speed against time
Cite this tool
Citing this tool
Last updated . Add the date you accessed it as well, which a citation of a page that can change asks for. If a specific result matters, cite the permalink from the tool’s share row instead of this page: it reproduces the exact parameters.
The equation
What are the projectile motion formulas?
With no air resistance, a projectile launched from ground level at speed v₀ and angle θ under gravitational acceleration g (9.81 m/s² by default here) has horizontal range R = (v₀² · sin 2θ) / g, maximum height H = (v₀ · sin θ)² / (2g), and time of flight t = (2v₀ · sin θ) / g.
Gravity is then the only force on the projectile, so it has two
independent motions at once. Horizontally nothing accelerates it, so it covers equal
distances in equal times. Vertically gravity pulls it down at a constant
9.81 m/s² on Earth. Splitting the launch velocity into
v₀cos θ horizontally and v₀sin θ vertically
turns one curved problem into two straight-line ones.
The path is a parabola, and that follows from the two motions: solve the
horizontal equation for time, substitute it into the vertical one, and
the height comes out as a quadratic in x.
Worked example
Launch at 20 m/s at 45° from ground level, with no air resistance.
- Components:
v₀cos 45° = 14.14 m/sandv₀sin 45° = 14.14 m/s. -
Time to apex: the vertical velocity reaches zero at
t = 14.14 / 9.81 = 1.44 s. - Total flight time is double that by symmetry,
2.88 s. - Range:
14.14 × 2.883 = 40.8 m, using the flight time to one more figure (2.88 s would give 40.7 m). - Apex:
14.14² / (2 × 9.81) = 10.2 m.
The simulator reports 40.77 m and 10.19 m for these inputs. With air resistance off it evaluates the closed-form solution instead of integrating, so a hand calculation carried at full precision gives the same digits.
What changes with air resistance
Air resistance breaks the symmetry. Drag grows with the square of speed, so it acts hardest early in the flight, when the projectile is moving fastest. The descent is steeper than the ascent, so the projectile lands at a steeper angle than it left at. Switch drag on at the default 20 m/s and 45° and the 145 g, 74 mm sphere lands 32.37 m away at 50.8° below the horizontal, against 40.77 m and 45° in a vacuum.
The best launch angle drops below 45°, and drops further the faster the launch. For that same sphere the range peaks at 43° for a 20 m/s launch, at 40° for 40 m/s and at 37° for 60 m/s.
With drag on, mass matters. The drag force does not depend on mass, but the deceleration it causes does, so a heavier object of the same size is slowed less. A golf ball and a table tennis ball are close in diameter, and the golf ball, about 17 times heavier, carries far further. Turn drag off and mass drops out of the problem again.
Common mistakes
- Using the range formula when the launch and landing heights
differ.
R = v₀²sin 2θ / gassumes the projectile returns to its launch height. Launch from a cliff and it will be wrong. - Setting the total velocity to zero at the apex. Only the vertical component is zero there. The horizontal component carries on unchanged.
- Mixing up the sign of gravity. Pick upward as positive and stay consistent for the whole problem.
- Assuming 45° is always optimal. True only for equal launch and landing heights with no drag.
Sources
Galileo, Two New
Sciences (1638), Fourth Day, Theorem 1, for the parabolic path of a projectile. OpenStax University
Physics Volume 1,
section 4.3,
equations 4.24 to 4.26, for the time of flight, maximum height and range, which hold only for launch and
landing at the same height, and for the 45° optimum, which holds only without air resistance. Its
section 6.4
gives the drag force as F = ½CρAv², which grows with the square of speed and has no mass in
it. The drag figures on this page are this simulator’s own results, with the sphere’s drag coefficient
held at 0.47 and air at 1.225 kg/m³. The gravity field’s figures for the
Moon,
Mars and
Jupiter are NASA’s mean
surface gravity, at the 1 bar level for Jupiter.
Model and assumptions
The method, what it assumes and how accurate it is
- Method
- Exact where a closed form exists, Runge-Kutta 4th order otherwise
- Largest step
- 0.001 s
- Repeatability
- Deterministic. The same link gives the same numbers on any machine.
What it assumes
- With drag switched off the trajectory is the exact parabola, solved in closed form rather than stepped.
- With drag switched on the force is quadratic in speed, using sea-level air density of 1.225 kg/m^3 and a sphere drag coefficient of 0.47.
- With drag on, the step is 1 ms at most and shortens to a twentieth of the drag timescale while drag is strong, so a light sphere thrown hard is still stepped finely.
- Gravity is uniform, the ground is flat, and the projectile is a point with no spin, so there is no Magnus force.
Where it stops holding. A spinning or non-spherical body, or speeds where the drag coefficient stops being roughly constant.
Numerical accuracy
- Measured error bound
- 2.7e-7 m in the range, about 8.3e-9 of the largest value reached
- How that was obtained
- Recomputed at five steps between 3.0e-4 s and 1.0e-3 s. The reported range moved across a window of 2.7e-7 m, which bounds the error without assuming a convergence order.
- Conditions
- 20 m/s at 45 degrees, 145 g, 74 mm sphere, DRAG ON. Drag is off by default, and without it the trajectory is solved in closed form with no integration error at all
The trajectory is fourth-order accurate, but the range is read where the flight crosses the ground, which lies between two samples. That crossing is interpolated, so the residual depends on where the sample grid happens to fall rather than shrinking smoothly as the step shrinks, and no single convergence order describes it.
Constants used: Standard gravity (g₀).
Compare the formulas: Projectile range with air resistance.
Common questions
What launch angle gives the maximum range?
With no air resistance and equal launch and landing heights, 45 degrees gives the maximum range. Launching from above the landing height lowers the optimum below 45 degrees, and adding air drag lowers it further. In this simulator, which holds the drag coefficient of its default 145 g, 74 mm sphere at 0.47, the best angle is 43 degrees at 20 m/s, 40 degrees at 40 m/s and 37 degrees at 60 m/s.
Why do two different angles give the same range?
Range depends on sin(2θ), and sin(2θ) is symmetric about 45 degrees. So 30 and 60 degrees produce the same range, as do 20 and 70. The steeper angle always takes longer and reaches a higher apex.
Does mass affect the trajectory?
Not in a vacuum. Removing drag leaves acceleration equal to g for every object, so mass cancels out. Once air resistance is enabled, mass matters, because drag force is independent of mass while the resulting deceleration is not.