Flight Path Animator
Looking for a simpler version without the animation? Try the Projectile Motion Simulator.
m/s²
Initial Velocity (v₀)
m/s
Launch Angle (θ)
deg
Initial Height (h₀)
m
Horizontal: v₀x = 21.21 m/s
Vertical: v₀y = 21.21 m/s
Time of Flight
4.33
seconds
Maximum Height
22.94
m
Total Range
91.74
m

How to Read This Graph

  • Blue arc: the complete parabolic flight path. Each point on the arc is the exact (x, y) position of the projectile at a given moment in time.
  • Green dot: the launch origin at (0, h0). The small colored arrows at this point show the horizontal (v0x, cyan) and vertical (v0y, green) velocity components.
  • Red dot: the apex, the highest point of the arc where vertical velocity = 0 and the projectile begins its descent.
  • Orange dot: the landing point at (Range, 0), where the projectile returns to ground level.
  • Both axes auto-scale: no matter how large your inputs get, the arc always fills the frame cleanly without clipping.
Key Terms Explained
Projectile
Any object launched into the air and left to move under gravity alone, with no thrust or propulsion during flight. A ball, a bullet, and a water balloon are all projectiles.
Trajectory
The path a projectile follows through space from launch to landing. In ideal conditions with no air resistance, every trajectory is a parabola.
Parabola
A smooth, symmetric U-shaped curve described by a quadratic equation. Projectile paths are parabolas because vertical position is a quadratic function of time.
Initial Velocity (v0)
The speed at which the projectile is launched. Combined with the launch angle, it determines both how far and how high the object travels.
Vector Components
The horizontal (v0x) and vertical (v0y) parts of the initial velocity, found using cosine and sine of the launch angle. Each component governs one axis of motion independently.
Apex
The peak of the trajectory, where vertical velocity equals zero and the projectile transitions from rising to falling. Shown as the red dot on the canvas.
Gravitational Acceleration (g)
The constant downward acceleration due to gravity. On Earth: 9.81 m/s squared. It reduces the vertical velocity by 9.81 m/s every second, causing the parabolic arc.
Air Resistance
The drag force that opposes motion through air. Ignored in this simulator to keep the physics clean and educational. Real projectiles fly shorter due to drag.
Time of Flight
The total time from launch to landing, found by solving the quadratic y(t) = 0. It equals (v0y + sqrt(v0y squared + 2 g h0)) divided by g.
Range
The horizontal distance from the launch point to the landing point. Calculated as the horizontal velocity (v0x) multiplied by the total time of flight.

The Complete Guide to Projectile Motion and Vector Analysis

Projectile motion is one of the most foundational topics in introductory physics. Whether you are a student working through a textbook problem, a developer building a game physics engine, or simply curious about why a 45-degree launch angle produces the longest throw, this guide walks through every core concept with plain-language explanations tied directly to what you see on the canvas above.

How to Use This Simulator

Drag the three sliders to change initial velocity, launch angle, and starting height. Every change instantly redraws the arc, recalculates all three metrics, and updates the vector component chips. Try these experiments to build intuition:

Hold the angle fixed at 45 degrees and increase velocity. Watch the range and height both grow quadratically (doubling velocity quadruples range). Then hold velocity fixed and sweep the angle from 0 to 89 degrees: you will see the range peak at 45 degrees and the height peak at 89. Set h0 to 50 meters and repeat the angle sweep: the range now peaks below 45. Finally, try the Moon and Mars gravity presets to see how the same throw travels dramatically farther in lower gravity.

Breaking Velocity into Components

The first step in any projectile problem is decomposing the launch velocity into two perpendicular components. The horizontal component v0x = v0 times cosine(theta) describes how fast the projectile moves sideways. Because there is no horizontal force acting on it (in the drag-free model), v0x stays constant for the entire flight. The vertical component v0y = v0 times sine(theta) describes the initial upward speed. Gravity constantly reduces v0y at a rate of g every second, until it reaches zero at the apex, then continues pulling it downward through negative values until landing.

The cyan and green arrows at the launch point on the canvas visualize these two components. Their lengths are proportional to v0x and v0y relative to the total velocity. At 45 degrees, both arrows are equal length. At a shallow angle, the cyan (horizontal) arrow dominates. At a steep angle, the green (vertical) arrow dominates.

Solving for the Three Core Metrics

With v0x and v0y known, the three output metrics follow directly from kinematic equations. The vertical position at any time t is y(t) = h0 + v0y times t minus (g divided by 2) times t squared. Setting y(t) = 0 and solving the quadratic gives the time of flight: t = (v0y + square root of (v0y squared + 2 times g times h0)) divided by g. Note that only the positive root is physically meaningful. Maximum height is the y-value at the apex, found when dy/dt = 0 (i.e., when vertical velocity = 0): H = h0 + v0y squared divided by (2 times g). Total range is horizontal velocity times time: R = v0x times t. This simulator performs all three calculations in your browser with no server involved.

Comparing Gravity Environments

