Self-host n8n in 2026: VPS costs, sizing and a safe setup
Self-hosted n8n is free; a 2 vCPU, 4 GB server costs $6.49 to $24 a month, or about $234 to $864 over 3 years, against €720 for n8n Cloud Starter.
Quick comparison
| Provider | From | Starting plan | Free tier | Our rating | Link |
|---|---|---|---|---|---|
Hetzner CloudChecked | $6.49/mo | CX23 (Cost-Optimized, Intel/AMD)2 vCPU · 4 GB RAM · 40 GB NVMe | No | Not rated | Visit |
HostingerChecked | $2.49/mo | Premium (web hosting)20 GB SSD | No (30-day money-back guarantee) | Not rated | Visit |
ElestioChecked | $11/mo | Linode 'Micro' (cheapest shown)1 vCPU · 1 GB RAM · 25 GB SSD | 3-day trial with $20 credit | Not rated | Visit |
VultrChecked | $2.50/mo | Cloud Compute Regular Performance, IPv6-only 0.5 GB1 vCPU · 0.5 GB RAM · 10 GB SSD | No free tier | Not rated | Visit |
DigitalOceanChecked | $4/mo | Basic Droplet 512 MiB1 vCPU · 0.5 GB RAM · 10 GiB SSD | Occasional promo credit for new users | Not rated | Visit |
n8n CloudChecked | See site | Prices being checked | Free trial only (self-hosting is free) | Not rated | Visit |
Self-hosting n8n costs only the server: the Community edition is free, and a server with the 2 vCPUs and 4 GB of RAM n8n’s Docker Compose guide asks for costs $6.49 to $24 a month in our data, as of November 22, 2026. Over three years that is about $234 to $864, against €720 for n8n Cloud Starter and its 2,500 executions a month. In exchange, you handle updates, backups and security yourself.
We haven’t run n8n on these servers ourselves. The figures come from each provider’s pricing page and from n8n’s own docs, read on November 22, 2026 (how we work).
At a glance
| Question | Answer (checked November 22, 2026) |
|---|---|
| Is self-hosted n8n free? | Yes. The Community edition is free; you pay for the server |
| Server n8n recommends | At least 4 GB of RAM and 2 vCPUs (Docker Compose guide) |
| Cheapest 2 vCPU / 4 GB+ server we track | Hetzner CX23, $6.49/mo excl. VAT and IPv4, but out of stock on Nov 22 |
| Cheapest in stock, one-click n8n | Hostinger APP 2 (2 vCPU, 6 GB): $6.99/mo for 24 months upfront, renews at $12.99 |
| n8n Cloud instead | Starter €20/mo billed yearly (€24 monthly), 2,500 executions |
| Missing from the free edition | SSO, Git version control, environments, projects, sharing, log streaming |
Self-hosted n8n vs n8n Cloud
| Option | Monthly cost | Executions | Who maintains it |
|---|---|---|---|
| n8n Cloud Starter | €20 billed yearly, €24 monthly | 2,500 a month, 5 at once | n8n |
| n8n Cloud Pro | €50 billed yearly, €60 monthly | 10,000 a month | n8n |
| Community edition on Hostinger APP 2 | $6.99 intro (24 months upfront), then $12.99 | No cap listed; your server is the limit | You (one-click template) |
| Community edition on Hetzner CX23 | $6.49, plus VAT and the IPv4 address | No cap listed; your server is the limit | You |
| Community edition on Elestio | From $11 | No cap listed; your server is the limit | Elestio (updates, backups) |
n8n prices Cloud in euros only (n8n pricing). n8n says “an execution is a single run of your entire workflow”, however many steps it has. Paid Business features on a self-hosted server cost €667 a month billed yearly; most self-hosters never need them.
What you gain: a lower bill, no execution quota, full control over the server, and your data on infrastructure you choose.
What you give up: n8n lists these as missing from the Community edition: custom variables, environments, external secrets, external storage for binary data, log streaming, multi-main mode, projects, SSO (SAML and LDAP), sharing of workflows and credentials, and Git version control. Registering the instance with an email address, also free, adds folders, debug in editor and custom execution data (n8n Community edition features).
What you take on: server updates, n8n updates, backups, HTTPS and security. If that’s not you, a managed host like Elestio, or n8n Cloud itself, is the safer choice. Plan-by-plan Cloud prices are in our n8n pricing guide.
The licence in plain English
n8n’s Community edition uses its Sustainable Use License (n8n licence FAQ). You can use it to help run your business, for personal projects, and to build automations for clients on your instance “as long as your clients do not have the possibility to create or edit them”. You can charge for workflow creation, setup, maintenance, training and consulting. You can’t host n8n as a service where clients build their own workflows, or white-label it.
What does self-hosting n8n cost over three years?
No top result for this search adds up the bill over time, and intro prices make the first month misleading. Here is the total for one server that meets n8n’s 2 vCPU / 4 GB guidance, from the prices in our data and Hostinger’s n8n page, with renewals where the provider states them:
| Server (2 vCPU, 4 GB+ RAM) | Year 1 | 3 years | How it’s billed |
|---|---|---|---|
| Hetzner CX23 (4 GB) | $77.88 | $233.64 | Hourly, capped monthly; excl. VAT and IPv4; out of stock |
| Hostinger APP 2 (6 GB) | $83.88 | $323.64 | $167.76 upfront for 24 months, then $12.99/mo |
| Hostinger KVM 2 (8 GB) | $105.48 | $390.84 | $210.96 upfront for 24 months, then $14.99/mo |
| Elestio on Netcup (4 GB), managed | $192 | $576 | Hourly, about $16/mo |
| Vultr Regular Performance 4 GB | $240 | $720 | Hourly, capped at $20/mo |
| DigitalOcean Basic 4 GiB | $288 | $864 | Per second, capped at $24/mo |
| n8n Cloud Starter (no server) | €240 | €720 | Billed yearly, 2,500 executions a month |
| n8n Cloud Pro (no server) | €600 | €1,800 | Billed yearly, 10,000 executions a month |
The arithmetic for Hostinger APP 2: $6.99 × 24 months = $167.76 upfront, then $12.99 × 12 months = $155.88 for year three, so $323.64 in total. The year-one figure for prepaid plans is the monthly rate × 12; you actually pay the full 24 months on day one. Hetzner: $6.49 × 36 = $233.64, before VAT and the IPv4 address. Hostinger doesn’t state how long the renewal price lasts, so year three assumes it holds.
What the table leaves out: your time for updates and backups, which n8n Cloud and Elestio take off your hands, and any off-server backup storage.
How much RAM and CPU does n8n need?
n8n isn’t CPU-hungry; memory matters more. n8n’s own sizing example, based on n8n Cloud and “for illustrative purposes only”, puts memory at 320 MB to 2 GB and says an idle instance needs about 100 MB (n8n sizing). Memory use grows with the amount of JSON and binary data, the number of nodes, the Code node, manual executions (n8n copies the data for the editor) and other workflows running at the same time (n8n memory docs).
The number that matters for a new server comes from n8n’s Docker Compose guide: “At least 4 GB of RAM and 2 vCPUs”, because its setup includes a sandbox container for n8n Assistant that needs more headroom than a typical container.
| Use | vCPU | RAM | Database | Plans that fit (November 2026) |
|---|---|---|---|---|
| Testing on your own computer | Any | What you have | SQLite | Free with n8n’s one-line setup |
| Personal, a few workflows, no sandbox | 1–2 | 2–4 GB | SQLite is fine | Hostinger APP 1 (1 vCPU, 4 GB) $4.99 intro, $9.99 renewal; Vultr Regular 2 GB $10/mo; DigitalOcean Basic 2 GiB $12/mo |
| Small team or production, n8n’s Compose setup | 2 | 4–8 GB | Postgres | Hetzner CX23 $6.49 (out of stock); Hostinger APP 2 $6.99 or KVM 2 $8.79 intro; Elestio $16; Vultr 4 GB $20; DigitalOcean 4 GiB $24 |
| Heavy AI workflows, big files, queue mode | 4+ | 8–16 GB | Postgres, with worker processes | Hetzner CX33 (4 vCPU, 8 GB) $9.99 or CX43 (8 vCPU, 16 GB) $18.49 (both out of stock); Hostinger KVM 4 (4 vCPU, 16 GB) $12.99 intro, $28.99 renewal; DigitalOcean Basic 8 GiB $48 |
n8n’s one-line setup page suggests Postgres for teams or production. Running a language model on the same server is a different job: local models need a GPU or far more RAM (see self-hosted AI).
Can you host n8n for free?
Yes, on hardware you already own. n8n’s one-line setup runs curl -fsSL https://get.n8n.io | sh and needs Docker with the docker compose v2 plugin; on Windows it runs inside WSL with Docker Desktop’s WSL2 integration. It uses SQLite and opens n8n at http://localhost:5678. n8n says its bundled sandbox “is for development and testing, not production”, and the setup doesn’t add a domain or HTTPS.
The catch with a home computer is that webhooks and schedules only run while it’s on and reachable. For an always-on server at no cost, the big clouds’ free tiers are the only option; their limits, idle rules and expiry dates are in our free VPS guide. For anything clients or your business depend on, a paid server from the table above avoids free-tier limits and reclaim rules.
Which server to choose
These picks rest on published prices and specs and on n8n’s own guidance. We haven’t measured uptime or speed on any of them.
- Lowest price, EU users, comfortable with Linux: Hetzner CX23 (2 vCPU, 4 GB, 40 GB NVMe, $6.49 a month excluding VAT and IPv4, billed hourly with no contract) is the cheapest server that meets n8n’s guidance. On November 22, 2026, Hetzner’s page marked CX23, CX33, CX43 and CAX11 “currently unavailable”, so you may not be able to order one. It runs in Germany and Finland.
- Cheapest one-click setup you can order now: Hostinger APP 2 (2 vCPU, 6 GB, 80 GB NVMe) at $6.99 a month, paid for 24 months upfront ($167.76), renewing at $12.99. Its n8n page offers templates for plain n8n, n8n with queue mode, and n8n with 100+ pre-made workflows, and a 30-day money-back guarantee (Hostinger self-hosted n8n). Choose KVM 2 ($8.79 intro, $14.99 renewal, 8 GB) if you also want room for other apps. More Hostinger terms are in our Hostinger pricing guide.
- Self-hosted without the sysadmin work: Elestio, from $11 a month, or $16 for 2 vCPU and 4 GB on Netcup. Elestio says it handles “installation, configuration, encryption, security, backups, live monitoring, software & OS updates” (Elestio n8n). New accounts get a 3-day trial with $20 of credit, per our data.
- No upfront term, pay by the hour: Vultr Regular Performance 4 GB ($20 a month) or a DigitalOcean Basic 4 GiB Droplet ($24). Both cost three to four times Hetzner’s price for the same RAM, but suit tests and short projects. Our DigitalOcean vs Linode vs Vultr comparison covers their transfer and backup fees.
- Under 2,500 runs a month and no wish to run a server: n8n Cloud Starter at €20 a month billed yearly. n8n runs the server and the updates for you.
More VPS options are on our VPS hosting page.
Setup step by step
This is an outline. Take the current files and commands from n8n’s docs rather than copying an old script. If you used a one-click template, start at step 6.
- Create the server. Use a current Ubuntu LTS image, log in with an SSH key, and install updates. Allow only SSH, HTTP and HTTPS in the firewall (ports 22, 80 and 443). Don’t expose n8n’s port 5678 to the internet.
- Point a subdomain at it. Create an A record such as
n8n.example.compointing to the server’s IP address. - Install Docker Engine and Docker Compose v2 from Docker’s docs. n8n says “npm installation is deprecated from n8n 3.0” and points users to Docker Compose or the one-line setup (Host n8n).
- Run n8n with Postgres. Start from n8n’s Install using Docker Compose page. Put passwords in the
.envfile and keep it out of version control. n8n supports Postgres 17 and 18, plus 16 for compatibility (n8n database docs). n8n’s example usespostgres:18and setsPGDATA; its docs say “Don’t remove that line”, because Postgres 18 changed where it stores data by default. - Add HTTPS with a reverse proxy. n8n’s Docker Compose server guide puts Traefik in front to manage TLS certificates through ACME, publishes only ports 80 and 443, and binds n8n to
127.0.0.1:5678. Set the variables in the table below. - Save the encryption key. n8n encrypts stored credentials with a key kept in the
configfile inside the.n8nfolder, or in your ownN8N_ENCRYPTION_KEY. Keep a copy in a password manager. Without it, credentials in a restored database can’t be decrypted. - Create the owner account straight away, before you share the address, and add SMTP settings so invites and password resets work.
- Register the free Community edition in the settings to add folders, debug in editor and custom execution data.
| Variable | What it does |
|---|---|
DB_TYPE=postgresdb and DB_POSTGRESDB_* |
Uses Postgres instead of SQLite (host, port, database, user, password) |
N8N_ENCRYPTION_KEY |
Your own key for encrypting credentials |
N8N_HOST, N8N_PROTOCOL=https |
The public hostname and protocol |
N8N_WEBHOOK_URL (WEBHOOK_URL before n8n 2.30.0) |
The public URL n8n gives out for webhooks |
GENERIC_TIMEZONE |
Time zone for schedule triggers |
Backups
A complete backup has two parts (n8n backup docs):
- The
.n8nfolder (the n8n data volume in Docker). It holds the encryption key and, with SQLite, the database itself. Stop n8n before copying a SQLite file, or use a tool that takes a consistent snapshot. - The database, if you use Postgres. n8n says to back it up “with your database’s own tooling”, such as
pg_dump.
The CLI export (--backup) saves workflows and credentials only, not users and roles, execution history, variables or instance settings, so it isn’t a full backup. Copy both parts off the server nightly, and restore onto a spare server once to prove the backup works.
Updates
n8n says “Try to update at least once a month”, and to check the release notes for breaking changes before each update (n8n update docs). Take a full backup, including the database and the encryption key, first. Pin a specific image version in your Compose file so updates happen when you choose. A major Postgres upgrade, such as 17 to 18, needs a dump and restore: n8n’s docs note that “Postgres can’t open a data directory written by an older major.” Keep the operating system patched too.
Running AI agents in n8n
Most n8n AI workflows call a hosted model with an API key. The server only orchestrates, so the 2 vCPU / 4 GB servers above are enough; the model provider bills per token, which our AI token cost calculator helps you estimate.
To keep data on your own hardware, n8n’s Self-hosted AI Starter Kit bundles n8n, Ollama (local models), Qdrant (vector store) and PostgreSQL. n8n labels it “For testing only” and suited to proof-of-concept projects, so customize and secure it before production. Local models need a GPU or a lot of RAM; see self-hosted AI agents.
FAQ
Is self-hosted n8n free?
Yes. The Community edition is free under n8n’s Sustainable Use License; you pay only for the server. In our data that starts at $6.49 a month on Hetzner (plus VAT and IPv4, out of stock on November 22, 2026) or $6.99 a month on Hostinger’s APP 2 for a 24-month term. SSO, Git version control and a few team features need a paid licence.
How much RAM does n8n need?
n8n’s sizing example ranges from 320 MB to 2 GB, and an idle instance needs about 100 MB. Its Docker Compose setup, with the n8n Assistant sandbox, asks for at least 4 GB of RAM and 2 vCPUs, so that is the safe size for a new server.
Can I use self-hosted n8n for client work?
Yes, if you build and run the workflows and clients can’t create or edit them. You can charge for building, setup, maintenance and consulting. Hosting n8n so that clients build their own workflows isn’t allowed under the Community licence.
Is self-hosting cheaper than n8n Cloud?
On price, yes. n8n Cloud Starter is €720 over three years for 2,500 executions a month; a suitable server costs $234 to $864 over the same three years with no execution cap. The difference pays for your time on updates and backups, or for a managed host such as Elestio.
Sources
- n8n: Pricing (read November 22, 2026)
- n8n Docs: Host n8n (read November 22, 2026)
- n8n Docs: Community edition features (read November 22, 2026)
- n8n Docs: Install using Docker Compose (read November 22, 2026)
- n8n Docs: Use Docker Compose on a server (read November 22, 2026)
- n8n Docs: One-line setup (read November 22, 2026)
- n8n Docs: Choose n8n’s database (read November 22, 2026)
- n8n Docs: Prerequisites and sizing (read November 22, 2026)
- n8n Docs: Fix memory issues (read November 22, 2026)
- n8n Docs: Backup and restore (read November 22, 2026)
- n8n Docs: Update n8n (read November 22, 2026)
- n8n Docs: Self-hosted AI Starter Kit (read November 22, 2026)
- n8n Docs: Sustainable Use License FAQ (read November 22, 2026)
- Hostinger: Self-hosted n8n (read November 22, 2026)
- Hetzner: Cost-Optimized cloud servers (read November 22, 2026, for stock status)
- Elestio: n8n (read November 22, 2026)
- Hetzner, Hostinger VPS, Vultr, DigitalOcean, Elestio and n8n Cloud prices: AskGPU price data, last checked October 17 to November 2, 2026