How to Fix Minecraft Server Lag: Free TPS and RAM Calculator With server.properties Values

This guide explains how to fix Minecraft server lag with numbers, not guesses. Enter your player count, server software, plugins or mods, allocated RAM and current TPS in the free calculator. It returns the RAM you need, the view distance and simulation distance to set, and a ready-to-copy block for server.properties and the start command.

A Minecraft: Java Edition server runs the world in ticks, 20 every second. When one tick takes longer than 50 milliseconds, the server falls behind, and players see blocks reappear, mobs freeze and doors open late. That is server lag, and it is caused by the server’s processor, its settings or its memory, not by your frame rate. The sections below show how to measure it, find the cause and fix it on vanilla, Paper, Fabric, Forge and NeoForge servers.

Minecraft server lag calculator for Minecraft
How to fix Minecraft server lag: measure TPS and MSPT, then lower what the server simulates.

How to Fix Minecraft Server Lag With the Calculator

The calculator turns the question of how to fix Minecraft server lag into six numbers you already know.

  1. Players online at peak. The busiest hour, not the average. Every player loads and simulates their own area of the world.
  2. Server software. Vanilla, Paper, Fabric or a Forge or NeoForge modpack. Modded servers need more memory and smaller distances.
  3. Plugins or mods. Each one adds memory use and tick time.
  4. RAM allocated. The -Xmx value in your start command, or the plan size at your host.
  5. Current TPS. Measure it with the commands in the next section. The lower it is, the harder the calculator cuts.
  6. Where it runs. Adds advice for home PCs and rented hosts.

Copy the block at the bottom of the result into server.properties and your start script, restart the server, and measure again.

How to fix Minecraft server lag chart of TPS and tick time
Minecraft server TPS and what each level feels like.

What Minecraft Server Lag Is: TPS and MSPT

Three different problems get called lag in Minecraft. Only one of them is the server.

TypeWhat players seeWho is affectedCause
Server lag (low TPS)Blocks reappear, mobs freeze, slow furnaces and cropsEveryone at onceThe server cannot finish ticks in time
Network lag (high ping)Rubber-banding, delayed hitsOne player, or players in one regionThe connection between player and server
Client lag (low FPS)Choppy pictureOne playerThat player’s own PC

TPS is ticks per second. The target is 20. MSPT is milliseconds per tick, the time the server spends on each tick. The budget is 50 milliseconds, because 20 ticks of 50 milliseconds fill one second. MSPT is the better number: a server at 20 TPS and 48 MSPT is one busy farm away from lagging, and TPS alone will not show that.

Milliseconds per tick at each TPS level

The budget is 50 ms. Everything above it is lag

20 TPS50 ms, on budget
18 TPS55.6 ms
15 TPS66.7 ms
12 TPS83.3 ms
10 TPS100 ms, half speed

How to check TPS and MSPT

ServerCommandWhat it shows
Vanilla, 1.20.3 and later/tick queryTarget tick rate, average and percentile tick times
Paper and forks/tpsTPS over 1, 5 and 15 minutes
Paper and forks/msptAverage, minimum and maximum tick time
Paper and forks/spark profiler startRecords which plugins, entities and chunks use the tick
Vanilla dedicated server/perf startA 10-second performance report saved to the debug folder

Run these from the server console or as an operator in game, at the busiest time of day.

How to Fix Minecraft Server Lag in server.properties

The fastest answer to how to fix Minecraft server lag is two lines in server.properties. They decide how much of the world the server has to run for each player.

KeyDefaultRecommendedWhat it does
simulation-distance104 to 8Radius in chunks where mobs move, crops grow and redstone runs. The largest lever on TPS
view-distance105 to 10Radius in chunks sent to players. Affects memory, network and chunk loading
network-compression-threshold256256Packet size above which data is compressed. Leave it
sync-chunk-writestruefalseStops chunk saves from blocking the tick on slow drives
entity-broadcast-range-percentage10075 to 100How far away entities are sent to players
max-players20Your real peak plus a fewDoes not affect lag by itself
  1. Stop the server.
  2. Open server.properties in the server folder with a text editor.
  3. Change simulation-distance first. Each step down removes a ring of chunks from every player’s simulated area.
  4. Change view-distance second. Keep it equal to or higher than simulation-distance.
  5. Save the file, start the server and measure TPS at peak time.

