Calculation
Formula and game rule
Signed distance = diameter ÷ 2 − max(|X−centre X|, |Z−centre Z|). A negative result is outside the square.
Coordinates
Measure how far a position is from a square world border.
World Border CalculatorTry it now
Game rule: The vanilla world border is square; this measures the nearest edge, not a circular radius.
Step-by-step guide
Enter your current X and Z coordinates.
Enter the configured border centre and full diameter.
Check whether the position is inside and how many blocks remain to the nearest edge.
Calculation
Signed distance = diameter ÷ 2 − max(|X−centre X|, |Z−centre Z|). A negative result is outside the square.
Worked example
At X 120, Z 80 with a border centred at 0,0 and diameter 1,000, the nearest edge is 380 blocks away.
This calculator models the configurable Java-style square world border. Bedrock world limitations and add-on borders may behave differently.
This page is designed for players looking for a Minecraft world border calculator, distance to world border, worldborder size calculator. The calculator runs locally in your browser and updates without sending your world coordinates or command inputs to the server.
Common questions
No. The command size is the full side length or diameter, so the half-size reaches from the centre to an edge.
It labels the position outside and reports the absolute number of blocks beyond the nearest boundary.