Advertising disclosure: We may earn a commission when you buy through links on this page. It does not change the price you pay or the order of the list.

Guide

VPS for n8n: what you need and what it costs

Self-hosted n8n runs comfortably on a VPS with 2 vCPU and 4 GB RAM; a handful of light workflows fit in 2 GB. You pay a few dollars a month for unlimited executions instead of a per-run plan.

How much server for n8n

n8n itself is light. What costs memory is the data your workflows carry - big spreadsheets, images, long AI answers - and running many executions at once.

  • 2 GB RAM: a few scheduled workflows, webhooks, small payloads
  • 4 GB RAM: dozens of workflows, AI nodes calling an API, Postgres on the same box
  • 8 GB+: queue mode with workers, heavy file processing, a local AI model next to n8n

Setup in five steps

The simplest robust setup is Docker with a reverse proxy that handles HTTPS for you.

  • Create an Ubuntu VPS and point a subdomain at its IP
  • Install Docker and Docker Compose
  • Use n8n’s official docker-compose example with Postgres
  • Add Caddy or Traefik for automatic HTTPS
  • Turn on automatic backups of the data volume

Self-hosted or n8n Cloud?

Cloud saves the admin work and includes updates; self-hosting gives unlimited executions and your data on your own server. If you already run a VPS, adding n8n costs almost nothing.

VPS hosting

We may earn a commission when you buy through links on this page. It does not change the price you pay or the order of the list.

Best value
OVHcloud
VPS-1
  • 2 vCPU
  • 4 GB RAM
  • 40 GB NVMe
from$4.54/mo
  • Unlimited traffic
  • Anti-DDoS included
See plan →

Price checked September 28, 2026

IONOS
VPS M+
  • 2 vCPU
  • 4 GB RAM
  • 120 GB NVMe
from$5.00/mo
  • Unlimited traffic
  • Very cheap first months
See plan →

Price checked September 28, 2026 · Renews at $14.00/mo

Contabo
Cloud VPS 4
  • 4 vCPU
  • 8 GB RAM
  • 100 GB SSD
from$6.26/mo
  • Very high RAM/storage per euro
  • Unlimited traffic (fair use)
See plan →

Price checked September 28, 2026

Questions people ask

Can n8n and Ollama run on one VPS?

Yes, if the server has enough RAM for both - around 12–16 GB for a small 4-bit model plus n8n. Our VRAM calculator shows what the model needs.

Do I need a domain for n8n?

For webhooks and HTTPS, yes. A subdomain of a domain you already own works fine.

Related