How much it costs to self-host n8n on a VPS, and how to install it with Docker
Monthly cost of running n8n on your own VPS, with official prices from Hostinger, Hetzner and DigitalOcean, plus the Docker commands from the n8n docs.

| Provider | Plan | Resources | Price | Terms | Link |
|---|---|---|---|---|---|
| Hostinger | KVM 1 | 1 vCPU · 4 GB · 50 GB NVMe | $6.49/mo | 24-month term; renews at $11.99 | Hostinger |
| Hostinger | KVM 2 | 2 vCPU · 8 GB · 100 GB NVMe | $8.79/mo | 24-month term; renews at $14.99 | Hostinger |
| Hetzner | CX23 | 2 vCPU · 4 GB · 40 GB NVMe | from €5.99/mo | Excl. VAT, hourly; out of stock when checked | hetzner.com |
| DigitalOcean | Basic 2 GB | 1 vCPU · 2 GB · 50 GB SSD | $12/mo | Hourly, no contract | digitalocean.com |
| DigitalOcean | Basic 4 GB | 2 vCPU · 4 GB · 80 GB SSD | $24/mo | Hourly, no contract | digitalocean.com |
Short answer
Self-hosting n8n costs whatever the VPS costs: roughly $6 to $24 a month across the providers compared. The plan Hostinger itself names as enough for n8n is KVM 2 (2 vCPU and 8 GB), at $8.79 a month on a 24-month term.
Which plan to pick
The n8n docs do not publish a RAM minimum on the Docker install page, so the most concrete reference comes from the provider: Hostinger describes KVM 2 as suited to medium-scale applications "like the n8n automation tool".
If you are only testing, a 4 GB plan with hourly billing lets you delete the server without losing money. If you already know you will run it all year, the committed plan is cheaper per month.
Install with Docker
These are the commands from the official n8n docs. We only swapped -it --rm for -d --restart unless-stopped, so n8n keeps running after you close the terminal and starts again if the server reboots. Replace the timezone with yours.
docker volume create n8n_data
docker run -d --restart unless-stopped \
--name n8n \
-p 5678:5678 \
-e GENERIC_TIMEZONE="America/New_York" \
-e TZ="America/New_York" \
-e N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true \
-v n8n_data:/home/node/.n8n \
n8nio/n8nOnce it finishes, n8n is available on port 5678 of the server.
Before you rely on it
- Port 5678 is open without HTTPS. For real use, put a reverse proxy with a certificate in front.
- Your workflows and credentials live in the
n8n_datavolume. Back that volume up. - By default n8n stores everything in SQLite. If you prefer PostgreSQL, the same official page has the command with the
DB_POSTGRESDB_*variables.
First-year cost and how to update
With the prices in the table, one year of self-hosted n8n looks like this:
- Hetzner CX23 (4 GB): about €71.88 plus VAT, paid month by month.
- Hostinger KVM 2 (8 GB): $210.96 today, but it covers two full years.
- DigitalOcean Basic 4 GB: $288 over twelve months.
To update n8n, pull the new image with docker pull n8nio/n8n, stop and remove the container with docker stop n8n and docker rm n8n, and run the same start command again. Because the data lives in the n8n_data volume, your workflows stay in place. Back the volume up before every major update.
Sources
Prices read on the official pages on November 10, 2026. They change often: confirm the final price in each provider's checkout.
Sources & References (4)
- n8n↗
n8n Docs: Install with Docker
Official docker commands, port 5678 and the n8n_data volume.
- Hostinger↗
Hostinger: VPS hosting plans and prices
KVM 1 to KVM 8 specs, 24-month promo prices and renewal prices.
- Hetzner↗
Hetzner Cloud: Cost-Optimized plans
CX23 specs, price excluding VAT and availability.
- DigitalOcean↗
DigitalOcean: Droplet pricing
Basic Droplet sizes with hourly and monthly prices.
Share this guide with friends
Share directly via WhatsApp, Telegram, or X with verified technical preview.
Did you find this article interesting?
Your vote helps calibrate recommendations in the community.
Comments (0)
Recommended Reading

How to Fix Out of Video Memory and ERR_SYS_MALLOC in Unreal Engine 5: Pagefile Setup
Resolve Out of Video Memory errors and VRAM allocation crashes in Unreal Engine 5 PC games by optimizing Windows virtual memory pagefile.

How to Fix VCRUNTIME140.dll and MSVCP140.dll Missing Error in Windows 11 & 10
Official fix for 'The code execution cannot proceed because VCRUNTIME140.dll was not found': install Microsoft Visual C++ x86 and x64 redistributables.
