DEV Community

Vikas Singhal
Vikas Singhal

Posted on

The Cheapest Way to Self-Host n8n in 2026

Last updated: March 2026

n8n is one of the best open source automation tools out there - a self-hosted alternative to Zapier and Make that gives you full control over your workflows and data. But "self-hosted" means you need somewhere to run it, and finding the cheapest way to self-host n8n without sacrificing reliability takes some research.

I've been running n8n for the past year and I've tried more hosting setups than I'd like to admit. Here's every option I found, ranked by actual monthly cost, with the trade-offs that matter.

TLDR: The cheapest managed option is InstaPods at $3/mo or PikaPods at ~$3.80/mo - both handle everything. The cheapest self-managed option is a $4-5/mo Hetzner VPS with Docker Compose. n8n Cloud (the official hosted version) starts at $24/mo. The right answer depends on whether your time or your money is more expensive.

Every Way to Host n8n, Ranked by Cost

Method Monthly Cost You Manage Setup Time
Oracle Cloud free tier $0 Everything ~1 hr
InstaPods $3 Nothing ~30 sec
PikaPods ~$3.80 Nothing ~1 min
Hetzner VPS + Docker Compose ~$4-5 Everything ~45 min
Coolify on Hetzner VPS ~$5-8 VPS + OS ~15 min
CapRover on Hetzner VPS ~$5-6 Everything ~30 min
Railway ~$5-15 Nothing ~5 min
Elestio ~$17 Nothing ~3 min
Cloudron on Hetzner VPS ~$21 VPS + OS ~40 min
n8n Cloud (official) $24+ Nothing ~2 min

Let me walk through each one.


1. Hetzner VPS + Docker Compose (~$4-5/mo)

The classic DIY approach. Rent a cheap VPS, install Docker, run n8n with docker-compose.

version: "3"
services:
  n8n:
    image: n8nio/n8n
    ports:
      - "5678:5678"
    environment:
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER=admin
      - N8N_BASIC_AUTH_PASSWORD=changeme
    volumes:
      - n8n_data:/home/node/.n8n
volumes:
  n8n_data:
Enter fullscreen mode Exit fullscreen mode

Cost breakdown:

  • Hetzner CX22: EUR 3.99/mo (~$4.30) - 2 vCPU, 4 GB RAM, 40 GB storage
  • Or Hetzner CAX11 (ARM): EUR 3.29/mo (~$3.55) - 2 Ampere vCPU, 4 GB RAM

