Skip to content

Cheapest cloud hosting for a full-stack app in 2026

Nick Potts, who builds Ployz. Published .

TL;DR: For a commercial Next.js app with Postgres, the cheapest hosting that runs it unchanged is a rented server: about $7 a month for a Hetzner CX23 in Europe, or €8.26 incl. VAT for a Netcup VPS 500 with a US datacenter. Cloudflare is cheaper at $5 if you can rewrite for SQLite.

  • Cheapest platform: Cloudflare Workers + D1 at $5 a month, but D1 is SQLite and Next.js runs through an adapter.
  • Cheapest server: Hetzner CX23 in Europe or Netcup VPS 500 in the US, with Next.js and Postgres on the same box and traffic included.
  • Free: Oracle's Always Free tier runs the whole app for $0, but Oracle can reclaim an instance it decides is idle.
  • Managed platforms at 100k page views: $22 on Railway, $25 on DigitalOcean App Platform, $45 to $59 on Netlify, Fly.io and Render, $65 on Vercel Pro with Supabase.
  • Avoid for a business: Vercel Hobby (non-commercial only), Supabase Free (pauses after a quiet week) and Render Free (sleeps, and free Postgres expires).
  • Pick Ployz if you want git-push deploys, preview environments and a coding agent that deploys for you at the server price. Ployz is free on your servers, so the bill stays about $7 a month.

Cheap cloud hosting for a full-stack app means the lowest monthly bill for both the app and its database, on terms a paying app can live with.

What would your app cost on each option?

Every row prices the same thing: a server-rendered Next.js app and a Postgres database. Vercel Hobby isn't a row, because a commercial app can't use it.

Data transfer
100 GB
Requests (20 per page view)
2.0M
  • Vercel Pro + Supabase Pro$65/mo

    $20 seat, Flat Rate CDN tier by requests, functions from the $20 credit, Supabase Pro from $25.

  • Cloudflare Workers Paid + D1$5/mo

    $5 plan, no bandwidth charge. D1 is SQLite and caps at 10 GB, so past that it's Postgres on Supabase through Hyperdrive.

  • Netlify Pro + Supabase Pro$45/mo

    3,000 credits included, then 1,500 for $10. Bandwidth is 20 credits per GB.

  • Render (Hobby workspace)$59/mo

    $25 web (2 GB), $19 or $40 Postgres plus $0.30/GB storage, $0.15/GB past 5 GB of bandwidth.

  • Railway Hobby$22/mo

    Usage billing: ~$10 per GB of RAM, ~$20 per vCPU, $0.15/GB volume, $0.05/GB egress. $5 of usage included.

  • Fly.io$47/mo

    1 GB shared Machine, Managed Postgres Basic ($38) or Starter ($72), $0.02/GB egress.

  • DigitalOcean App Platform$25/mo

    $10 1 GiB container with 100 GiB transfer, Managed Postgres from $15.15, $0.02/GiB over.

  • DigitalOcean Droplet + Ployz$24/mo

    4 GiB ($24) or 8 GiB ($48) Droplet, Postgres on the same box.

  • Oracle Always Free + Ployz$0/mo

    $0 for the server (2 Arm OCPUs, 12 GB, 200 GB disk, 10 TB out). Ployz is free on it. Idle instances can be reclaimed.

  • Your own server + Ployz$7/mo

    Hetzner CX23 ($6.49) or CX33 ($9.99) in Europe, ~$0.60 IPv4. Netcup VPS 500 is similar and has a US datacenter. Ployz is free on any number of servers.

Prices checked 2026-10-01. Move the sliders to match your app.

What does the same app cost at three sizes?

At 100k page views and a 2 GB database, the bill runs from $5 on Cloudflare to $65 on Vercel with Supabase. Grow to 5 million views and 5 TB, and bandwidth splits the field: Netlify and Render pass $800, while servers stay at $48 or less.

Option100k views, 100 GB, 2 GB DB1M views, 1 TB, 10 GB DB5M views, 5 TB, 25 GB DB
Vercel Pro + Supabase Pro$65$145$364
Cloudflare Workers + D1 (Supabase past 10 GB)$5$9$40
Netlify Pro + Supabase Pro$45$195$862
Render$59$196$822
Railway Hobby$22$69$277
Fly.io$47$67$186
DigitalOcean App Platform$25$43$127
DigitalOcean Droplet + Ployz$24$24$48
Oracle Always Free + Ployz$0$0$0
Hetzner CX23/CX33 + Ployz$7$7$11

