Home › Minecraft Server RAM Calculator

Minecraft Server RAM Calculator

How much RAM does your Minecraft server need? Pick your edition, server software, player count and view distance to get a recommended range, a ready-to-copy start command and a breakdown that shows exactly where the estimate comes from.

Edition
Server software
Plugins
Java default: 10 and 10
Allocate (-Xmx)2–3 GB
PC memory16 GB+
Start command

How this estimate adds up

PartRAM
Estimated need
Recommended range (+25% headroom, minimum 2 GB)
    Estimates based on common community guidance, not an official Mojang formula.

    How to use the RAM calculator

    1. Choose your edition. Java servers run on Java and use -Xmx. Bedrock Dedicated Server is a native program, so the calculator shows the free memory to plan for instead.
    2. Pick the server software and how many plugins or mods you run. Paper and Spigot use plugins; Fabric, Forge and NeoForge use mods.
    3. Set the players you expect online at the same time, not the total number of people who ever join.
    4. Match your distances to view-distance and simulation-distance in server.properties (on Bedrock, view-distance and tick-distance).
    5. Extra worlds means additional worlds kept loaded beyond the usual Overworld, Nether and End, for example a separate creative or resource world on a multi-world plugin.
    6. Copy the start command into your start.bat or start.sh. New to servers? Follow how to make a Minecraft server first.

    Typical results

    These are the calculator's ranges at the default view and simulation distance. Use them as a quick check, then fine-tune with your own settings above.

    ServerPlayersAllocate (-Xmx)
    Vanilla Java1–102–3 GB
    Vanilla Java203–4 GB
    Paper, 15–40 plugins103–4 GB
    Paper, 15–40 plugins204–5.5 GB
    Paper, 40+ plugins506.5–8.5 GB
    Fabric, under 50 mods52.5–4 GB
    Fabric, 50–150 mods104.5–6 GB
    Forge / NeoForge, 50–150 mods56–7.5 GB
    Forge / NeoForge, 150–300+ mods108.5–11 GB
    Bedrock Dedicated Server101.5–2.5 GB free RAM

    The player count is the number online at the same time. Ten friends who log in at different times of day need far less than ten players exploring in ten directions at once, because every player who travels away from the others loads a fresh area of chunks.

    How we estimate

    Mojang does not publish a RAM formula for servers, and real usage depends on how far apart players are, what they build and which mods you run. This calculator uses a simple, visible model built from common community guidance, tuned so that the results match well-known reference points:

    • The Minecraft Wiki's server tutorial suggests -Xmx2G for a home server with about five players on default settings. Our vanilla, 5-player result is 2–3 GB.
    • Mojang's Bedrock server page says at least 1 GB is enough for small worlds.
    • Large Forge and NeoForge modpacks commonly ask for 6 to 10 GB or more; our heavy modpack tier lands there.
    PartValue usedWhy
    Base1 GB vanilla, 1.25 GB Paper, 1.5 GB Fabric, 2 GB Forge/NeoForge, 0.75 GB BedrockJava itself, the server code, the mod loader and the area around spawn.
    Per player100 MB (Fabric 125 MB, Forge 150 MB, Bedrock 80 MB) at default distancesEach player keeps their own area of chunks, entities and data loaded. Players beyond 20 count at 50% because crowds share chunks.
    Distance factorJava: 70% view distance + 30% simulation distance, each as (chunks ÷ 441)0.6. Bedrock: 50% view (against 32) + 50% tick distance (against 4)The loaded area grows with the square of the distance: 10 means 21 × 21 = 441 chunks, 16 means 1,089. The 0.6 exponent damps this, because outer chunks are cheaper than busy ones and nearby players share chunks. View 16 gives ×1.5, view 6 gives ×0.69.
    Plugins / modsPaper +0.25 / 0.75 / 1.5 GB; Fabric +0.5 / 1.75 / 3.5 GB; Forge +1 / 3 / 5 GBMods add blocks, items, recipes and logic that stay in memory; plugins are lighter.
    Extra worlds+400 MB eachEach loaded world keeps its own chunks and data.
    RangeEstimate to estimate × 1.25 + 0.25 GB, minimum 2 GB (Java)Headroom for busy moments, exploration and garbage collection.

    The machine or PC memory adds Java's own overhead on top of -Xmx: the Paper docs advise keeping about 1000 to 1500 MB free for the operating system and Java, so on an 8 GB host you would set about 6.5 GB. If you also play on the same PC, the calculator adds Mojang's 8 GB minimum for playing Java Edition.

    RAM, CPU and garbage collection

    RAM only needs to be big enough. Once the server has room to breathe, more memory does not add speed. Minecraft's game logic runs mostly on one main server thread, so a CPU with fast single-core performance is what keeps the server at 20 ticks per second. If the server lags with plenty of free memory, lower the view and simulation distance, switch to Paper and pregenerate the world before buying more RAM.

    Too much RAM can even hurt. Java frees memory with a garbage collector, and very large heaps can lead to longer pauses, which players feel as lag spikes. When you self-host, every gigabyte you give the server is taken from your operating system and game; if the PC runs out and starts swapping to disk, everything stutters.

    The Paper docs recommend setting -Xms equal to -Xmx and suggest 6 to 10 GB as a comfortable target for their tuned setup. That is a performance target for busy Paper servers; a small private server runs fine on less.

    Aikar's flags

    Aikar's flags are a set of garbage-collection settings for the G1 collector, published and explained in the Paper documentation. Tick the box above to add them; they set -Xms and -Xmx to the same value. They are optional. If a modpack ships its own JVM arguments, start with those.

    Frequently asked questions

    How much RAM do I need for a Minecraft server?

    For a vanilla Java server with 1 to 5 friends on default settings, 2 to 3 GB is enough; the Minecraft Wiki suggests -Xmx2G for about five players. Paper with plugins and 10 to 20 players usually runs well on 3 to 5.5 GB, and large Forge or NeoForge modpacks need 6 to 10 GB or more. There is no official Mojang formula, so treat any number as a starting point and watch real usage.

    Is 4 GB of RAM enough for a Minecraft server?

    For vanilla with up to about 20 players, or Paper with a modest plugin list and around 10 to 15 players, usually yes, at the default view distance. It is also enough for a light Fabric mod set. It is tight for medium modpacks and not enough for large ones with 150 or more mods.

    What do -Xms and -Xmx mean?

    They are Java options. -Xmx is the maximum heap the server may use, which is what people mean by "allocated RAM". -Xms is the heap it starts with. On a machine that only runs the server, set them to the same value, as the Paper docs recommend; on a PC you also use for other things, a lower -Xms is fine.

    Can I give a Minecraft server too much RAM?

    Yes. Memory beyond what the server needs is wasted, and very large heaps can make garbage-collection pauses longer, which shows up as lag spikes. On your own PC, starving the operating system is worse: if the system starts swapping to disk, everything slows down. Allocate what the server needs plus some headroom, not everything you have.

    Does more RAM reduce lag?

    Only if the server is running out of memory. Most lag on small servers comes from the CPU: Minecraft's game logic runs mostly on one main server thread, so a fast single core matters more. Lowering view-distance and simulation-distance, using Paper and pregenerating the world usually help more than extra RAM.

    How much RAM does a Bedrock server need?

    Mojang's download page says at least 1 GB is enough for small Bedrock Dedicated Server worlds and lists 4 GB of system RAM in its requirements. Bedrock Dedicated Server is not a Java program, so there is no -Xmx; the server simply uses what it needs.

    How much RAM should my PC have to host and play at the same time?

    Add the server's allocation, about 1 to 1.5 GB for Java's own overhead and what you need to play. Mojang lists 8 GB of RAM as the minimum to play Java Edition with a dedicated graphics card and 16 GB as recommended, so a 16 GB PC can host a small vanilla server while you play, and 32 GB is more comfortable for modpacks.