HOW NETHER COORDINATES WORK
Minecraft uses an 8:1 horizontal coordinate ratio between the Overworld and Nether. One block traveled in the Nether corresponds to eight blocks in the Overworld on the X and Z axes.
Overworld → Nether
X ÷ 8 · Z ÷ 8
Nether → Overworld
X × 8 · Z × 8
The calculator shows both the exact mathematical result and a nearest-block result for practical portal placement. Negative coordinates work normally.