How much RAM does a Minecraft server need?
RAM is the first number every host asks you to pick, and the one people most often get wrong in both directions. Too little and the server stutters and crashes. Too much and you pay for memory that sits empty while the real cause of your lag goes untouched.
The short answer
Vanilla or Paper with a few friends starts at 4 GB. Paper with plugins or light mods starts at 6 GB. Most modpacks run on 8 GB. Large modpacks of 250 mods and up want 12 GB, and a public community or the largest packs want 16 GB. You can move up a size any time, so start where it fits today.
These are the same sizes our pricing page recommends.
What the memory is actually used for
- Loaded chunks. The server keeps the area around every player in memory. Five friends in one base share most of those chunks. Five friends exploring in five directions load five separate areas, which costs far more.
- Entities. Mobs, animals, dropped items, minecarts and item frames all live in memory. Big farms and mob grinders add up quickly.
- Mods and plugins. Every mod adds code and data that stays loaded for as long as the server runs. A few plugins barely register. A pack of several hundred mods can need more memory before anyone joins than a vanilla server needs with a full house.
- Java itself. Minecraft runs on Java, which needs working room beyond the game's own data to clean up memory as it goes.
Software matters more than player count
The jump from vanilla to a big modpack is much larger than the jump from three players to ten. That is why the ladder above starts from what you run, not from how many people join. Count your players second: more people means more loaded chunks and more entities, and a public server where strangers explore all day sits higher on the ladder than a private one with the same software. Our plans have unlimited player slots at every size, so RAM is the only limit you are choosing.
For modpacks, the pack's own size decides almost everything. Every pack in our modpack catalog shows the RAM we tested it with, and we do not offer a plan smaller than that. For packs from elsewhere, the modded server guide explains how to size them.
More RAM does not always fix lag
Lag comes in two kinds. When the server runs out of memory, it pauses again and again to clean up, then slows to a crawl or crashes, often with OutOfMemoryError in the log. More RAM fixes that. The other kind is the server falling behind on its game ticks: blocks break late, mobs freeze and then jump. That is usually the processor, not memory. Minecraft does most of its world work on a single thread, so one fast core matters more than many slow ones, and adding RAM to a server whose memory is not full changes nothing.
To tell them apart, watch memory use while the lag happens. If memory is near its limit, size up. If there is plenty free, look at what is ticking instead: huge farms, too many mobs in one place, or a high view distance.
Get more out of the RAM you have
-
Lower
view-distanceandsimulation-distanceinserver.properties. They control how many chunks around each player are sent and kept active, and they are the biggest dials you have. The Settings docs show where to change them on loothost. - Run optimized software. Paper and Purpur are built for performance on plugin servers, and Fabric has performance mods for modded ones. The server software comparison covers both.
- Remove mods and plugins nobody uses. Each one costs memory whether anyone touches it or not.
- Keep farms and mob grinders reasonable, and clear out item drops that pile up.
If you host it yourself
On your own computer you set the server's memory with Java's -Xmx flag in the start command, for example -Xmx4G for 4 GB. Leave enough for the operating system and anything else running on the machine, including Minecraft itself if you play on the same computer. Giving the server everything you have usually makes the whole computer slower, server included.