Projectile Motion Calculator

Pri Geens

Pri Geens

Projectile Motion Calculator

Trajectory Mechanics

Horizontal Range (Distance)
Maximum Height (Apex)
Total Time of Flight
Calculations assume a uniform gravitational field and exclude aerodynamic drag (air resistance).

What Is a Projectile Motion Calculator?

A projectile motion calculator is a tool that applies kinematic equations to predict how far, how high, and how long an object travels when launched at a given velocity and angle. It assumes a uniform gravitational field and excludes aerodynamic drag — the same simplifying assumptions used in introductory physics. Once you supply an initial velocity, launch angle, starting height, and gravitational acceleration, the calculator resolves the full parabolic trajectory instantly. Scientists, students, sports analysts, and simulation developers use it to obtain a clean theoretical baseline before adding real-world corrections like air resistance or variable gravity.

How the Projectile Motion Formulas Work

Every calculation begins by converting the launch angle from degrees to radians using the factor 0.01745329251 (π ÷ 180) stored in the calculator. The initial velocity is then split into horizontal and vertical components:

Here v₀ is the initial velocity in m/s and θ_rad is the angle in radians. The horizontal component v₀x stays constant throughout the flight because no horizontal force acts on the projectile. The vertical component v₀y decreases as gravity decelerates the object on the way up and accelerates it back down.

Time of Flight

The calculator uses the quadratic solution for vertical displacement. It computes the discriminant first, then finds the time when the projectile returns to the landing elevation:

Where g is the gravitational acceleration in m/s² (default 9.80665 for Earth) and h₀ is the initial height in metres. If the discriminant is negative the inputs produce an invalid trajectory and an error message appears. If the computed time is negative the calculator floors it to zero.

Horizontal Range and Maximum Height

When the vertical launch component is zero or negative — a horizontal or downward shot — the object never rises above its starting point, so maximum height equals the initial height h₀.

Worked Example

Default inputs: v₀ = 20 m/s, angle = 45°, h₀ = 0 m, g = 9.80665 m/s².

  1. Angle in radians: 45 × 0.01745329251 = 0.7854 rad
  2. v₀x = 20 × cos(0.7854) = 14.142 m/s; v₀y = 20 × sin(0.7854) = 14.142 m/s
  3. Discriminant: 14.142² + 2 × 9.80665 × 0 = 199.997
  4. Time of flight: (14.142 + √199.997) ÷ 9.80665 = 2.886 s
  5. Range: 14.142 × 2.886 = 40.800 m
  6. Max height: 0 + (14.142² ÷ (2 × 9.80665)) = 10.194 m

At 45° from ground level this is the theoretical maximum range for a 20 m/s launch under Earth gravity — a useful sanity check when you first open the tool.

How to Use the Projectile Motion Calculator: Step-by-Step

  1. Enter Initial Velocity. Type the launch speed in metres per second (m/s) into the Initial Velocity field. The value must be zero or greater.
  2. Enter Launch Angle. Type the angle in degrees into the Launch Angle field. The calculator accepts any value strictly between −89° and 89° — 90° and −90° are excluded because a perfectly vertical launch produces infinite or undefined range.
  3. Enter Initial Height. If the projectile launches from above the ground — a cliff, ramp, or raised platform — type that height in metres. Enter 0 for a ground-level launch.
  4. Set Gravitational Acceleration. The field defaults to 9.80665 m/s² (standard Earth gravity). Change this value to model trajectories on the Moon (1.62 m/s²), Mars (3.72 m/s²), or any other surface. The value must be greater than zero.
  5. Click Calculate. The results panel appears with three outputs: Horizontal Range (Distance), Maximum Height (Apex), and Total Time of Flight.
  6. Click Reset to restore all inputs to their defaults (20 m/s, 45°, 0 m, 9.80665 m/s²) and hide the results.

Range is how far the projectile travels horizontally before landing. Maximum height is the highest point of the parabolic arc. Time of flight is the total seconds the object is airborne. All three values update together each time you click Calculate, so you can quickly compare results across different input combinations.

