RAM calculator
Estimate how much memory a server needs, and what the JVM actually gets to use.
How the estimate is worked out
A Minecraft server's memory use grows with a few things you can measure. The calculator starts from a base of 512 MB for the server itself and adds:
- about 11 MB for each player online at once,
- about 260 MB of loaded chunks at a view distance of 10, scaling with the square of the view distance, because each player loads a square of chunks around them,
- about 9 MB per plugin or mod,
- about 120 MB for each extra world kept loaded, such as the Nether, the End or a resource world.
That total is then scaled by server type. Spigot and vanilla use a little more than Paper, light Fabric or Forge setups use about twice as much, and large modpacks with 100 or more mods close to three times. The result is the Java heap, the -Xmx value.
Why the total is bigger than the heap
Java needs memory outside the heap for class metadata, thread stacks, garbage-collector bookkeeping and network buffers. That overhead stays roughly the same whatever the heap size, so the calculator adds a flat 400 MB on top. The plan has to fit heap plus overhead.
This is the part people usually get wrong. Setting the heap to the full plan size leaves Java nowhere to put everything else. The operating system then kills the process, and you get no crash report at all, because the server never had a chance to write one. Our guide on memory and Java flags goes through a real case.
A worked example
With the default inputs (20 players, 15 plugins, view distance 10, Paper, 2 extra worlds), the heap comes to about 1.3 GB. Add the 400 MB overhead and the server needs about 1.7 GB, so a 2 GB plan covers it. Turning the view distance up to 16 adds roughly 400 MB of chunks on its own, which is why view distance is the first setting to lower on a tight plan.
Treat it as a starting point
These are averages. One plugin with a memory leak, a huge build farm or a player flying through new terrain can use far more. Start with the suggested plan, watch memory in the panel during your busiest hour, and move up if it sits near the limit.
Free to use, no account needed. Everything happens in your own browser. Nothing you type is sent anywhere.
Filed under Capacity.
Other capacity tools
- Backup size estimator: Work out how much disk a backup schedule will use before you turn it on.