Best VPS Hosting for n8n and Self-Hosted Automation
A cheap VM starts n8n fine, then stalls when two PDF imports run at the same time. How much server does your automation really need, and what does it cost with backups?

- A 4GB DigitalOcean Droplet and a comparable Linux Lightsail bundle each cost $24 a month before backups. Weekly DigitalOcean backups bring that bill to $28.80.
- Hetzner's EU CX23 has a $6.49 monthly cap before IPv4 and tax, but its order page currently marks it unavailable. A lower advertised price is not an available deployment.
- Size n8n for the largest execution and overlapping jobs. A recoverable installation also needs its database, persistent files and encryption key.
A daily workflow that copies a few API records does not need the same server as overlapping PDF imports or browser jobs. The useful buying question is not the cheapest machine that can start n8n. It is the smallest machine that can finish your workload, with a backup you can actually restore.
What comparable 4GB servers actually cost
These are Linux VM plans, not managed n8n hosting. DigitalOcean and Lightsail figures below use US-region offerings; Hetzner's CX23 is an EU product. Different locations, CPU generations and shared-CPU behavior mean matching RAM does not establish matching performance.
| Plan | CPU and memory | Disk / included transfer | Monthly server price |
|---|---|---|---|
| Hetzner CX23, Germany or Finland | 2 shared vCPU / 4GB | 40GB / 20TB EU allowance | $6.49 (€5.49), excluding IPv4 and VAT |
| DigitalOcean Basic, Regular | 2 vCPU / 4GiB | 80GiB / 4,000GiB | $24 |
| Lightsail Linux, public IPv4 | 2 vCPU / 4GB | 80GB / 4TB in the selected US offering | $24 |
Sources: Hetzner's cost-optimized specifications and availability, its June 2026 price adjustment, DigitalOcean Droplets and Lightsail bundles.
The old $4.99 CX23 figure is no longer its current dollar price. More importantly, the cost-optimized order page marks CX23 unavailable when checked for this update. Do not choose a plan around capacity you cannot order, or apply an EU price to a US deployment.
Choose RAM by execution size, not a universal minimum
Four gigabytes is a useful budget to compare, not an n8n production requirement. n8n's memory guidance ties demand to the data and processing inside executions. A low-volume API workflow can be light; one large input or several overlapping runs can be heavy even when monthly execution count is low.
| Your workload | What to measure before buying more RAM |
|---|---|
| Small scheduled API jobs | Idle use and peak memory on the largest expected response |
| Large JSON, PDFs or binary files | Peak use while parsing, transforming and passing data between nodes |
| Webhooks and overlapping schedules | Peak use when the expected busy jobs run together |
| Browser, media or local-model work | The child process or worker as well as n8n itself |
On a Docker installation, docker stats --no-stream gives a point-in-time view. Observe the full run rather than checking only after completion, and include PostgreSQL and the reverse proxy in the host's budget. Increase capacity or change the workflow when the measured peak leaves too little headroom.
If the result requires 8GB, compare the actual next plans: DigitalOcean Basic Regular is $48 for 4 vCPU and 8GiB; the selected Lightsail Linux IPv4 bundle is $44 for 2 vCPU and 8GB. Those are different CPU allocations, not interchangeable “8GB VPS” products.
A $24 VM becomes $28.80 with weekly DigitalOcean backups
DigitalOcean's backup pricing adds 20% of the Droplet price for weekly backups or 30% for daily backups. Lightsail snapshots instead charge by stored snapshot data at $0.05 per GB-month.
| Illustrative monthly budget | Calculation | Total |
|---|---|---|
| DigitalOcean $24 VM + weekly backups | $24 + $4.80 | $28.80 |
| DigitalOcean $24 VM + daily backups | $24 + $7.20 | $31.20 |
| Lightsail $24 VM + assumed 40GB of billed snapshot storage | $24 + 40 × $0.05 | $26 |
The Lightsail example assumes 40GB of billed snapshot storage; it is not a fixed-price backup package or a prediction based on disk size. Retention and changed data affect storage. These totals exclude tax, a domain, independent off-provider copies and any model or API calls made by workflows.
Back up the key, then prove the restore
A VM snapshot is useful, but a recovery plan needs to identify the application state. n8n's Docker Compose instructions explain persistent storage; its encryption-key guidance explains the key used for saved credentials.
- Take a consistent backup of the database and preserve the installation's persistent files.
- Store the encryption key securely with the recovery information, outside the disposable VM.
- Record the n8n version and deployment configuration needed to rebuild the service.
- Restore into an isolated environment with production schedules and outgoing actions disabled.
- Verify workflows and credential decryption before allowing the replacement to send emails, change records or accept live jobs.
Restoring workflow names is not enough. A database whose credentials cannot be decrypted is not a recovered automation service.
Which host should you choose?
For a small US deployment, shortlist the $24 DigitalOcean and Lightsail plans first. DigitalOcean's $28.80 weekly-backup combination gives a clearly priced starting budget. Lightsail is the more natural option when the operator already works in AWS and wants its bundled VM product. Compare region and measured workload before choosing between them.
Hetzner's EU CX23 is the lower-priced candidate when an EU location fits and stock returns; it is not the default recommendation while unavailable. If nobody will patch the machine, monitor jobs and perform the restore, compare a managed n8n plan before treating a cheap VM as the full cost of self-hosting.