# Projectile Motion Simulator - Air Drag, Optimal Angle, Trajectories

> Animated projectile simulator: set speed, angle, height and gravity (Earth, Moon, Mars, Jupiter), add air drag (RK4), compare paths and find the best angle.

- URL: https://qilingtools.com/en/math/projectile
- Category: Physics Tools (https://qilingtools.com/en/physics)
- Tags: [Physics](https://qilingtools.com/en/tags/physics), [Education](https://qilingtools.com/en/tags/education)
- Last updated: 2026-10-26
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Set the launch speed, angle and height with the sliders, or press and drag on the canvas to aim and release to fire. The projectile flies along its path while the time, position, velocity components and speed update live. Turn on air resistance to integrate quadratic drag with RK4 using realistic values for a baseball, soccer ball, ping-pong ball and more. The no-drag parabola stays on screen for comparison, and the tool searches numerically for the launch angle that gives the longest range with drag. You can keep up to 8 trajectories on the canvas and change parameters between shots to compare them.

## How to use

1. Set the launch speed, angle and height, and pick a planet (or enter your own g)
2. Optionally turn on air resistance and choose a ball, or enter the mass, C_d, diameter and air density
3. Press Launch, or drag on the canvas to aim and release to fire, and watch the path and velocity vectors
4. Compare range, max height, flight time, impact speed and best angle with and without drag, and keep trajectories to overlay them

## Features

- Exact no-drag solution side by side with an RK4 quadratic-drag simulation
- Gravity presets for Earth, Moon, Mars and Jupiter; drag presets for common balls
- Drag on the canvas to aim and release to launch (touch-friendly)
- Live position, velocity components, speed and velocity vectors
- Best launch angle for maximum range, with and without drag
- Overlay several kept trajectories and scrub through time

## FAQ

### Why is 45° best without air resistance, but lower with it?

From level ground with no drag the range is R = v₀² sin 2θ / g, which peaks at θ = 45°. With drag, the longer the projectile stays in the air and the farther it travels, the more speed it loses, and high lobs suffer most. So a flatter launch wins. The stronger the drag (light, large or fast balls), the lower the best angle: a ping-pong ball's can be in the low 30s or below. Launching from a height also lowers the best angle even without drag: θ* = arctan(v₀ / √(v₀² + 2gh₀)).

### How is quadratic drag computed, and why numerically?

At typical ball speeds, air resistance is roughly proportional to the square of the speed, F = ½ρC_dAv², and points opposite the velocity. As an acceleration that is a = −g ĵ − k|v|v with k = ρC_dA / 2m. Because |v| contains both vₓ and v_y, the horizontal and vertical motions are coupled and there is no elementary closed form. The tool integrates with fourth-order Runge–Kutta at about 1/2000 of the flight time per step and finds the landing time (y = 0) by bisection.

### What does terminal velocity mean here?

As an object falls, drag grows with speed until it balances gravity. The acceleration is then zero and the speed stops increasing: that is the terminal velocity v_t = √(g/k) = √(2mg / ρC_dA). It is the easiest way to judge how much drag matters. It's about 40 m/s for a baseball, 27 m/s for a soccer ball and only about 9 m/s for a ping-pong ball. Well below v_t drag barely changes the path. Near or above it, the trajectory becomes lopsided, with a much steeper descent.

### Why is the path with drag not symmetric?

Without drag the horizontal velocity is constant, so the rise and fall mirror each other about the apex. With drag the horizontal velocity keeps falling, so after the apex the projectile covers less ground in the same time. The descent is steeper and shorter than the climb, the impact speed is lower than the launch speed and the impact angle is steeper than the launch angle. The results table shows how much energy drag took away.

### What happens if I throw something on the Moon?

The Moon's gravity is about 1.62 m/s², one sixth of Earth's, and there is essentially no atmosphere. Since R = v₀² sin 2θ / g, the same throw goes about six times as far and six times as high as on Earth without drag, and stays up six times longer. Choosing the Moon preset sets the air density to zero, so you see a pure parabola.

## Related tools

- [Unit Converter](https://qilingtools.com/en/math/unit): Free online unit converter: length, area, volume, weight, temperature, time, speed, data, pressure, energy and angle — one value converts every unit at once.
- [Vector Calculator](https://qilingtools.com/en/math/vector): Free online vector calculator for 2D and 3D: addition, scalar multiples, dot and cross products, magnitude, angle, unit vector and projections, with checks.
- [Significant Figures Calculator](https://qilingtools.com/en/math/significant-figures): Free online sig fig calculator: count significant figures digit by digit, round to N sig figs or decimals with six rounding modes, and compute by sig fig rules.
- [Tone Generator](https://qilingtools.com/en/audio/tone-generator): Free online tone generator: sine, square, sawtooth and triangle waves from 1 to 20,000 Hz, a note picker, sweeps, white/pink/brown noise and a WAV download.
- [Audio Spectrogram](https://qilingtools.com/en/audio/spectrogram): Free online spectrogram generator: see time, frequency and level from a Hann-windowed STFT, with FFT size, log axis, dB range and colour maps. Exports PNG.
- [Decibel Meter](https://qilingtools.com/en/audio/decibel): Free online decibel meter: measure noise with your mic in real time, A/C/Z weighting, fast/slow response, min/max/average/Leq, 60-second graph and calibration.
- [Physics Formula Calculator](https://qilingtools.com/en/math/physics): Physics formulas solved with steps: SUVAT, projectiles, Newton’s laws, inclines, energy, Ohm’s law, resistors, RC, buoyancy, waves, lenses, gravity.
- [Fourier Series & FFT Visualizer](https://qilingtools.com/en/math/fourier): Fourier series coefficients and animated partial sums for square, sawtooth, triangle or any function (Gibbs), draw-your-own epicycles and FFT spectra.