Chunks simulated per player at each simulation distance

A distance of 10 means a square 21 chunks wide

Distance 10441 chunks
Distance 8289 chunks
Distance 6169 chunks
Distance 5121 chunks
Distance 481 chunks

Dropping simulation distance from 10 to 6 cuts the simulated area per player by 62 percent, and players barely notice, because view distance still shows them the far terrain. Both keys accept values from 3 to 32.

Players onlineview-distancesimulation-distance
1 to 10108
11 to 2086
21 to 4075
41 to 8064
Over 8054
How to fix Minecraft server lag chart of view and simulation distance
View and simulation distance by player count.

How Much RAM a Minecraft Server Needs

Too little RAM causes lag spikes. So does far too much, because the Java garbage collector has more to clean in each pause.

ServerPlayersRAM
Vanilla or Paper, few plugins1 to 102 to 4 GB
Paper with 20 to 40 plugins10 to 304 to 6 GB
Paper with 40 or more plugins30 to 606 to 10 GB
Light modpack, up to 100 mods1 to 104 to 6 GB
Large modpack, 150 mods or more5 to 208 to 12 GB

Set the minimum and maximum heap to the same value in the start command, so Java takes its memory once and does not resize it:

java -Xms6G -Xmx6G -jar server.jar nogui
  • -Xms is the starting heap and -Xmx is the maximum. Use the same number for both.
  • Leave 1 to 2 GB of the machine’s memory for the operating system. On an 8 GB machine, give the server 6 GB at most.
  • Current 26.x versions of Minecraft: Java Edition run on Java 25. Versions 1.20.5 to 1.21.x need Java 21. The wrong Java version stops the server from starting.
  • Java’s default G1 garbage collector suits Minecraft. You do not need a long list of extra flags to fix lag.
How to fix Minecraft server lag chart of RAM by player count
RAM a Minecraft server needs by size.

Find What Is Lagging the Server

Settings buy headroom. To really fix lag you have to find what is using the tick. On most servers one or two things use more than half of it.

CauseSignFix
Mob and item farmsHundreds of entities in one chunkLimit mobs per chunk, add a kill switch, collect items in water streams
HoppersLong hopper lines under farmsPut a container on top of each hopper, or use water streams and fewer hoppers
Redstone clocksLag stops when one player logs offAdd an off switch, slow the clock
Chunk generationLag when players explore or fly with elytraPre-generate the world and set a world border
A heavy plugin or modOne name at the top of the profilerUpdate it, configure it or replace it
Villager trading hallsDozens of villagers pathfindingKeep each villager in a one-block cell with its workstation
Slow processorHigh MSPT with few players and no farmsMove to a host or PC with faster single-core speed
  1. On Paper, run /spark profiler start at peak time.
  2. Wait five minutes, then run /spark profiler stop.
  3. Open the report link it prints. Expand the server thread and read down the largest percentages.
  4. If one plugin tops the list, that is your cause. If entity ticking tops it, find the chunk with the most entities.
  5. Fix that one thing and profile again.

Minecraft runs most of the world on one processor thread. That is why a server with sixteen slow cores lags and one with four fast cores does not. When you compare hosts, ask about single-core speed.

How to fix Minecraft server lag chart of common causes
The usual causes of Minecraft server lag.

