n8n hosting requirements for self-hosting (from the official docs)
What are the hardware requirements to self-host n8n?
n8n's documentation gives a sizing example of 320 MB to 2 GB of memory and 512 MB to 4 GB of SSD storage for the database. n8n is not CPU intensive, uses SQLite by default or PostgreSQL, and runs as one Docker container or as 3 services with the official PostgreSQL compose file.
Everything below is taken from n8n's documentation and official compose files, with links so you can verify it.
Key facts
- Memory: 320 MB – 2 GB in n8n's sizing example; an idle n8n Cloud instance uses about 100 MB[1].
- CPU: n8n isn't CPU intensive; plan for memory first[1].
- Storage: 512 MB – 4 GB of SSD for the database, SQLite (default) or PostgreSQL[1][2].
- Setup: one Docker container with a persistent volume, or 3 services with the official PostgreSQL compose file[3][4].
n8n labels these figures as an example based on n8n Cloud, for illustrative purposes only; your needs depend on users, workflows and executions[1].
This page is about what n8n needs. To pick a server that meets it, see best VPS for n8n, which checks real plans against these numbers.
Summary table
| App | RAM (min) | CPU cores (min) | Disk (min) | Containers / services | GitHub stars | License | Spec source |
|---|---|---|---|---|---|---|---|
| n8n | 320 MB (rec. 2 GB) | not published | — | Default Docker install: 1 container with SQLite. Official withPostgres compose: 3 services (postgres, n8n, n8n-runner) | 208,160[5] | Apache-2.0, Commons-Clause | [1][6][2][4] |
Memory
n8n's sizing example lists 320 MB – 2 GB of memory[1]. What pushes you toward the top of that range[6]:
- the amount of JSON data and the size of binary data processed,
- the number of nodes in a workflow and use of the Code node,
- manual executions (data is kept for the editor),
- multiple workflows running at the same time.
The docs also describe raising Node.js heap with NODE_OPTIONS=--max-old-space-size=… when you have more memory available[6].
CPU
n8n isn't CPU intensive; memory requirements usually supersede CPU requirements[1].
Database and disk
- Database: 512 MB – 4 GB of SSD in the sizing example[1].
- Default: SQLite, stored at
~/.n8n/database.sqlite. PostgreSQL is supported; MySQL and MariaDB were deprecated in v1.0[2]. - n8n recommends SSD storage, a persisted and mounted volume in containers (otherwise data is lost), a dedicated database per n8n instance, and at least basic database security and backups[1].
Docker
- n8n recommends Docker for most self-hosting needs; the basic install is a single
n8nio/n8ncontainer with a persistent volume mounted at/home/node/.n8n[3]. - The official
withPostgrescompose example has 3 services: postgres, n8n and n8n-runner[4].
Who should self-host n8n?
n8n's docs say self-hosting requires technical knowledge (servers, containers, resources, security), recommend it for expert users, and point less experienced users to n8n Cloud[3]. If that's you, pick a plan from best VPS for n8n.
Other self-hosted workflow automation tools
awesome-selfhosted describes n8n as: "Free node based Workflow Automation Tool. Easily automate tasks across different services."[5]. If you are comparing self-hosted workflow automation software, our automation directory lists the other projects in that category with license, GitHub stars and last update (data from awesome-selfhosted, CC BY-SA 3.0).
FAQ
What are the minimum requirements for n8n?
Where does n8n store its data by default?
How much RAM does an idle n8n instance use?
Is MySQL supported for n8n?
When were the figures on this page last checked?
Sources (checked October 2026)
- n8n docs: Prerequisites (sizing example) — https://docs.n8n.io/deploy/host-n8n/deploy-as-an-oem-integration/prerequisites
- n8n docs: Choose n8n's database — https://docs.n8n.io/deploy/host-n8n/configure-n8n/choose-n8ns-database
- n8n docs: Install with Docker — https://docs.n8n.io/deploy/host-n8n/install-options/install-with-docker
- n8n-hosting: docker-compose withPostgres — https://raw.githubusercontent.com/n8n-io/n8n-hosting/main/docker-compose/withPostgres/docker-compose.yml
- awesome-selfhosted-data (CC BY-SA 3.0) — https://github.com/awesome-selfhosted/awesome-selfhosted-data
- n8n docs: Fix memory issues — https://docs.n8n.io/deploy/host-n8n/configure-n8n/scaling/fix-memory-issues