UWB tree height device: why error is lowest at distance equal to height

A 2025 Forests study built a tree height meter from radio ranging and an accelerometer, with 4.25 % error, lowest when you stand about one tree height away. We rebuild that sweet spot with fibub's tree height maths.

Tree height is one of the slowest numbers to get right in a forest survey. You need a distance and two angles, and every small slip in an angle turns into metres at the top of a tall tree. A 2025 paper in Forests built a handheld device that measures the distance by ultra-wideband (UWB) radio, the same short-pulse ranging used in indoor positioning, and the angles with a cheap accelerometer, and tested it on 80 trees against a surveyor’s total station. Its error was 4.25 % of tree height, and it was lowest when the user stood about one tree height away. This article rebuilds that geometry with the height maths of the Tree basal area tool and shows why the sweet spot sits where it does. For the next step, turn heights and diameters into stand figures with the forest inventory summary, or measure canopy openness with the canopy gaps.

The paper in brief

The device has two parts. An anchor sits at the foot of the tree, and the handheld unit measures the straight-line distance to it by double-sided two-way ranging, timing radio pulses both ways so that clock errors cancel. The handheld’s accelerometer reads the tilt down to the base (angle α) and then up to the treetop (angle β). From the slant distance AB, the height on level ground is

H = AB sin α + AB cos α tan β,

the drop to the base plus the rise to the top. The data go to a phone and the cloud as you work.

Against the total station, over 80 trees from 4.8 to 26.56 m, the device had a root mean square error (RMSE) of 0.621 m, or 4.25 % of height, and a bias of just 0.104 m (0.79 %). The authors call this an accuracy of 95.75 %, which is simply 100 % minus the relative RMSE. A laser instrument on the same trees did about half as well (RMSE 1.289 m, 8.93 %). On 16 trees measured from 5, 10, 15 and 20 m, the errors followed a U shape, lowest at a distance-to-height ratio (D/H) of about 0.9 to 1.2, with overestimates and the widest scatter from 5 m.

Checked with the tools

The device formula is the tangent method with the distance measured along the line to the base. In the tool’s maths, that is a distance “along the slope” at the base angle: the horizontal distance is AB cos α, and the height is that distance times (tan β + tan α). We checked that both forms give the same number to the last digit (see the tests below).

The paper gives no angle accuracy for its accelerometer, so we asked the reverse question. Our assumptions: the device is held 1.5 m above the tree base, each angle reading carries the same random error, and the ranging error is 0.1 m. Then the tool’s maths, differentiated by small steps, gives the expected error for any tree and distance.

Step 1: what angle error matches 4.25 %? For a 15 m tree seen from 15 m, a random error of 1.19° per reading gives the paper’s relative RMSE. That is far coarser than the smallest step a 13-bit accelerometer can resolve, so most of it must be the person: hand shake between the two sightings and, above all, judging where the top of a crown really is.

Step 2: the sweet spot. Figure 1 sweeps the distance for a 15 m tree with that 1.19°. With both angles and the ranging error, the lowest error, 4.11 %, is at D/H 0.79, and the error stays within 10 % of that lowest value from 0.53 to 1.16. Counting the top angle alone, the lowest point moves to D/H 0.90 and the flat bottom stretches from 0.58 to 1.40. The paper’s best range of 0.9 to 1.2 lies inside both valleys. The reason is pure geometry: the part of the tree above your eye is measured best when you see its top at 45°, and that happens at a distance equal to the height above your eye, a little less than the full height. For taller trees, where 1.5 m matters less, the top-only optimum creeps up: 0.85 for a 10 m tree, 0.93 for 20 m and 0.94 for 25 m.

Height error against distance-to-height ratioHeight error against distance-to-height ratiopaper02.557.5100.511.522.53Distance ÷ tree height (D/H)Relative error (%)4.25 %Both angles + rangeTop angle onlyfibub.com
Figure 1. Expected relative error of a 15 m tree's height against the distance-to-height ratio, from the tool's tangent-method maths with an angle error of 1.19° per reading and a 0.1 m ranging error (our assumptions). The paper's best range is shaded. A model of the error, not the paper's data.

Step 3: too close and too far. At D/H 0.3 the expected error for the 15 m tree climbs to 6.58 %, and at D/H 3 to 9.18 %. Close up, the top sits at a steep angle where the tangent changes fast: one degree too high on the top reading turns a 15 m tree into 15.76 m from 5 m away, but only 15.48 m from 15 m away. Far away, the angles get shallow and the same degree is spread over a long lever arm.

Step 4: the overestimate at 5 m. Because the tangent curves upwards, a random angle error does not average out: errors on the high side add more height than errors on the low side remove. Figure 2 shows that average overestimate. It is largest at 5 m, 0.14 % for a 10 m tree and 0.59 % for a 20 m tree, and nearly gone from 10 m on. So the geometry predicts the direction of the paper’s 5 m bias, but only a small part of its size. The rest is most likely human: from close under a tree the leader is hard to see, and people sight on a high branch instead.

