Route & position
Cross-track error
right of course
497.9 statute miles
Cross-track error tells you how far left or right you have drifted from your planned great-circle course. Positive values are right of course.
Runs entirely in your browser — your inputs never leave this page.
How this tool works
- 1
Solves the spherical cross-track formula XTE = asin(sin(δ13) × sin(θ13 − θ12)) × R, giving signed nautical-mile deviation left or right of course.
Common uses
- Flight plan monitoring
- Sailing course correction
- Drone corridor compliance
Frequently asked questions
How far left or right you have drifted from your planned straight-line course, measured in nautical miles.
More in Aviation
- Flight Distance CalculatorCompute precise great-circle flight routes, initial and final headings, flight duration estimates, and antipodal intersections between global airports.
- Airport Code LookupSearch over 10,000 global civilian and military airports by IATA 3-letter or ICAO 4-letter code. View coordinates, elevation MSL, and runway orientations.
- Flight Time EstimatorEstimate great-circle flight distance and block time between two airports from cruise speed, with wind adjustment.
- Crosswind CalculatorCompute headwind, tailwind, and crosswind components for any runway from wind speed and direction.
- Airport FinderSearch global airports by ICAO/IATA 3-letter codes, city name, or coordinates. View runway lengths, elevations, and airspace classification.
- Flight Distance CalculatorCalculate great-circle flight distances between any two global airports in nautical miles, statute miles, and estimated flight duration.
- METAR DecoderPaste any raw METAR report or enter an airport code. Every group — wind, visibility, weather, clouds, temperature, altimeter — is translated into plain English, with the flight category (VFR / IFR) flagged.
Correcting Back to Course on a Dallas to Phoenix Flight
A private pilot is flying a long cross-country leg from Dallas, Texas toward Phoenix, Arizona, steering a great-circle route between two waypoints. The leg is about 300 nautical miles, long enough for a small heading error or a wind shift to quietly push the airplane sideways for an hour. An hour into the flight, a position fix shows the airplane is not quite where the plan says it should be, so he opens the cross-track error calculator to measure the problem instead of guessing at it. Guessing is how small errors become scenic detours over the desert.
He enters the two route waypoints and his current position. The tool reports a cross-track error of 6 nautical miles to the left of course, with about 120 nautical miles still to run to the next waypoint. Six miles off may not sound like much at altitude, but left uncorrected it grows into a missed waypoint, the wrong patch of airspace, extra fuel burned flying a longer path, and a controller asking questions he would rather not answer. Naming the error as a number also ends the argument between the map, the compass, and his own optimism.
He chooses a standard 30-degree intercept to get back. The geometry is friendly: to close 6 miles of sideways error at a 30-degree angle, he divides 6 by sin 30 degrees, which is 0.5, giving about 12 nautical miles along the intercept heading before he crosses the course line. He turns onto the intercept heading, holds it steady rather than chasing every small change, and watches the reported error shrink fix by fix. Twelve miles later the geometry delivers exactly what it promised, and the course line arrives under the nose on schedule.
At the course line he turns back to his planned heading, adding a small wind correction so the error does not quietly build again on the same side. A fresh check ten minutes later shows the cross-track error under half a mile, which is as close to perfect as light-aircraft navigation honestly gets. The rest of the leg is uneventful, and he crosses the Phoenix waypoint within a minute of the plan, with the calculator's three numbers, error, distance to run, and intercept, written in the margin of his log. He debriefs himself honestly over coffee after landing, because that is where the lesson is. The error had crept in early, probably with a wind shift he noticed and then forgot to recheck, and it grew at a leisurely two miles every ten minutes while everything felt fine. The fix took one formula, one steady intercept, and one verification. Next leg, he schedules the cross-track check with the fuel check, every thirty minutes, so a six-mile error never gets the chance to become a twenty-mile story.
Common mistakes to avoid
- Swapping the start and end waypoints. Left and right are defined by your direction of travel. Enter the waypoints backwards and the tool will call a left error a right one, and you will correct the wrong way with complete confidence, doubling the error instead of closing it while the numbers applaud.
- Overcorrecting near the destination. With only a few miles left to run, a big intercept angle overshoots wildly and starts an S-turn pattern across the course line. The closer you are to the waypoint, the gentler the correction should be, even if a dramatic turn feels more decisive.
- Mixing nautical and statute miles. Aviation works in nautical miles. If your GPS reports statute miles and you enter them as nautical, every correction you make is about 15 percent wrong, and the error you are chasing is partly one you invented at the keyboard before takeoff.
Pro tips
- Recheck the error after each correction instead of making one huge turn and hoping for the best.
- Note the along-track distance too: how far along the leg you are decides how aggressive the intercept can be.
- A small, early correction beats a large, late one; six miles off at mid-leg is cheap to fix.
Applied Geospatial: Aviation, Marine, Time & Map APIs
Where mapping meets the real world: how planes navigate the curve of the Earth, how ships measure the sea, how time zones really work, and how developers build on map tiles and APIs. Written for Cross-Track Error Calculator and the everyday mapping tasks around it.
Great-Circle Navigation: Why Planes Arc
The shortest path between two points on a sphere is a great circle — the route you get slicing the planet through its center. On a flat map this looks like a dramatic arc, which is why New York to Tokyo flights swing near Alaska. The map is lying; the plane is flying straight.
Airlines do not fly perfect great circles. Jet streams — rivers of wind at 35,000 feet — can add 100 mph to ground speed or subtract it. Dispatchers nudge routes into favorable winds, trading a few extra miles for much faster trips. The planned track is a great circle bent by the weather.
For flight planning, distances come in flavors. Great-circle miles are the geometric minimum; filed flight plans run 3 to 7 percent longer for airways and maneuvering. Fuel planning adds reserves on top. When a tool reports 5,500 miles for a transatlantic hop, the airline plans for 5,800.
Airports are identified by two code systems. The 3-letter IATA codes (JFK, LHR, CDG) are for travelers; the 4-letter ICAO codes (KJFK, EGLL, LFPG) are for pilots and air traffic control, with the first letter naming the region. Both point to the same runways.
At Sea: Nautical Miles, Knots & Rhumb Lines
A nautical mile is one minute of latitude — about 1.15 land miles or 1.85 kilometers. Because it derives from the Earth's geometry, it is the natural unit for marine navigation: one minute of latitude traveled equals one nautical mile made good, anywhere on the planet.
Speed at sea is measured in knots — nautical miles per hour. The word comes from sailors tossing a knotted rope overboard and counting knots paid out against a sandglass. A container ship at 20 knots covers about 480 nautical miles a day, which is why your overseas order takes weeks.
Sailors historically steered rhumb lines: courses of constant compass bearing. A rhumb line spirals toward the pole and runs longer than the great circle, but it is trivially easy to follow — just hold the heading. Modern ships with GPS follow great circles, but the rhumb line remains the backup every navigator learns.
Ports are the fixed points of maritime geography. Each major harbor publishes exact coordinates for its harbor entrance, and shipping contracts price by port pair. A few miles of error in a port position can misroute a vessel into the wrong traffic lane — precision matters even on the open ocean.
This page shows the first two chapters. Read the complete this category field guide →