Switching between gravity presets reveals how profoundly g affects flight. On the Moon (g = 1.62 m/s squared, about one-sixth of Earth), the same throw covers roughly six times the distance and reaches six times the height. This happens because both range and maximum height are inversely proportional to g: halving g roughly doubles both values. On Mars (g = 3.72 m/s squared), the enhancement is less dramatic but still striking: a 45-degree kick at 30 m/s covers about 245 meters on Mars versus 91 meters on Earth. The Custom preset lets you explore hypothetical planets, asteroid surfaces, or engineering environments where effective gravity differs from Earth.

Why the Optimal Angle Depends on Launch Height

A common misconception is that 45 degrees always maximizes range. It does when the launch and landing elevations are equal, but not otherwise. When h0 is greater than zero, the projectile already has a head start in altitude. That extra potential energy translates to extra time of flight, even at a shallower angle. The result is that a lower angle (somewhere between 30 and 44 degrees, depending on the height and velocity) produces a longer range than 45 degrees. The exact optimal angle requires calculus to derive, but you can find it experimentally in this simulator by holding other inputs fixed and sweeping the angle slider while watching the range output.

Frequently Asked Questions

Why does a 45-degree launch angle usually yield the maximum distance?
When launching from ground level with no air resistance, the horizontal range formula is R = (v0 squared times sin(2 theta)) divided by g. The sine function reaches its maximum value of 1 when its argument is 90 degrees, which means 2 theta = 90, so theta = 45 degrees. At this angle you achieve the ideal tradeoff: you are going fast enough horizontally to cover ground quickly, and you stay in the air long enough to benefit from that speed. Increase the angle above 45 and you gain height but sacrifice horizontal speed. Drop below 45 and you gain horizontal speed but land before you can use it. Move the angle slider around 45 degrees in the simulator and watch the Range metric peak and then decline on both sides.
How does launching from an elevated height change the optimal angle?
When a projectile launches from above the landing zone, it has more time in the air than a ground-level launch at the same angle. That extra fall time is essentially free, meaning the projectile does not need to earn it through a steep upward launch. Because of this, a lower angle (less than 45 degrees) becomes more efficient: you trade some of the upward component for more horizontal speed, and the extra fall time from the starting height compensates for the reduced air time. Set h0 to 50 or 100 meters and sweep the angle slider from 20 to 55 degrees while watching the Range output. You will see the maximum shift clearly below 45. The higher h0 is relative to v0, the more the optimal angle shifts downward.
Does the mass of the object change its trajectory in this simulation?
No, and this surprises many students. Mass has absolutely no effect on trajectory in an ideal drag-free simulation. The reason: gravity applies a force proportional to mass (F = m times g), but Newton's second law says acceleration = force divided by mass (a = F / m). Substituting: a = m times g divided by m = g. The mass terms cancel completely, leaving only the gravitational acceleration g. This means a golf ball, a cannonball, and a truck launched at the same speed and angle in a vacuum follow exactly the same parabolic path. Galileo reportedly demonstrated this by dropping two spheres of different masses from the Tower of Pisa and observing they hit the ground simultaneously. Because mass has no effect on ideal projectile motion, this simulator correctly omits it as an input.
What are vector components and why are they used to calculate flight?
A vector is a quantity with both size (magnitude) and direction. The launch velocity is a vector: it has a speed (say, 30 m/s) and a direction (say, 45 degrees above horizontal). To solve projectile problems, we decompose that single diagonal vector into two perpendicular parts using trigonometry. The horizontal component v0x = v0 times cosine(theta) describes purely sideways motion. The vertical component v0y = v0 times sine(theta) describes purely upward motion. The key insight is that these two directions are completely independent in the no-drag model. Gravity only acts on the vertical component, so v0x never changes while v0y decreases steadily at rate g. This separation transforms a complicated 2D problem into two simple 1D problems: x(t) = v0x times t (constant speed sideways) and y(t) = h0 + v0y times t minus 0.5 times g times t squared (quadratic upward then downward). Each equation can be solved separately using basic algebra.
Why does this simulator ignore air resistance (drag)?
Air resistance depends on many variables simultaneously: the object's speed (drag force scales with the square of velocity), its cross-sectional area, its shape and surface roughness, and the density of the surrounding air. Accurately including all of these requires the user to input mass, size, shape, and an experimentally determined drag coefficient for the specific object. More fundamentally, once drag is included the trajectory is no longer a clean parabola: it becomes an asymmetric curve that can only be calculated numerically, step by step, because there is no closed-form equation. That would make this tool far more complex without adding proportional educational value. The drag-free ideal model is what introductory physics courses teach precisely because it produces the clean quadratic parabolas that can be solved with algebra and that connect directly to the visual arc. For applications requiring realistic drag (ballistics, sports science, aerospace), dedicated numerical simulation software is the appropriate tool.
This tool models ideal projectile motion only. Air resistance, Magnus effect, wind, spin, and other real-world forces are not included. All outputs are for educational purposes and should not be used for engineering calculations, safety planning, or any application requiring real-world ballistic accuracy.