How much RAM does n8n need?
Self-hosted workflow automation with a visual editor, 400+ integrations and code steps. Official requirements, sourced, plus our own measurements.
Last updated: 2026-11-02
Pinned version: n8n 2.45.7 (n8nio/n8n:2.45.7@sha256:9a8d8dcea756) + Traefik v3.7.17 (traefik:v3.7.17@sha256:30ff62491aac)
Our measurement
418 MB idle RAM · 1975 MB disk (images 1966 + data 9) · n8n 400 MB, traefik 18 MB (SQLite, default settings)
Official compose.yaml and .env from the n8n Docker Compose docs (n8n + Traefik, SQLite) with both image tags pinned to exact versions by digest. The owner account was created; no workflows. Traefik could not get a certificate for the example domain, which doesn't affect RAM.
Method: Official compose file with the image tags replaced by exact version+digest (never latest). Measured after a 5-minute settle as docker stats MEM USAGE summed across containers, 3 samples 20 s apart (median). Disk = pulled image sizes + Docker volumes + bind-mounted local-files folder after setup.
Host: 8 vCPU Intel Xeon VM, 16 GB RAM, Debian 13 (kernel 6.12), Docker 29.9.2 + Compose 5.6.1
Version: n8n 2.45.7 (n8nio/n8n:2.45.7@sha256:9a8d8dcea756) + Traefik v3.7.17 (traefik:v3.7.17@sha256:30ff62491aac) · Compose: source · Date: 2026-11-02
With sample data
425 MB idle RAM · 2208 MB disk · n8n 1,480 MB peak, traefik 18 MB; settled 403 + 22 MB
Peak RAM during processing: 1498 MB
Sample: One active workflow (Webhook trigger, a Code node that builds 5,000 JSON items, and a Code node that sums them) called 300 times through its production webhook URL, 10 requests at a time. All 300 returned HTTP 200 in about 20 seconds, and every execution was saved with the default settings.
Peak RAM during the burst was 1,498 MB, almost all in the n8n container. About five minutes later RAM had settled back to 425 MB. The saved executions (about 0.8 MB each) grew the data volume to 240 MB, so disk was about 2,208 MB (images 1,966 + data 242).
Method: Same official setup and host as the idle measurement. Peak RAM sampled about every 3 seconds (docker stats, both containers summed) for 4 minutes from just before the first request. Settled RAM = 3 samples 20 s apart, about 5 minutes after the burst.
Version: n8n 2.45.7 (n8nio/n8n:2.45.7) + Traefik v3.7.17 · Date: 2026-11-02
What the official docs say
- The official docs don't state minimum or recommended RAM or CPU. They warn that n8n doesn't limit how much data each node can fetch and process, so memory use depends on your workflows.
- The docs name the main memory drivers: the amount of JSON data, binary data size, the number of nodes, memory-heavy Code nodes, manual runs from the editor (which copy data for the frontend) and several workflows running at once. Fixes are more RAM, smaller batches, sub-workflows, or raising --max-old-space-size through NODE_OPTIONS.
- Docker (Compose) is the recommended install; the official compose file runs n8n plus a Traefik proxy for HTTPS. npm installs need Node.js 20.19 to 24.x and are deprecated from n8n 3.0.
- SQLite is the default database. PostgreSQL 16, 17 and 18 are supported; even with PostgreSQL, keep a persistent volume for the .n8n folder because it holds the encryption key.
Fits a 4GB server?
yesMeasured 418 MB idle RAM (n8n plus Traefik) after owner setup, and 1,498 MB peak while running 300 webhook executions of a 5,000-item Code-node workflow, 10 at a time. Plus 512 MB for the OS that still fits 4 GB, but the docs warn that memory grows with the data your workflows handle.
Sources
- n8n docs: Install using Docker Compose checked 2026-11-02
- n8n docs: Docker installation checked 2026-11-02
- n8n docs: Fix memory issues checked 2026-11-02
- n8n docs: Supported databases and settings checked 2026-11-02
- n8n docs: Install with npm checked 2026-11-02
- n8n 2.45.7 release checked 2026-11-02