ServerCalc
Reviews

How much RAM does n8n need? 2, 4 and 8 GB VPS plans priced

n8n itself uses about 180 MiB. A self-hosted VPS needs 2 GB with SQLite, 4 GB with PostgreSQL, 8 GB for queue mode: from $3 to $24 a month.

November 16, 2026ServerCalc Editorial10 min read

Self-hosted n8n needs 2 GB of RAM for a few dozen scheduled workflows on SQLite, 4 GB once PostgreSQL and webhooks run on the same server, and 8 GB for queue mode with Redis and workers. n8n's own documentation says the software alone uses around 180 MiB on average, and its paid cloud plans run on 640 to 1,280 MiB. In our catalog a 2 GB VPS costs $3.00 a month, 4 GB $5.00 and 8 GB $19.16, prices checked on November 15, 2026.

n8n Cloud runs paid instances on 640 to 1,280 MiB of RAM

The best public reference for n8n's real footprint is n8n itself. Its "Manage your data" page lists the memory each cloud plan gets: Starter and Pro-1 (10k executions) have 640 MiB, Pro-2 (50k executions) 1,280 MiB and Enterprise 4,096 MiB. The same page says that the software alone "uses around 180MiB RAM" on average.

A VPS needs more than that because n8n is not alone on it. The operating system, Docker, a reverse proxy for HTTPS and, in production, a PostgreSQL database share the same memory. n8n publishes no minimum RAM for self-hosting, so the tiers below are our sizing from the VPS for n8n page, built on those official figures.

2 GB covers SQLite, 4 GB covers PostgreSQL, 8 GB covers queue mode

The table matches each setup to the three cheapest plans at that RAM tier in our catalog.

Setup RAM we size for Cheapest plans at that tier vCPU / disk Price a month
n8n + SQLite, scheduled workflows 2 GB RackNerd KVM 2 GB, USA 2 / 35 GB SSD $3.00 ($35.99 a year)
Hostman Cloud 3, Europe or New York 2 / 60 GB NVMe $7.00
MassiveGRID Growth, Europe 2 / 64 GB NVMe $7.98
n8n + PostgreSQL, webhooks 4 GB RackNerd KVM 4 GB, USA 3 / 60 GB SSD $5.00 ($59.99 a year)
Hostman Cloud 4, Europe or New York 2 / 80 GB NVMe $10.00
Ethernet Servers VPS 4 GB, USA 2 / 160 GB SSD $12.00
Queue mode: main, Redis, workers, PostgreSQL 8 GB MassiveGRID Professional, Singapore 4 / 128 GB NVMe $19.16
Hostman Cloud 5, Europe or New York 4 / 160 GB NVMe $22.00
Ethernet Servers VPS 8 GB, USA 4 / 320 GB SSD $24.00

RackNerd prices are monthly equivalents of a 12-month term paid up front; the other plans bill monthly. Hostman cloud plans are listed without an IPv4 address, so check that line at checkout. More plans per tier: cheapest 2 GB VPS, cheapest 4 GB VPS and cheapest 8 GB VPS.

A $3 to $7 server runs a few dozen scheduled workflows

Take a hypothetical team with 30 workflows that sync a CRM, post reports and check an inbox every 15 minutes. Runs are short and rarely overlap, so SQLite, the database self-hosted n8n uses by default, is enough. RackNerd KVM 2 GB gives 2 vCPU for $35.99 a year; Hostman Cloud 3 costs $7.00 a month with NVMe in Frankfurt, Amsterdam, London, Helsinki, Paris or New York.

For comparison, n8n Cloud Starter is listed at 20 EUR a month billed annually for 2,500 executions, and Pro at 50 EUR for 10,000. A self-hosted server has no execution cap, but updates and backups become your job.

PostgreSQL and webhooks move the working size to 4 GB

n8n's production requirements say it "recommends PostgreSQL for production" and does not recommend SQLite "for multi-user production use". Running PostgreSQL next to n8n is the main reason to go from 2 to 4 GB. Webhooks are the second: a form, a payment notification or a chat message arrives when the sender decides, and several can land at once.

Concurrency control is off by default: N8N_CONCURRENCY_PRODUCTION_LIMIT is -1, so every incoming execution starts immediately. On a 4 GB server, set a limit such as the documentation's example of 20, and extra executions wait in line instead of competing for memory.

