Three numbers at the same place.
Draw a straight path running east for one kilometre, then north for one kilometre to the finish. Imagine you are level with the halfway point of the eastbound leg and have moved 30 m to its north. The sideways distance to that leg is 30 m. Your projected position along it is still roughly 500 m from the corner. Beyond the corner there is another 1,000 m of route to follow.
The remaining distance along the planned line from the projected point is 1,500 m. If an instrument instead measures straight to the finish from your actual position, the difference is about 500 m east and 970 m north. Pythagoras gives roughly 1,091 m. All three numbers can describe the same position. Following a route involves a choice about which of them matters for the next decision.
Which line is the device comparing?
A course-to-waypoint instrument may measure offset from the active leg between two waypoints. A track-following app might compare your position with a series of short line segments. Near a corner, the chosen leg or the nearest valid segment affects the value. The software may also use previous positions, travel direction or accuracy to decide which segment is relevant. Check the product’s own definition before treating two displays as interchangeable.
Picture an out-and-back through a park where the return trail runs 15 m from the outward one. A measured point on the wrong branch can be close to the intended course. A small off-course value alone would not prove you took the correct turn. Look at the order of the next features and your direction of travel, as well as the nearest piece of the line.
Does 30 m off course mean a 30 m walk back?
The perpendicular in the drawing is a distance measurement, not a suggested walking path. A wall, steep bank or river can make the shortest safe return much longer. At the same time, uncertainty in the measured location can account for some of the displayed offset. Be wary of treating the final few metres as exact on a small screen.
If the number changes after recentering or advancing to a new leg, look for a changed target or changed position fix. If you require a finish-time estimate, use remaining route distance and the terrain ahead. If you are checking a junction, use the active leg and mapped features. The question determines which number to read.
Sources & scope
What this answer is based on.
Garmin documents cross-track and waypoint distance as separate navigation quantities. The right-angled exercise uses local, flat-map distances and assumes the correct active leg.