ThisCalculator

Math

Angle of Elevation and Depression Calculator: How It Works

Updated · Standard formula, shown below

Angle of elevation or depression 26.57 degrees
Line-of-sight distance
22.36 m
Result
Vertical difference
10 m
You entered
Horizontal distance
20 m
You entered

Angle of Elevation and Depression Calculator: How It Works

An angle of elevation and depression calculator finds the angle between a horizontal line and a line of sight, using the vertical height and horizontal distance between two points. Enter those measurements in the same units; the calculator returns the angle in degrees, with elevation for an upward sightline and depression for a downward one.

Formula

The angle is the inverse tangent of the vertical difference divided by the horizontal distance:

θ = arctan(h / d)

  • θ is the angle from the horizontal, in degrees.
  • h is the vertical difference between the observer and the target, in metres in this calculator. Use a positive value for a target above the observer and a negative value for one below.
  • d is the horizontal distance between the observer and the target, in metres. It must be greater than zero for this calculation.

The calculator also gives the straight-line distance, or line of sight, using the Pythagorean theorem: r = √(h² + d²), where r is in metres. The first result is the angle; the second is a useful supporting measurement. The function atand returns the inverse tangent in degrees, so the angle is not displayed in radians.

Worked Example

Using the default inputs, the vertical difference is 10 m and the horizontal distance is 20 m.

  1. Divide the vertical difference by the horizontal distance: 10 ÷ 20 = 0.5.
  2. Take the inverse tangent: θ = arctan(0.5) ≈ 26.565°. Rounded to two decimal places, the angle is 26.57°.
  3. For the line-of-sight distance, calculate √(10² + 20²) = √500 ≈ 22.36 m.

Because the vertical difference is positive, 26.57° represents an angle of elevation. If the target were 10 m below the observer at the same horizontal distance, enter −10 m; the result would be −26.57°, indicating a downward angle of depression.

What Elevation and Depression Mean

An angle of elevation is measured upward from the observer’s horizontal line to an object above the observer. An angle of depression is measured downward from that same horizontal reference to an object below. In a typical diagram, the horizontal line through the observer and the line of sight form one of the acute angles in a right triangle.

The two terms describe direction, not different trigonometric methods. With a signed vertical difference, one calculation handles both: positive h gives an elevation angle, and negative h gives a depression angle. Some textbooks report both angles as positive magnitudes and label them according to direction instead. The magnitude is the same; the sign convention is simply a way to encode whether the target is above or below.

In a model where the observer and target have level horizontal reference lines, the elevation angle at one end equals the depression angle at the other. This follows because the horizontal lines are parallel and the line of sight crosses them. In real terrain, identify which two points and horizontal reference are being compared before applying that relationship.

When to Use the Calculator

Use it when you know the horizontal separation and the height difference and want the line-of-sight angle. Typical geometry problems involve a person looking at a building, a survey point, or the top of a tree. The method also applies to a target below the observer, provided the vertical difference is entered as negative.

  • Building example: If a point on a level surface is 30 ft horizontally from a wall and the point being observed is 12 ft above the observer, the angle is arctan(12/30), about 21.80°.
  • Downward example: If a lookout is 40 m above a target and the target is 100 m away horizontally, use h = −40 m and d = 100 m. The result is about −21.80°, or a depression angle with magnitude 21.80°.

For US customary measurements, use feet for both inputs or inches for both; for metric measurements, use metres for both or centimetres for both. The ratio h/d is dimensionless, so consistent units cancel. The line-of-sight result is in the same length unit as the inputs. This calculator labels its distance outputs in metres, so convert customary measurements to metres first if using the block exactly as shown: 1 ft = 0.3048 m.

How to Measure and Read the Result

Measure horizontal distance along a level direction, not along a sloped path or the line of sight. Measure vertical difference between the observer’s reference point—often eye height—and the target point. If a word problem gives an observer’s height above the ground as well as an object’s height, subtract the observer height from the object height to obtain h.

A positive result means the target is above the observer; a negative result means it is below. A result of 0° means both points are at the same height. The line-of-sight distance is always at least as long as the horizontal distance and, for nonzero height difference, is longer. It is not the same as horizontal distance.

For example, if a person’s eye level is 1.6 m above the ground and the top of a 9 m structure is being observed from level ground, the vertical difference is 9 − 1.6 = 7.4 m—not 9 m. Use the horizontal distance from the observer’s position to the structure, then apply the formula.

Common Mistakes and Limits

  • Using the wrong distance: The denominator is horizontal distance, not the sloping line-of-sight distance. If line-of-sight distance is what you know instead, a different inverse-trigonometric setup is needed.
  • Mixing units: Do not divide 10 ft by 20 m without converting one measurement. Although the ratio cancels units, it only does so when both values use the same unit.
  • Forgetting observer height: The relevant vertical side is the difference between the two sighting points, not necessarily the full height of a building or hill.
  • Rounding too soon: Keep unrounded measurements and intermediate values until the final answer. The displayed angle is rounded to two decimal places.

The formula assumes a right-triangle, straight-line geometry: horizontal and vertical directions are perpendicular, and the measurements refer to the same pair of points. It does not account for curved terrain, a moving observer, measurement error, or atmospheric effects on a long sightline. If the horizontal distance is zero, the angle is vertical and the ratio h/d is undefined; this calculator requires a positive horizontal distance. An angle also cannot be determined from height alone or distance alone—you need enough information to form the ratio.

Frequently Asked Questions

How do you calculate an angle of elevation?
Divide the vertical rise by the horizontal distance, then take the inverse tangent: θ = arctan(h/d). Use matching length units and express the angle in degrees if that is the desired output.

How do you calculate an angle of depression?
Use the same ratio, with the target’s vertical difference below the observer. Enter h as negative to get a signed result, or calculate arctan(|h|/d) and call the positive magnitude the angle of depression.

Is angle of depression equal to angle of elevation?
They are equal when measured between a line of sight and parallel horizontal lines at the two ends. This is a standard result in level-plane diagrams; it may not apply if the reference directions or points differ.

Can I use feet, yards, or miles?
Yes. Use the same unit for vertical and horizontal distance. For example, feet divided by feet gives the same angle as the equivalent measurements in metres. The displayed line-of-sight distance uses the calculator’s stated unit, so convert if needed.

What if I know the line-of-sight distance instead?
If you know the line-of-sight length r and vertical difference h, use sin θ = h/r, so θ = arcsin(h/r). If you know r and horizontal distance d, use cos θ = d/r. These alternatives require the known side to match the chosen ratio.

Related

Formula used
in h | Vertical difference | m | 10 | 0
in d | Horizontal distance | m | 20 | 0
out angle | Angle of elevation or depression | degrees | atand(h / d) | 2
out line | Line-of-sight distance | m | sqrt(h^2 + d^2) | 2

Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.