In this guide
Turn the coordinate display on, write down the three numbers you are standing on, and only then start walking. Mojang's exploration guide gives both switches: in Java Edition you press F3 to open the debug screen and read your position under the heading XYZ, and in Bedrock Edition you pause the game, open settings, scroll to World Options under Game, and toggle on Show coordinates. If you recorded your home numbers earlier, you now have a route. If you never recorded them, the numbers still stop you walking in circles, and the rest of this guide is about that case.
X and Z are the two numbers that get you home
Mojang describes the axes directly. X is longitude, west and east. Z is latitude, north and south. Y is altitude, height and depth. East and south are positive; west and north are negative. X and Z are measured from your world's original spawn point, the center of the map where you started, written as 0x, 0z.
Y works differently, because altitude ignores the spawn point. Mojang's guide gives Y as height and depth without naming the limits, and the community-run Minecraft Wiki puts the range at -64 to 320 with sea level at 63, a wiki figure with no version attached to it. So read Y as a direction rather than a fixed scale: a Y that is climbing takes you toward the surface, a Y in the low teens puts you deep underground, and finding the way up matters more than the exact bound.
Decide which branch you are actually on
Scroll sideways to see the full table →
| What you have | Do this next | What it will not tell you |
|---|---|---|
| Home X and Z written down | Walk while watching the display until both numbers move toward home | Whether the straight line between you and home is walkable |
| A recorded landmark near home | Navigate to the landmark's numbers first, then use the route you know | Which of two similar-looking hills is the right one |
| Only the trip you just took | Stop, note your current XYZ, and reverse the last stretch you remember | Anything, if you keep wandering while you think |
| A friend at home | Ask for their XYZ and confirm you are in the same dimension | Their numbers mean nothing if you are in the Nether and they are not |
| Nothing at all | Build a marked shelter, write its XYZ down, and scout short loops from it | Whether home is close; you are now building a new reference point |
The one limitation worth stating once: coordinates tell you where you are, not where home is. If nobody wrote the home numbers down, no amount of reading the display recovers them.
Example: reading the line and choosing a direction
Here is a worked example, with the axis rules doing the arithmetic. Your F3 screen reads XYZ: 412 / 71 / -318. Home is written on a sticky note as 120 / 68 / -40.
X has to fall by 292, so you need to travel west, because west is the negative direction. Z has to rise by 278, so you need to travel south, because south is positive. You do not need a compass bearing for this. Walk twenty blocks, look at the display, and check that X went down and Z went up; if one of them moved the wrong way, turn ninety degrees and check again. Y 71 against the wiki's sea level of 63 puts you on the surface, so the route is a walk rather than a climb out.
Then let terrain win the argument. A ravine or an ocean makes a detour correct, and after the detour you re-read the numbers instead of guessing how far the detour pushed you. When X and Z are within a few dozen blocks of home, switch to looking around: the recorded Y and the shape of your entrance distinguish a hilltop door from a cave mouth below it.
A compass points at world spawn, not at your house
Mojang is explicit that a compass needle always points toward the world spawn point, the very center of the world where you started the game. If you built your base three thousand blocks away, following the needle takes you to a patch of ground you abandoned on day two. It is still useful: world spawn is a fixed, known reference, and "walk to spawn, then use the route from spawn to home" is a real plan when you have no other numbers.
A map is the other tool Mojang describes. A new one starts blank, fills in terrain as you move, shows your own position as a white dot, and has a size limit, so reaching the edge of a filled map means it is time to craft another rather than to keep walking off the paper.
Write four numbers down and this stops happening
Minecraft generates over 60 types of biome, which is why one spruce forest looks exactly like the last one. Landmarks fail; numbers do not. Keep four entries: your base entrance, the first junction you pass on the way out, the farthest point you reached, and the dimension each one is in.
Make the base easier to recognize from the outside, too, which our guide to a starter base you can actually find treats as a design requirement rather than decoration. Keep the note with your travel gear, using the labeling habit from our chest system. And if a friend is guiding you in, check the edition and world setup first, so that the coordinates you are both reading belong to the same world.