Close up, a random angle error turns into overestimationClose up, a random angle error turns into overestimation00.511.55101520Horizontal distance to the tree (m)Bias (% of height)10 m tree20 m treefibub.com
Figure 2. The average overestimate a random 1.19° error in the top reading causes, from the curvature of the tangent. The paper's test distances are 5, 10, 15 and 20 m.
Check Paper Tool maths (our error model)
Height formula AB sin α + AB cos α tan β Tangent method, distance along the base line: same value
Relative RMSE 4.25 % 4.26 % at D/H 1 with 1.19° per reading
Best distance-to-height ratio about 0.9 to 1.2 0.79 (both angles), 0.90 (top only); flat from about 0.55 to 1.2
Bias at 5 m overestimation +0.14 to +0.59 % from the tangent’s curvature alone

How we made the graphs

The charts and numbers come from scripts/blog-figures/uwb-tree-height-device-accuracy-distance-to-height-ratio-tangent-method.mjs in fibub’s public code. It calls tangentHeight from src/lib/sci/treeheight.ts, the maths behind the height card of the Tree basal area tool, with the slant distance, the base angle as the slope and the two readings. Errors come from small-step derivatives of that function, and the bias from its second derivative.

The height formula, the 4.25 % RMSE, the test distances and the best D/H range come from the paper’s text. The 1.5 m device height, the equal random error on both angles and the 0.1 m ranging error are our assumptions, and the 1.19° is fitted to the paper’s RMSE. The curves are an error model, not the paper’s measurements, which are in its figures and tables.

How we test the maths

On every change to fibub, tests/sci.mjs runs tests/sci-tools/tree-height-basal-area.mjs, which pins the height maths against an independent NumPy calculation:

  • A tree 20 m away with readings of 52° to the top and −4° to the base must be 26.9974 m tall.
  • The same readings with 22 m measured along a 15° slope must give 28.6852 m.
  • New with this article: a slant distance of 15.07 m with −5.71° to the base and 41.99° to the top must equal the paper’s formula AB sin α + AB cos α tan β, 14.9964 m; and one degree more on the top reading must give 15.7613 m at 5 m but 15.4777 m at 15 m.

Check it yourself

On the Tree basal area tool, in the tree height card:

  1. Set Units to Metric, Clinometer reads in to Degrees and Method to Tangent: distance and 2 readings.
  2. Type 15.07 in Distance to the trunk, set Distance measured to Along the slope and type -5.71 in Slope reading to the trunk. This is the device’s slant distance to the anchor at the base.
  3. Type 41.99 in Reading to the top, keep Bottom of the tree on Reading to the base and type -5.71 in Reading to the base.
  4. The tool shows Tree height: 15.0 m, with about 13.5 m above eye level and 1.5 m below.
  5. Change Reading to the top to 42.99, one degree more: the height becomes 15.5 m.
  6. Now stand at 5 m: distance 5.22, slope and base readings -16.7, top 69.68 gives 15.0 m again, and top 70.68 gives 15.8 m. The same one-degree slip costs about 1.6 times as much up close.

What researchers can use it for

  • Plan where to stand. Before a survey, use the height card of the Tree basal area tool to see how much one degree costs at each distance, and aim for about one tree height away.
  • Turn an instrument’s RMSE into an angle error, as in Step 1, to compare devices fairly, or to see whether a new sensor’s resolution matters at all next to human aiming.
  • Check a device formula. Type the raw distance and angles into the tool and confirm a new instrument’s height equation is the tangent method in disguise.
  • Budget plot errors. Feed heights into the forest inventory summary and ask how a 4 % height error carries into stand volume.
  • Teach field methods. Let students measure the same tree from 5, 10 and 20 m and plot their own U-shaped curve.

The fine print

  • Our error model has one random angle error per reading and no systematic error. Real errors include sighting the wrong top, a leaning stem and uneven ground, which the paper treats separately with its slope formulas.
  • The paper gives the distance-test errors only in a box plot, so we compare the location of the sweet spot, not each distance’s value.
  • The paper’s best range (0.9 to 1.2) comes from a quadratic fit to 64 measurements; ours comes from geometry. That they overlap is the check; the exact optimum depends on the device height and on how errors split between the two angles.
  • The 95.75 % “accuracy” is 100 % minus the relative RMSE, not the share of trees measured within a tolerance.

Sources

  • Li, C., Wang, J., Zhu, S., Cui, Z., Fang, L. and Sun, L. (2025), Development and Testing of a Tree Height Measurement Device, Forests 16(9): 1464, doi:10.3390/f16091464. Licence CC BY, checked on the MDPI page, 2026-11-24. Values used here: ultra-wideband ranging to an anchor at the tree base and a three-axis accelerometer for the angles; height H = AB sin α + AB cos α tan β on level ground; 80 trees of 4.8 to 26.56 m checked against a total station; RMSE 0.621 m (4.25 % of height), bias 0.104 m (0.79 %), accuracy 95.75 % defined as 1 minus the relative RMSE; a laser instrument gave RMSE 1.289 m (8.93 %); distance test on 16 trees at 5, 10, 15 and 20 m, error lowest at a distance-to-height ratio of about 0.9 to 1.2 and overestimation at 5 m.
  • Tangent method and error propagation: Husch, B., Beers, T. W. and Kershaw, J. A. (2003), Forest Mensuration, 4th ed., Wiley; Larjavaara, M. and Muller-Landau, H. C. (2013), Methods in Ecology and Evolution 4: 793-801.

If you are an author or publisher and want a credit or a passage changed or removed, tell us and we will act quickly.

Tools in this article

Read next