How much RAM does your Minecraft server need?The maths, its sources, and its limits.
Pick your server software, your players and your mods: the calculator gives the memory to hand to Java, the server memory and the number of vCPUs. The full formula is shown, with the sources its figures come from.
Recommended server
of RAM, vCPU
- Software base
- 1 GB
- Plugins
- 0.5 GB
- Players
- 1 GB
- Memory for Java (rounded)
- 3 GB
- JVM margin
- 1 GB
If you host it yourself: -Xms3G -Xmx3G
Entrée de gamme
Intel Xeon Gold 6132
€1.93/monthstopped: €0.06/month
OrderHaut de gamme
AMD Ryzen 9 5950X
€3.74/monthstopped: €0.09/month
Order
With 10 GB of NVMe disk, running all month, VAT included. Billed by the minute: when stopped, it only pays for its disk.
How we calculate
Four parts, added up then rounded up to the next gigabyte.
- A base per server software: 1 GB for Vanilla or Paper, 1.5 GB for Fabric, 2 GB for Forge and NeoForge, which load more at startup. The Minecraft wiki asks for at least 1 GB allocated.
- A cost per mod or plugin: 20 MB per plugin, 10 MB per Fabric mod, 15 MB per Forge mod. Heavy modpacks then land in the range their authors give.
- A cost per player: a fixed 50 MB, plus 50 MB at the default simulation distance (10), scaled to the number of chunks simulated around them, i.e. (2 × distance + 1)². The wiki counts 50 to 100 MB per player.
- The JVM margin: Java uses a little more than you give it. PaperMC advises leaving 1 to 1.5 GB between the server memory and
-Xmx; we take 1 GB, then 1.5 GB above 6 GB.
For vCPUs: the game runs each tick on a single core, and extra cores go to the garbage collector, chunk loading and networking. We suggest 1 vCPU, a second one above 10 players or 50 mods, a third above 40 players.
What really drives memory up
- Simulation distance. With 5 players at distance 10, the server simulates 5 × 21², i.e. 2,205 chunks. At distance 5, it only simulates 605. All the Mods 10 actually ships its server set to 5.
- The world itself. The wiki warns that a large world can more than double the needs of a fresh one: every explored area ends up being loaded.
- Mods. A modpack with several hundred mods starts with several gigabytes before the first player joins.
- Entities. Farms, animal pens and machines keep running as long as a player is within simulation range.
Can you have too much RAM?
Yes. The PaperMC documentation notes that past a certain point, more memory improves nothing; a Java heap that is too large even makes some garbage collection passes longer. It also advises setting -Xms equal to -Xmx, so the JVM reserves all its memory from the start.
The right setting is the smallest one that holds without slowing down. If the console shows long pauses or a crash from running out of memory, go up one or two gigabytes and check again.
Questions we get asked
How much RAM for 10 players on Vanilla?
By the calculation, 2 GB for Java, so a 3 GB server with the JVM margin, at the default simulation distance.
And for 30 players on Paper with around forty plugins?
About 5 GB for Java and a 6 GB server, with 2 vCPU. PaperMC's page on Aikar's flags also recommends at least 6 to 10 GB, whatever the number of players.
How much for a modpack like All the Mods?
The All the Mods authors ask for at least 6 GB allocated for most of their packs, and more than 12 GB for several players. The All the Mods 10 server files start at 4 to 8 GB.
My machine has 8 GB, should I set -Xmx8G?
No. Leave 1 to 1.5 GB to the JVM and the system, as PaperMC advises: for example 6.5 GB on an 8 GB machine. Otherwise, the system may stop the server when it runs out of memory.
Does this calculator work for Bedrock?
No, only for Minecraft Java Edition. The Bedrock server doesn't use Java and its needs don't follow these figures.
Your Minecraft server, at the size you calculated
CPU, memory and disk are chosen one by one, and can be changed later. Billed by the minute; when stopped, it only pays for its disk.
Other tools
- server.properties generatorAll 69 Minecraft 26.3 settings, explained one by one.
- Minecraft MOTD generator§ colour codes, two-line preview, server.properties and Velocity.
- FiveM server.cfg generatorOneSync, oxmysql database, admins, ESX, Qbox or QBCore.
- 7 Days to Die serverconfig.xml generatorAll 68 properties of the V3.2 file, SandboxCode included.
- ARK GameUserSettings.ini generatorRates, PvE, difficulty and breeding, in GameUserSettings.ini and Game.ini.
- enshrouded_server.json file generatorUser groups and passwords, difficulty and 37 gameplay settings.