What would your split stack cost?
Pick the app closest to yours, or customize five numbers. The Vercel row uses Vercel Pro with one seat and Flat Rate CDN in its cheapest region, Washington D.C. (iad1), as in my Vercel pricing breakdown. The Railway rates match my Railway pricing breakdown.
- Data transfer
- 1.0 TB
- Vercel CDN requests
- 20.0M
- Railway usage for Postgres + worker
- $35.50
- Server that fits everything
- Hetzner CX33
- Split: Vercel Pro + Railway$157/mo
Vercel Pro with Flat Rate CDN and one seat (each extra deploying seat adds $20), plus Railway for Postgres and the worker, including query results sent to Vercel as Railway egress.
- All on Railway$97/mo
Next.js, Postgres and the worker as three Railway services. Pages are served as Railway egress at $0.05/GB, with no CDN in front.
- Your own server + Ployz$11/mo
Smallest Hetzner CX23, CX33, CX43 or CX53 that fits all three with headroom, plus about $0.60 for IPv4. Ployz is free on it. 20 TB traffic included.
My assumptions, which you should replace with your own Usage and Metrics tabs:
| Assumption | Value |
|---|---|
| Vercel, per page view | 20 CDN requests, 30 ms of Active CPU, 250 ms at 2 GB, a 50 KB origin response |
| Vercel images | $1.02 a month |
| Railway Postgres CPU | 0.05 vCPU plus 0.3 vCPU per million page views |
| Railway worker CPU | 0.1 vCPU |
| Next.js on Railway | 0.1 vCPU plus 0.2 per million page views; 0.5 GB of RAM, 1 GB past 2 million page views |
| Query results to Vercel | 20 KB per page view, billed as Railway egress |
What does the split stack cost at three sizes?
Vercel is 78% of the small bill and 71% of the busy one, because its CDN tier is set by request count. On the Railway side, Postgres RAM is the biggest line every time.
The three apps, each with one worker:
- Small: 100,000 page views a month, 1 MB each. Postgres 0.5 GB RAM and 1 GB on disk; worker 0.25 GB.
- Medium: 1 million page views. Postgres 2 GB RAM, 10 GB on disk; worker 0.5 GB.
- Busy: 5 million page views. Postgres 8 GB RAM, 50 GB on disk; worker 1 GB.
Railway's plan fee is credit, so you pay the larger of the fee and your usage.
| Line | Small | Medium | Busy |
|---|---|---|---|
| Vercel Pro fee (1 seat) | $20.00 | $20.00 | $20.00 |
| Vercel Flat Rate CDN tier | $20.00 | $100.00 | $300.00 |
| Vercel functions and images, after the $20 credit | $0.00 | $0.00 | $11.71 |
| Vercel subtotal | $40.00 | $120.00 | $331.71 |
| Railway Postgres CPU | $1.60 | $7.00 | $31.00 |
| Railway Postgres RAM | $5.00 | $20.00 | $80.00 |
| Railway Postgres volume | $0.15 | $1.50 | $7.50 |
| Railway worker (0.1 vCPU + RAM) | $4.50 | $7.00 | $12.00 |
| Railway egress to Vercel | $0.10 | $1.00 | $5.00 |
| Railway subtotal | $11.35 (Hobby) | $36.50 (Pro) | $135.50 (Pro) |
| Monthly total | $51.35 | $156.50 | $467.21 |
The Vercel numbers are the same $40, $120 and $332 as in my Vercel pricing article, where I break down why the CDN tier is most of the bill. Every extra person who deploys adds $20 to the Vercel half.
Is Railway cheaper than Vercel for a Next.js app?
For the whole app, yes, because moving Next.js onto Railway drops Vercel's platform fee and CDN tier. But Railway charges $0.05 per GB for every page it serves, so at 5 TB the frontend alone costs $282 there. Past about 1 TB, Railway's egress eats most of the saving.
| Line | Small | Medium | Busy |
|---|---|---|---|
| Next.js CPU | $2.40 | $6.00 | $22.00 |
| Next.js RAM | $5.00 | $5.00 | $10.00 |
| Page egress at $0.05/GB | $5.00 | $50.00 | $250.00 |
| Postgres and worker (from above, minus egress to Vercel) | $11.25 | $35.50 | $130.50 |
| All on Railway | $23.65 | $96.50 | $412.50 |
| Split stack, for comparison | $51.35 | $156.50 | $467.21 |
So the all-Railway bill is under half the split bill when small, 38% less at medium, and only 12% less when busy. A CDN in front of Railway would cut the egress line. I left it out, because then you're back to paying a second provider.
Render vs Vercel: does Render change the picture?
Not much. Render is in Railway's slot, not Vercel's. It runs always-on web services, workers, cron jobs and Postgres, but sells them as fixed instance sizes instead of per-minute usage. So "render vs vercel" is the same split-stack question with a different backend bill. I priced Render's sizes in Render pricing and compared it head to head in Railway vs Render.
What does it cost to run all of it on your own server?
$7.09 a month for the small app on a Hetzner CX23, $10.59 for the medium on a CX33 and $19.09 for the busy one on a CX43, each including about $0.60 for IPv4.
| Server | Specs | Monthly price |
|---|---|---|
| Hetzner CX23 | 2 vCPU, 4 GB RAM, 40 GB NVMe, 20 TB traffic | $6.49 |
| Hetzner CX33 | 4 vCPU, 8 GB RAM, 80 GB NVMe, 20 TB traffic | $9.99 |
| Hetzner CX43 | 8 vCPU, 16 GB RAM, 160 GB NVMe, 20 TB traffic | $18.49 |
| Primary IPv4 | about $0.60 (€0.50) | |
| Netcup VPS 500 | 2 vCPU, 4 GB RAM, 64 GB SSD, traffic included | €8.26 incl. VAT on a 12-month term |
Hetzner prices are after its 15 June 2026 price adjustment, for Germany and Finland, in USD before VAT. Netcup is often the better deal, and it has a US datacenter in Manassas; its VPS 1000 (4 vCPU, 8 GB, 128 GB) is €14.50 incl. VAT.
I sized each server with 1.5 GB of headroom for the OS and Caddy, and 20 GB of disk beyond the database. The busy app uses about 11.5 GB of the CX43's 16 GB, counting headroom, and 5 TB is a quarter of its included traffic. A shared Hetzner vCPU isn't the same as a Railway vCPU or a Vercel CPU-hour, so don't compare the CPU lines one to one.
When the app grows on Vercel and Railway, the bill goes up. On your own server you add servers and replicas when you need them. I paid Railway $500+ a month at one point, mostly for a busy database. Today my own setup is one dedicated server at €80 a month that runs more than that Railway bill ever did.
Moving the stack to your own server
I build Ployz to run the whole app on one server you rent. Your coding agent runs it. Paste Read ployz.dev/agents.md and deploy this repo to my server. into Claude Code, Codex or Cursor. It adds the server and ships the app.
ployz up --server root@your-server
The frontend, worker and Postgres share one box and one bill. Push to GitHub and it builds on your server. Every pull request gets a preview with its own https address. Every deploy, restart or delete your agent asks for waits for you to approve. Ployz is free on any number of servers. Deploy to your own server.