Distance Calculator
The straight-line distance from New York to Los Angeles is 3,935.8 km, or 2,445.6 miles, along the great circle. At an average of 60 miles per hour that gap takes 40.8 hours of driving, before any road bends the path.
| Distance | |
| In kilometers | |
| In miles | |
| In nautical miles | |
| Initial bearing | |
| Time at that speed | |
| Flight time at 500 mph cruise | |
Great circle distance on a sphere of radius 6,371.0088 km. The bearing is the compass direction at the start, in degrees clockwise from north. Road routes are longer. Everything runs in your browser.
Enter two latitudes and longitudes to get the great circle distance in miles, kilometers and nautical miles, plus the bearing and the time at your speed.
Key takeaways
- Great circle distance uses 6,371.0088 km as the Earth radius, the mean value
- New York to Los Angeles is 2,445.6 miles, 2,125.1 nautical miles and 273.7 degrees of initial bearing
- One degree of latitude is 111.195 km, which is 69.09 miles or 60 nautical miles
- Road distance runs 15 to 40 percent longer than the straight line
- Distance equals speed times time: 60 mph for 2.5 hours is 150 miles
On this page
Three different distances behind one question
Ask how far it is from one place to another and there are at least three answers. The straight line through the air follows the curve of the planet and is the shortest path on the surface, which is the great circle. The road distance follows streets and is longer, often by a fifth or more. The travel time depends on the speed you can hold, not on the distance at all.
This page answers the first one from coordinates, and converts the answer into miles, kilometers and nautical miles. It also turns a distance into hours at whatever average speed you enter, which is the number people usually want when they ask about a trip.
| Question | What it measures | New York to Los Angeles |
|---|---|---|
| Great circle | Shortest path over the surface | 3,935.8 km, 2,445.6 miles |
| Road route | Distance along streets | Longer, and it changes with the route chosen |
| Flight time | Distance divided by cruise speed | About 5 hours in the air at 500 mph |
| Driving time | Road distance divided by average speed | Near 41 hours at 60 mph on the straight-line figure |
The gap between the first two rows is the point. A straight line is the floor for the trip, never the road distance, and treating it as one is why a 2,445 mile measurement can sit next to a three day drive.
The haversine formula, step by step
Coordinates come as latitude and longitude in degrees. The formula needs radians, so multiply by 0.0174533 first. Then: a = sin squared(dLat / 2) + cos(lat1) x cos(lat2) x sin squared(dLon / 2), c = 2 x asin(square root of a), and d = R x c, where R is the radius of the sphere the Earth is being treated as.
The radius matters more than people expect. The Earth Fact Sheet from the National Aeronautics and Space Administration lists an equatorial radius of 6,378.137 km and a volumetric mean radius of 6,371.0 km, and using one instead of the other moves a 2,400 mile answer by a few miles. This calculator uses 6,371.0088 km, the mean radius, because a mean sphere keeps errors small in both directions and at all latitudes.
| Step | New York to Los Angeles | Result |
|---|---|---|
| Latitude difference | 34.0522 - 40.7128 | -6.6606 degrees |
| Longitude difference | -118.2437 - (-74.0060) | -44.2377 degrees |
| Convert to radians | -44.2377 x 0.0174533 | -0.772094 |
| First term | sin squared(-0.116249 / 2) | 0.0033747 |
| Second term | 0.628015 x 0.1417741 | 0.0890361 |
| a | 0.0033747 + 0.0890361 | 0.0924108 |
| Central angle | 2 x asin(0.303992) | 0.61776 radians |
| Distance | 6,371.0088 x 0.61776 | 3,935.8 km |
The cos(lat1) x cos(lat2) factor is what makes longitude shrink as you move toward the poles. One degree of longitude is 111.2 km at the equator and about 85.2 km at 40 degrees north, while one degree of latitude stays near 111.2 km everywhere. Ignore that factor and a trip across the United States comes out far too long.
Worked example: New York to Los Angeles
New York sits at 40.7128 north, 74.0060 west; Los Angeles sits at 34.0522 north, 118.2437 west. West longitudes are negative, so the longitudes entered are -74.0060 and -118.2437. Drop a minus sign and the calculator measures a path across the Atlantic and Asia instead, which returns about 11,600 km.
With the signs correct the answer is 3,935.8 km, which is 2,445.6 miles or 2,125.1 nautical miles. The initial bearing is 273.7 degrees, a hair north of due west, and that bearing changes along the route: a great circle from New York to Los Angeles starts nearly west and finishes nearly west-southwest because the route bends north in the middle.
| Pair of cities | Kilometers | Miles | Nautical miles |
|---|---|---|---|
| New York to Los Angeles | 3,935.8 | 2,445.6 | 2,125.1 |
| London to New York | 5,570.2 | 3,461.2 | 3,007.7 |
| Chicago to Denver | 1,477.7 | 918.2 | 797.9 |
| Seattle to Miami | 4,396.1 | 2,731.6 | 2,373.7 |
Published city-pair figures differ from these by a few miles because they are measured between different points: an airport, a city hall, a geographic center. For any of the rows above, a ten mile difference between two sources is normal, and a hundred mile difference means one of them is measuring a road route.
Distance from speed and time
When the trip is already under way, the question flips: distance = speed x time. Sixty miles per hour for 2.5 hours covers 150 miles, which is 241.4 km. The same formula backward gives the time: 2,445.6 miles at 60 miles per hour is 40.76 hours, and that is driving time on a straight line with no stops.
| Speed | Time for 2,445.6 miles | What it represents |
|---|---|---|
| 30 mph | 81.5 hours | City traffic, stop and go |
| 60 mph | 40.8 hours | Highway average with few stops |
| 65 mph | 37.6 hours | Posted rural interstate limit in many states |
| 500 mph | 4.9 hours | Airliner cruise, before taxi and climb |
Average speed is the whole input here, and it is always lower than the posted limit. Fuel stops, traffic, and the last few miles off the highway pull a 65 mph limit down to something closer to 55 mph over a long day, which turns 37.6 hours into 44 hours. The calculator returns the arithmetic; the average speed is yours to defend.
Miles, kilometers and nautical miles
The international mile is defined as exactly 1,609.344 meters, a definition fixed by international agreement in 1959 and listed in the National Institute of Standards and Technology guide to SI units. The nautical mile is exactly 1,852 meters, which is one minute of latitude, and that is why it divides evenly into degrees on a chart.
| Unit | Meters | One degree of latitude | Used for |
|---|---|---|---|
| Kilometer | 1,000 | 111.2 km | Most of the world, road signs |
| Mile | 1,609.344 | 69.09 miles | United States and United Kingdom roads |
| Nautical mile | 1,852 | 60 nautical miles | Aviation and marine navigation |
The neat row is the last one. A degree of latitude is 60 nautical miles by definition, so a route that runs 600 nautical miles north covers ten degrees of latitude. The circumference of that mean sphere is 2 x 3.14159 x 6,371.0088 = 40,030.2 km, and 40,030.2 / 360 = 111.195 km per degree, which is 69.09 miles. That single number covers most mental estimates: 40 degrees of latitude is about 4,448 km.
Coordinates, and the mistakes that break them
Latitude runs from 90 south to 90 north and longitude from 180 west to 180 east. Decimal degrees are the format this page wants, and the sign convention is the part that goes wrong: the western hemisphere is negative longitude and the southern hemisphere is negative latitude. New York is 40.7128, -74.0060, not 40.7128, 74.0060.
Degrees, minutes and seconds convert by dividing minutes by 60 and seconds by 3600. A coordinate written 40 degrees 42 minutes 46 seconds north becomes 40 + 42 / 60 + 46 / 3600 = 40.7128. Keeping the north and west labels in the text and dropping the signs is the most common error, and it produces a plausible number for a place nobody asked about.
A second source of error is mixing formats in one field: 40.7128 in one box and 34 3 8 in the next. Enter one format for both points. If a GPS device shows 40.712800 N and 74.006000 W, the two numbers to type are 40.7128 and -74.006.
When a straight line is the wrong answer
The great circle is the right number for a flight path, a satellite link budget, or a radio line of sight, and it is the wrong number for a road trip, a delivery route or a pipeline. Roads bend because of terrain, property lines and the grid they were laid on, and the ratio between road and straight line is usually between 1.15 and 1.4 in flat country, worse in mountains.
Water adds another step. A ferry route has to reach a terminal, so the nautical distance between two ports on opposite shores is a starting point, not the crossing. Weather routing can add a tenth to an ocean passage on its own.
Two pages on this site handle the neighbors of this question. The drive time calculator works from a road route and an average speed, which is what a trip plan needs. The parking distance calculator measures the geometry of a parking space and how far a car can be from a curb, which is a survey question about a few feet, not a route between towns. This page sits between them: two points, any distance, no roads and no parking lines.
Frequently asked questions
How do I calculate the distance between two coordinates?
Convert the latitude and longitude differences to radians, apply the haversine formula to get the central angle, then multiply by the Earth radius of 6,371.0088 km. New York to Los Angeles comes out at 3,935.8 km.
Why is the straight-line distance shorter than the driving distance?
Roads follow terrain and property lines instead of the curve of the Earth. A road route is typically 15 to 40 percent longer than the great circle, and the gap grows in mountains.
What radius does the calculator use for Earth?
6,371.0088 km, the mean radius. The equatorial radius is 6,378.137 km and the polar radius is 6,356.752 km, so a mean sphere keeps the error small at every latitude.
How many miles is 3,935.8 kilometers?
Divide by 1.609344, which gives 2,445.6 miles. The mile is exactly 1,609.344 meters by international agreement, so the conversion has no rounding error of its own.
How many nautical miles is the same trip?
3,935.8 / 1.852 = 2,125.1 nautical miles, because one nautical mile is exactly 1,852 meters. A nautical mile is also one minute of latitude, so 60 of them make a degree.
What does the bearing number mean?
It is the compass direction at the start of the route, measured clockwise from north. New York to Los Angeles starts at 273.7 degrees, just north of due west, and the heading changes as the route curves.
How long does 2,445.6 miles take to drive?
At an average of 60 miles per hour, 40.8 hours. That is straight-line distance with no stops, so a real trip on roads takes longer on both counts.
Can I use this for a flight time?
Yes, as a floor. A 2,445.6 mile flight at 500 miles per hour is 4.9 hours in the air, and taxi, climb and descent add roughly half an hour. Wind can add or remove more.
Should longitude be negative?
Yes for the western hemisphere. New York is -74.0060 and Los Angeles is -118.2437. A positive longitude in the United States sends the calculation into Asia and returns a much larger number.
How do I convert degrees and minutes to decimal degrees?
Divide minutes by 60 and seconds by 3600, then add them to the degrees. 40 degrees 42 minutes 46 seconds becomes 40 + 0.7 + 0.0128 = 40.7128.
How far is one degree of latitude?
111.195 km, or 69.09 miles, or 60 nautical miles. It is nearly constant everywhere because meridians are parallel, while a degree of longitude shrinks toward the poles.
How far is one degree of longitude at 40 degrees north?
About 85.2 km, because the parallel is shorter there: 111.195 x cos(40) = 85.2 km. At the equator the same degree spans 111.2 km and at the pole it spans nothing.
Does the calculator work for short distances?
Yes. The haversine formula stays accurate at a few hundred meters, where a flat plane approximation also works. Over a few feet, survey-grade work needs a local projection instead.
Spotted a wrong number or a broken result?
More Everyday tools
- 1 Hour Cycling Calories Calculator
- 1 Hour Lunch Break Calculator
- 1 Million in Numbers
- 1 Weeks Ago From Today
- 1 in 60 Rule Calculator
- 10 Day Payoff Calculator
- 10 Hour Shift Schedule Calculator
- 10 Minutes From Now
- 10 Months Ago From Today
- 10 to 1 Arm Workout Calculator
- 10207 2: Log Base 2 Calculator
- 1099 Hourly Rate Calculator
- 11 Months Ago From Today
- 11 Weeks Ago From Today
- 12 Hour Shift Pay Calculator
- 12 Months Ago From Today
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.