Paper, Pre-Generation and Other Lasting Fixes

  • Use Paper for a survival server. Paper is server software that runs vanilla worlds and Bukkit plugins with heavily optimised chunk loading and entity handling. Moving from vanilla usually only means replacing the server jar.
  • Pre-generate the world. Generating new terrain is the heaviest thing a server does. A pre-generation plugin such as Chunky builds the map in advance, while nobody is playing.
  • Set a world border. Use /worldborder set 10000 for a 10,000-block-wide world. It stops endless exploration and keeps the save small.
  • Restart daily. A scheduled restart at a quiet hour clears memory that plugins leak.
  • Keep everything updated. Server software, plugins and Java all receive performance fixes.
  • Fabric servers: add server-side optimisation mods such as Lithium, which speeds up game logic without changing behaviour.

If the server software crashes on start after you change memory flags, the Minecraft exit code analyzer explains the code it prints.

Hosting a Server on Your Own PC

A server on the same PC you play on shares everything with the game.

  1. Give the server no more than half the PC’s RAM. With 16 GB, allocate 4 to 6 GB.
  2. Use a wired connection. Friends connect through your upload, and Wi-Fi adds packet loss for all of them.
  3. Allow about 0.5 Mbps of upload per player.
  4. Lower the game client’s own render distance, since the client and server compete for the same processor.
  5. If the server lags only when you play on it, the processor is the limit. Run the server on a second PC or a rented host.

How to Fix Minecraft Server Lag: Worked Example

Here is how to fix Minecraft server lag on a typical community server. A Paper server with 40 players, 35 plugins and 8 GB of RAM runs at 15 TPS in the evening. The calculator returns view-distance 6, simulation-distance 5 and about 8 GB of RAM, so memory is fine. The owner sets both distances and restarts: TPS rises to 18. A five-minute profile then shows one iron farm with 400 golems in a single chunk. With a mob cap on that farm, the server holds 20 TPS at 41 MSPT.

About Minecraft

Minecraft is a sandbox game developed by Mojang Studios, part of Microsoft. Minecraft: Java Edition is the version used for community servers, and it moved to year-based version numbers in 2026, starting with 26.1.

A Java Edition server can run the official vanilla software or community software such as Paper, Purpur, Fabric, Forge and NeoForge. All of them read the same server.properties file and run on the Java Virtual Machine.

The Minecraft server lag calculator on this page is free to use, and we update it when the game changes its numbers.

Official page: Minecraft: Java Edition server download, the official page.

If this Minecraft server lag calculator helped, these free tools work the same way.

New this month: FPS drop fixer, Marvel Rivals lag fixer, Discord lag fixer, Minecraft recording settings generator.

Frequently Asked Questions

Quick answers about Minecraft and the Minecraft server lag calculator.

How do I fix Minecraft server lag?

Measure TPS with /tick query or /tps. If it is below 20, lower simulation-distance and view-distance in server.properties, make sure the server has enough RAM, pre-generate the world and profile the server to find heavy farms or plugins.

What is a good TPS for a Minecraft server?

20 TPS is the target and the maximum. 18 to 20 is fine. Below 15, players notice delayed blocks and slow mobs.

What is MSPT in Minecraft?

Milliseconds per tick: the time the server needs for one tick. The budget is 50 ms. Above 50 ms the server cannot hold 20 TPS.

How much RAM does a Minecraft server need?

2 to 4 GB for up to 10 players on vanilla or Paper, 4 to 6 GB for 10 to 30 players with plugins, and 8 to 12 GB for large modpacks.

Does more RAM fix Minecraft server lag?

Only if the server was short of memory. Most lag comes from the processor running too many entities, chunks or redstone. Extra RAM does not help that.

What is the difference between view distance and simulation distance?

View distance is how far chunks are sent to players. Simulation distance is how far mobs, crops and redstone are active. Simulation distance has the bigger effect on TPS.

Is Paper better than vanilla for lag?

Yes. Paper runs the same game with optimised chunk and entity handling and usually holds a much higher TPS with the same players.

Is the Minecraft server lag calculator free?

Yes. It runs in your browser and needs no sign-up.

More Games You May Like

Leave a Reply

Your email address will not be published. Required fields are marked *