Maps & Surveying
Great Circle Cross-Track & Along-Track Offset Calculator
Measure signed spherical offset of a location from a directed great-circle path.
How the calculation works
Signed cross-track distance = geo_cross(lat_a,lon_a,lat_b,lon_b,lat_p,lon_p,radius,"cross") km. Along-track distance from start = geo_cross(lat_a,lon_a,lat_b,lon_b,lat_p,lon_p,radius,"along") km. Reference arc length = geo_cross(lat_a,lon_a,lat_b,lon_b,lat_p,lon_p,radius,"length") km.
Worked example
Example inputs — Start latitude (degrees north): 0; Start longitude (degrees east): 0; End latitude (degrees north): 0; End longitude (degrees east): 90; Spherical earth radius (km): 6371; Test point latitude (degrees): 10; Test point longitude (degrees): 45. Expected results — Signed cross-track distance: -1111.949266 km; Along-track distance from start: 5003.771699 km; Reference arc length: 10007.5434 km.
Assumptions and limits
Educational geometry with an explicit coordinate convention. Not a cadastral boundary, certified survey or navigation service. Positive cross-track is right of the directed A-to-B route. Along-track is measured on the infinite great circle, not clamped to the A-to-B segment; foot locations beyond either end are possible.
Reference and further reading
Read the underlying subject reference. Calculith is an independent implementation; the reference does not endorse or certify this tool.
Related calculators
- Spherical Great Circle Distance, Bearings & Interpolation Calculator
- Spherical Constant-Bearing Rhumb Route Calculator
- WGS84 Cartesian & Local East-North-Up Calculator
- Spherical Cylindrical Map Projection Calculator
- Web Map XYZ Tile, Pixel & Resolution Calculator
Example values are editable. Results are estimates where assumptions apply. Calculations run in your browser. Updated 2026-11-16.