Trajectory Calculator

Created by Luis Hoyos
Last updated: Jun 26, 2022

Welcome to our trajectory calculator, where you'll be able to find the projectile motion given the angle of trajectory, initial height, and initial velocity (or simply, speed).

This calculator focuses on finding the whole trajectory of a projectile using the trajectory formula and gives you the vertical position as a function of the horizontal displacement.

Trajectory formula

The formula with which this tool calculates the trajectory of a projectile is:

y=h+xtanαgx22V02cos2αy = h + x \tan{\alpha} - \frac{g x^2}{2 V_\text{0} ^2 cos^2{\alpha}}

where:

  • hh — Initial projectile height;
  • xx — Horizontal component of the projectile position;
  • yy — Projectile height (vertical position) at a specific horizontal distance xx;
  • α\alpha — Angle of launch (initial angle of trajectory);
  • gg — Gravity acceleration; and
  • V0V_\text{0} — Launch velocity.
Projectile motion image. Velocity, angle of launch, initial height, time of flight, distance and maximum height marked

As you can note, this is a vertical distance formula in terms of the horizontal distance xx.

Trajectory formula derivation

Where does the vertical distance formula come from?

  • First, let's remember the equations of motion for the horizontal (xx) and vertical (yy) positions:

    • x=Vxtx = V_x t
    • y=h+Vytgt2/2y = h + V_y t - g t^2/2
  • As the launch velocity (V0V_\text{0}) and its horizontal and vertical components (VxV_x and VyV_y) form a right triangle, we can say:

    • Vx=V0cosαV_x = V_\text{0}\cos{\alpha}
    • Vy=V0sinαV_y = V_\text{0}\sin{\alpha}
  • Now, let's solve for tt in the VxV_x equation and express it in terms of V0V_\text{0}:

    • x=Vxtx = V_x tt=xVx=xV0cosαt = \frac{x}{V_x} = \frac{x}{V_\text{0}\cos{\alpha}}
  • Replacing tt and VyV_y in the yy equation:

    • y=h+(V0sinα)(xV0cosα)g(xV0cosα)2/2y = h + (V_\text{0}\sin{\alpha}) (\frac{x}{V_\text{0}\cos{\alpha}}) - g (\frac{x}{V_\text{0}\cos{\alpha}})^2/2
    • y=h+xsinαcosαgx22V02cos2αy = h + x\frac{\sin{\alpha}}{\cos{\alpha}} - \frac{g x^2}{2 V_\text{0} ^2 \cos^2{\alpha}}
  • As sinαcosα=tanα\frac{\sin{\alpha}}{\cos{\alpha}} = \tan{\alpha}, then:

    • y=h+xtanαgx22V02cos2αy = h + x\tan{\alpha} - \frac{g x^2}{2 V_\text{0} ^2 \cos^2{\alpha}}

That's it! We've derived the trajectory formula.

How to use this trajectory calculator?

Imagine you have the parabolic water jet of the following image and want to calculate its trajectory.

Parabolic trajectory of water.
Water parabolic trajectory. Via Wikimedia Commons

Suppose the launch velocity of the water jet is 2 m/s, with a 50° angle and an initial height of 5 cm. Follow these steps to calculate the trajectory:

  1. Input 0.5 m/s in the "Velocity" box.
  2. For "Angle of launch," input 50 deg.
  3. In the "Initial height" box, select cm as the length unit and input 5 cm.
  4. That's it! The trajectory calculator should show you a plot with the height as a function of horizontal displacement, representing the projectile motion.

The trajectory of projectile motion is a simple quadratic relationship between height and distance. You can analyze this kind of curve and determine its features with the polynomial graph calculator.

Luis Hoyos
Velocity (V)
ft/s
Angle of launch (α)
deg
Initial height (y₀)
ft
Trajectory formula:
y = h + xtan(α) - gx²/2V₀²cos²(α)
plot of a trajectory in projectile motion
People also viewed…

Free fall

Our free fall calculator can find the velocity of a falling object and the height it drops from.

Schwarzschild radius

Discover the fundamental of black hole physics with our Schwarzschild radius calculator.

Velocity

Check the velocity calculator to determine how quickly an item moves using various methods.
main background