- Divide your Overworld X and Z by 8 to get the Nether spot. Multiply by 8 to go back.
- Y doesn't change.
- The game sends you to the closest portal it can find near that spot. That's why portals mislink.
Came out of the Nether 100 blocks from your base? Two portals spitting you out of the same place? It's not random. The game follows three simple rules.
Rule 1: divide by 8
1 block in the Nether = 8 blocks in the Overworld. This only applies sideways (X and Z).
| Overworld | Nether |
|---|---|
| X 800, Z -1200 | X 100, Z -150 |
| X 250, Z 333 | X 31, Z 41 |
| X -1203, Z 40 | X -151, Z 5 |
Rule 2: height stays the same
A portal at Y 70 looks for a partner around Y 70 in the other dimension.
The game does search the whole height of the world. But it measures distance in 3D, so a portal at a closer height can win even if it looks further away on your map.
Rule 3: closest portal wins
When you step through, the game converts your coordinates, searches the area around that spot, and sends you to the nearest portal.
So if two Overworld portals are within 128 blocks of each other, a Nether portal might send you to the wrong one.
No portal in range? The game builds a new one for you, wherever it finds space. That's how you end up on a random ledge.
How to link portals properly
- Stand in your first portal and note your X, Y and Z (F3 on Java, or turn on "Show coordinates" on Bedrock).
- Convert X and Z: ÷ 8 going into the Nether, × 8 coming out. Keep Y.
- Go to those coordinates in the other dimension and build the second portal yourself. Don't trust the auto-made one.
- Break any spare portals the game made. Leftovers cause most mislinks.
- Test it both ways. Go through and back, and check you land where you expect.
Portal still linking wrong?
| Problem | Fix |
|---|---|
| Two Overworld portals use the same Nether portal | Build a separate Nether portal for each, more than 16 blocks apart on Java |
| Nether portal sends you to the wrong Overworld portal | Another portal is closer. Move it, or rebuild yours on the exact converted coordinates |
| A brand new portal keeps appearing | Your portal is out of range. Recheck the maths, especially negatives |
| Two portals in range, wrong one wins | Rebuild at a matching Y level |
Cheat sheet
- ÷ 8 for X and Z, round down. Keep Y.
- Build the second portal yourself.
- Java: Nether portals over 16 blocks apart, Overworld portals over 128 blocks apart.
- Bedrock: over 128 blocks apart in both dimensions.
- Delete spare portals.

Why Your Anvil Says Too Expensive
Shulker Box Storage Maths
Best Furnace Fuel in Minecraft