DeployTested
Menu

n8n system requirements, measured on real servers

By Sourav Das, editor-in-chief
Reviewed by Avijit Maity, contributor
Published

This page was drafted with help from AI from our own test data, and checked by the people named above.

n8n used about 400 MiB of RAM at idle in our tests, and a whole server running it with SQLite or Postgres used 763 to 972 MiB. Choose at least 2 GB of RAM, plus 2 vCPUs for heavy workflows: our 50-item loop held 5 requests a second on 2 vCPUs and 1 on a single vCPU.

On 1 GB, add swap: without it, Ubuntu's updates took n8n down for over an hour. These numbers come from our own tests of n8n 2.47.4 on DigitalOcean servers in Bangalore between 12 and 14 November 2026. Each table links to its data file, and all raw outputs are published.

How much RAM does n8n need?

At idle, the n8n container used 384 to 414 MiB on every server size, so n8n's own footprint barely changes with the server. What changes is the room left over. On a 1 GB server, the operating system, Docker, Caddy (the HTTPS proxy) and n8n left only about 200 MiB free before any workflow ran.

Bar chart of memory used at idle by n8n with SQLite on 1, 2 and 4 GB servers
Memory used with n8n idle and SQLite on each server size, measured 12 to 14 November 2026.
ServerSetupTested (2026)RAM used at idle (whole server)Of totaln8n containerFree RAM left
1 GB RAM, 1 vCPUSQLite12–13 Nov763 MiB962 MiB411 MiB198 MiB
1 GB RAM, 1 vCPUPostgres13–14 Nov788 MiB962 MiB393 MiB174 MiB
2 GB RAM, 1 vCPUSQLite12–13 Nov842 MiB1,968 MiB394 MiB1,126 MiB
2 GB RAM, 1 vCPUPostgres12–13 Nov841 MiB1,968 MiB387 MiB1,127 MiB
2 GB RAM, 1 vCPUQueue mode12–13 Nov1,159 MiB1,968 MiB396 MiB810 MiB
2 GB RAM, 2 vCPUSQLite13–14 Nov840 MiB1,968 MiB384 MiB1,128 MiB
2 GB RAM, 2 vCPUPostgres13–14 Nov866 MiB1,968 MiB389 MiB1,102 MiB
4 GB RAM, 2 vCPUSQLite12–13 Nov972 MiB3,916 MiB414 MiB2,944 MiB
4 GB RAM, 2 vCPUPostgres12–13 Nov956 MiB3,916 MiB409 MiB2,960 MiB
4 GB RAM, 2 vCPUQueue mode12–13 Nov1,311 MiB3,916 MiB404 MiB2,605 MiB

Data: idle summary, main series and idle summary, repeat series (CSV).

"RAM used" is the whole server (total minus available memory): the median of samples taken every 5 seconds over two 5-minute periods after a fresh install, with no workflows running. The n8n container figure comes from Docker's own statistics over a third 5-minute period, about every 7 seconds. Postgres added little to the server total, because its container used about 50 to 60 MiB. Queue mode added about 300 MiB more, mostly for the extra worker process.

How much load can each server size handle?

With SQLite, every size handled 5 simple webhook requests a second, but the heavier workflows split the sizes apart. We sent each workflow 1, 5 and then 20 requests a second for 5 minutes each, and counted a rate as handled when at least 2 of 3 runs kept errors at or below 1% and the 95th-percentile response time (p95) at or below 2 seconds.

