Minecraft coordinates explained: which number is X, Y, and Z?
Minecraft coordinates are written in X, Y, Z order. The first number, X, is your east-west position; the second, Y, is height; and the third, Z, is your north-south position. Positive X goes east, negative X west, positive Z south, and negative Z north.
What X, Y and Z mean
| Axis | Controls | Positive direction | Negative direction |
|---|---|---|---|
| X | East and west | East | West |
| Y | Height and depth | Up | Down |
| Z | North and south | South | North |
Microsoft's current command documentation defines a position in the format x y z. That order never changes just because one coordinate is negative or contains a decimal. If the display reads 120 64 -35, X is 120, Y is 64 and Z is -35.
The official Minecraft guide to exploring the Overworld describes X as longitude, Y as altitude and Z as latitude. Longitude and latitude are useful memory aids, but Minecraft's positive Z direction is south, so always use the game's direction rules rather than assuming the signs match a real-world map.
How to read an example
Take the position 150 72 -340:
- X = 150: the position is 150 blocks east of X zero.
- Y = 72: the position's vertical coordinate is 72.
- Z = -340: the position is 340 blocks north of Z zero.
If you want to reach X 200 while keeping the other two coordinates roughly unchanged, walk east until the first number rises from 150 to 200. If you want to reach Z -400, walk north until the third number becomes more negative. To reach a higher platform, increase the middle number.
Coordinates measure a position in three-dimensional space; they are not a route planner. Terrain, caves, water and dimension boundaries can prevent a straight journey. Record the destination and monitor one axis at a time when navigating a long distance.
Positive and negative directions
The easiest rule to memorize is east and south increase; west and north decrease. Moving east makes X larger. Moving west makes X smaller. Moving south makes Z larger. Moving north makes Z smaller.
“Smaller” does not always mean closer to zero. From Z -100, walking north takes you through -101, -102 and onward, so the displayed number is decreasing even though its distance from zero is growing. From Z 100, the same northward movement initially takes you toward zero.
Y behaves more intuitively: moving upward generally raises Y, while moving downward lowers it. The exact safe building and generation limits can vary by dimension and game version, but that does not alter which number is Y.
Absolute, relative and local coordinates
A plain number is an absolute coordinate: it identifies a position relative to the world's coordinate origin. Commands also support relative coordinates marked with a tilde. Microsoft gives ~ ~ ~ as the current command position and ~ ~1 ~ as one block above it.
For example, ~5 ~ ~ means five blocks in the positive X direction, which is east, while preserving the current Y and Z values. The Microsoft position reference also documents caret notation for local coordinates. Carets are relative to the command executor's facing direction: ^ ^ ^1 means one block forward, not a fixed compass direction.
Do not mix up tildes and carets. Tildes offset the world axes; carets use left, up and forward from a local point of view. Plain numbers remain absolute X, Y and Z values.
How Java and Bedrock display coordinates
Both editions use the same X, Y, Z order and world-axis directions. The main difference is how the values are exposed in the interface. Java players commonly inspect position information through the debug display, while Bedrock worlds can show coordinates through world settings and supported interface controls.
If Java coordinates are missing, our guide on turning on coordinates in Minecraft Java covers the available display. If you only need a reminder of the axis order, the site's shorter answer to what XYZ means in Minecraft is also useful.
Microsoft's Bedrock creator documentation describes a copy-coordinate interface that can capture a player's local position or a targeted block. This feature is intended for copying values accurately, but it still outputs the standard coordinate order. See the official copying and pasting coordinates guide for its current controls.
A quick way to avoid mistakes
- Write the target as three labeled values: X, Y, Z.
- Adjust X by moving east or west.
- Adjust Z by moving south or north.
- Use Y only when the destination's height matters.
- Check every value before teleporting with a command.
The order can be remembered as across, height, depth: X moves across east-west, Y moves vertically, and Z moves across north-south. For the signs, remember east and south are positive.
Therefore, whenever Minecraft shows three position numbers, read the first as X, the middle as Y and the last as Z. That convention applies to displayed positions, shared locations and command arguments unless a command explicitly documents a different argument type.