Skip to content

Free tool

Minecraft Server RAM Calculator

Find out exactly how much RAM your Minecraft server needs. Pick your server software, mods and player count to get a recommended plan size, the right -Xmx value and a ready-to-paste startup command.

How much RAM does your Minecraft server need?

Works for vanilla, Paper, Purpur, Fabric, Forge, NeoForge and Bedrock. Your settings are saved in the link, so you can share the result.

Server software
Minecraft version

Most plugins are small. Web maps, big economies and anti-cheat are the heavy ones.

Use your busy-evening number, not your total player count.

The default is 10.

How do players play?
Your world and extras

Your startup command

java -Xms4G -Xmx4G -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:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseIntervalMillis=5000 -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, sized for your heap. -Xms and -Xmx match on purpose so Java never resizes the heap mid-game.

Recommended RAM

5GB

A Budget plan handles this comfortably.

Java heap (-Xmx)
4 GB
Expected use at peak
3.1 GB
  • Server software1.0 GB
  • Plugins0.3 GB
  • Players and chunks1.8 GB
  • Java overhead and headroom1.9 GB

Ways to need less

  • Dropping view-distance from 10 to 8 saves about 0.6 GB, and most players will not notice.
  • Pre-generating your world with Chunky saves about 0.3 GB and removes most exploration lag spikes.

Want the reasoning behind these numbers? Read our guide: how much RAM a Minecraft server needs.

How the Minecraft RAM calculator works

The calculator looks at the things that actually fill a Minecraft server's memory, then leaves room for Java on top. Its results are based on real servers we run and match the ranges in our guide on how much RAM a Minecraft server needs.

  • Server software. Even an empty server needs memory once spawn is loaded. Forge and NeoForge start higher because the mod loader and its registries load first.
  • Mods and plugins. Most Paper plugins are small. Mods weigh more, because their code, textures and recipes all load into memory, and large modpacks are where RAM matters most.
  • Players and chunks. Each player keeps a square of chunks loaded around them. The higher the view-distance, the bigger that square. Players who stay together share chunks, so ten players in one town cost less than ten players spread out. Exploring new terrain costs the most, because the server has to generate and hold fresh chunks.
  • Extras. Web maps, crossplay with Geyser, additional worlds and heavy automation all add to the total.

The total is the memory your server is expected to use at its busiest. The recommended RAM rounds that up to a common plan size, leaving room for Java's own overhead.

Minecraft server RAM by player count

These figures are for a Paper server with 10 plugins, the default view distance of 10 and a pre-generated world.

Players onlineExpected useRecommended RAMJava heap (-Xmx)
1 - 51.5 - 2.1 GB3 - 4 GB2 - 3 GB
102.8 GB4 GB3 GB
204.0 GB6 GB5 GB
305.1 GB7 GB6 GB
507.2 GB10 GB8.5 GB
10012.0 GB14 GB12 GB

A server that has not been pre-generated needs roughly 10 - 20 percent more, and a server with a web map and 30 or more plugins needs another 1 - 2 GB. Above 50 players, most networks split into several servers behind a proxy such as Velocity rather than growing one server forever.

RAM for modded Minecraft servers

Modpacks are where RAM matters most. These figures are for a Forge or NeoForge pack on 1.18 or newer with 5 players online.

Mods in the packTypical packRecommended RAM
Around 50Light adventure or quality-of-life packs5 GB
Around 100Medium tech or magic packs7 GB
Around 150Larger themed packs8 GB
Around 200Kitchen-sink packs10 GB
300 or moreAll the Mods and similar12 GB or more

With 20 players instead of 5, add roughly 3 GB. Fabric packs of a similar size usually need 1 - 2 GB less, especially with performance mods such as Lithium, FerriteCore and ModernFix installed.

Why the recommended RAM is higher than the heap

The -Xmx flag sets the Java heap, which holds the world, entities and mod data. Java also needs memory outside the heap for metaspace, thread stacks, the garbage collector and native libraries. The calculator leaves room for this, which is why the heap it suggests is always a little smaller than the recommended RAM.

The startup command uses Aikar's flags, the garbage collection settings recommended by the Paper team. They switch to the larger-heap values automatically once the heap reaches 12 GB.

When the estimate will be off

A calculator cannot see your world, so treat the result as a starting point. It will be too low if one mod or plugin leaks memory, if players build huge mob farms that keep chunks loaded, or if you run a 1.12 pack with a very large mod list. It will be too high if your players mostly stay in one town. The reliable way to check is the spark profiler: run spark health at your busiest time and compare the memory used with your limit.

If lag is the problem rather than crashes, more RAM may not help at all. Our guide to fixing Minecraft server lag shows how to tell a memory problem from a CPU problem.

