How Much RAM Does a Minecraft Server Need? (2027 Guide by Players and Mods)
RAM is the first thing every Minecraft host asks you to pick, and the easiest thing to get wrong. Pick too little and the server lags or crashes. Pick too much and you pay every month for memory that sits there doing nothing. For most friend groups, 2GB handles 1 to 5 players on vanilla, 3 to 4GB covers 5 to 10 players, and 4 to 6GB suits a plugin server with 10 to 20. Modpacks are different: most need 6 to 8GB, and the biggest want 10GB or more.
Below you'll find the figures by player count and by setup, how to read a modpack's own recommendation, what actually fills a server's memory, how to set and check it, and why RAM is often not the real cause of lag. I've also listed how much the free hosts give you and what extra memory costs on a paid one.
Quick answer: RAM by setup
These are starting points, not exact rules. A big world packed with farms can need double. A quiet server on a fresh world can need less.
| What you're running | Players | Starting RAM |
|---|---|---|
| Vanilla or Paper, no plugins | 1 to 5 | 2GB |
| Vanilla or Paper with a few plugins | 5 to 10 | 3 to 4GB |
| Paper with plugins, public server | 10 to 20 | 4 to 6GB |
| Paper with plugins, busy server | 20 to 50 | 6 to 8GB |
| Fabric with performance mods | Small group | 2GB |
| A few content mods (10 to 30) | Small group | 3 to 4GB |
| Medium modpack (50 to 150 mods) | Small group | 6 to 8GB |
| Big kitchen-sink modpack (200+ mods) | Small group | 10GB or more |
| Bedrock Dedicated Server | A few players | 1 to 2GB |
If you only remember one thing, make it this: players add memory slowly, mods add it fast. Going from 5 to 10 friends on vanilla might mean one or two extra gigabytes. Going from vanilla to a big modpack can mean six more.
How much RAM by number of players
Most people search for their exact group size, so here's each one for a vanilla or lightly plugged-in server. If you're running mods, skip to the modpack section instead, because the mods decide the number far more than the players do.
2 players
1 to 2GB. Two friends exploring a fresh world is about the lightest load a server ever sees, and even 1GB copes. I'd still pick 2GB if you can, because the world grows as you explore, and farms, villages and storage rooms all add up over months of play.
3 to 4 players
2GB. This is where most small groups sit, and 2GB handles it well on vanilla or Paper. If you play on a free 1GB host, keep the view distance modest and you'll be fine for casual survival.
5 players
2GB still works, but this is the point where I'd start thinking about 3GB, especially if everyone heads off in different directions. Five players in five corners of the map load five separate patches of world at once.
6 to 8 players
3GB, or 4GB with a handful of plugins. At this size the group usually spreads out more, builds more farms, and starts adding quality-of-life plugins like land claims or homes.
10 players
3 to 4GB for vanilla or Paper with a few plugins. If those 10 players are on a modpack, plan on 6 to 8GB or more, as below.
20 players and up
4 to 6GB on Paper with plugins for around 20 players, 6 to 8GB for 20 to 50. Past that, RAM stops being the main question. Big servers are limited by the processor, how well the server is tuned, and often by splitting players across several servers behind a proxy.
One thing the tables can't show: what players do matters more than how many there are. Ten friends building in one town use less memory than four people flying in different directions with elytra, because each player keeps the area around them loaded. Explorers are expensive. Builders who stay home are cheap.
How much RAM for mods and modpacks
Mods are where RAM really jumps. Every mod adds blocks, items, mobs, recipes and code that the server keeps in memory from the moment it starts, before anyone has joined. That's why a big pack can fail to boot on 4GB even with zero players online.
| Mod setup | Example | Starting RAM |
|---|---|---|
| Performance mods only | Fabric with Lithium, FerriteCore and similar | About 2GB |
| A few content mods | 10 to 30 mods: new biomes, furniture, extra mobs | 3 to 4GB |
| Medium modpack | 50 to 150 mods, tech or magic themed | 6 to 8GB |
| Big kitchen-sink pack | 200+ mods, the "all the mods" style packs | 10GB or more |
Add roughly 1GB for every few extra players on a modded server, because each player in a modded world drags more data with them than on vanilla.
How to read a modpack's recommended RAM
The best number for a modpack is the one its makers give. Many packs on CurseForge and Modrinth list a recommended or minimum server RAM on their description page, in the server pack notes, or on their Discord. Here's how I'd use it:
- Find the server figure, not the client one. Some packs list what your own game needs. The server usually needs about the same or a little more, because it holds every player's area at once.
- Treat "minimum" as the floor. A pack that says "6GB minimum" will start on 6GB, but expect to need 7 or 8GB once the world grows and a few friends join.
- Add headroom for players. Take the recommended figure and add 1 to 2GB for a small group.
- Check the Minecraft version. Packs for newer versions usually need more memory than older ones with a similar number of mods.
If a pack lists nothing, count the mods and use the table above. My guide to free Minecraft server hosting with mods shows which hosts can actually run them, because most free plans can't go above a few gigabytes.
What actually uses a server's RAM
Knowing where the memory goes helps you fix a struggling server without simply buying more.
- Loaded chunks. The biggest factor. The world is split into 16 by 16 block chunks, and every player keeps a circle of them loaded around them. The size of that circle comes from the view distance.
- View distance and simulation distance. In
server.properties, view-distance sets how many chunks in each direction the server sends to players, and simulation-distance sets how far out mobs and crops are actually updated. Both default to 10. - Entities. Mobs, animals, dropped items, item frames, minecarts and armour stands all take memory and processing time. A cow farm with 300 cows is a classic server killer.
- Plugins and mods. Each one adds its own code and data. Some plugins, like big map renderers or logging plugins, use far more than others.
- World size and builds. Chests, hoppers, furnaces and other blocks that store data add up across a big base.
Here's why view distance matters so much. A view distance of 10 means a square of 21 by 21 chunks around each player, which is 441 chunks. Drop it to 8 and it's 17 by 17, or 289 chunks. That's about a third fewer chunks per player, and most players barely notice the difference. On a small or free server, lowering view distance is the cheapest performance fix there is.
RAM vs CPU: why more RAM often doesn't fix lag
This is the part most RAM guides skip, and it's the one that saves people money. A Minecraft server does most of its work on one main thread. Every tick, that thread updates mobs, crops, redstone, players and everything else in loaded chunks. The game aims for 20 ticks per second (TPS), which leaves 50 milliseconds for each tick. When a tick takes longer than 50ms, TPS drops below 20 and everyone feels lag.
RAM doesn't make that thread any faster. Once the server has enough memory, the speed of a single processor core decides how smooth it feels. That's why a host with fast, modern CPUs and 4GB can feel better than one with old processors and 8GB.
So when you're choosing a host or a plan, look at both numbers. Plenty of RAM on a slow, crowded processor still lags. And if your server lags with plenty of free memory, upgrading RAM won't help at all.
Use less RAM: Paper, Purpur and performance mods
Before you pay for more memory, make the server need less. The server software you pick makes a big difference.
- Paper is a faster version of the plugin server that fixes many vanilla performance problems and adds settings for limiting entities, hoppers and redstone. For any plugin server it's the default choice.
- Purpur is built on Paper and adds even more options. Aternos's own RAM help page recommends Paper or Purpur for better performance with less memory.
- Fabric with performance mods is the equivalent on the modded side. Lithium speeds up game logic, FerriteCore cuts memory use, and there are similar mods for chunk loading. A Fabric server with these can run lighter than plain vanilla.
A few settings also help on any server:
- Lower view-distance to 6 to 8 and simulation-distance to 4 to 6 on a small server.
- Pre-generate the world with a plugin like Chunky so new chunks aren't created while players explore, which causes the worst spikes.
- Limit mob farms and clear dropped items. Paper's config lets you cap entities per chunk.
- Remove plugins and mods nobody uses.
How to allocate RAM to a Minecraft server
How you set the memory depends on where the server runs.
On a host (Minehut, Falix, exaroton, a paid plan), you pick the RAM in the plan or a slider in the control panel. You can't give the server more than the plan includes.
On your own PC or a cloud server, you set it in the command that starts the server, with two Java flags:
-Xmxsets the maximum memory Java may use, for example-Xmx4G.-Xmssets how much it takes at the start, for example-Xms4G.
A simple start command for a 4GB server looks like this: java -Xms4G -Xmx4G -jar server.jar nogui. Put it in a start.bat file on Windows or start.sh on Mac and Linux, in the same folder as the server file, and double-click or run it.
Paper's documentation recommends setting -Xms and -Xmx to the same value, because the server should be expected to use all of it anyway. It also publishes a tuned set of start-up flags, often called Aikar's flags, which tell Java's garbage collector how to clean up memory with shorter pauses. The page includes a script generator that writes the full command for you. Two things on that page are worth knowing:
- It's written with bigger servers in mind and suggests 6 to 10GB. A small friends' server doesn't need that much, but the flags still help at 2 to 4GB.
- It warns you not to give Java all of a machine's memory. Its rule of thumb is to leave about 1 to 1.5GB for overhead, so on an 8GB machine you'd set around 6.5GB.
How to check how much RAM your server really uses
Don't guess. Watch the server for a few sessions, then decide.
- Your host's panel. Most hosts show a live memory graph. Watch it during a busy evening, not just after a restart.
- spark. spark is a free performance profiler for Minecraft servers, clients and proxies. It can summarise what's using memory, watch garbage collection, and track server health over time. Paper's profiling guide says Paper has bundled spark since 1.21, so on a modern Paper server you can just type
/spark profiler start --timeout 600while the lag is happening and get a report link 10 minutes later. - Task Manager or htop. On your own machine, the Java process shows its memory use. Remember that with
-Xmsequal to-Xmx, Java grabs the full amount at start-up, so the process will always look "full". Use spark or the server's own stats to see what's really in use.
Java memory use naturally rises and falls in a saw-tooth pattern: it fills up, the garbage collector clears it, and it fills again. That's normal. What matters is whether, after each clean-up, the bottom of the saw-tooth keeps creeping up towards your limit.
Signs your server needs more RAM
- It crashes with java.lang.OutOfMemoryError in the console or log.
- Memory stays close to the limit even right after a garbage collection.
- A modpack won't start at all, or crashes while generating the world.
- Long freezes happen when several players explore new areas at once, and spark shows heavy garbage collection at those moments.
And the signs it doesn't: if TPS drops but memory has plenty of room, the problem is the CPU, a high view distance, too many entities or a badly behaved plugin or mod. A spark profile will usually point straight at the cause. Buying more RAM for that kind of lag is like buying a bigger fuel tank for a car with a flat tyre.
Can you give a server too much RAM?
Yes. More RAM only helps when the server is short of it. Past that point it does nothing for speed, and Paper's own guide says that more memory doesn't mean better performance above a certain point.
A very large heap can also make garbage collection pauses longer, which shows up as brief lag spikes. Modern collectors like G1 (which Aikar's flags use) handle this well, so a few spare gigabytes won't hurt. Giving a 5-player vanilla server 16GB just wastes money on a host, or starves your own PC of memory it needs for other things.
A good rule: give the server what its setup needs from the tables above, add 1 to 2GB of headroom, then watch it for a week before changing anything.
Hosting on your own PC: leave RAM for everything else
If you run the server on the same computer you play on, three things share the memory: the operating system, your Minecraft game, and the server. They all need room.
| Your PC's RAM | Leave for Windows and apps | Your Minecraft game | Server can have |
|---|---|---|---|
| 8GB | About 3 to 4GB | About 2GB | 2GB (vanilla, small group) |
| 16GB | About 4GB | 2 to 4GB | 4 to 8GB |
| 32GB | About 4 to 6GB | 4 to 8GB | 10GB or more |
On a spare machine that only runs the server, you can give the server more, but still leave a few gigabytes for the system. To let friends join without changing router settings, playit.gg relays players to your PC and keeps your home IP private. My guide to running a server on your own PC walks through it.

Client RAM vs server RAM: not the same thing
People often mix these up. Client RAM is the memory your own game uses on your computer. You set it in the Minecraft Launcher under Installations, then edit the profile and open More options, where the JVM arguments start with an -Xmx value. CurseForge and other launchers have a memory slider instead.
Server RAM is the memory the server uses, on the host or the machine running it. Raising your client's RAM does nothing for server lag, and buying a bigger server does nothing for low frame rates on your own screen. If only you are stuttering and your friends are fine, it's your client. If everyone sees blocks reappearing and mobs freezing at once, it's the server.
How much RAM free hosts give you
Free plans are where most people start, so here's what each one gives. The usual free hosts suit a small vanilla group. Big modpacks need something else.
| Free option | RAM | What it suits |
|---|---|---|
| Minehut | 1GB | Vanilla or plugins, up to 10 players |
| Falix | 1GB shared | Vanilla, plugins, light mods |
| Aternos | Set by the software and version (2,400MB for vanilla 1.20.1) | Vanilla, plugins, light modpacks |
| FreeMcServer | Up to 1.7GB, or 4GB with ads | A medium mod list |
| Oracle Cloud Always Free | Up to 12GB | Big modpacks, busy servers |
| Your own PC | Whatever you can spare | Anything |

Aternos works differently from the rest. It sets the memory for each server type separately, and its RAM help page gives vanilla 1.20.1 as an example at 2,400MB. It says switching to whichever software has the most memory won't help, and you can't buy more: you can earn a little extra through its partnership with the Medal clip app, or move to exaroton, its paid sister service.

If you need a lot of memory without paying, Oracle Cloud's Always Free tier is the standout. Its Arm machines allow up to 2 OCPUs and 12GB of memory, running all the time. You set it up yourself, and my guide to free Minecraft server hosting has the steps.

If a free host's limits are getting in the way, my list of Aternos alternatives compares them all side by side.
What extra RAM costs on a paid host
On a paid host, picking the right amount of RAM saves real money, because nearly every host prices by memory. Two examples show the two ways hosts charge.

Pay by the hour. exaroton, from the team behind Aternos, charges 1 credit (€0.01) per GB of RAM per hour, only while the server is online, according to its pricing page. You can choose from 2GB to 16GB, new accounts get 5 free credits, and there's a storage fee of 10 credits a month per server, which credits spent playing count towards.
| exaroton server | Per 4-hour session | About 13 sessions a month | Left on all month (730 hours) |
|---|---|---|---|
| 2GB (vanilla, small group) | 8 credits (€0.08) | €1.04 | €14.60 |
| 4GB (plugins, 10 players) | 16 credits (€0.16) | €2.08 | €29.20 |
| 8GB (medium modpack) | 32 credits (€0.32) | €4.16 | €58.40 |
The arithmetic is simple: GB times hours times €0.01. A 4GB server for three 4-hour sessions a week is 4 × 4 × 13 = 208 credits, or €2.08 a month. Double the RAM and you double the bill, which is why starting at the low end of the range for your setup makes sense.
Pay by the month. Most game hosts sell fixed plans. Minefort's pricing page is a typical example: 2GB for $5.99 a month, 4GB for $11.49, 8GB for $23.99 and 12GB for $47.99. That works out to roughly $3 per GB per month across its plans, and the server stays online all the time. Falix's paid plans start at €12 a month. Minecraft Realms doesn't let you choose RAM at all: Java Realms is $7.99 a month for you plus 10 players.
So a group that plays a few evenings a week pays less by the hour, and a server that needs to stay on all the time is cheaper on a monthly plan. Either way, start at the low end, watch memory use for a week, and only upgrade if you see the signs above. Most hosts let you move up a plan without losing your world.
Bedrock vs Java: Bedrock needs less
Bedrock Dedicated Server, Mojang's official server for the Bedrock edition, is written in C++ rather than Java. It doesn't need a Java heap or garbage collector, so a small Bedrock world with a few players runs well on 1 to 2GB. It can't run Java plugins or mods, though. Bedrock uses add-ons instead.
If you want Bedrock friends to join a Java server, the usual route is the Geyser plugin, which adds a little memory on top of the Java server's needs. My free Bedrock server hosting guide covers every option.
So how much RAM should you get?
- 2 to 5 friends, vanilla: 2GB. A free 1GB host works for casual play.
- 5 to 10 players, a few plugins: 3 to 4GB, on Paper.
- Public plugin server, 10 to 20 players: 4 to 6GB, and watch the CPU as much as the RAM.
- A few content mods: 3 to 4GB.
- A modpack: the pack's recommended server RAM plus 1 to 2GB, which usually lands at 6 to 8GB, or 10GB or more for the biggest.
- Bedrock: 1 to 2GB.
Then measure. A week of watching the memory graph or a spark report tells you more than any table, including this one.
FAQs
How much RAM do I need for a Minecraft server with friends?
For 2 to 5 friends on vanilla survival, 2GB is enough. For 5 to 10 players, give it 3 to 4GB. Add more if you run lots of plugins, a big world full of farms, or mods.
Is 4GB of RAM enough for a Minecraft server?
Yes, for most groups. 4GB comfortably runs vanilla or Paper for up to about 10 players, a Paper server with a fair number of plugins, or a light set of content mods. It isn't enough for most big modpacks, which want 6 to 8GB or more.
How much RAM for a modded Minecraft server?
Performance mods on Fabric run on about 2GB. A handful of content mods needs 3 to 4GB, most medium modpacks need 6 to 8GB, and the biggest packs with 200 or more mods want 10GB or more. Check the modpack's own page first, because many list a recommended server RAM.
Is 1GB of RAM enough for a Minecraft server?
Only for a small vanilla server with 2 or 3 players and a modest view distance. It's what most free hosts give, and it's fine for casual play, but big builds, lots of farms or mods will lag.
How much RAM should I allocate to a Minecraft server on my own PC?
Give the server what its setup needs from the tables above and leave the rest for your system. On a 16GB PC that you also play on, 4GB for a vanilla or plugin server or 6 to 8GB for a modpack is about right, so Windows and the game itself still have room.
Can a Minecraft server have too much RAM?
Yes. Past what the server actually uses, extra RAM doesn't make it faster, and a very large heap can mean longer pauses when Java clears memory. Give it what the setup needs plus some headroom.
Does Bedrock need less RAM than Java?
Generally, yes. Mojang's Bedrock Dedicated Server is lighter than the Java server, so a small Bedrock world with a few players runs well on 1 to 2GB.
Comments
Loading comments...