A projectile follows a parabola because gravity acts only downwards while nothing acts horizontally. That single asymmetry is the whole subject: the horizontal velocity stays at v₀cos θ forever, the vertical velocity loses g every second, and the shape falls out of combining the two.
This simulator solves the trajectory with the release height included, which is the case that actually appears in a lab — a ball leaving a ramp on a bench, not a cannon on flat ground. Try the 45° preset, then change only the height and watch the optimum angle drift below 45°.
Split the velocity, then solve one direction at a time
The initial velocity decomposes into vx = v₀cos θ and vy = v₀sin θ. Horizontally there is no acceleration, so distance is simply vx·t. Vertically the motion is the same as a ball thrown straight up, with position h₀ + vy·t − ½gt².
Everything else is algebra on those two expressions. The apex is where the vertical velocity reaches zero, at t = vy/g. The flight time is the positive root of the height equation. The range is the horizontal speed times that time — which is why range does not peak at 45° once the release height is above zero.
The optimum angle is not always 45°
On flat ground with no drag, range is maximised at exactly 45°. Raise the release point and the optimum shifts downwards, because the extra vertical drop time rewards a flatter, faster trajectory. From 1.5 m at 12 m/s the best angle is closer to 40°.
With drag the optimum drops further, often to 30–35°, and the trajectory becomes asymmetric: the descending branch is steeper than the ascending one. This simulator does not model drag, so treat its range as an upper bound for a real throw.
What the readouts mean
Impact speed exceeds launch speed whenever the release point is above the landing plane — the extra comes from the potential energy you gave away.
| Quantity | Expression | Note |
|---|---|---|
| Range | vx·t | Horizontal distance to the landing plane |
| Apex | h₀ + vy²/2g | Measured from the ground you land on |
| Flight time | (vy + √(vy² + 2gh₀))/g | Positive root of the height equation |
| Impact speed | √(vx² + vy_impact²) | Greater than launch speed when h₀ > 0 |
| Impact angle | atan(|vy_impact|/vx) | Measured below horizontal |
Where this model stops
Air resistance scales with the square of speed for typical projectiles, so the error grows fast: a table-tennis ball loses more than half its range compared with the vacuum case, while a dense, small object loses a few percent. Spin adds Magnus lift, which can extend or shorten the path depending on direction.
The model also assumes a flat landing plane and constant gravity. Over a few hundred metres the curvature of the Earth and the variation of g with height both matter; over a few metres they are irrelevant.
Frequently asked questions
Why does a 45° launch not give the longest range from a bench?
Because you already have height to fall through. A flatter launch keeps more speed horizontal while the extra drop time supplies the flight duration, so the optimum angle falls below 45° — typically 38–42° for a bench-height release.
Is the horizontal velocity really constant?
Only when drag is ignored. With drag, the horizontal component decays continuously, which is why the real trajectory is not a symmetric parabola and why the descending side is steeper.
Why does impact speed not equal launch speed?
Energy conservation: if the projectile lands lower than it started, the lost potential energy appears as kinetic energy. On level ground with no drag, the two are equal.
What changes on the Moon?
Gravity drops to about 1.62 m/s², so flight time roughly doubles for the same launch and range grows by the same factor. With no atmosphere there is also no drag, which is why the vacuum model is much closer to reality there than on Earth.