ServerSetupTested (2026)Webhook replyHTTP call + code step50-item loop
1 GB RAM, 1 vCPUSQLite13–14 Nov5/s, p95 117 ms; failed at 205/s, p95 853 ms; failed at 201/s, p95 907 ms; failed at 5 (close call)
1 GB RAM, 1 vCPUPostgres13–14 Nov5/s, p95 712 ms; failed at 201/s, p95 191 ms; failed at 5 (close call)not settled (see limits)
2 GB RAM, 1 vCPUSQLite12–13 Nov5/s, p95 351 ms; failed at 205/s, p95 1,924 ms; failed at 20 (close call)1/s, p95 453 ms; failed at 5 (close call)
2 GB RAM, 1 vCPUPostgres12–13 Nov5/s, p95 1,537 ms; failed at 20 (close call)1/s, p95 157 ms; failed at 51/s, p95 496 ms; failed at 5
2 GB RAM, 1 vCPUQueue mode12–13 Nov1/s, p95 129 ms; failed at 51/s, p95 229 ms; failed at 51/s, p95 549 ms; failed at 5
2 GB RAM, 2 vCPUSQLite13–14 Nov5/s, p95 46 ms; failed at 205/s, p95 67 ms; failed at 205/s, p95 673 ms; failed at 20
2 GB RAM, 2 vCPUPostgres13–14 Nov5/s, p95 64 ms; failed at 205/s, p95 99 ms; failed at 201/s, p95 255 ms; failed at 5 (close call)
4 GB RAM, 2 vCPUSQLite12–13 Nov5/s, p95 45 ms; failed at 205/s, p95 77 ms; failed at 205/s, p95 599 ms; failed at 20
4 GB RAM, 2 vCPUPostgres12–13 Nov5/s, p95 46 ms; failed at 205/s, p95 78 ms; failed at 205/s, p95 706 ms; failed at 20
4 GB RAM, 2 vCPUQueue mode12–13 Nov5/s, p95 64 ms; failed at 205/s, p95 82 ms; failed at 201/s, p95 229 ms; failed at 5 (close call)

Close calls:

  • 1 GB RAM, 1 vCPU, SQLite, 50-item loop: 1/s had only 2 valid runs.
  • 1 GB RAM, 1 vCPU, Postgres, HTTP call + code step: 1/s had only 2 valid runs.
  • 2 GB RAM, 1 vCPU, SQLite, HTTP call + code step: 5/s passed 2 of 3 runs; p95 reached 1,924 ms in one passing run at 5/s.
  • 2 GB RAM, 1 vCPU, SQLite, 50-item loop: 1/s passed 2 of 3 runs.
  • 2 GB RAM, 1 vCPU, Postgres, webhook reply: p95 reached 1,883 ms in one passing run at 5/s.
  • 2 GB RAM, 2 vCPU, Postgres, 50-item loop: 5/s failed on response time alone (p95 about 2.7 s), not errors.
  • 4 GB RAM, 2 vCPU, Queue mode, 50-item loop: 5/s failed on response time alone (p95 about 2.4 s), not errors.
Bar chart of the highest request rate each server size held with n8n and SQLite, per workflow: every size held 5 webhook replies a second, and only the 2 vCPU servers held 5 loops a second
Highest rate each server held with SQLite. We tested 1, 5 and 20 requests a second only, so the real limits sit between the rate held and the rate that failed.

Data: highest rates, main series, every load step, main series, highest rates, repeat series and every load step, repeat series (CSV).

The three workflows were:

  • Webhook reply: receives a request and answers straight away.
  • HTTP call + code step: calls a small test service, transforms the answer in a Code node and replies.
  • 50-item loop: splits a request into 50 items, processes each one and replies.

We only tested 1, 5 and 20 requests a second, so "5/s; failed at 20" means the real limit is somewhere between 5 and 20. Every request opened a new connection, which is the cautious case; a client that reuses connections will do better. A p95 above about 1 second means the server was close to its limit even where it passed.

Do you need 2 vCPUs for n8n?

A second vCPU made the biggest difference in our tests, more than extra RAM. With 2 GB of RAM on both servers, the 1 vCPU server held the 50-item loop at only 1 request a second, and only just, while the 2 vCPU server held it at 5. We didn't test rates between 1 and 5, so the exact gain is unknown. Webhook replies on the 2 vCPU server also answered roughly 7.5 times faster at p95 (46 ms against 351 ms at 5 a second; the 2 vCPU figure comes from our repeat series on 13–14 November).

If your workflows mostly wait on other services, 1 vCPU can be enough. If they loop over many items or run code, choose 2.

What happens to n8n when Ubuntu installs updates?

Ubuntu installs security updates by itself every day, and on our 1 GB server with no swap that froze the server for about 4 hours. The 2 GB and 4 GB servers ran the same kind of update in under 5 minutes without restarting n8n.