The server rows are the server bill alone, because Ployz is free on any number of servers, custom domains included. Hetzner's CX servers are in Germany and Finland only. In the US, the cheap options are Netcup's Manassas datacenter or a DigitalOcean Droplet, because Hetzner's US servers cost more than DigitalOcean after its two 2026 price rises (Hetzner vs DigitalOcean).

What app did I price?

One Next.js app with server-rendered pages and one Postgres database. At the default settings it serves 100,000 page views a month at 1 MB each (100 GB of transfer) and keeps a 2 GB database. These are assumptions, not measurements, and they match the app in my Vercel alternatives comparison minus the background worker.

  • Pages: 1 MB and 20 requests per page view (HTML, JS chunks, CSS, fonts, images, one API call). One server render per view, 30 ms of CPU, 250 ms of wall time.
  • Database: Postgres, about 20 KB of query results per page view. Past 10 GB I move every managed database up one size.
  • Team: one person, 30 production deploys a month.

Where a platform has no Postgres of its own, I used Supabase Pro: from $25 a month with $10 of compute credits that cover one Micro instance, 8 GB of disk, and 250 GB of egress, then $0.09 per GB.

What is the cheapest way to host Next.js with Postgres?

A rented server. A Hetzner CX23 (2 vCPU, 4 GB) is $6.49 plus about $0.60 for IPv4 in Europe, and a Netcup VPS 500 (2 vCPU, 4 GB, 64 GB) has a datacenter in Manassas, Virginia. Next.js and Postgres share the box, and traffic is included.

ServerSpecsMonthly priceTrafficSource
Netcup VPS 5002 vCPU, 4 GB RAM, 64 GB SSD€8.26 incl. VAT, 12-month termincludednetcup VPS
Netcup VPS 10004 vCPU, 8 GB RAM, 128 GB SSD€14.50 incl. VAT, 12-month termincludedSame
Hetzner CX23 (Germany, Finland only)2 vCPU, 4 GB RAM, 40 GB NVMe$6.49 + ~$0.60 IPv420 TBHetzner prices, Cost-Optimized
Hetzner CX33 (Germany, Finland only)4 vCPU, 8 GB RAM, 80 GB NVMe$9.99 + ~$0.60 IPv420 TBSame

I'd look at Netcup first for more disk and a US location. I used Hetzner in the calculator because it publishes USD prices. More providers are compared in the cheapest VPS.

At 5 TB a month the traffic is still a quarter of Hetzner's included 20 TB. What the price leaves out:

  • No global CDN. The app is served from one city.
  • A fixed size. A launch that brings 50x your traffic hits the server's ceiling instead of a bigger bill, until you add a server.
  • Backups on another machine. A database on one server needs its backups somewhere else.

Is Cloudflare the cheapest platform for Next.js?

Yes, on the bill. Workers Paid is $5 a month with 10 million requests and 30 million CPU milliseconds included, static assets are free, and bandwidth costs nothing. D1 adds 5 GB of storage and 25 billion row reads a month. The catch is that D1 is SQLite, not Postgres, and Next.js runs through an adapter.

ItemFreePaid ($5/month)Source
Worker requests100,000 a day10M a month, then $0.30 per 1MWorkers pricing
CPU time10 ms per invocation30M ms a month, then $0.02 per 1M msSame
BandwidthfreefreeSame
D1 storage5 GB total, 500 MB per database5 GB, then $0.75/GB; 10 GB max per databaseD1 pricing, D1 limits
Hyperdrive queries100,000 a dayunlimitedWorkers pricing

What you trade:

  • Next.js runs through OpenNext's Cloudflare adapter, not natively. It covers the App Router, ISR and image optimization, but Node middleware isn't supported yet and the compressed Worker must fit in 10 MiB on Paid.
  • D1 is SQLite. Your Postgres queries, migrations and extensions have to move. The 10 GB per-database cap "cannot be increased further."
  • Keeping Postgres means Hyperdrive in front of a hosted database. With Supabase Pro that's $30, which is why the calculator switches past 10 GB.