Want plans filtered for this setup? Open the calculator with the n8n task: it preselects 2 vCPU and 4 GB and sorts plans by price and location.

Queue mode needs Redis and workers, so plan 8 GB

When one process cannot keep up, n8n's queue mode splits the work: a main instance receives triggers, Redis acts as the message broker, and workers run the executions. The documentation is explicit that this setup over SQLite "isn't supported", so PostgreSQL is mandatory. Each worker is a separate Node.js process and runs 10 jobs in parallel by default; n8n recommends a concurrency of 5 or higher.

On one 8 GB VPS with 4 vCPU, a hypothetical setup of one main instance, two workers, Redis and PostgreSQL fits with room for the operating system. Cores start to matter here, see dedicated vs shared vCPU. The three cheapest 8 GB plans in our catalog all have 4 vCPU and cost $19.16 to $24.00 a month.

Files and Code nodes, not the number of workflows, cause out-of-memory crashes

n8n's "Fix memory issues" page names the usual suspects: the Code node and the older Function node "can increase memory consumption significantly", and so do large files and big JSON payloads. A workflow that downloads 200 PDF invoices in one run can crash a 4 GB server that handles hundreds of small runs a day without trouble.

The fixes from the documentation cost nothing: split the data into smaller chunks, move heavy steps into sub-workflows, and keep binary data out of memory. The environment variable reference says the default binary data mode keeps files in memory, while filesystem writes them to disk. You can also raise the Node.js heap with --max-old-space-size in NODE_OPTIONS. With the official Docker image, n8n restarts on its own after a memory crash, which hides the problem; check the logs. Running other containers next to n8n? Size the whole stack on VPS for Docker.

Execution history fills the disk before it fills RAM

Every run is saved with its data. Pruning is on by default: EXECUTIONS_DATA_MAX_AGE keeps 336 hours (14 days) and EXECUTIONS_DATA_PRUNE_MAX_COUNT keeps up to 10,000 executions. With SQLite, n8n warns that the disk space of pruned data "isn't automatically freed up", so the database file only grows.

This is why the tiers above go from 35 to 320 GB of disk. NVMe also shortens queries on a large executions table, see NVMe vs SSD. Back up the database: it holds your workflows and credentials.

Ready to pick a server? Compare plans on VPS for n8n, or try a tier for a few days on a VPS with hourly billing before a yearly term.

Frequently asked questions

How much RAM does n8n need?

The software alone uses around 180 MiB on average, according to n8n. On a VPS, plan 2 GB for SQLite and scheduled workflows, 4 GB with PostgreSQL and webhooks, and 8 GB for queue mode with Redis and workers.

Can n8n run on a 1 GB VPS?

It can start, since n8n Cloud Starter runs on 640 MiB. On a VPS the operating system, Docker and a proxy share that 1 GB, so one large file or Code node run can exhaust it. 2 GB costs $3.00 a month in our catalog.

Does n8n need PostgreSQL?

Not to start: self-hosted n8n uses SQLite by default. n8n recommends PostgreSQL for production, and queue mode does not support SQLite.

How much does a VPS for n8n cost per month?

In our catalog, checked November 15, 2026: $3.00 for 2 GB and $5.00 for 4 GB on a yearly term, $7.00 and $10.00 billed monthly with NVMe, and $19.16 to $24.00 for 8 GB.

Why does n8n run out of memory?

Usually because of large files, big JSON payloads or Code node runs, not because of the number of workflows. Split the data into chunks, use sub-workflows and set the binary data mode to filesystem.

Read also

Plan prices, CPU, disk and locations come from our catalog, checked on each provider's pricing page on November 15, 2026. n8n Cloud memory per plan, the 180 MiB figure, database, queue mode, concurrency, binary data and pruning defaults are from the n8n documentation at docs.n8n.io, and n8n Cloud prices from n8n.io/pricing, all checked November 16, 2026.

Provider from this article

Hostman

plans in our base from $7 / month

This is an affiliate link: if you sign up, we earn a commission. The price for you does not change. Hostman is a partner of the service and gets a 10-point bonus in the «Best match» sort, as described in the methodology