n8n VPS Hosting Cost: Real Price Breakdown
- Monthly CPU hours
- hours
- Result
- Workflow runs per day
- 100 runs
- You entered
- Average CPU seconds per run
- 5 sec
- You entered
n8n VPS hosting costs between $5 and $60 per month, depending on your workflow complexity, number of active executions, and the VPS provider you choose. A basic self-hosted n8n instance for light personal use runs comfortably on a $5–$10/month VPS, while production workloads with many concurrent workflows typically need a $20–$60/month plan. This article breaks down the real costs, what drives them, and how to avoid overpaying.
Formula
Cost per workflow run = VPS monthly price ÷ (workflow runs per day × 30).
Monthly CPU hours = (workflow runs per day × average CPU seconds per run) ÷ 3600.
- t – workflow runs per day (runs)
- c – average CPU seconds per run (seconds)
- p – VPS monthly price (USD)
Worked Example
Using the defaults: 100 runs/day, 5 CPU seconds per run, $10/month VPS.
- Monthly runs = 100 × 30 = 3,000 runs
- Cost per run = $10 ÷ 3,000 = $0.00333 (about one-third of a cent)
- Monthly CPU hours = (100 × 5) ÷ 3600 = 0.139 hours
So at $10/month, each workflow execution costs roughly $0.0033, and your VPS uses only about 0.14 CPU hours per month for these runs.
Why VPS Hosting for n8n?
n8n is an open-source workflow automation tool. You can use the free cloud tier (which has limited runs and credits) or self-host on your own server. Self-hosting on a VPS gives you full control, no per-execution credit limits, and access to all community nodes. The trade-off is that you manage the server yourself: updates, security, backups, and monitoring.
What Drives the Cost Up?
The main cost driver is the VPS plan’s CPU and RAM. n8n is a Node.js application, and each workflow execution consumes memory. Heavy workflows—like those processing large files, calling many APIs in parallel, or using Python/Shell nodes—need more resources. The number of concurrent executions matters more than the total daily runs. If you run 10 workflows at the same time, you need a multi-core CPU and at least 2–4 GB RAM.
Other cost factors include:
- Storage: n8n stores workflow data, execution history, and logs. A 20–40 GB SSD is usually enough for small to medium usage.
- Backups: Automated off-site backups add a few dollars per month.
- Managed databases: By default n8n uses SQLite, but for production you might want PostgreSQL. A managed database adds $10–$30/month.
- Monitoring and logging: Tools like UptimeRobot or Grafana can be free or low-cost.
How to Choose a VPS Plan
Start small and scale. For testing and light personal automation, a single-core VPS with 1 GB RAM and 25 GB SSD is enough. That typically costs $5–$10/month from providers like DigitalOcean, Linode, or Vultr. For production with a few hundred runs per day, choose 2 vCPUs and 4 GB RAM ($20–$30/month). If you run heavy workflows or many concurrent executions, go for 4 vCPUs and 8 GB RAM ($40–$60/month).
Check the provider’s bandwidth limits. Most VPS plans include 1–2 TB of transfer, which is plenty for n8n unless you’re moving large files. Also consider the provider’s data center location—choose one close to your API endpoints to reduce latency.
Common Problems and How to Avoid Them
The most common mistake is underestimating RAM. n8n can crash with “out of memory” errors if your workflows are memory-hungry. Monitor your usage with tools like htop or Netdata. Another issue is running out of disk space because execution data accumulates. Set up a cleanup job to delete old execution records.
Security is also a concern. Exposing n8n to the internet without authentication is risky. Always set up a strong admin password or use SSO. Better yet, run n8n behind a reverse proxy with HTTPS and restrict access by IP if possible.
Cost Comparison: VPS vs. n8n Cloud
n8n Cloud’s paid plans start around $20/month for 2,500 active workflow executions per month, but you’re limited by execution credits. A $10 VPS can handle far more executions for the same price, but you must manage the server yourself. For heavy usage, VPS is almost always cheaper. For occasional use or if you don’t want to deal with server maintenance, the cloud is simpler.
Hidden Costs to Watch For
Beyond the VPS itself, consider these potential extras:
- Domain name: ~$10/year if you want a custom domain.
- SSL certificate: Free via Let’s Encrypt.
- Email sending: If your workflows send emails, you might need a transactional email service like SendGrid (free tier available).
- VPN or firewall: Optional but recommended for security.
- Time: Your own time for setup and maintenance is a real cost, even if not monetary.
Frequently Asked Questions
Can I run n8n on a $5 VPS?
Yes, for light personal use. A $5 plan (1 vCPU, 1 GB RAM) can handle a few dozen runs per day, but you may hit memory limits if you run complex workflows or many at once. It’s a good starting point, but be ready to upgrade.
How much RAM does n8n need?
Minimum 1 GB for testing, but 2 GB is recommended for reliable operation. For production with moderate usage, 4 GB is safer. Each concurrent workflow execution can use 50–200 MB depending on the nodes involved.
Is VPS hosting cheaper than n8n Cloud?
For heavy usage, yes. A $10 VPS can run thousands of executions per month without per-execution fees. n8n Cloud’s lowest paid plan costs about $20/month and includes 2,500 executions—after that you pay extra. For light usage, the cloud might be simpler but not necessarily cheaper.
Do I need a managed database?
Not for small setups. SQLite works fine for up to a few thousand executions. For larger deployments, PostgreSQL is more robust. You can run PostgreSQL on the same VPS for free, or use a managed service for easier backups and scaling.
How do I keep my VPS costs low?
Monitor your resource usage and scale down if you’re over-provisioned. Use the calculator above to estimate your cost per run. Also, clean up old execution data regularly to avoid disk space issues. Consider using a provider that offers hourly billing so you can resize as needed.
Related
Formula used
in t | Workflow runs per day | runs | 100 | 0 in c | Average CPU seconds per run | sec | 5 | 0 in p | VPS monthly price | USD | 10 | 0 out cost_per_run | Cost per workflow run | USD | p / (t * 30) | 4 out monthly_cpu_hours | Monthly CPU hours | hours | t * c / 3600 | 2
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.