Geometry Height Calculator
Results
Formulas Used in Geometry Height Calculator
In-Depth Tutorial: Geometry Height Calculator
The Geometry Height Calculator finds the height of an object — a tree, building, flagpole, or mountain — using only a horizontal distance to its base and the angle of elevation to its top. The formula:
h = distance × tan(elevation angle)
This is one of the most practical applications of right-triangle trigonometry. You can measure heights you cannot climb. This tutorial covers the formula's derivation from SOHCAHTOA, three worked examples, and common applications.
The setup
Stand at a horizontal distance D from the base of an object. Look up at the top of the object. The angle from horizontal up to your line of sight is the angle of elevation (θ).
You, the base of the object, and the top of the object form a right triangle:
- The horizontal leg is the distance D.
- The vertical leg is the height h (what you want to find).
- The hypotenuse is your line of sight to the top.
- The right angle is at the base of the object (where it meets the ground).
Applying SOHCAHTOA
The angle of elevation θ has:
- OPPOSITE side: the height h.
- ADJACENT side: the distance D.
From TOA: tan(θ) = opposite / adjacent = h / D.
Solving for h: h = D × tan(θ).
Worked example 1 — finding tree height
You stand 30 meters from the base of a tree. The angle of elevation to the top is 35°. How tall is the tree?
h = 30 × tan(35°) ≈ 30 × 0.7002 ≈ 21.01 m.
So the tree is approximately 21 meters tall.
Worked example 2 — building from across a street
A surveyor stands 50 feet from a building. The angle of elevation to the roof is 60°. How tall is the building?
h = 50 × tan(60°) = 50 × √3 ≈ 50 × 1.732 ≈ 86.6 ft.
Worked example 3 — reversing the problem
If a 100 ft tall object is viewed from a distance of 200 ft, what is the angle of elevation?
From h = D × tan(θ): 100 = 200 × tan(θ) → tan(θ) = 0.5 → θ = arctan(0.5) ≈ 26.57°.
Adjusting for observer height
The basic formula assumes the observer's eye level is at the same height as the object's base. In practice, your eyes are about 1.5 m above the ground. To get the object's total height from ground level, ADD your eye-level height:
Object height = D × tan(θ) + observer eye-level height
For most rough applications, the eye-level correction is small compared to the building/tree height and is often ignored.
Angle of depression — the symmetric case
If you're ABOVE the object (looking down from a hilltop or building, say at a boat in the ocean), the "angle of depression" works analogously. The formula is mirror-image: you're looking down instead of up, but the same trig applies.
Real-world applications
- Forestry: measuring tree height for timber estimation. Clinometers measure the elevation angle directly.
- Surveying: determining building heights, bridge clearances, antenna heights.
- Navigation: sextants measure celestial angles for ship and aircraft positioning.
- Geology: measuring mountain or cliff heights from a known horizontal baseline.
- Sports: baseball broadcasting uses similar trig to estimate ball trajectories.
- Hunting / wildlife: rangefinders use this principle to compute distance to a target from its observed angular size.
Multiple measurements for accuracy
If you measure from two different distances D₁ and D₂ with elevation angles θ₁ and θ₂, you can derive both the object height AND distance via:
h = D₁ × tan(θ₁) = D₂ × tan(θ₂)
This redundancy lets you cross-check your measurements. If the two computed heights disagree significantly, one of your measurements is off.
Common mistakes
- Confusing elevation with depression. Elevation is angle UP from horizontal. Depression is angle DOWN. They're measured from the same baseline (horizontal) but go opposite directions.
- Using degrees in radian-mode calculator. tan(35°) ≈ 0.7. tan(35 radians) is a completely different value. Check calculator mode.
- Forgetting the horizontal distance must be ground-level horizontal. If the ground slopes or your distance is along a slant, the formula doesn't apply directly.
- Forgetting observer eye-level. For tall objects this is usually negligible, but for short objects (a 2 m hedge) eye-level adds ~75% error if ignored.
Frequently Asked Questions – Geometry Height Calculator
The angle measured upward from horizontal to the line of sight toward the top of an object. Combined with horizontal distance, it allows indirect height calculation.
h = distance × tan(elevation angle). This comes from the tangent ratio in the right triangle formed by the observer, the base of the object, and its top.
Distance and height can be in any consistent unit (meters, feet, etc.). The result uses the same unit as the input distance.
Yes — free and unlimited.
How elevation angles get measured in practice
The formula h = distance × tan(θ) works only if you have an accurate angle. The instrument for measuring elevation is a clinometer, and its precision determines the height calculation's accuracy. Three common types with realistic accuracy ranges:
Plumb-bob clinometer (the analog version). A protractor with a weighted string; align one edge with your line of sight, and the string reads the angle from horizontal. Simple to build (Boy Scout craft-project simple), typically accurate to ±1° in good conditions. Foresters carried these for decades before digital alternatives. A 1° error on a 30 m distance produces about a 0.5 m height error at typical tree-height angles (30°–45°), which is fine for timber-volume estimation.
Digital clinometer. A commercial handheld unit uses an accelerometer plus an angle-decoding display; typical models like the Suunto PM-5 or the Silva Clinomaster read to ±0.5°, and higher-end professional units go to ±0.2° or better. Cost: $50 to $200 for hobbyist grade, up to a few thousand for surveyor-quality.
Smartphone clinometer apps. Most modern phones have three-axis accelerometers accurate enough to measure inclination to about ±0.5° when held steady. Free apps like Theodolite Free and Bubble Level & Protractor turn any smartphone into a working clinometer. The main limitation is holding the phone steady enough — human hand tremor easily produces 1° of noise, so bracing against a stable object or using a tripod matters for accurate readings.
For surveying-grade precision (millimeter accuracy at 100+ meters), professionals use a total station — a tripod-mounted theodolite plus electronic distance measurement (EDM) that reads both angle and distance simultaneously to arc-second precision. Total stations cost $2,000 to $30,000 depending on grade and are the standard tool for construction site layout and geodetic survey work.
Measuring things when you can't reach the base
The basic formula requires standing at a known horizontal distance from the object. What if the object is across a river, on a cliff you can't approach, or otherwise inaccessible? The two-baseline method solves for both height and distance using two elevation-angle measurements from two known-distance points.
Setup: stand at point A, measure the elevation angle θ₁ to the object's top. Move to point B (further from the object by a measured distance d), measure elevation angle θ₂ from there. You now have two equations:
h = D · tan(θ₁) (from point A, distance D from base)
h = (D + d) · tan(θ₂) (from point B, distance D + d from base)
Set the two expressions for h equal, solve for D: D = d · tan(θ₂) / (tan(θ₁) − tan(θ₂)). Substitute back to get h. This gives you both the height of the object and your horizontal distance to its base, without touching the object.
Worked example: a tree across a river. From point A you measure θ₁ = 40°; walk 25 meters directly away from the tree along the riverbank to point B, measure θ₂ = 32°. Then D = 25 · tan(32°) / (tan(40°) − tan(32°)) = 25 · 0.625 / (0.839 − 0.625) = 15.625 / 0.214 ≈ 73.0 m. And h = 73.0 · tan(40°) ≈ 61.3 m. The tree is about 61 m tall and its base is 73 m from your first measurement point. Surveyors used this method throughout the 19th century for triangulating heights of remote mountains — the Himalayan surveys that estimated Everest's height in 1856 used variations of it.
Height-calculation questions the basic FAQ skips
Is there a shortcut for small elevation angles?
Yes. For angles up to about 5°, tan(θ) ≈ θ (in radians) to within about 0.5% error, and tan(θ) ≈ θ°/57.3 to about 1% error when angle is in degrees. So for shallow-angle problems — measuring the height of a small hill from far away, checking the pitch of a mildly sloped roof — you can multiply distance by the angle-in-degrees and divide by 57.3 as a mental estimate. For a 300 m distance and a 4° elevation: h ≈ 300 × 4 / 57.3 ≈ 20.9 m. Compare to exact 300 × tan(4°) ≈ 20.98 m: essentially identical. This approximation is why the phrase "1% grade" for road slopes really does correspond to about a 1° incline — the small-angle approximation makes percent and degree numerically similar.
Does atmospheric refraction affect the measurement?
Yes, but usually negligibly at ranges under a few hundred meters. Light bends slightly as it passes through air whose density varies with altitude, making distant objects appear slightly higher than they geometrically are. For surveying-grade work at kilometer-scale distances, the correction is about 0.13 · d² / R where d is horizontal distance in km and R is Earth's radius (~6371 km) — resulting in about 0.02 m correction over 1 km. Geodetic surveys applying refraction models achieve millimeter-scale precision over tens of kilometers. For everyday tree-height measurements and building-height estimates at typical distances (10 to 100 m), refraction is well below the accuracy of your clinometer and can be ignored.
How does the shadow method compare with the angle-of-elevation method?
The shadow method — measuring an object's shadow length and a reference stick's shadow at the same moment — uses similar triangles instead of trigonometry. Both methods give the same answer. Shadow is easier when no clinometer is available (no tools beyond a tape measure) but requires sunny weather and level ground. The angle method works in any weather and doesn't need a reference object, but requires an angle-measuring tool. Historically both have been used: Thales measured the Great Pyramid's height by the shadow method around 600 BCE; Hipparchus and Ptolemy used angle measurements from geometric instruments for astronomical work three centuries later. For modern rough field measurement, if you happen to have both a stick and a sunny day, the shadow method gives a quick check on any clinometer-based reading.
What happens if the ground between me and the object slopes?
The basic formula h = D · tan(θ) assumes level ground — your feet are at the same elevation as the object's base. If the ground slopes up toward the object, your measured elevation angle is smaller than it should be (you're already partway up), so the naive formula underestimates height. If the ground slopes down, the opposite. To correct: measure the ground's own slope angle φ, and use h = D · (tan(θ) − tan(φ)) · cos(φ) — subtracting your own elevation change over the horizontal distance. For gently sloped ground (φ under 3°), the correction is small; for hillside measurements, ignoring it can produce 10%+ error. Surveyors always measure and correct for ground slope in field work — it's one of the "hidden" precision inputs that separates rough estimates from accurate results.