Minecraft Nether Portal Calculator
Turn Overworld coordinates into Nether coordinates and back, find exactly where to build a portal so it links, check which portal each of yours leads to, and count the obsidian for any frame size.
Tool added 27 Oct 2026 · Java 1.0 to 26.3 and Bedrock 1.19.30 to 1.26.60
Overworld 800, 70, -320 is Nether 100, 70, -40 in Java 26.3
Where to build the matching portal
Build the Nether portal with one of its bottom blocks at X 100, Z -40, as close to Y 70 as you can.
The game looks for a portal within 16 blocks of that spot on X and Z, so any portal in the square from X 84 to 116 and Z -56 to -24 can catch you. With none there, it builds a new portal within 16 blocks of the spot.
Teleport there with cheats on:
/execute in minecraft:the_nether run tp @s 100.5 70 -39.5
How portals link in Java 26.3. In Java 26.3 the game looks for a portal within 16 blocks on X and Z when you go to the Nether, and 128 when you go to the Overworld, at any height, and takes the portal block closest to the matching point. When two are equally close it takes the lower one. The matching point is your position divided or multiplied by 8; the game searches from the block it falls in. A portal can be 2 to 21 blocks wide and 3 to 21 tall inside its frame.
Check where your portals lead
Add each portal by the bottom block at its west or north end, its inside width and height, and the way it runs.
Add the portals you have built, in both dimensions, to see where each one leads.
Map of the search area
The Nether seen from above, north at the top: the dot is the matching point and the shaded square is where the game looks.
Portal frame and obsidian
Inside: 2 to 21 wide, 3 to 21 tall.
Commands that build and light this frame at the matching point:
How Nether coordinates work
One block in the Nether matches eight blocks in the Overworld, on X and Z. To find the Nether point under an Overworld spot, divide its X and Z by 8; to go the other way, multiply by 8. Y is not scaled: a portal at Y 70 in the Overworld matches Y 70 in the Nether. So Overworld X 800, Z -320 is Nether X 100, Z -40, and walking 100 blocks in the Nether covers 800 in the Overworld.
This is what makes the Nether a shortcut. Build a portal at home, walk to the matching Nether point of a far-off base, and build a second portal there: the trip is an eighth of the walk.
How portals link
When you step through a portal, the game works out the matching point in the other dimension and looks for an existing portal in a square around it. If it finds one, you arrive there; if not, it builds a new portal near that point. The square's size is what decides which portals link:
- Java 1.16.2 and later: 16 blocks each way on X and Z when you go to the Nether (a 33 by 33 square), and 128 each way when you go to the Overworld (257 by 257), at any height. The closest portal block wins; on a tie, the lowest.
- Java 1.15 to 1.16.1: every portal in the chunks around the chunk the matching point is in, in both directions: 17 by 17 chunks in 1.15 to 1.15.2 and 19 by 19 in 1.16 and 1.16.1, so a portal well over 128 blocks out can still catch you.
- Java 1.0 to 1.14.4: 128 blocks each way in both directions. The game checked every column downward to Y 0 and counted only the bottom block of each portal; the notice under the calculator gives the exact heights for the version you pick.
- Bedrock: 128 blocks each way in both directions. Distance counts height as well, measured to each portal's bottom block from 3 blocks above the matching point, so of two portals the same distance above and below you, the one above wins.
Because the search reaches 128 blocks into the Overworld, two Overworld portals closer than that can both lead to the same Nether portal, and the way back from it always picks the one nearer its own matching point. That is the usual reason a portal "links to the wrong one". Add your portals to the checker above to see every trip and whether it comes back.
How to link two portals properly
Light the first portal, then build the second yourself at the matching point the calculator gives, as close to the same Y as you can. Building it yourself stops the game from making a new portal in a place you did not choose. Keep other portals out of the search square around each matching point, and check the pair in the linker: both trips should show "two-way".
How much obsidian a portal needs
The smallest portal is 2 blocks wide and 3 tall inside, a 4 by 5 frame: 10 obsidian without the corners, or 14 with them. The corners are optional, since the portal only needs the sides. Each extra block of width or height adds 2 obsidian. From Java 1.7.2 a portal can be up to 21 by 21 inside, a 23 by 23 frame of 84 obsidian, or 88 with the corners; before that every portal had to be the smallest size. Bedrock allows the same 21 by 21. In Bedrock 1.19.30 to 1.19.50, a frame that crosses a chunk border lights only from the inside block on either side of that border, and one that crosses two borders does not light at all; from 1.19.60 any frame lights from anywhere inside. The frame builder above places the frame and marks where to light it for the version you pick.
Rounding and the edges of the world
The matching point is rarely a whole block. In Java 1.14 and later the game searches from the block it falls in. From Java 1.3.1 to 1.13.2, and on Bedrock, it rounds toward zero, so Nether X -12.7 points at -12 rather than -13, which shifts negative coordinates by one block. Before Java 1.3.1 nothing was rounded. The calculator applies each version's own rounding. From Java 1.3.1 the matching point is also held inside the edge of the world, about 30 million blocks out, so a Nether trip near the edge cannot take you past it.
Update history
Every change to this tool
- Tool added