Along-Track Distance (the Companion of Cross-Track Error)
Also known as along track distance · ATD · distance along course to the point abeam · distance made good along the track · along-track from cross-track · abeam distance along great circle · progress along a leg · how far along the route · distance along the great circle to the point abeam · XTD and ATD · along track distance aviation formulary
Worked example: Aviation Formulary: 0.02905 rad from the start, 0.00216747 rad off → 0.0289691 rad along. Press Try an example to run it live, then adjust anything.
Enter your known values, leave one input blank, and solves for the missing one. Tap a variable’s symbol to see what it means, with a typical value. Change any unit and the answer follows.
Where Along-Track Distance (the Companion of Cross-Track Error) fits
Along-Track Distance (the Companion of Cross-Track Error) explained
Once an aircraft or a ship is off its track, two numbers describe where it is: how far off the track, the cross-track distance , and how far along it, the along-track distance . The second is measured along the great circle from the start of the leg to the point abeam of the present position, and it says how much of the leg is behind you. Together with the distance from the start to the present position they form a right spherical triangle: and are the legs and is the hypotenuse.
On a sphere the distances are tied together through their cosines, after each is divided by the Earth radius to make it an angle at the centre of the Earth. That gives , and the formula is this relation solved for the along-track leg. The cross-track distance enters as a size only, so it makes no difference which side of the track you are on. When the off-track distance is small beside the distance flown, as in the example below, the along-track distance is only a little shorter than the distance from the start.
The relation is from Ed Williams' Aviation Formulary V1.47, which also gives an arcsine form for very short distances. Its worked example has an aircraft on its way from Los Angeles to New York at N34:30 W116:30, 99.87 nautical miles from the start and 7.45 nautical miles to the right of the track: it has made good 99.59 nautical miles along the track. In radians, 0.02905 from the start and 0.00216747 off give 0.0289691 along.
The page works in lengths with the mean Earth radius of 6 371 008.8 m, so its nautical miles differ from the Formulary's by 0.07 percent, because the Formulary counts one nautical mile for each minute of arc. Entering the example as 185.0778 km from the start and 13.80897 km off gives 184.5621 km along, which is 99.6555 nautical miles. Pair this page with the cross-track error page, which gives the off-track leg from the two bearings, and with the haversine page, which supplies the distance from the start.
Along-Track Distance (the Companion of Cross-Track Error) formula
- = Along-track distance (nmi)
- = Distance from the start to the position (nmi)
- = Cross-track distance (nmi)
- Williams, E. (2011). Aviation Formulary V1.47, 'Cross track error and along track distance', read 23 Oct 2026 at the author's site: 'XTD = asin(sin(dist_AD) sin(crs_AD - crs_AB))' and 'ATD = acos(cos(dist_AD)/cos(XTD))', and for very short distances 'ATD = asin(sqrt((sin(dist_AD))^2 - (sin(XTD))^2)/cos(XTD))'; the worked example for an aircraft at N34:30 W116:30 on the Los Angeles to New York track: dist_AD = 0.02905 radians (99.8665 nm), xtd = 0.00216747 radians (7.4512 nm right of course), atd = 0.0289691 radians (99.588 nm along course). Read it
Cite this page
formula.expert. (2026, October 30). Along-Track Distance (the Companion of Cross-Track Error) Calculator. https://formula.expert/solvers/along-track-distance