When Should You Use This Projectile Motion Calculator?

Comparing Trajectories Across Planetary Bodies

The editable gravitational acceleration field is the feature that sets this tool apart. On the Moon (g = 1.62 m/s²), the same 20 m/s launch at 45° produces a range of roughly 247 m — about six times the Earth result. On Mars (g = 3.72 m/s²) the range is approximately 107 m. Space mission designers, astronomy educators, and science communicators use comparisons like these to illustrate how dramatically gravity shapes ballistic trajectories.

Physics Homework and Exam Preparation

Students working through classical mechanics problems can use the calculator to check hand-calculated answers before submission. The step-by-step approach of entering each variable separately — velocity, angle, height, gravity — mirrors the way kinematic equations are set up in textbooks, making it easy to trace where a manual calculation diverged from the correct result.

Sports and Ballistics Analysis

Coaches and athletes use projectile motion principles to optimize launch conditions in javelin, shot put, long jump, and golf. The vacuum-environment baseline the tool provides shows the theoretical ceiling for a given speed and angle. The gap between that theoretical maximum and actual measured distances represents the combined effect of air resistance, spin, and wind — useful data for aerodynamics research.

Game Development and Simulation

Game developers prototype arcs for thrown objects, artillery shells, and gravity-affected abilities before writing physics engine code. By adjusting the gravity field to match a game world’s custom gravitational constant, developers get exact trajectory values they can translate directly into engine parameters — saving time versus trial-and-error in the engine itself.

Frequently Asked Questions

What is projectile motion?

Projectile motion is the two-dimensional path an object follows when launched through the air under constant gravitational acceleration and no other horizontal force. The horizontal velocity stays constant while gravity continuously changes the vertical velocity, producing a parabolic arc. This calculator solves that arc for range, maximum height, and flight time from any initial conditions.

Why does the calculator not accept a 90-degree launch angle?

A launch angle of exactly 90° means the projectile goes straight up. The horizontal velocity component is zero, so the horizontal range is zero and the flight time formula still works — but the range result is trivially zero regardless of speed. The calculator enforces angles strictly between −89° and 89° to keep all three outputs physically meaningful and avoid division-edge ambiguities.

How do I calculate projectile range on the Moon?

Enter your initial velocity and launch angle as normal, set Initial Height to 0, and change the Gravitational Acceleration field to 1.62 m/s² — the Moon’s surface gravity. The calculator applies the same kinematic formulas with this lower value, returning a range roughly six times greater than the equivalent Earth launch at the same velocity and angle.

What angle gives the maximum range for a projectile?

For a launch from ground level (h₀ = 0), a 45° angle maximises horizontal range for any given initial speed and gravitational value. This is because 45° produces equal horizontal and vertical velocity components, optimally balancing flight time against forward speed. When the initial height is above zero, the optimal angle for maximum range shifts below 45°.

Does this calculator account for air resistance?

No. The calculator assumes a uniform gravitational field and zero aerodynamic drag. This is the standard vacuum-environment assumption in introductory kinematics and gives the theoretical maximum range and height. Real trajectories are shorter because air resistance opposes the velocity vector throughout the flight. Apply a drag coefficient correction to convert the vacuum result to a real-world estimate.

What happens if I enter a negative launch angle?

A negative launch angle means the projectile fires downward from the horizontal plane. The calculator accepts angles down to −89°. With a positive initial height, a downward angle produces a shorter flight time and shorter range than a horizontal launch from the same height. From ground level (h₀ = 0) a negative angle results in immediate ground impact and a near-zero range.

What units does the projectile motion calculator use?

All inputs and outputs use SI units. Initial velocity is in metres per second (m/s), angles in degrees, height in metres (m), and gravitational acceleration in m/s². Range and maximum height are reported in metres; time of flight in seconds. Results display to three decimal places for precision when comparing closely spaced input scenarios.