How much RAM does a Minecraft server need?

Quick answer: for vanilla or Paper, plan about 1 GB for every four players online at once. A few friends need 1 to 2 GB, and around 20 players with plugins need 4 to 6 GB. Modpacks need more: 4 to 6 GB for a light pack and 8 to 12 GB for a large one.

Minecraft server RAM requirements, starting points
ServerPlayers online at onceRAM
Vanilla or Paper1 to 41 to 2 GB
Vanilla or Paper5 to 102 to 3 GB
Paper with plugins10 to 204 to 6 GB
Paper with plugins20 to 406 to 10 GB
Light modpack (under about 100 mods)Up to 104 to 6 GB
Large modpack (200 mods or more)Up to 108 to 12 GB

Treat these as starting points, then adjust with the checks below.

Size RAM for the number of people who play at the same time, the server software, and what players actually do. Start with your modpack’s published server requirements when it has them, and check memory and tick timing during a busy session.

Count concurrent players

Use the number of people usually online together at a busy time. A server with twenty slots and four people exploring the same area has a different workload from one with four players exploring in separate directions.

Match the world and software

Start with the actual game edition and version. Check whether the server runs vanilla, plugins, or a mod loader. For an existing world, include farms, entities, view and simulation distances, and how often players generate new terrain. For a modpack, add the server pack and its required loader to your estimate.

Check what is slowing the server down

Watch tick time, CPU load, memory pressure and disk latency together. A server that lags mainly during exploration may be spending time generating new chunks. A server that runs out of memory repeatedly during ordinary play needs a closer look at heap headroom and mod behavior.

Use the current world before changing plans

Test with a copy of the world and the same settings. Compare a busy session before and after changing one variable. Keep a separate backup and make sure you can restore it.

Questions

Is 2 GB of RAM enough for a Minecraft server?

Yes, for up to about eight players on vanilla or Paper with a few plugins. It is not enough for most modpacks.

Does more RAM fix Minecraft server lag?

Only when the server is actually running out of memory. Lag from chunk generation, big farms or too many entities is usually a CPU and tick-time problem, and extra RAM will not fix it.

Wondering what that RAM costs? See how much a Minecraft server costs.