The angle of elevation is measured upward from a horizontal line through the observer's eyes to an object above that line. The height difference and horizontal distance form the two legs of a right triangle.
\[\tan\theta=\frac{h}{d}\qquad h=d\tan\theta\]
\[d=\frac{h}{\tan\theta}\qquad\theta=\tan^{-1}\!\left(\frac hd\right)\]
\(h\) is height above eye level, not automatically the object's height above the ground.
Elevation calculator and playground
Choose two known measurements. Use the same length unit throughout; angles are in degrees and must lie strictly between 0° and 90°.
Measure from horizontal, not vertical
Start with a horizontal line through the observer's eye. Measure upward to the line of sight. The vertical side and the horizontal side meet at a right angle.

Example 1: the top of a flagpole
The horizontal distance to the pole is 30 m, and the angle of elevation is 30°.
\[h=30\tan30^\circ=\frac{30}{\sqrt3}=10\sqrt3\approx17.32\text{ m}\]
The top is about 17.32 m above the observer's eyes. If eye height is 1.6 m and both bases are on the same level ground, the pole's total height is:
\[H=1.6+10\sqrt3\approx18.92\text{ m}\]
Example 2: a balloon
A balloon is 50 m away horizontally, at an elevation angle of 60°.
\[h=50\tan60^\circ=50\sqrt3\approx86.60\text{ m}\]
If 50 m were the sloping line-of-sight distance instead, the calculation would be \(h=50\sin60^\circ\). Identify the given distance before choosing a formula.
Example 3: find the angle
An object is 12 m above eye level and 16 m away horizontally.
\[\theta=\tan^{-1}(12/16)\approx36.87^\circ\]
The calculator displays numerical approximations to 9 significant digits. Length inputs must be positive, from 10⁻¹² to 10¹⁵; computed lengths must remain positive, finite, and no larger than 10¹⁵. Eye height can be zero and is limited to 1,000,000. Very extreme proportions that cannot resolve an acute angle reliably are rejected.
Elevation and depression
Elevation looks upward from horizontal. Depression looks downward from horizontal. With parallel horizontal lines, the elevation angle from the lower point equals the depression angle from the higher point.
Practice
An object is 10 m above eye level and has an elevation angle of 45°. Find the horizontal distance. What is its ground height if the eye height is 1.5 m and both bases share level ground?
Check the answer
\(d=10/\tan45^\circ=10\) m. Ground height: 11.5 m.