Back

Projectile motion

Change launch speed, angle and height to explore trajectory and range.

Parameters
Presets
Initial velocity v₀
m/s
Launch angle θ
°
Launch height h
m
GravityAcceleration g
m/s²
Moon: 1.62 / Mars: 3.72 / Jupiter: 24.8
Air resistance
Quadratic drag k [1/m]
Results
—
Range R [m]
—
Maximum Height H [m]
—
Flight time T [s]
—
Landing speed [m/s]
Visualization
Theory & Key Formulas

Decompose into horizontal and vertical components and solve analytically:

$$x(t) = v_0\cos\theta \cdot t$$ $$y(t) = h_0 + v_0\sin\theta \cdot t - \frac{1}{2}g t^2$$

Maximum height: $t_{max}= \dfrac{v_0\sin\theta}{g}$, $H = h_0 + \dfrac{v_0^2\sin^2\theta}{2g}$

Landing time: $y(t_{land})=0$ Solve to get $R = v_0\cos\theta \cdot t_{land}$

Quadratic drag: $\ddot{\mathbf{r}}=\mathbf{g}-k|\mathbf{v}|\mathbf{v}$, with $k=\rho C_d A/(2m)$ [1/m], integrated using RK4. Presets set launch speed, angle, height and g; the drag setting is retained.

Formula reference

The range and flight-time formulas below assume no air resistance and equal launch and landing heights.

R = v₀² sin(2θ) / g
H = v₀² sin²θ / (2g)
T = 2v₀ sinθ / g

What this calculator covers

Freely set initial velocity, launch angle, height, and gravity to render ballistic trajectories in real time. Also simulate Moon, Mars, and Jupiter gravity environments.

What is Projectile Motion?

Read the explanatory dialogue
🙋
What exactly is "projectile motion"? Is it just the path a thrown ball takes?
🎓
Basically, yes! It's the motion of any object launched into the air, subject only to gravity and air resistance. The key is that after launch, the only force (initially) is gravity pulling it down. In this simulator, you control the launch with the Initial velocity v₀ and Launch angle θ sliders. Try setting a high angle and see how the path changes.
🙋
Wait, really? So if I'm on the Moon, the ball would go much farther because gravity is weaker. How does the simulator show that?
🎓
Exactly right! That's the power of the GravityAcceleration g parameter. The preset buttons for Earth, Moon, and Mars instantly change this value. For instance, set the same velocity and angle on Earth and then click "Moon". You'll see the trajectory becomes a much wider arc because the downward pull is only about 1/6th as strong.
🙋
What about the "Air resistance" checkbox? In real life, a baseball is affected by air, right?
🎓
Drag reduces horizontal speed and changes the path from a parabola. Turn on air resistance and increase k [1/m] to compare the range. This is an educational constant-coefficient model, not a rocket-flight calculation.

Physical Model & Key Equations

The core idea is to split the motion into independent horizontal (x) and vertical (y) components. Without air resistance, the horizontal velocity is constant, while the vertical motion is under constant gravitational acceleration.

$$x(t) = v_0\cos\theta \cdot t$$ $$y(t) = h_0 + v_0\sin\theta \cdot t - \frac{1}{2}g t^2$$

Where:
$v_0$ = Initial velocity (m/s)
$\theta$ = Launch angle (degrees)
$h_0$ = Launch height (m)
$g$ = Gravitational acceleration (m/s²)
$t$ = Time (s)
These are the equations plotted as the "Analytical Solution" in the simulator.

With air resistance, the motion becomes more complex. A drag force, proportional to the square of the velocity, acts opposite to the direction of motion. This requires numerical simulation (like the "Simulation" path in the tool), which is standard in engineering software.

$$F_d = \frac{1}{2} \rho C_d A v^2$$

Where:
$F_d$ = Drag force (N)
$\rho$ = Air density (kg/m³)
$C_d$ = Drag coefficient
$A$ = Cross-sectional area (m²)
$v$ = Velocity (m/s)
The input is k = ρCdA/(2m) [1/m], not the dimensionless Cd alone. Density, area, mass and Cd are combined into a constant coefficient; wind, lift, spin and speed-dependent Cd are not modeled.

Real-World Applications

Classroom comparisons: Change one launch condition at a time to compare a ball's ideal range, height and flight time. This model has no propulsion or attitude dynamics and is not a rocket-flight solver.

Sports Science and Equipment Design: Analyzing the flight of a baseball, golf ball, or javelin helps athletes optimize their launch angle and velocity. Equipment manufacturers use air resistance models to design dimples on golf balls or the surface texture of soccer balls for optimal flight.

Drop Velocity Calculation for Impact Tests: In automotive safety testing, engineers need to know the exact speed at which a crash test dummy or component will hit the ground if dropped from a specific height. This simulator's equations provide the foundational physics for those calculations.

Model limits: Gravity is constant, the landing plane is y=0, and air is still. The model omits terrain, planetary curvature, changing density and heating. It must not be used for re-entry, navigation or safety certification.

Common Misunderstandings and Points to Note

Velocity components: 10 m/s at 60° has horizontal speed 5 m/s; 20 m/s at 30° has horizontal speed 17.32 m/s. Compare both speed and angle, not just range.

Drag units: Enter k=ρCdA/(2m) in 1/m, not a bare Cd value. This is a quadratic-drag model; it does not model linear drag or predict a particular ball's measured aerodynamics.

Height: Launch height is 0–100 m above a flat y=0 landing plane. Negative heights and uphill landing surfaces are not supported. A horizontal launch at ground level has zero flight time in this model.

How to Use

  1. Enter initial velocity v0 in m/s (typical range 10–100 m/s for ballistic applications)
  2. Set launch angle theta in degrees (0–90°; 45° maximizes range on level ground)
  3. Input initial height h0 in meters above ground level
  4. Select gravity: Earth (9.81 m/s²), Moon (1.62 m/s²), or Mars (3.72 m/s²). These presets do not set atmospheric conditions
  5. Click Simulate to compute trajectory; observe real-time path and landing parameters
  6. Drag can be toggled at any gravity. Turn it OFF for a vacuum comparison, including the Moon

Worked Example

Method: analytic vacuum solution; RK4 with a y=0 landing event for quadratic drag. References: OpenStax projectile motion, NASA drag equation. Shared calculation source used on this page.

Select Earth and turn drag OFF: v₀=30 m/s, θ=45°, h₀=0 m, g=9.81 m/s² gives R=91.7431 m, H=22.9358 m, T=4.32481 s and landing speed 30 m/s. Check using T=2v₀sinθ/g, R=v₀cosθ·T and H=(v₀sinθ)²/(2g). For a 20 m elevated launch, replace T with (v₀sinθ+√((v₀sinθ)²+2gh₀))/g.

Practical Notes

  1. For Moon missions (g = 1.62 m/s²), identical launch parameters yield 6× greater range; optimal angle remains 45° for level terrain
  2. There is no universal speed threshold or percentage correction for drag: compare the same inputs with drag ON and OFF
  3. Without drag, landing speed is √(v₀²+2gh₀). At ground-level launch it equals v₀, regardless of angle
  4. Verify results: range formula R = (v0² sin(2θ))/g applies only on level ground with zero air resistance

🎬 Watch it in motion

Projectile Motion | the safety parabola you can't beat #Shorts
Projectile Motion | the safety parabola you can't beat #Shorts