Great circle distance is the shortest distance between any two points on a sphere.
Because the Earth is approximately spherical, the great circle distance is commonly used to find the distance (e.g. in miles) between two coordinates (latitude/longitude pairs) on a map. First, some definitions:
In order to use this formula for anything practical you will need two sets of coordinates. I'll provide the latitude and longitude of two airports:
Nashville International Airport (BNA) in Nashville, TN, USA: W 86°40.2, N 36°7.2'
Los Angeles International Airport (LAX) in Los Angeles, CA, USA: W 118°24.0, N 33°56.4'
Convert coordinates
You will have to convert these coordinates to a more mathematically friendly form using a simple method before you can use them effectively in a formula. After conversion, the coordinates become:
BNA:
LAX:
You'll need to convert these coordinates to radians instead of degrees for them to be useful in the formula:
BNA:
LAX:
Substitute
The first step is simply to substitute numbers where appropriate. We'll do this in small steps to keep them manageable: