Calculation
Formula and game rule
Bearing = atan2(ΔX, −ΔZ) converted to degrees and normalized to 0–360, where north is negative Z and east is positive X.
Coordinates
Turn X and Z travel into a compass bearing and cardinal direction.
Compass Bearing CalculatorTry it now
Game rule: Results update instantly while you type.
Step-by-step guide
Calculate destination X minus starting X and enter it as the X change.
Calculate destination Z minus starting Z and enter it as the Z change.
Follow the resulting bearing or eight-point cardinal direction.
Calculation
Bearing = atan2(ΔX, −ΔZ) converted to degrees and normalized to 0–360, where north is negative Z and east is positive X.
Worked example
An X change of 100 and Z change of 0 points east at a bearing of 90 degrees.
The X/Z direction convention used here applies to both Java and Bedrock Edition.
This page is designed for players looking for a Minecraft bearing calculator, coordinate direction calculator, X Z compass direction. The calculator runs locally in your browser and updates without sending your world coordinates or command inputs to the server.
Common questions
North decreases Z, south increases Z, east increases X and west decreases X.
Zero degrees points north; 90 points east, 180 south and 270 west.