Minecraft server RAM calculator
Estimate how much memory your server needs and get ready start-up flags.
How many you run.
In chunks, as in server.properties.
Java Edition only.
Recommended memory
Most of it comes from the players.
Where it goes
- Base2 GB
- Players2.9 GB
- Plugins1.0 GB
Start command
java -Xms6G -Xmx6G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar server.jar nogui
Aikar’s flags for Paper and other servers. The block scrolls sideways.
An estimate, not a promise: watch the real memory use for a week and adjust.
About the tool
How the estimate works
The calculator adds up a base for the server type and what your players and plugins or mods take. Base: 2 GB for Vanilla and Paper, 3 GB for Fabric, 4 GB for Forge and NeoForge. Each player at peak adds about 75 MB at view distance 10; the player part grows with the square of the view distance, so 20 chunks costs four times as much as 10. Each plugin adds about 30 MB and each mod about 25 MB. A proxy starts at 512 MB and adds about 1 MB per player.
The result is rounded up to a whole gigabyte, and the range shows where most servers like yours end up. Real use depends on the plugins, the world and the players, so treat it as a starting point.
The start command
The command sets the same minimum and maximum memory (-Xms and -Xmx), so the server takes its memory at start and keeps it. For game servers it adds Aikar’s flags, the garbage collector settings the PaperMC docs recommend, with larger values above 12 GB. For a proxy it uses the flags the Velocity docs recommend.
FAQ
How much RAM does a Minecraft server need?
A small server with friends runs on 2 to 4 GB. A public Paper server with a few dozen players and plugins usually needs 6 to 10 GB. Big modpacks can need 10 GB or more.
Can I give the server too much RAM?
Yes. More memory than it needs makes garbage collection pauses longer, and the operating system needs memory too. Leave 1 to 2 GB of the machine free.
Why are -Xms and -Xmx the same?
With equal values the server reserves all its memory at start, so it never has to grow the heap while players are online. The PaperMC and Velocity docs both advise it.
What are Aikar’s flags?
A set of Java garbage collector settings tuned for Minecraft servers. They make lag spikes from memory clean-up shorter. The PaperMC docs recommend them.
Does view distance really matter that much?
Yes. The server keeps the chunks around every player in memory, and their number grows with the square of the view distance. Lowering it from 12 to 8 cuts that part by more than half.