Minecraft wiki entry for Measuring_distance, associated text: The above calculation is correct if you want the "map" distance between two points (i.e., only the north–south (z) and East/West (x) distance). But if you wish to include the elevation (y) in the distance calculation as well, that's very easy to do: Simply add the y coordinates to the above distance formula: