You can self host n8n for free in one sense only: the software costs nothing. The server does not. n8n's Community Edition is free to run, but you rent a VPS (a virtual private server, a slice of a big server) and you handle setup, backups, updates and security yourself (n8n docs, checked 16 November 2026).
A small VPS costs about $9 to $24 a month (Hostinger and DigitalOcean, 2026), as the table below shows. This guide gives the Docker Compose steps from the n8n docs, how HTTPS works, how to back up and update, and what it costs next to n8n Cloud. It also says who should not self host.
Disclosure: the Hostinger links and the coupon code below are part of Hostinger's affiliate programme. Tutorsbot may earn a commission if you buy, at no extra cost to you.
How to self host n8n for free
Install the Community Edition with Docker on a Linux server you control. The software has no price, and you pay only for the machine it runs on. The steps are further down this page.
The licence matters before you start. The n8n README calls the code "fair-code distributed under the Sustainable Use License and n8n Enterprise License" (GitHub, 2026). Fair-code means the source code is public, but the licence limits how you may use it. Version 1.0 of the Sustainable Use License says you may use the software "only for your own internal business purposes or for non-commercial or personal use" (n8n LICENSE.md).
So you can run n8n for your own company, your own projects or fun. The licence text does not name selling n8n or hosting it for other people, so read it before you plan either. Files marked ".ee." need a separate paid Enterprise licence.
The Community Edition has "almost the complete feature set of n8n," according to the n8n docs. It lacks some team features, including SSO (single sign-on), projects, environments and Git version control. If you register your email, n8n gives you a free key that unlocks folders, debug in editor and custom execution data.
Does self hosting n8n cost money?
Yes. The software is free, but you pay for the server, a domain name, backups and your own time. The n8n docs warn that mistakes in self hosting can cause data loss, security issues or downtime. They suggest n8n Cloud if you are new to servers.
These are the costs you carry:
- The VPS itself, billed monthly or for a long term.
- A domain name or subdomain such as n8n.yourdomain.com, which you buy from a registrar. Hostinger lists a free domain for the first year on its VPS plans.
- Backups. Hostinger lists free weekly backups. DigitalOcean charges 20 percent of the Droplet price for weekly backups (DigitalOcean, 2026).
- Updates and security checks, which take your time.
The table shows what two years and four years cost. The totals are my own sums from each vendor's page, and they assume prices stay the same.
| Option | First price | Renewal price | 24 months | 48 months |
|---|---|---|---|---|
| n8n Cloud Starter (2,500 executions a month) | €20 a month, billed annually | Not stated | €480 | €960 |
| n8n Cloud Pro (10,000 executions a month) | €50 a month, billed annually | Not stated | €1,200 | €2,400 |
| Hostinger KVM 1 (1 vCPU, 4 GB RAM) | $6.49 a month, 24-month term ($155.76) | $11.99 a month | $155.76 | $443.52 |
| Hostinger KVM 2 (2 vCPU, 8 GB RAM) | $8.79 a month, 24-month term ($210.96) | $14.99 a month | $210.96 | $570.72 |
| DigitalOcean Basic Droplet (2 vCPU, 4 GiB RAM) | $24 a month | Same | $576 | $1,152 |
Sources: n8n pricing page, Hostinger VPS page (November 2026) and DigitalOcean Droplet pricing (2026). n8n prices are in euros and the VPS prices are in dollars, so I did not convert them. KVM 1 over 48 months is $155.76 plus 24 times $11.99. Hostinger's prices need the 24-month term paid up front.
n8n self hosted vs cloud
Self hosted means you run n8n on your own server. Cloud means n8n runs it for you. Cloud costs more each month but removes the server work.
n8n Cloud prices below come from the n8n pricing page (16 November 2026). The page shows a monthly and an annual toggle. I could only read the annual prices, so monthly-billing prices are not verified here.
| Plan | Price | Executions a month | Notes |
|---|---|---|---|
| Starter | €20 a month, billed annually | 2,500 | 5 concurrent runs, 5-minute limit per run, forum support |
| Pro | €50 a month, billed annually | 10,000 | 40-minute limit per run, forum support |
| Business | €667 a month, billed annually | 40,000 | Self-hosted only, needs a license key |
| Enterprise | Ask sales | Custom | Hosted or self-hosted, support with an SLA |
n8n counts one execution as "a single run of your entire workflow," however many steps it has. All plans have unlimited users and active workflows. A free Cloud trial exists, but it is capped at 1,000 executions and ends.
The self-hosted Community Edition has no execution cap in the n8n docs. Hostinger's n8n page also says unlimited workflows and concurrent executions, though your server's CPU and RAM set the real limit. n8n keeps old run data for 336 hours (14 days) or 10,000 executions by default, then prunes it.
Is self hosting n8n worth it?
It is worth it if you run many executions, can manage a Linux server and want to spend little. It is not worth it if you want zero upkeep. The saving is real but small at low volume.
Take Cloud Starter at €20 a month for 2,500 executions. A Hostinger KVM 2 averages $8.79 a month over the first 24 months and has no execution cap in the docs. Once you pass 2,500 runs a month, the server often wins on cost. Below that, the gap is small and you take on all the risk.
Count your time too. You must update n8n, renew certificates, test restores and fix outages. One bad update or lost encryption key can cost more than a year of Cloud fees.
How to self host n8n on a VPS step by step
These steps follow the n8n guide "Install n8n with Docker Compose (Traefik + Let's Encrypt)" (n8n docs, checked 16 November 2026, stable release 2.47.7). Traefik is a tool that handles HTTPS for you. You need a Linux server, a domain you control and SSH access.
Pick a server size
n8n's other Docker Compose page, which adds a code sandbox, lists at least 4 GB of RAM and 2 vCPUs. It also says to use a dedicated host because one service runs privileged. The Traefik guide lists no minimum. Plan for 2 vCPUs and 4 GB or more.
Point a subdomain at the server
Create an A record (a DNS entry that maps a name to an IP address). Use the name n8n and your server's IP address as the destination.
Install Docker
Install Docker Engine and the Compose plugin from Docker's docs for your Linux version. Then check both:
docker --version
docker compose version
Create the .env file
mkdir n8n-compose
cd n8n-compose
Inside that folder, create a file named .env:
DOMAIN_NAME=example.com
SUBDOMAIN=n8n
GENERIC_TIMEZONE=Europe/Berlin
[email protected]
Use your own domain, timezone and email. The email is for the HTTPS certificate. Then create the folder n8n uses to share files:
mkdir local-files
Create compose.yaml
Create compose.yaml in the same folder with this content from the n8n docs:
services:
traefik:
image: "traefik"
restart: always
command:
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--entrypoints.web.http.redirections.entryPoint.to=websecure"
- "--entrypoints.web.http.redirections.entrypoint.scheme=https"
- "--entrypoints.websecure.address=:443"
- "--certificatesresolvers.mytlschallenge.acme.tlschallenge=true"
- "--certificatesresolvers.mytlschallenge.acme.email=${SSL_EMAIL}"
- "--certificatesresolvers.mytlschallenge.acme.storage=/letsencrypt/acme.json"
ports:
- "80:80"
- "443:443"
volumes:
- traefik_data:/letsencrypt
- /var/run/docker.sock:/var/run/docker.sock:ro
n8n:
image: n8nio/n8n
restart: always
ports:
- "127.0.0.1:5678:5678"
labels:
- traefik.enable=true
- traefik.http.routers.n8n.rule=Host(`${SUBDOMAIN}.${DOMAIN_NAME}`)
- traefik.http.routers.n8n.tls=true
- traefik.http.routers.n8n.entrypoints=web,websecure
- traefik.http.routers.n8n.tls.certresolver=mytlschallenge
- traefik.http.middlewares.n8n.headers.SSLRedirect=true
- traefik.http.middlewares.n8n.headers.STSSeconds=315360000
- traefik.http.middlewares.n8n.headers.browserXSSFilter=true
- traefik.http.middlewares.n8n.headers.contentTypeNosniff=true
- traefik.http.middlewares.n8n.headers.forceSTSHeader=true
- traefik.http.middlewares.n8n.headers.SSLHost=${DOMAIN_NAME}
- traefik.http.middlewares.n8n.headers.STSIncludeSubdomains=true
- traefik.http.middlewares.n8n.headers.STSPreload=true
- traefik.http.routers.n8n.middlewares=n8n@docker
environment:
- N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
- N8N_HOST=${SUBDOMAIN}.${DOMAIN_NAME}
- N8N_PORT=5678
- N8N_PROTOCOL=https
- NODE_ENV=production
- N8N_WEBHOOK_URL=https://${SUBDOMAIN}.${DOMAIN_NAME}/
- GENERIC_TIMEZONE=${GENERIC_TIMEZONE}
- TZ=${GENERIC_TIMEZONE}
- N8N_RESTRICT_FILE_ACCESS_TO=/files
volumes:
- n8n_data:/home/node/.n8n
- ./local-files:/files
volumes:
n8n_data:
traefik_data:
N8N_WEBHOOK_URL works from n8n 2.30.0. On older versions, use WEBHOOK_URL instead. The n8n_data volume holds n8n's SQLite database and encryption key.
Start n8n and open it
sudo docker compose up -d
Open https://n8n.example.com with your own domain. n8n accepts only HTTPS, not plain HTTP. On a fresh install, n8n asks you to set up the owner account. If the page does not load, check your firewall and DNS record. To stop the containers, run sudo docker compose stop.
The n8n docs also show a PostgreSQL setup for production, since SQLite is not recommended for busy multi-user use. Our guide to PostgreSQL vs MySQL explains how the two databases differ.
Reverse proxy and HTTPS basics
A reverse proxy is a program that takes web traffic from the internet and passes it to your app. In the setup above, Traefik is the reverse proxy. It listens on ports 80 and 443, gets a free Let's Encrypt certificate and forwards requests to n8n.
The compose file binds n8n to 127.0.0.1:5678, so the n8n port is not open to the internet. The n8n docs say not to expose the n8n process directly. Open only SSH, 80 and 443 in your firewall.
If you use Nginx or Caddy instead, three things matter. Pass the X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Proto headers. Turn on websocket support, or triggers can hang while they wait for an event. Set the public webhook URL, and set N8N_PROXY_HOPS to 1 as the n8n webhook page says. Our Node.js on a VPS guide shows an Nginx and Certbot setup you can adapt.
Back up n8n
Back up the .n8n folder, which is the n8n_data volume. It holds the encryption key that unlocks your saved credentials. Without that key, a restored database cannot decrypt them (n8n backup docs, checked 16 November 2026).
With the default SQLite database, stop n8n before you copy the folder. Copying while n8n writes can give you a broken backup. If you use PostgreSQL, back that up with its own tools.
You can also export workflows and credentials with these commands, each to its own folder:
n8n export:workflow --backup --output=backups/workflows/
n8n export:credentials --backup --output=backups/credentials/
These exports skip users, run history, variables and settings such as the encryption key. The docs give no volume backup command, so use your usual Docker method. Keep a copy off the server, and test a restore once.
Update n8n
Update by pulling the new image and restarting. n8n's Docker docs give these commands for a Compose setup:
cd /path/to/your/compose/file/directory
docker compose pull
docker compose down
docker compose up -d
Use the stable channel for production. The beta channel is newer and may be unstable. Take a backup before each update.
Hostinger VPS for n8n
Hostinger sells n8n on its KVM VPS plans. Its n8n page lists an "Ubuntu 24.04 with n8n" template that runs n8n in Docker, plus a queue-mode template (Hostinger, November 2026). Hostinger's support covers the VPS and keeping n8n running. It does not cover your workflows, configuration or custom code.
KVM 1 has 1 vCPU and 4 GB of RAM, so it is below the 2 vCPUs on n8n's sandbox page. KVM 2 has 2 vCPUs and 8 GB. Prices need a 24-month term paid up front: KVM 1 is $6.49 a month ($155.76) and renews at $11.99 a month, and KVM 2 is $8.79 ($210.96) and renews at $14.99 a month. Check the renewal price before you buy. Hostinger lists a 30-day money-back guarantee.
Hostinger is the wrong pick if you want monthly billing or one flat price. DigitalOcean bills monthly, so you can stop at any time. See our cheap VPS hosting comparison and Hostinger pricing guide for more. To see current plans, visit the Hostinger n8n hosting page.
Disclosure: this link is an affiliate link. Tutorsbot may earn a commission if you buy, at no extra cost to you.
Who should not self host n8n
Skip self hosting if any of these fit you:
- You run fewer than about 2,500 executions a month and want no upkeep. Cloud Starter at €20 a month is simpler.
- Nobody on your team can update a server, read logs and restore a backup.
- Your workflows hold customer or payment data and you cannot secure a server.
- You plan to resell n8n or host it for clients. The licence does not clearly allow that.
- You need an uptime promise or dedicated support. Only the Enterprise plan lists support with an SLA.
If you only need a quick test, try the free n8n Cloud trial first. Move to a VPS when the volume or the bill justifies it.
Photo: kaboompics, Pixabay Content License, via Pixabay (https://pixabay.com/photos/laptop-grass-acer-digital-762548/)
Fazlur Rahman






