Versus · Web hosting
Railway vs Vercel
- Last checked
- 6 sources, linked below
- By the vectaai team
We read every plan page. Paid links are labelled. Money never changes a ranking. How we pick.
Verdict Our pick
The bar guide has a call.

- one only if your app is simple enough to live in one place.
Compared here
- 01Railway
- 02Vercel
Short answer
Use Vercel for the front end, especially Next.js: free Hobby plan, preview links on every push, a big CDN, and a $20 Pro plan when you go commercial. Use Railway for anything that has to stay running: APIs, workers, cron jobs, websockets and databases. Railway Hobby is $5 a month with $5 of usage included, and code runs on long-running servers with no request timeout.
Plenty of people use both: front end on Vercel, back end and database on Railway. Pick one only if your app is simple enough to live in one place. Below: the plan table, how each one bills you, the free tiers, the jobs each one is built for, and the bill traps to watch.
At a glance
| Railway | Vercel | |
|---|---|---|
| How code runs | Long-running containers on hardware Railway owns | Serverless functions plus a global CDN |
| Free option | Free plan: $5 credit a month, 0.5 GB RAM, services sleep when idle; 30-day trial with $5 one-time credit | Hobby: $0, hard caps, no overage, 1 developer seat |
| First paid plan | Hobby $5 a month, $5 usage included | Pro $20 a month, $20 credit included |
| Team plan | Pro $20 per workspace a month, $20 usage included | Pro adds developer seats at $20 per user a month |
| Billing model | Per second: about $10 per GB RAM and $20 per vCPU a month | Credit, then usage: data transfer from $0.15/GB, Active CPU from $0.128/hour |
| Max request time | No limit, process runs as long as it runs | 300s on Hobby; up to 800s on Pro (1,800s in beta) |
| Databases | Runs Postgres, MySQL and more as services; backups and point-in-time recovery listed | Through Marketplace partners |
| Websockets | Yes, persistent connections | Supported on Functions within duration limits, per Vercel |
| Egress price | $0.05 per GB | From $0.15 per GB after included 1 TB on Pro |
| Best for | APIs, workers, bots, databases, cron | Next.js and front ends, marketing sites |
Money first. We have not confirmed an affiliate deal with either company. The buttons go through our /go/ links so we can add one later without rewriting the page, and if we do, the verdict stays put. Nobody paid for the order of anything here.
We also did not deploy a production app on each and stare at graphs for a month. We read every plan page: Railway pricing, Vercel pricing, the Vercel Hobby and fair use docs, and each company's own page about the other, all on 3 December 2026. Both comparison pages are written by the vendors, so we lean on what each says about itself, not what it says about the rival.
The one difference that decides it
Railway runs your code like a computer that stays on. Railway's docs put it plainly: "Your code runs on a long-running server," on hardware Railway owns in data centers around the world.
Vercel runs your code as functions that wake up per request, behind a global CDN. Railway's docs describe Vercel server code as "serverless functions, powered by AWS under the hood." Vercel calls its current model Fluid compute, "serverless flexibility with server-like performance," and says its CDN has 126+ points of presence across 51 countries.
That one split explains almost everything else:
- Need a process that never stops, like a Discord bot, a queue worker or a websocket server? Railway.
- Need a fast front end with preview links for every branch and zero server babysitting? Vercel.
- Need a database? Railway runs it next to your app. Vercel connects you to partners through its Marketplace.
Pricing: how each one bills you
Railway has five plans on its pricing page:
- Free Trial: $0, $5 one-time credit valid 30 days, no credit card. Deployments stop when the trial or credit ends.
- Free: $0, $5 credit a month, 1 vCPU and 0.5 GB RAM per service, 1 project. Services sleep after 5 to 10 minutes without outbound traffic and wake on the next request.
- Hobby: $5 a month, $5 of usage included, up to 48 vCPU and 48 GB RAM per service, 5 GB volume storage.
- Pro: $20 per workspace a month, $20 of usage included, up to 1,000 vCPU and 1 TB RAM per service, 1,000 GB volume storage.
- Enterprise: custom.
After the included credit, Railway bills per second: about $10 per GB of RAM a month, about $20 per vCPU a month, $0.15 per GB a month for volumes, $0.05 per GB of egress. So a small API that idles at a few hundred MB of RAM often fits inside the $5. A service that holds 2 GB of RAM all month does not.
Vercel has three:
- Hobby: $0. 100 GB Fast Data Transfer, 1M CDN requests, 4 hours of Active CPU, 360 GB-hours of memory, 1M function invocations a month. Hard caps: you "cannot purchase additional usage." Go over, and per the Hobby docs you usually wait 30 days for that feature to come back.
- Pro: $20 a month with a $20 credit, 1 TB Fast Data Transfer, 10M CDN requests and 1M invocations. Then pay as you go: data transfer from $0.15 per GB, Active CPU from $0.128 an hour, memory from $0.0106 per GB-hour, $0.60 per million invocations. New Pro teams get a default on-demand budget of $200, which you can change. Extra developer seats are $20 a month each.
- Enterprise: custom.
The tell: Railway charges for what you keep running. Vercel charges for traffic and compute per request. Know which one your app burns.
Free tiers, honestly
Vercel's Hobby is the better free tier for a personal site or a portfolio. It does not sleep, it sits on a global CDN, and for most hobby front ends the caps are far away. Two catches: one developer seat, and the Hobby docs we read do not grant commercial use, while Vercel's fair use guidelines and terms govern what counts. If the site earns money, plan on Pro.
Railway's Free plan is real but tight: 0.5 GB RAM, one project, and the service sleeps when idle. Fine for a test API or a bot you poke once a day. Not fine for anything users hit cold, because the first request after a nap waits for the wake-up.
What each one is built for
Railway does well:
- Long jobs. Railway lists request length as "Unlimited (as long as the process runs)." Vercel functions stop at 300 seconds on Hobby and can be raised to 800 on Pro, with 1,800 in beta.
- Databases next to your code. Railway says it offers managed databases with high availability, backups and point-in-time recovery. Vercel's own guide adds a caveat about Railway: Postgres is the only database there with HA failover.
- Cron and workers. Railway can start services on a schedule with a crontab expression.
- SSH, TCP and volumes. Vercel's guide itself says Railway "remains a fit when your architecture needs its visual canvas, SSH access, TCP proxy, or persistent volumes."
Vercel does well:
- Next.js. Vercel builds Next.js, so server components, ISR, image optimization and streaming work without setup.
- Preview URLs. Every branch push gets its own link, which is how teams review changes before they go live.
- Global speed for front ends. The CDN with fast cache invalidation is the point of the product.
- 37+ frameworks auto-detected, per Vercel, so most front ends deploy without config.
The bill traps
- Vercel Pro overage. The $20 is a credit, then usage is "uncapped." Set the spend limit in the dashboard. The $200 default on-demand budget is a ceiling, not a target.
- Image optimization on Vercel. Hobby includes 5,000 transformations; Pro pays $0.05 per 1,000. Big image galleries add up.
- Railway RAM. Memory left reserved all month is the line that grows. A leaky Node process is a money leak on Railway.
- Egress both ways. Railway is $0.05 per GB; Vercel's transfer starts at $0.15 per GB after the included terabyte on Pro. Video or downloads? Put them on object storage, not your app.
- Password protection on Vercel previews is $20 per month per protected project on Pro.
If your app is mostly a website with a few forms, you might not need either. Our web hosting hub and best cheap web hosting cover shared and managed hosts that cost less for a plain WordPress site.
Who should pick which
Pick Vercel if you build front ends, use Next.js, want preview links for every change, and your server code is short API routes.
Pick Railway if your app has a server that must stay up, a database, background jobs, or websockets that hold connections open, and you want to pay for what runs instead of per request.
Pick both if you have a real product: front end on Vercel, API and Postgres on Railway. It is the split both vendors more or less admit to.
Still shopping? We also compare Netlify vs Vercel, Heroku vs Vercel and Cloudflare Pages vs Vercel.
Moving an app to Railway
Railway's docs list three steps: choose "Deploy from GitHub repo" and pick your repository; add environment variables in the Variables tab, or paste a .env file in the Raw Editor; then in the service's Networking settings, generate a Railway domain or add your own. Move the database last, during a quiet hour, and keep the old one read-only for a few days in case you need to roll back.
How we checked
We read Railway's pricing page, Vercel's pricing page, Vercel's Hobby docs, Railway's compare to Vercel page and Vercel's Vercel vs Railway guide on 3 December 2026. We did not benchmark speed or uptime. Usage prices change, and both companies change plan names, so the vendor page wins if it disagrees with us. More on our rules at how we pick.
Questions people ask
Is Railway cheaper than Vercel?
For a small always-on backend, usually yes: Railway Hobby is $5 a month with $5 of usage included, and egress is $0.05 per GB. Vercel Pro is $20 a month. For a static or mostly cached front end, Vercel Hobby costs nothing. The cheap one depends on whether your code sits idle or runs all day.
Can Railway host a Next.js app?
Yes. Railway runs your app in a container from a GitHub repo, so a Next.js server runs like any Node app. What you give up is Vercel's built-in extras: preview URLs per branch, its CDN with incremental static regeneration tuned for Next.js, and image optimization out of the box. For a plain app that is fine.
Can I run a backend on Vercel?
Yes, as Vercel Functions. API routes and webhooks fit well. Vercel's own guide says Railway still fits better when you need SSH access, inbound TCP or persistent volumes, and functions stop at 300 seconds on Hobby and up to 800 on Pro. Long jobs, queues and always-on workers belong somewhere like Railway.
Is the Vercel free plan allowed for commercial sites?
Vercel's Hobby docs we read do not grant commercial use, and Vercel publishes fair use guidelines and terms that cover it. Hobby also has one developer seat and no way to buy extra usage. If the site makes money or a team works on it, budget for Pro at $20 a month and read the terms.
Do people use Railway and Vercel together?
Yes, and it is a common setup. Vercel serves the front end from its CDN with previews on every push, while Railway runs the API, the Postgres database and background workers. You pay two bills, but each piece sits where it runs best. Keep both in the same region to cut latency.
Sources
Every fact above comes from these pages. Prices change, so each one carries the date we read it.
- Railway pricing, checked 3 Dec 2026
- Vercel pricing, checked 3 Dec 2026
- Vercel docs: Hobby plan, checked 3 Dec 2026
- Vercel docs: Fair use guidelines, checked 3 Dec 2026
- Railway docs: Railway compared to Vercel, checked 3 Dec 2026
- Vercel knowledge base: Vercel vs Railway, checked 3 Dec 2026