Distance to Horizon Calculator
See how far you can see from a given height, with or without atmospheric refraction, on Earth or another world.
🌅 What is the Distance to the Horizon?
The distance to the horizon is how far away the line where the surface seems to meet the sky lies from an observer at a given height. On a sphere, your line of sight to the horizon just grazes the surface, so it is a tangent to the sphere. A right triangle formed by the centre of the body, the point of tangency and the observer's eye gives the result at once: d = sqrt(2Rh + h2), where R is the radius of the body and h is the height of the eye above its surface. Because h is tiny compared with R for everyday heights, the formula is often written as d = sqrt(2Rh).
The idea is used by sailors judging when a lighthouse or another ship will appear, by pilots and drone operators estimating how far they can see, by radio and microwave link planners checking whether two antennas have a line of sight, and by surveyors, photographers and hikers. It also explains why a ship disappears hull first over the horizon and why climbing a few metres extends your view so much: the distance grows with the square root of the height, so four times the height only doubles the distance.
Several details are worth keeping in mind. The pure geometric result assumes no atmosphere. Real air bends light gently toward the ground, so the visible horizon is slightly farther, and the page models this with a refraction coefficient k and an effective radius R / (1 - k). The numbers describe geometry only, not visibility: haze, light and the size of the target decide what you can see. Finally, the height is measured from a smooth surface, so waves, hills and buildings are ignored. The same formula works on any round body, so you can compare Earth with the Moon, Mars, Venus and Mercury.
This calculator has two modes. Single height gives the horizon distance in kilometres, miles and nautical miles, with the dip angle and a chart of distance against height. Two heights adds the horizon distances of an observer and a target to give the longest line of sight, and when you enter an actual distance it also tells you how much of the target is hidden by the curve of the surface. For the bending of light itself see the atmospheric refraction angle calculator and the index of refraction calculator.
📐 Formula
The tangent construction and the effective radius idea are described in the Wikipedia article on the horizon.
📖 How to Use This Calculator
Steps
💡 Example Calculations
Example 1 — Standing on a Beach
Eye height 1.7 m on Earth, no refraction
Example 2 — Airliner at 10,000 m With Refraction
Height 10,000 m, Earth, k = 0.13
Example 3 — Lighthouse and Boat (Two Heights)
Observer at 2 m, lighthouse at 50 m, actual distance 20 km, no refraction
Example 4 — An Astronaut on the Moon
Eye height 1.7 m, lunar mean radius 1737.4 km, no atmosphere
Example 5 — Ship's Mast in Feet and Nautical Miles
Lookout 100 ft above the water, Earth, no refraction
❓ Frequently Asked Questions
🔗 Related Calculators
How far is the horizon from a given height?
On Earth with no refraction the distance is d = sqrt(2Rh + h^2). For an eye height of 1.7 m it is about 4.65 km, and for 10,000 m of altitude about 357 km.
What is the formula for the distance to the horizon?
The line of sight to the horizon is tangent to the sphere, so d = sqrt((R + h)^2 - R^2) = sqrt(2Rh + h^2), where R is the radius of the body and h is the height above the surface.
Why is the horizon farther with refraction?
Air density falls with height, which bends light slightly toward the ground. This is modelled by an effective radius R / (1 - k), with k about 0.13 for typical conditions, giving a horizon about 7 percent farther.
How far can you see from 6 feet above the ground?
An eye height of 6 ft (1.83 m) gives a geometric horizon of about 4.8 km, which is 3.0 miles or 2.6 nautical miles. Taller objects can be seen beyond that, because their upper parts rise above the horizon.
How do you find the line of sight between two heights?
Compute each height's own horizon distance and add them: d_max = d1 + d2. Two people with 1.7 m eye height can see each other's heads up to about 9.3 km apart.
How much of a distant ship is hidden by the curve of the Earth?
If the ship is x kilometres beyond the observer's horizon, the hidden height is about x squared divided by twice the effective radius. At 15 km past the horizon that is roughly 17.7 m, as the calculator shows in two-height mode.
How far is the horizon on the Moon?
With a mean radius of about 1737 km, the horizon for an eye height of 1.7 m is only about 2.4 km, closer than on Earth because the Moon is smaller and has little atmosphere.
Does the horizon distance depend on the planet?
Yes, through its radius R. For the same height, a smaller body has a closer horizon. The distance scales with the square root of R, so Mars with half the radius of Earth has a horizon about 73 percent as far.
What is the dip of the horizon?
Dip is the angle by which the horizon lies below the horizontal at the observer, with cos(dip) = R / (R + h). From 10,000 m it is about 3.2 degrees, and from 1.7 m about 0.04 degrees.
What is the difference between geometric and radio horizon?
The radio horizon uses a larger effective radius, often about 4/3 of the real one (k = 0.25), because radio waves bend more than light. Set k = 0.25 in the refraction box to explore that model.