Server24-hour idle resultDuring Ubuntu's automatic updates
1 GB RAM, 1 vCPUNot a clean idle run (see limits)CPU at 90% or more for about 4.3 h; n8n killed for lack of memory and restarted 4 times
2 GB RAM, 1 vCPUServer RAM 812 → 823 MiB; n8n 404 → 392 MiB; disk +124 MiBDone in under 5 minutes; n8n not restarted
4 GB RAM, 2 vCPUServer RAM 977 → 1,018 MiB; n8n 400 → 414 MiB; disk +231 MiBDone in under 5 minutes; n8n not restarted

Data: 24-hour test summary (CSV).

On the 1 GB server, the update started at 06:47 UTC. With no swap space, memory filled up, the Linux out-of-memory killer stopped n8n four times, and the server only recovered after 11:00. A leftover monitoring script from an earlier test was running on that server at the same time, so it wasn't a clean idle test, but it shows what can happen on a 1 GB server with no swap.

Does a swap file stop the freeze on a 1 GB server?

Yes, in our test a 2 GB swap file kept n8n running through the same updates that took it down on a server without swap. On 14 November 2026 we ran two fresh 1 GB servers side by side, both with n8n and SQLite and both with the same 47 updates waiting. Only one had a swap file. We started Ubuntu's automatic security updates on both at the same moment, then ran a full upgrade of whatever was left.

14 Nov 2026, n8n 2.47.4 with SQLite1 GB server + 2 GB swap file1 GB server, no swap
Updates waiting4747
Ubuntu's automatic security updates took3 min 50 s1 h 34 min
n8n health checks answered, 16:29–18:03 UTC (until both had finished)547 of 54712 of 327
n8n killed for lack of memory0 times6 times
n8n restarts06
Highest RAM used, 16:29–18:03 UTC720 of 961 MiB961 MiB (all of it)
Highest swap used476 MiBno swap
Full upgrade afterwards10 packages in under 1 min; 4 of 4 checks answered11 packages in under 1 min; 4 of 4 checks answered

Data: the swap test's health checks, memory samples and kernel log extracts are in the 2026-W46-swap folder of the raw test files (zip, 2.5 MB).

Line chart of memory use and a strip of n8n health checks on two 1 GB servers during Ubuntu updates: the server with swap answered every check, the server without swap failed most of them for about an hour and a half
Memory and n8n health checks on both 1 GB servers, 14 November 2026. The sharp drops in the red line are the moments Linux killed n8n.

On the server with swap, Linux moved idle memory into the swap file and n8n never stopped. On the server without swap, the update and n8n fought over the last few megabytes: Linux killed n8n six times, Docker restarted it each time (our compose file sets a restart policy), and n8n barely answered until the update finished. We checked n8n every 10 seconds, or every 18 seconds when a check timed out, which is why the server without swap has fewer checks. The full upgrade afterwards was small, because the automatic run had already installed most packages, and both servers handled it in under a minute.

Two limits: this was one run on each server, so read it as a clear warning rather than a precise figure. And swap only keeps n8n alive; it lives on disk, so it won't make a 1 GB server fast under load. Our load tests above ran without swap.

SQLite, Postgres or queue mode: which setup needs more?

SQLite, n8n's default database, needed the least memory and did as well as Postgres or better in our load tests. Postgres added about 50 to 60 MiB and was slower on the HTTP workflow on 1 vCPU servers. Queue mode (n8n with Redis, Postgres and a separate worker) used about 300 MiB more at idle and, on a 1 vCPU server, handled only 1 request a second on every workflow.

n8n's documentation recommends Postgres for production, and queue mode is how n8n scales across several workers. Those are good reasons to use them, but on a small server they cost memory and speed. Queue mode makes sense on 4 GB and 2 vCPUs or more.

n8n's official requirements compared with our results

n8n's own guide to installing with Docker Compose asks for at least 4 GB of RAM and 2 vCPUs. That guide also installs a sandbox that runs AI-generated code for n8n Assistant, using Docker inside Docker, and n8n explains the requirement with that sandbox. Our tests ran n8n without that sandbox, so our numbers don't cover it. If you want n8n Assistant's code sandbox, follow n8n's 4 GB minimum.

Other official points, read on 15 November 2026:

The 4 GB figure comes from n8n's Docker Compose guide.

What does each n8n server size cost per month?