If your app is new and small, I think Cloudflare is the cheapest platform you can pay for. If it's an existing Postgres app, it's a rewrite.

Is Oracle Cloud's Always Free tier really free?

Yes, and it's the most generous free server I know of: an Arm VM with 2 OCPUs and 12 GB of RAM, 200 GB of block storage and 10 TB of outbound traffic a month, with no end date. That runs the reference app with Postgres on the same box for $0. The catches are capacity, reclamation and support.

From Oracle's Always Free resources page:

ResourceAlways Free amount
Ampere A1 (Arm) compute1,500 OCPU-hours and 9,000 GB-hours a month, "equivalent to 2 OCPUs and 12 GB of memory"
AMD micro VMsUp to two, each 1/8 OCPU and 1 GB of RAM
Block storage200 GB total, boot volumes included (minimum 47 GB each)
Outbound data10 TB a month
DatabasesTwo Autonomous AI Databases (Oracle's own database, not Postgres)

Older guides promise 4 OCPUs and 24 GB. Oracle's page says 2 and 12 today, so check it before you plan around more.

The catches, from the same page and the Free Tier FAQ:

  • Reclamation. "Idle Always Free compute instances may be reclaimed by Oracle." Idle means that over 7 days, 95th-percentile CPU, network and (on Arm) memory use were all under 20%. A small app with little traffic can look idle.
  • Capacity. An "out of host capacity" error means there are no free Arm shapes in your home region right now. Oracle's advice is to try another availability domain or wait.
  • Home region only. Free resources live in the region you pick at sign-up.
  • One account per person, and support tickets need a Pay As You Go account. Upgrading keeps the free resources free.

Oracle is great for a side project or a staging copy. I wouldn't put a paying customer's only copy on a server the provider can take back.

Can you host a commercial app on Vercel Hobby and Supabase Free?

No. Vercel's Hobby plan is "restricted to non-commercial personal use only", and Vercel counts ads, payments, affiliate sites and even a paid contractor writing the code as commercial. The reference app also breaks the limits: 100,000 page views make 2 million CDN requests against Hobby's 1 million, and a 2 GB database is four times Supabase Free's 500 MB.

From Vercel's fair use guidelines, commercial use is "any Deployment that is used for the purpose of financial gain of anyone involved in any part of the production of the project". Asking for donations is fine. Running AdSense is not.

Free planWhat's includedThe catchSource
Vercel Hobby100 GB transfer, 1M CDN requests, 4 CPU-hours, 1M invocationsNon-commercial only. Go over and you wait 30 days for the feature to come back.Hobby plan
Supabase Free500 MB database, 5 GB egress, 2 active projects"Free projects are paused after 1 week of inactivity."Supabase pricing

For a side project with no money involved, this pair is a good $0 setup up to about 25,000 page views a month. Once the project earns its first dollar, the floor is Vercel Pro at $20 plus Supabase Pro at $25. I went through where that line sits in Is Vercel free? and Is Supabase free?.

What do Railway, Render, Netlify and Fly.io cost for this app?

At 100k page views, Railway is the cheapest at $22, then Netlify $45, Fly.io $47 and Render $59. Railway bills what you use, so a quiet app is cheap. The others charge per service, and Render and Netlify charge $0.13 to $0.15 per GB of bandwidth, which is what pushes them past $800 at 5 TB.

PlatformWhat the $ buysSource
RailwayHobby $5/month with $5 of usage; RAM ~$10/GB, CPU ~$20/vCPU, volumes ~$0.15/GB, egress $0.05/GBRailway pricing
RenderHobby workspace with 5 GB bandwidth then $0.15/GB; web services $7 (512 MB) or $25 (2 GB); Postgres $6 (256 MB), $19 (1 GB), $40 (2 GB), storage $0.30/GBRender pricing
NetlifyPro $20 with 3,000 credits, then 1,500 for $10; 20 credits per GB, 2 per 10,000 requests, 15 per deployNetlify pricing
Fly.ioAbout $0.69 per shared vCPU a month plus $6 per GB of RAM, so a 1 GB shared Machine is $6.69; Managed Postgres $38 (1 GB) or $72 (2 GB), storage $0.28/GB; egress from $0.02/GBFly.io pricing, Managed Postgres

Fly.io's Postgres line is high because every Managed Postgres plan includes high availability and backups. That's real value. On your own server you need backups too, and Ployz keeps a restore point for each database.

Their free options, and why they don't run this app:

  • Render Free: a free web service "spins down" after 15 minutes without traffic, and free Postgres "expire[s] 30 days after creation" (Render free docs). More in Render's free tier.
  • Railway: a one-time $5 trial for 30 days, then a Free plan with $1 of usage a month, which isn't enough for an always-on app plus Postgres.
  • Netlify Free: 300 credits, about 15 GB of bandwidth. When credits run out, "all of your web projects (sites/apps) are paused" (credit docs).
  • Fly.io: "There is no 'free account/free tier' on Fly.io" (cost management), only a short trial.

Is DigitalOcean cheaper than Vercel?

Yes, for this app. App Platform with a Managed Postgres database is $25 a month at 100k page views against $65 for Vercel with Supabase, and $43 at 1 TB against $145. A 4 GiB Droplet with Postgres on the same box is a flat $24, Ployz included.

ProductPriceSource
App Platform, 1 GiB fixed container$10/month, 100 GiB transfer, then $0.02/GiBApp Platform pricing
App Platform dev database$7/month, 512 MiBSame
Managed PostgreSQL, 1 GiB / 1 vCPU / 10 GiB$15.15/month, extra storage $0.215/GiB in 10 GiB stepsManaged Databases pricing
Basic Droplet, 2 GiB / 50 GiB$12/month, 2,000 GiB transferDroplet pricing
Basic Droplet, 4 GiB / 80 GiB$24/month, 4,000 GiB transferSame
Droplet backups20% of the Droplet price weekly, 30% dailySame

App Platform's free tier runs static sites only. The $7 dev database is meant for development, so I priced Managed Postgres, which includes daily backups. My DigitalOcean pricing breakdown goes through Droplets against App Platform line by line.

Which cheap hosting should you pick?

If…PickMonthly at 100k views
The project is personal, earns nothing, and stays under about 25,000 page views and 500 MB of dataVercel Hobby + Supabase Free$0
It's a side project or staging copy and a reclaimed server is tolerableOracle Always Free$0
You're starting fresh and can live with SQLite and the OpenNext adapterCloudflare Workers + D1$5
You want a managed platform with real Postgres and no server to look afterRailway or DigitalOcean App Platform$22 to $25
The app earns money and uses PostgresYour own serverabout $7, with or without Ployz

On your own server the bill barely moves with traffic: the Hetzner row goes from $7 to $11 between 100 GB and 5 TB, while Netlify and Render pass $800. The pattern across every PaaS fee is the same: the free tier gets you in, and the first paid step charges for a database plus bandwidth at platform markup.

Where Ployz fits

I built Ployz to keep that $7 server bill and add the Vercel workflow. It turns the server you rent into a platform your coding agent runs. Paste Read ployz.dev/agents.md and deploy this repo to my server. into Claude Code, Codex or Cursor and it ships the repo.

ployz up --server root@your-server

Push to GitHub and your Next.js app builds on your server without a Dockerfile. Every pull request gets a preview with its own https address. Postgres is one click and keeps a restore point. The server rows above are the whole bill. Ployz is free on any number of servers. Host your full-stack app on your own server with Ployz.

FAQ

What is the cheapest way to host a website with a database?

Oracle's Always Free tier at $0, if you accept that Oracle can reclaim an idle instance. Among paid options, Cloudflare Workers + D1 is $5 a month if SQLite works for you, and a 4 GB server at about $7 a month runs Postgres unchanged.

Is Railway cheaper than Vercel?

For this app, yes: $22 a month on Railway against $65 for Vercel Pro with Supabase at 100k page views, and $69 against $145 at 1 million.

Can a cheap server handle 5 million page views?

For this app, yes, on a 4 vCPU server like the $10.59 Hetzner CX33. Five million views is about two a second at 30 ms of CPU each, so the server is mostly idle.

How I checked

I checked every price on 2026-10-01 on the provider's own pricing page or docs, linked next to the number. All prices are USD before tax unless marked in euros. The app's traffic and database sizes are assumptions I chose, not measurements, and every row prices the same app.

Run your apps and databases on your own servers with Ployz.

Deploy your app