keepcalculator

06 Numbers and Powers

Distance Height Angle Calculator: How It Works

Card No. 06·0534 · Updated · Standard formula, shown below

Vertical height 5.77 m
Line-of-sight distance
11.55 m
Result
Horizontal distance
10 m
You entered
Angle of elevation
30 deg
You entered
You enter
Horizontal distance, Angle of elevation
You get
Vertical height, Line-of-sight distance
Rounding
2 dp

A distance height angle calculator uses right-triangle trigonometry to find a missing distance, height, or angle from measurements you provide. Enter the known side lengths and angle, and it returns the requested value in compatible units; this page calculates the vertical height from a horizontal distance and an angle of elevation.

Formula

For a level horizontal distance and an angle of elevation measured from the horizontal, the vertical height above the observer’s level is:

h = d × tan(a)

  • h is the vertical rise, in metres (m), feet (ft), or another length unit.
  • d is the horizontal distance from the observation point to the point directly below the target, in the same length unit as h.
  • a is the angle of elevation, in degrees.

The calculator also reports the straight-line distance from the observation point to the target: s = d ÷ cos(a). The functions in the calculator use degrees. The height formula assumes the ground-to-target geometry is a right triangle and that the angle is measured above a horizontal line.

Worked Example

Using the calculator’s default inputs, the horizontal distance is 10 m and the angle of elevation is 30°.

  1. Calculate the tangent: tan(30°) ≈ 0.57735.
  2. Multiply by the horizontal distance: h = 10 × 0.57735 ≈ 5.7735 m.
  3. Round to the calculator’s two decimal places: the vertical height is 5.77 m.
  4. For the line-of-sight distance, s = 10 ÷ cos(30°) ≈ 10 ÷ 0.86603 ≈ 11.55 m.

The height is a rise above the observer’s horizontal level, not necessarily the target’s total height above the ground. If the observer’s eyes or instrument are 1.6 m above the ground, for example, add that height to the calculated rise when the target’s height is required and the ground is level.

How the Calculator Works

A right triangle describes the setup. The horizontal distance is the side adjacent to the measured angle, the vertical rise is the opposite side, and the direct viewing distance is the hypotenuse. Tangent relates the opposite and adjacent sides; cosine relates the adjacent side and hypotenuse.

To use the calculator, enter the horizontal distance and the angle of elevation. The distance can be in any length unit, but the output uses that same unit. For example, entering 30 ft gives a height in feet. The angle field accepts degrees from 0° to 89.9°; an angle of 0° produces no vertical rise, while angles close to 90° imply an extremely steep line of sight and make small measurement errors especially influential.

This page’s calculation is one common meaning of “distance height angle calculator.” Other versions can solve for a missing angle or distance when different values are known. The underlying relationships are h = d × tan(a), a = arctan(h ÷ d), and d = h ÷ tan(a), provided the same right-triangle assumptions apply.

When to Use It—and What the Result Means

Trigonometric estimates are useful when a height is hard to measure directly but the horizontal distance and viewing angle can be measured. Typical geometry exercises use this method, as do basic surveying and field-estimation tasks. The result is mathematical, not a substitute for a direct measurement or a site-specific survey.

  • Height: the vertical difference between the observer’s horizontal line and the target point.
  • Line-of-sight distance: the straight path from the observation point to the target, not the distance along sloped ground.
  • Angle: the angle above the horizontal. An angle measured down from the horizontal is an angle of depression; use its positive magnitude for the same triangle calculation if the target is below eye level.

If you know the target’s height above its base and need the angle, measure the vertical difference between the target and the observation point first. The height above ground alone is not necessarily the opposite side: observer elevation and differences in ground level matter.

Measurement Accuracy and Common Errors

The calculator cannot correct inaccurate inputs. Distance should be horizontal distance, not the length measured along a slope. If the ground slopes, determine the horizontal separation or use a surveying method that accounts for the terrain. Likewise, an angle measured from the vertical must be converted: it is the complement of the angle from the horizontal, so the two angles add to 90°.

  • Mixing units: use one unit for all lengths in a calculation. Do not multiply metres by a distance entered in feet without converting first.
  • Using the wrong angle mode: many handheld calculators can be set to radians. This calculator’s angle input is in degrees; check the mode when using another tool.
  • Rounding too early: keep full precision through the calculation and round only the final displayed result. The displayed two decimals do not imply that the field measurement is accurate to a centimetre.
  • Ignoring eye or instrument height: add the observation height when converting a vertical rise into a height above the observer’s ground level, when the geometry and ground reference justify doing so.

Angle uncertainty matters because tangent changes rapidly as an angle approaches 90°. For a fixed horizontal distance, a small angle-reading error near vertical can create a large difference in the estimated height. Report sensible precision based on the quality of the distance and angle measurements.

Assumptions and Limits

The simple formula assumes a flat horizontal reference at the observation point, a target in the same vertical plane, and a clear definition of the target point. It does not account for Earth curvature, refraction, wind movement, lens or instrument calibration, or intervening terrain. For short everyday distances these effects may be negligible, but they can matter in precise or long-range surveying.

For more reliable work, use suitable measuring equipment, record the instrument’s height, and take repeated readings where appropriate. If the result will guide construction, property boundaries, or another consequential decision, confirm it with an appropriately qualified professional rather than relying on a single trigonometric estimate.

Frequently Asked Questions

How do I calculate height from distance and angle?
Multiply the horizontal distance by the tangent of the angle of elevation: h = d × tan(a). Ensure the angle is measured from horizontal and the calculator is using degrees if you enter degrees.

Is the distance the ground distance or the straight-line distance?
The height formula needs horizontal distance. The straight-line distance to the target is the hypotenuse and is calculated separately as s = d ÷ cos(a).

Can I use feet instead of metres?
Yes. Enter the horizontal distance in feet and the height and line-of-sight results will also be in feet. Keep all lengths in the same unit.

What if I know the height and want the angle?
For vertical rise h and horizontal distance d, calculate a = arctan(h ÷ d). Use the inverse tangent function, often labelled atan or tan⁻¹, and interpret the result in the calculator’s selected angle unit.

Why is the calculated height different from the object’s full height?
The formula finds vertical rise above the observer’s horizontal level. Account for the observer’s elevation and the target’s base or ground level before treating that rise as total height above ground.

Related

Formula used
in d | Horizontal distance | m | 10 | 0
in a | Angle of elevation | deg | 30 | 0 | 89.9
out h | Vertical height | m | d * tand(a) | 2
out s | Line-of-sight distance | m | d / cosd(a) | 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.

More cards in this drawer

The whole Numbers and Powers drawer →