WordPress
How much memory does WordPress need?
WordPress memory needs depend on the work your site does. Budget for the operating system, database, cache and active PHP workers, then check usage under representative traffic.
Short answer
WordPress memory needs depend on the work your site does. Budget the operating system, database, cache and active PHP workers, then validate the budget with representative requests.
What changes the answer
- PHP worker concurrency and measured worker memory
- Database and cache on the same server
- Uncached checkout, admin and background requests
Installation requirements are not a capacity estimate
WordPress publishes software prerequisites, including supported PHP and database versions and HTTPS support. Those prerequisites do not tell you how many checkout sessions, background jobs or uncached page requests a particular server can handle. A server can run the required software and still have too little memory for the workload you put on it.
Treat memory planning as a budget. List the processes that will share the machine: the operating system, web server, PHP workers, database and any persistent cache. Then leave headroom for temporary peaks, administration tasks and growth. If the database runs elsewhere, do not reserve its memory twice.
Count active workers rather than monthly visitors
A PHP-FPM worker processes a request. The pool's configured worker limit constrains how many requests can be serviced concurrently, but it does not establish how quickly those requests finish. The memory used by a worker varies with the code it executes. A plugin-heavy request and a simple cached response can consume very different resources.
Monthly visitor counts hide this distinction. A quiet site can receive a short burst of expensive requests. A busier site may serve much of its public content from cache without running PHP for each visit. Measure representative dynamic requests before choosing a worker-memory assumption.
A worked planning example
Suppose you choose two PHP workers at an assumed 96 MiB each, 768 MiB for the operating system and web server, 512 MiB for a shared database and 128 MiB for cache. The subtotal is 1,600 MiB. Adding an assumed 30% margin gives 2,080 MiB, approximately 2.03 GiB. These values are an illustrative budget, not observed WordPress consumption or an official minimum.
The calculator lets you replace every number. For multiple sites, consider whether each has its own worker pool and whether database and cache budgets are shared. Do not assume that doubling the number of sites exactly doubles every service's memory.
What to verify before purchasing
Check PHP and database compatibility, storage needs, backups and the provider's support responsibilities. After deployment, observe memory usage, swapping, worker queues and request latency during representative traffic. If a process is killed or requests queue, investigate the actual bottleneck before purchasing a larger machine. More memory alone will not fix slow database queries or inefficient application code.