Distance calculator

Use the distance formula for points on a graph, or enter latitude and longitude for the distance across the Earth’s surface.

Your answer

Distance44.73631292

Worked out in your browser. Nothing you type is sent to a server.

How we worked it out

Updated as you change the numbers.

  1. d = √((x₂ − x₁)² + (y₂ − y₁)²)

Method and assumptions

The distance formula is Pythagoras’ theorem on the coordinate differences. For places on Earth, the haversine formula gives the shortest distance along the surface of a sphere with the Earth’s mean radius; it is within about 0.5% of the true distance on the slightly flattened Earth.

Questions

How far is New York from Los Angeles in a straight line?

About 2,445 miles (3,936 km) along the Earth’s surface.

Sources

Method and figures checked on . Every worked answer on this page is covered by an automated test. Found a mistake? Tell us.

Embed this calculator on your site

Free to use. Paste this where you want the calculator; it runs in your visitors’ browsers, sets no cookies and sends nothing to us.

Related calculators