How to calculate
Draw a line from the observer tangent to the sphere. For radius R and height h, the tangent length is √(h(2R+h)). The central angle is the arctangent of tangent length divided by radius. Multiply that angle in radians by radius for the surface distance.
Worked example
Use Observer height above the surface (m) 2 · Target height above the surface (m) 0 · Reference Earth radius (km) 6371. The result is ≈ 5.04816838071 km.
Input and result notes
Use heights relative to the modeled spherical surface. Add an elevated target’s own horizon arc to get maximum surface separation. The geometry excludes terrain, waves, and atmospheric refraction.
NASA geometry of the distance to the horizon