Projectile Motion
Simulating parabolic trajectories under gravity.
By Riano · Published · Updated · Report a correction
Projectile motion: separate the horizontal and vertical questions
Two launches can land at the same horizontal distance while reaching different heights. Calculate a level-ground flight, compare complementary launch angles, and use the Riano animation to connect the equations with the shape of the path. The calculation assumes constant downward gravity and no air resistance.
Resolve the launch velocity
Choose the launch point as (0, 0), with upward y positive. A launch speed v0 at angle θ gives vx = v0 cos θ and initial vy = v0 sin θ. Horizontal acceleration is zero, while vertical acceleration is −g.
x(t) = v0 cos θ · t; y(t) = v0 sin θ · t − gt2/2
Setting y(t) = 0 gives the nonzero return time T = 2v0 sin θ/g. Substituting that time into x(t) gives range R = v02 sin(2θ)/g. At the apex the vertical velocity is zero, giving H = v02 sin2 θ/(2g).
Worked example: 50 m/s at 45 degrees
Use v0 = 50 m/s, θ = 45° and g = 9.8 m/s2. Keep the units throughout the calculation; the speed is not a distance and the angle is converted when evaluating trigonometric functions.
- Both initial velocity components are 50/√2, approximately 35.3553 m/s.
- The return time is 2 × 35.3553 / 9.8, approximately 7.2154 s.
- The range is 502/9.8, approximately 255.1020 m.
- The peak height is 502 × 0.5 / 19.6, approximately 63.7755 m.
| Angle | Range (m) | Peak height (m) |
|---|---|---|
| 30° | 220.9248 | 31.8878 |
| 45° | 255.1020 | 63.7755 |
| 60° | 220.9248 | 95.6633 |
The 30° and 60° ranges agree because sin 60° = sin 120°. Their heights differ because the vertical launch components differ. Under these assumptions, 45° maximizes range at fixed speed; it does not maximize height.
Use the animation as a model comparison
Open Projectile Motion. Its controls are Initial Velocity, Launch Angle and Gravity, with a “Launch Again” button.
- Set speed to 50, angle to 45 and gravity to 9.8. Launch again and identify the rising part, apex and falling part of the path.
- Compare launches at 30° and 60°. Predict the common physical range and the different peak heights using the table before watching.
- Keep the angle and gravity fixed and double the speed from 50 to 100. Predict four times the range and height, and twice the flight time.
- Return to speed 50 and angle 45, then double gravity to 19.6. The analytic range, height and flight time each halve.
The canvas rescales to fit the predicted trajectory, so equal pixel widths across two settings do not establish equal physical ranges. The module does not provide numerical readouts for every value in the table. Its animation advances by 0.05 model seconds per update rather than measuring real elapsed time.
Distinguish the equations from the discrete animation
The analytic formulas assume launch and landing at the same elevation, positive constant gravity and no drag, wind or lift. With a different landing height, solve the vertical equation for the appropriate impact time; the simple level-ground range formula no longer applies. With drag, the maximum-range angle need not be 45°.
The animation updates vertical velocity and then position in finite time steps. It therefore approximates the continuous parabola and can cross the ground between steps. It should not be used to verify the analytic table to four decimal places. A changed canvas scale or a shorter drawn path is not evidence that gravity changed the horizontal acceleration.
Check a boundary prediction
At a 90° launch, the ideal horizontal range is zero but the flight time is positive. At a 0° launch from ground level, the positive-time airborne part disappears in this ideal model. Those are different limits, even if a renderer must take special care to display either one.
Source for the ideal model
OpenStax University Physics Volume 1, Projectile Motion develops independent horizontal and vertical motion and the level-ground range relation. The numerical table and comparison with Riano's finite-step animation are calculated here for the implemented controls.
Experience it interactively
Adjust parameters, observe in real time, and build deep intuition with Riano’s interactive Projectile Motion module.
Try Projectile Motion on Riano →