a tangent line, drawn from your eye
The horizon feels like a place — the edge of the world, far away. It is not a place. It is the line where your own line of sight, travelling straight, just grazes the curve of the Earth and can go no further along the surface. Raise your eye, and the grazing point moves away from you. Lower it, and the edge walks in closer. The horizon is a distance that belongs to the viewer, not to the landscape.
The arithmetic is one right triangle. The Earth's centre, your eye, and the point where your sight grazes the surface form a triangle with a right angle at the grazing point. The long side runs centre-to-eye: R + h, the Earth's radius plus your height. One short side is R itself. So the other short side — the distance to the horizon — is √((R+h)² − R²), which is √(2Rh + h²). With R = 6,371 km, that is, to a very good approximation, 3.57 × √(height in metres) kilometres. Nothing else enters: not the weather in the formula, not the season, not how good your eyes are.
The drawing is a schematic, not to scale — at true scale a person's height against the Earth's radius would be invisible, which is rather the point. The green line is the tangent: your straight line of sight, touching the curve at exactly one point. Everything beyond that touch lies below the line, hidden by the planet itself.
From 1.7 m up, the horizon is 4.65 km away (2.89 miles), and it sits 0.042° below true level.
Standing at the shore, eyes about 1.7 m above the water, the edge of the sea is under three miles away — close enough to walk to in under an hour, if it would stay still while you approached it, which it will not: it recedes exactly as fast as you advance, because it was never out there. Climb a 100 m hill and the same edge retreats to 35.7 km. From a cruising plane it is 357 km away, and by then it has also visibly dipped: the horizon sits about 3.2° below the horizontal, a tilt you can hold a hand up against.
Two heights add. If the thing you are looking for is itself tall, your horizon and its horizon can meet in the middle: from standing eye height you could first catch the top of a 100 m lighthouse at 4.65 + 35.70 ≈ 40.4 km — your 4.65 km of reach laid end to end against its 35.70 km. Ships appear mast-first for the same reason: the far vessel rises over its own horizon before it crosses yours.
Checked before shipping, by executing this page's own formula: at 1.7 m it gives 4.654 km; at 10 m, 11.288 km; at 100 m, 35.696 km; at 1,000 m, 112.885 km; at 8,848 m, 335.886 km — and the short form 3.57√h agrees with the exact triangle to within a tenth of a percent across that whole range. One honesty note: real air bends light slightly downward, so a real horizon on a real day is typically a few percent farther than the geometric one drawn here. The page computes the unbending case and says so, rather than quietly baking the weather into the geometry.