Distance to Horizon Calculator

See how far you can see from a given height, with or without atmospheric refraction, on Earth or another world.

🌅 Distance to Horizon Calculator
Height unit
Body
Radius (R)
km
Atmosphere
Refraction coefficient (k)
Observer height (h)
01000
Observer height (h1)
0100
Target height (h2)
0500
Distance unit
Actual distance to target (optional)
Horizon distance (km)
—
Horizon distance (miles)
—
Horizon distance (nautical miles)
—
Geometric value (k = 0)
—
Change from refraction
—
Dip of the horizon
—
Height used
—
Effective radius
—

Longest line of sight (km)
—
Longest line of sight (miles)
—
Longest line of sight (nautical miles)
—
Observer horizon (d1)
—
Target horizon (d2)
—
Visible at your distance?
—
Hidden bottom of target
—
Visible part of target
—

🌅 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

d  =  √( 2 Reff h + h² )   |   Reff  =  R ÷ (1 − k)
d = distance along the line of sight to the horizon (same unit as R)
R = radius of the body: about 6371 km for Earth, 1737.4 km for the Moon, 3389.5 km for Mars, 6051.8 km for Venus and 2439.7 km for Mercury. These are approximate mean radii used as illustrative presets
h = height of the observer's eye above the surface, converted to the same unit as R (feet are multiplied by 0.3048 to get metres)
k = refraction coefficient (dimensionless). k = 0 is pure geometry. Values near 0.13 are often used as a typical illustrative figure for air near the ground, and the result changes with temperature and pressure
Dip of the horizon: cos(dip) = R ÷ (R + h), using the geometric radius
Two heights: dmax = d1 + d2, and a target that lies x beyond the observer's horizon is hidden up to √(Reff² + x²) − Reff
Example: R = 6371 km and h = 1.7 m = 0.0017 km gives d = √(2 × 6371 × 0.0017 + 0.0017²) = 4.65 km

The tangent construction and the effective radius idea are described in the Wikipedia article on the horizon.

📖 How to Use This Calculator

Steps

1
Choose a mode. Pick Single height for the horizon from one observer, or Two heights for the line of sight between an observer and a target.
2
Set the body and the air. Choose Earth, the Moon or another preset radius, or type your own, and set the refraction coefficient: 0 for pure geometry or about 0.13 for typical air. The height unit only labels the numbers you type.
3
Read the distance and chart. See the horizon distance in km, miles and nautical miles, or the combined line of sight, and the hidden part of the target if you entered a distance.

💡 Example Calculations

Example 1 — Standing on a Beach

Eye height 1.7 m on Earth, no refraction

1
h = 1.7 m = 0.0017 km and R = 6371 km, so 2Rh = 2 × 6371 × 0.0017 = 21.66
2
d = √(21.66 + 0.0017²) = 4.65 km = 2.89 mi = 2.51 nmi
3
The horizon dips only 0.042° (2.5 arcminutes) below level
Horizon distance = 4.65 km
Try this example →

Example 2 — Airliner at 10,000 m With Refraction

Height 10,000 m, Earth, k = 0.13

1
Reff = 6371 ÷ (1 − 0.13) = 7323.0 km
2
d = √(2 × 7323.0 × 10 + 10²) = 382.83 km = 237.88 mi = 206.71 nmi
3
Without refraction the distance is 357.10 km, so k = 0.13 stretches it by 7.2 percent. The k value is an illustrative typical figure.
Horizon distance = 382.83 km (geometric 357.10 km)
Try this example →

Example 3 — Lighthouse and Boat (Two Heights)

Observer at 2 m, lighthouse at 50 m, actual distance 20 km, no refraction

1
d1 = √(2 × 6371 × 0.002) = 5.05 km and d2 = √(2 × 6371 × 0.05) = 25.24 km
2
Longest line of sight = 5.05 + 25.24 = 30.29 km (18.82 mi, 16.35 nmi), so 20 km is within range
3
The lighthouse is x = 20 − 5.05 = 14.95 km beyond the observer's horizon, hiding √(6371² + 14.95²) − 6371 = 17.54 m, leaving 32.46 m visible
Line of sight = 30.29 km, hidden part = 17.54 m
Try this example →

Example 4 — An Astronaut on the Moon

Eye height 1.7 m, lunar mean radius 1737.4 km, no atmosphere

1
2Rh = 2 × 1737.4 × 0.0017 = 5.907
2
d = √5.907 = 2.43 km, which is 1.51 mi. The horizon dips 0.080°
3
That is about 52 percent of the Earth value for the same height, because the horizon scales with √R. The radius is an approximate mean value.
Horizon distance = 2.43 km
Try this example →

Example 5 — Ship's Mast in Feet and Nautical Miles

Lookout 100 ft above the water, Earth, no refraction

1
100 ft × 0.3048 = 30.48 m = 0.03048 km
2
d = √(2 × 6371 × 0.03048 + 0.03048²) = 19.71 km
3
In other units that is 12.25 mi or 10.64 nmi, and the horizon dips 0.177°
Horizon distance = 19.71 km (10.64 nmi)
Try this example →

❓ Frequently Asked Questions

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. The distance grows with the square root of the height.
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. For small heights this is close to sqrt(2Rh).
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. The real value varies with weather.
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. Use Two heights mode for this.
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 two-height mode shows with an actual distance entered.
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. The Moon has essentially no atmosphere, so k = 0 is the right choice.
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 a radius about half that 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 the geometric and radio horizon?+
The radio horizon uses a larger effective radius, often taken as about 4/3 of the real one (k = 0.25), because radio waves bend more than light. Type 0.25 in the refraction box to explore that model.
Does a higher horizon distance mean I can see a target there?+
No. The result is geometry only. Whether a target at that range is visible also depends on its size, contrast, haze and light, which this calculator does not model.

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.