What you also need to set up:

  • Reverse proxy (nginx or Caddy) for HTTPS
  • SSL certificate (Let's Encrypt + certbot)
  • Firewall rules (UFW)
  • Automatic updates for n8n and the OS
  • Backups (cron job + rclone to S3/Backblaze)
  • Monitoring (so you know when it goes down)

Pros: Cheapest paid option. Full control. Can run other apps on the same server.
Cons: You're the sysadmin. Every component is your responsibility. Budget 30-60 minutes for initial setup, plus ongoing maintenance.

Best for: Developers comfortable with Linux, Docker, and nginx who want maximum control.


2. Oracle Cloud Free Tier ($0/mo)

Oracle offers an always-free ARM instance (4 OCPU, 24 GB RAM) that can run n8n. It's genuinely free - not a trial.

Cost: $0 if you can get an instance. Availability is limited and instances are hard to provision (you'll get "out of capacity" errors for days or weeks).

Catch: Oracle's free tier has been reliable for some people and randomly terminated for others. There are reports of free-tier instances being reclaimed without warning. I wouldn't run production workflows on it.

Best for: Testing n8n or running non-critical personal automations. Not recommended for anything you depend on.


3. Coolify on Hetzner VPS (~$5-8/mo)

Install Coolify (free, open source) on a VPS and deploy n8n through its one-click catalog.

Cost breakdown:

  • Hetzner CX22: ~$4.30/mo (if running Coolify + n8n on same server)
  • Hetzner CX32: ~$7.50/mo (recommended - Coolify itself needs 2 GB RAM)

Pros: Web UI for managing n8n. Auto-updates. Easier than raw Docker Compose. Can run other apps alongside n8n.
Cons: Coolify needs 2 vCPU + 2 GB RAM minimum. On a small server, that's most of your resources gone before n8n even starts. Builds compete with running apps for CPU.

Best for: People who want a web dashboard but don't want to pay for Cloudron's license.


4. CapRover on Hetzner VPS (~$5-6/mo)

Install CapRover (free) and deploy n8n from its template catalog.

Cost: Same as DIY Docker Compose - just the VPS cost. CapRover is free.

Pros: One-click n8n install. Web UI. Git-based deploys for custom apps.
Cons: CapRover development has stalled (last commit Dec 2025). Docker Swarm dependency is a long-term risk. You still manage the VPS, OS, backups.

Best for: Existing CapRover users. I'd pick Coolify for new setups.


5. InstaPods ($3/mo)

InstaPods has n8n as a one-click app. Click deploy, get a running instance with SSL in about 30 seconds. $3/mo on the Launch plan.

Full disclosure: I built InstaPods. Including it because it's genuinely the cheapest managed option and the comparison is useful. I'll be honest about the gaps.

Cost: $3/mo (Launch plan: 0.5 vCPU, 512 MB RAM, 5 GB storage). $7/mo for the Build plan (1 vCPU, 1 GB RAM) if your workflows need more power.

Pros: Fastest setup of any option here. No server to manage. SSL and URL included. $10 free credit on signup.
Cons: New platform (launched 2026). Single region (EU - Nuremberg). Smaller community than established platforms. The $3 plan works for light workflows but heavier automations need the $7 plan.

Best for: People who want n8n running in under a minute with zero maintenance.


6. PikaPods (~$3.80/mo)

PikaPods is managed hosting for open source apps. Pick n8n, set your resource sliders, done.

Cost: ~$3.80/mo for n8n with default resources. Adjustable up based on CPU/RAM/storage needs.

Pros: Zero maintenance. Revenue sharing with n8n (supports the project). $5 welcome credit. Established platform with a good track record.
Cons: Limited configuration options compared to self-hosted. Can't install custom nodes that need system packages.

Best for: Non-technical users who want managed n8n at the lowest price.


7. Elestio (~$17/mo)

Elestio is fully managed hosting. Pick n8n, pick a cloud provider, they deploy it on a dedicated VM.

Cost: ~$17/mo minimum (Hetzner-backed VM). Higher for other cloud providers.

Pros: True zero-maintenance. Auto-updates, backups, security patches all handled. Choose from 8 cloud providers.
Cons: One app = one VM. $17/mo for n8n alone is expensive when you can get managed hosting for $3-4/mo elsewhere.

Best for: Teams with budget who want fully managed hosting on their preferred cloud provider.


8. Cloudron on Hetzner VPS (~$21/mo)

Install Cloudron on a VPS and deploy n8n from the app store. Best admin UX of any self-hosted platform.

Cost: VPS (~$5/mo) + Cloudron license (EUR 15/mo) = ~$21/mo.

Pros: Best admin dashboard. SSO, email, backups built in. Rock-solid updates.
Cons: EUR 15/mo license makes it the most expensive option for running a single app. Makes more sense if you're running 5-10 apps on one server.

Best for: People already running Cloudron for other apps. Not worth the license fee for n8n alone.


9. Railway (~$5-15/mo)

Railway is a PaaS that can run n8n via Docker image.

Cost: Usage-based. ~$5/mo for light usage, can spike to $15+ with active workflows. Unpredictable.

Pros: Quick setup. No server management. Nice developer UX.
Cons: Usage-based billing means costs are hard to predict. No SSH access. Sleeps on hobby plan.

Best for: Developers already using Railway who want to add n8n to their stack.


10. n8n Cloud ($24+/mo)

The official hosted version from the n8n team.

Cost: Starter at $24/mo (2,500 workflow executions). Pro at $60/mo (10,000 executions). Enterprise pricing above that.

Pros: Officially supported. Always up to date. Built-in collaboration features. No infrastructure to manage.
Cons: Most expensive option by far. Execution limits - you pay more as workflows run more. At scale, self-hosting saves thousands per year.

Best for: Teams that need official support, collaboration features, and don't mind paying premium pricing.


The Real Comparison

Here's what it comes down to:

If your time is worth more than $5-15/mo:
Go managed. PikaPods (~$3.80/mo) and InstaPods ($3/mo) are the cheapest managed options. Both handle updates, backups, and SSL. You get n8n running in under a minute.

If you want full control and have Linux skills:
Hetzner VPS + Docker Compose at ~$4-5/mo. You manage everything, but you have SSH access, can run other apps on the same server, and can customize anything.

If you want a middle ground:
Coolify on a Hetzner VPS (~$5-8/mo). You get a web dashboard for managing n8n and other apps, with auto-updates. Still need to maintain the VPS itself.

If you need official support:
n8n Cloud ($24-60/mo). Most expensive, but it's the only option with official n8n team support and collaboration features.


FAQ

How much RAM does n8n need?
For light usage (under 20 workflows, basic automations): 512 MB is enough. For moderate usage (50+ workflows, HTTP triggers, database operations): 1 GB minimum. For heavy usage (hundreds of workflows, large data processing): 2-4 GB.

Can I run n8n on a Raspberry Pi?
Yes. n8n has ARM Docker images. A Raspberry Pi 4 with 4 GB RAM runs n8n fine for personal use. Performance drops with complex workflows or high-frequency triggers.

Is self-hosted n8n missing features compared to n8n Cloud?
Self-hosted n8n has all the core workflow features. n8n Cloud adds collaboration (multiple users editing workflows), execution history with longer retention, and official support. For solo use, self-hosted is feature-complete.

How do I back up n8n?
n8n stores data in ~/.n8n (SQLite by default). Back up that directory. On Docker, back up the volume. On managed platforms (PikaPods, InstaPods, Elestio), backups are handled for you.

Can I migrate from n8n Cloud to self-hosted?
Yes. Export your workflows as JSON from n8n Cloud, then import them into your self-hosted instance. Credentials need to be re-entered manually (they don't export for security reasons).

Should I use SQLite or PostgreSQL with n8n?
SQLite is fine for most self-hosted setups. Switch to PostgreSQL if you have 100+ active workflows or need high-frequency triggers (multiple per second). For a $3-5/mo hosting setup, SQLite keeps things simple.


For a broader comparison of self-hosted platforms (not just for n8n), I wrote about Coolify vs Cloudron vs CapRover and a 6-platform comparison.

What's your n8n hosting setup? I'm curious what other people are running. Drop it in the comments.

Top comments (0)