Hitting a Target: The Two Possible Angles

April 12, 2026

Problem

Find the launch angle needed to hit a target 50 meters away and 10 meters high with initial speed 25 m/s

Explanation

A target sits at (xt,yt)(x_t, y_t). You have a fixed launch speed v0v_0. What angle should you fire? Surprisingly, there are usually two valid answers — a flat shot and a high lob — both of which pass through the target. Solving this requires turning the trajectory equation into a quadratic in tanθ\tan\theta.

The Physics

Start from the trajectory equation:

y=xtanθgx22v02cos2θy = x\tan\theta - \dfrac{g\,x^{2}}{2 v_0^{2}\cos^{2}\theta}

The trick is to use the identity sec2θ=1+tan2θ\sec^{2}\theta = 1 + \tan^{2}\theta, which lets us rewrite 1/cos2θ=1+tan2θ1/\cos^{2}\theta = 1 + \tan^{2}\theta. After substitution and rearrangement, the equation becomes a quadratic in tanθ\tan\theta:

gxt22v02tan2θ    xttanθ  +  (yt+gxt22v02)=0\dfrac{g\,x_t^{2}}{2 v_0^{2}}\,\tan^{2}\theta \;-\; x_t\tan\theta \;+\; \left(y_t + \dfrac{g\,x_t^{2}}{2 v_0^{2}}\right) = 0

The two solutions (when the discriminant is non-negative) give a low-angle and a high-angle trajectory.

Step-by-Step Solution

Given:

  • Launch speed: v0=25  m/sv_0 = 25\;\text{m/s}
  • Target position: (xt,yt)=(50,10)  m(x_t, y_t) = (50, 10)\;\text{m}
  • Gravity: g=9.81  m/s2g = 9.81\;\text{m/s}^{2}

Find: The two launch angles (if any) that hit the target.


Step 1 — Compute the convenient constant A=gxt22v02A = \dfrac{g\,x_t^{2}}{2 v_0^{2}}.

A=9.81×(50)22×(25)2=9.81×25001250=24525125019.620A = \dfrac{9.81 \times (50)^{2}}{2 \times (25)^{2}} = \dfrac{9.81 \times 2500}{1250} = \dfrac{24525}{1250} \approx 19.620

Step 2 — Set up the quadratic in u=tanθu = \tan\theta.

The quadratic is Au2xtu+(yt+A)=0A\,u^{2} - x_t\,u + (y_t + A) = 0:

19.620u250u+(10+19.620)=019.620\,u^{2} - 50\,u + (10 + 19.620) = 0

19.620u250u+29.620=019.620\,u^{2} - 50\,u + 29.620 = 0

So we have the standard quadratic au2+bu+c=0a\,u^{2} + b\,u + c = 0 with:

a=19.620b=50c=29.620a = 19.620 \qquad b = -50 \qquad c = 29.620

Step 3 — Compute the discriminant Δ=b24ac\Delta = b^{2} - 4ac.

Δ=(50)24(19.620)(29.620)\Delta = (-50)^{2} - 4(19.620)(29.620)

=25004×581.14= 2500 - 4 \times 581.14

=25002324.58= 2500 - 2324.58

Δ175.42\Delta \approx 175.42

Since Δ>0\Delta > 0, the target is reachable and there are two real solutions.

Step 4 — Apply the quadratic formula.

u=b±Δ2a=50±175.422×19.620=50±13.24439.240u = \dfrac{-b \pm \sqrt{\Delta}}{2a} = \dfrac{50 \pm \sqrt{175.42}}{2 \times 19.620} = \dfrac{50 \pm 13.244}{39.240}

The two roots are:

ulow=5013.24439.240=36.75639.2400.9367u_{\text{low}} = \dfrac{50 - 13.244}{39.240} = \dfrac{36.756}{39.240} \approx 0.9367

uhigh=50+13.24439.240=63.24439.2401.6117u_{\text{high}} = \dfrac{50 + 13.244}{39.240} = \dfrac{63.244}{39.240} \approx 1.6117

Step 5 — Take the arctangent of each root.

θlow=arctan(0.9367)43.13°\theta_{\text{low}} = \arctan(0.9367) \approx 43.13°

θhigh=arctan(1.6117)58.18°\theta_{\text{high}} = \arctan(1.6117) \approx 58.18°

Step 6 — Verify by plugging θlow\theta_{\text{low}} back in.

Quick check at θ=43.13°\theta = 43.13°:

v0x=25cos(43.13°)18.25  m/sv_{0x} = 25\cos(43.13°) \approx 18.25\;\text{m/s}

v0y=25sin(43.13°)17.08  m/sv_{0y} = 25\sin(43.13°) \approx 17.08\;\text{m/s}

t=50/18.252.740  st = 50/18.25 \approx 2.740\;\text{s}

y=(17.08)(2.740)12(9.81)(2.740)2=46.8036.819.99  m    y = (17.08)(2.740) - \tfrac{1}{2}(9.81)(2.740)^{2} = 46.80 - 36.81 \approx 9.99\;\text{m} \;\;\checkmark

Just about exactly 10 m. ✓


Answer: Both launch angles θlow43.13°\theta_{\text{low}} \approx 43.13° and θhigh58.18°\theta_{\text{high}} \approx 58.18° (measured from the horizontal) will land a projectile at the target (50,10)(50, 10) when the launch speed is 25 m/s. The low-angle shot arrives faster and flatter; the high-angle shot lobs over and arrives slower from a steeper angle. Both are mathematically valid in vacuum.

When Is the Target Unreachable?

The discriminant must be non-negative. The minimum launch speed for a target at (xt,yt)(x_t, y_t) is:

vmin2=g(yt+xt2+yt2)v_{\min}^{2} = g\bigl(y_t + \sqrt{x_t^{2} + y_t^{2}}\bigr)

For (50,10)(50, 10): vmin2=9.81(10+2600)=9.81(10+50.99)=9.81×60.99598.3v_{\min}^{2} = 9.81(10 + \sqrt{2600}) = 9.81(10 + 50.99) = 9.81 \times 60.99 \approx 598.3, so vmin24.46  m/sv_{\min} \approx 24.46\;\text{m/s}. Our v0=25  m/sv_0 = 25\;\text{m/s} is just barely enough — that's why the two angles are close to each other (43° and 58°) instead of widely separated.

Try It

  • Drag the target X / Y sliders — see both solution arcs update live.
  • If the target glows red, no angle reaches it. Increase v₀ until both arcs appear.
  • Toggle the show low / show high switches to compare them individually.
  • At the minimum reachable speed, both solutions converge to a single angle of θ=45°+arctan(yt/xt)/2\theta = 45° + \arctan(y_t/x_t)/2.

Interactive Visualization

Parameters

25.00
50.00
10.00
Your turn

Got your own math or physics problem?

Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.

Sign Up Free to Try It30 free visualizations every day
Hitting a Target: The Two Possible Angles | MathSpin