A server that held our heavier workflows started at $18 a month on DigitalOcean. These are DigitalOcean's list prices, checked on 15 November 2026; the provider sets the final price at checkout, and taxes may apply.

Server (DigitalOcean)Price per monthIdle RAM left (SQLite)Webhook replies it held (SQLite)50-item loops it held (SQLite)
1 GB RAM, 1 vCPU$6198 MiB5/s (failed at 20)1/s (failed at 5)
2 GB RAM, 1 vCPU$121,126 MiB5/s (failed at 20)1/s (failed at 5)
2 GB RAM, 2 vCPU$181,128 MiB5/s (failed at 20)5/s (failed at 20)
4 GB RAM, 2 vCPU$242,944 MiB5/s (failed at 20)5/s (failed at 20)

Which server should you choose for n8n?

Choose by your heaviest workflow and by whether you'll add swap and look after updates.

  • Trying n8n or running a few light workflows: 2 GB RAM and 1 vCPU. It had over 1 GB free at idle and came through updates without trouble.
  • Workflows with loops, code steps or many items: 2 GB RAM and 2 vCPU. It held 5 loops a second, against 1 on the 1 vCPU server, for $6 a month more.
  • Queue mode, Postgres plus heavier use, or several people building workflows: 4 GB RAM and 2 vCPU or more.
  • 1 GB servers: only with a swap file (we used 2 GB) and for light workflows. Without swap, Ubuntu's own updates overwhelmed our 1 GB servers in both tests: n8n was down for 94 minutes in one, and the server was overloaded for about 4 hours in the other.

Need help choosing or setting it up? We can deploy n8n on your own server and measure it there.

How we tested n8n

We installed n8n 2.47.4 with Docker on fresh Ubuntu 24.04 servers at DigitalOcean (Bangalore), in three setups: SQLite, Postgres, and queue mode. Caddy handled HTTPS. A separate load-generator server ran k6, and a sampler on each server recorded memory, CPU and disk every 5 seconds. Each load step ran 3 times, and a script took the median and applied the pass rule. Every server was a DigitalOcean Basic droplet with shared 2.0 GHz vCPUs. n8n kept its default settings, including saving every execution, and our compose file tells Docker to restart n8n if it stops. The full method is on our how we test page, the summary files and raw outputs are in our published test data, and you can read who runs DeployTested.

n8n's editor showing the bench-loop workflow: Webhook, Make 50, Loop, Double, Aggregate and Respond nodes
The 50-item loop workflow in n8n's editor, from the same file we imported on every test server. Captured on one of our two 1 GB swap-test servers on 14 November 2026, after the update test.
n8n's About dialog on our test server showing n8n version 2.47.4, with the instance ID hidden
n8n's About dialog on the same test server: version 2.47.4. We covered the instance ID with a box.

Limits of these results

These results answer "how big a server", not "how fast is n8n in general". Read them with these limits:

  • One provider and region: DigitalOcean in Bangalore. Other providers' CPUs differ.
  • One version: n8n 2.47.4. Version 2.47.7 was already out by the end of our tests, and newer versions can use more or less memory.
  • Three test workflows and only three request rates (1, 5 and 20 a second). Your workflows will differ.
  • Not settled: the 50-item loop on the 1 GB Postgres server. Its only failing run happened while the server was already unresponsive, so we don't publish a figure.
  • The 1 GB 24-hour test had a leftover monitoring script running, so we only report what happened during the update, not its memory trend.
  • The swap test was one run per server, on 1 GB only, with no load during the updates.
  • Excluded runs: our first 1 GB series hit a bug in our own test scripts and a frozen server, so the 1 GB figures come from a repeat series on the same server size. The reasons are recorded in our review notes, published with the data.

You can report a mistake in these numbers, and we'll correct it as our editorial policy describes.

Recap

  • n8n itself used about 400 MiB of RAM; a whole server with n8n and SQLite or Postgres used 763 to 972 MiB at idle.
  • 2 GB RAM is our minimum for real use, and 2 vCPUs matter more than extra RAM for heavy workflows.
  • A 1 GB server with no swap froze during Ubuntu's automatic updates; with a 2 GB swap file, n8n kept running.
  • n8n's 4 GB guidance covers its AI code sandbox, which we didn't test.