FaroTrend Mascot
FaroTrend

Digital Culture

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.

FaroTrend Mascot
By FaroTrend
Published Nov 10, 2026 · Updated Nov 10, 2026, 09:55 PM UTC
3 min read1 views
Monthly server cost for n8n
ProviderPlanResourcesPriceTermsLink
HostingerKVM 11 vCPU · 4 GB · 50 GB NVMe$6.49/mo24-month term; renews at $11.99Hostinger
HostingerKVM 22 vCPU · 8 GB · 100 GB NVMe$8.79/mo24-month term; renews at $14.99Hostinger
HetznerCX232 vCPU · 4 GB · 40 GB NVMefrom €5.99/moExcl. VAT, hourly; out of stock when checkedhetzner.com
DigitalOceanBasic 2 GB1 vCPU · 2 GB · 50 GB SSD$12/moHourly, no contractdigitalocean.com
DigitalOceanBasic 4 GB2 vCPU · 4 GB · 80 GB SSD$24/moHourly, no contractdigitalocean.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.

Terminal (bash)
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/n8n

Once 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_data volume. 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)

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