Minecraft Mob Spawning Calculator

By the ChunkScan Team · Updated October 2026

Quick answer: To check a mob farm, open /mob-spawning-calculator?afk=0,124,0&box=-4,99,-4,4,99,4: with the AFK spot at Y 124 over a 9 × 9 platform at Y 99, 98.8% of its 81 floor blocks sit in the spawning sphere (more than 24 and up to 128 blocks away), one block is too close, and the best AFK spot over the centre is Y 125, which covers 100.0%. One player loads 289 spawnable chunks.

Check how much of a mob farm's platform sits in the spawning sphere around your AFK spot, find the best AFK height, and see the mob caps for your players (Java Edition).

Sponsored

The spawning sphere: 24 to 128 blocks

In Java Edition every natural spawn attempt measures the distance from the nearest player to the spot where the mob's feet would be. If that distance is 24 blocks or less, the attempt fails, so nothing spawns right next to you. Mobs are also kept 24 blocks away from the world spawn point. A mob that spawns more than 128 blocks from the nearest player is removed the next time the game checks it, so in practice the useful zone is a hollow sphere: more than 24 and at most 128 blocks from you. The distance is a straight line in three dimensions, which is why a farm high in the sky works best when you stand right above or below it.

Random despawning past 32 blocks

Between 32 and 128 blocks a mob does not vanish at once, but once it has gone more than 600 ticks (30 seconds) without anything happening to it, it has a 1 in 800 chance to despawn on every tick. Closer than 32 blocks this timer resets. A good farm moves mobs off the platform quickly, so random despawning rarely matters, but a slow farm loses mobs that sit too long in the outer shell. Fish are the exception: water ambient mobs despawn at once past 64 blocks instead of 128. Mobs that have to persist, such as name-tagged ones, never despawn this way.

Mob caps and the 17 × 17 chunks

Each mob category has a value in the game code: 70 for monsters, 10 for animals, 15 for bats, 5 each for axolotls, glow squid and other water creatures, and 20 for fish. The world-wide cap is that value times the number of spawnable chunks divided by 289, the 17 × 17 chunks around one player. Chunks near two players count only once, so two players in the same spot share one cap, while players far apart each add a full set of chunks. Since 1.18 every player also has a personal cap of the same value: a chunk may only spawn while at least one player near it is still under that cap, so mobs around one player no longer block spawning for another.

Sponsored

Choosing the AFK spot

Put the AFK spot more than 24 blocks from every platform block and keep the farthest corner within 128 blocks. The calculator searches every whole Y level above the centre of your platform and picks the one that covers the most floor blocks, preferring fewer blocks in the random-despawn zone. Caves, other surfaces and dark spots within 128 blocks also fill the monster cap, so light them up or build over an ocean. The same rules apply to slime farms, which also have to sit in slime chunks.

Bedrock Edition

Bedrock Edition uses a different system and this page does not model it. According to the Minecraft Wiki, mobs there spawn between 24 and 44 blocks from the player at simulation distance 4 and between 24 and 128 blocks at simulation distance 6 and up, with a global cap of 200 mobs plus separate population caps per area.

How far away do mobs spawn in Minecraft?

In Java Edition, more than 24 blocks and up to 128 blocks from the nearest player, measured in a straight line from the player's feet to the mob's feet.

Sponsored

What is the mob cap for hostile mobs?

70 per player area of 289 chunks. With one player that is a world cap of 70; players far apart raise the world cap, and each player has a personal cap of 70 as well.

How high should my AFK spot be above a mob farm?

High enough that the nearest floor block is more than 24 blocks away, and low enough that the farthest is within 128. Enter your platform above to get the exact Y.

Why do mobs despawn in my farm?

Past 128 blocks they despawn at once, and past 32 blocks an idle mob can despawn at random after 30 seconds. Keep the platform close and move mobs off it quickly.

Open the seed search