Minecraft hosting

Minecraft server plans sized to match

The calculator marks the smallest plan that fits your result. Budget suits vanilla and Paper servers for friends. Premium adds faster CPUs and DDR5 memory for modpacks and busy communities.

ZG-MC-P01

€7.35/mo

Billed monthly

Order Now
  • AMD CPU 1 vCore
  • DDR5 RAM2GB
  • NVME Storage10GB
  • Database1
  • Port Allocation1
  • Backup1
  • Server Splits0

ZG-MC-P02

€13.53/mo

Billed monthly

Order Now
  • AMD CPU 1 vCore
  • DDR5 RAM4GB
  • NVME Storage20GB
  • Database1
  • Port Allocation1
  • Backup1
  • Server Split1

ZG-MC-P03

€19.70/mo

Billed monthly

Order Now
  • AMD CPU 1.5 vCores
  • DDR5 RAM6GB
  • NVME Storage30GB
  • Database1
  • Port Allocations2
  • Backup1
  • Server Split1

ZG-MC-P04

€25.88/mo

Billed monthly

Order Now
  • AMD CPU 2 vCores
  • DDR5 RAM8GB
  • NVME Storage40GB
  • Databases2
  • Port Allocations2
  • Backups2
  • Server Split1

ZG-MC-P05

€38.24/mo

Billed monthly

Order Now
  • AMD CPU 3 vCores
  • DDR5 RAM12GB
  • NVME Storage50GB
  • Databases2
  • Port Allocations2
  • Backups2
  • Server Splits2

ZG-MC-P06

€50.59/mo

Billed monthly

Order Now
  • AMD CPU 4 vCores
  • DDR5 RAM16GB
  • NVME Storage60GB
  • Databases2
  • Port Allocations3
  • Backups2
  • Server Splits2

ZG-MC-P07

€75.30/mo

Billed monthly

Order Now
  • AMD CPU 5 vCores
  • DDR5 RAM24GB
  • NVME Storage70GB
  • Databases3
  • Port Allocations3
  • Backups3
  • Server Splits3

ZG-MC-P08

€100.00/mo

Billed monthly

Order Now
  • AMD CPU 6 vCores
  • DDR5 RAM32GB
  • NVME Storage80GB
  • Databases3
  • Port Allocations3
  • Backups3
  • Server Splits2

Minecraft server RAM FAQ

How much RAM do I need for a Minecraft server?

For a Paper server with a few friends, 3 - 4 GB is plenty. A community server with 20 players needs about 6 GB, and a modpack with 150 or more mods needs 8 GB or more. Use the calculator above for a number that fits your exact setup.

Is 4 GB of RAM enough for a Minecraft server?

Yes, for a vanilla or Paper server with up to about 10 players and a handful of plugins. Light modpacks of around 50 mods want 5 GB. Larger modpacks and busier servers need more.

How much RAM does a modded Minecraft server need?

Most modpacks need 6 - 10 GB. A pack of around 100 mods runs well on 7 GB, and large kitchen-sink packs such as All the Mods need 12 GB or more. Check the pack's page for the author's recommended server RAM and use it as your minimum.

How much RAM do I need for 20 players?

About 6 GB for a Paper server with a normal set of plugins, or 10 - 12 GB for a modded server. Lowering view-distance to 8 and pre-generating the world can bring that down by 1 GB or more.

Does more RAM reduce lag on a Minecraft server?

Only if the server is running out of memory. If memory sits well below the limit and TPS is still low, the bottleneck is the CPU. Minecraft's main loop runs mostly on one core, so a faster processor helps more than extra RAM. Giving a small server far more RAM than it needs can even make garbage collection pauses longer.

What should I set -Xmx to?

Set -Xmx a little below your plan's RAM, so Java has room for the memory it uses outside the heap, and set -Xms to the same value. The calculator works out the right heap for your plan and builds the full startup command with Aikar's flags for you.

How much RAM does a Bedrock server need?

Much less than Java. Bedrock Dedicated Server is written in C++, so a server for 10 players runs in about 2 GB and 50 players in about 4 GB. It is usually limited by CPU before RAM.

Can I upgrade my RAM later?

Yes. You can move your Minecraft server to a bigger plan from the client area at any time, and your world, mods and settings stay as they are. Many people start one size smaller, watch spark for a week, and upgrade with real numbers.

Let’s get started

Choose the hosting provider who makes it easy and fast to manage your projects.

  • Instant Scalability: Easily upgrade your service as your requirements grow.
  • Optimized for Performance: Minimal latency and lightning-fast loading speeds.
  • Client-Focused Approach: Request new features and get the support you need.