Railway vs Vercel: which should builders use?
Different jobs. Vercel runs front ends and serverless functions from Git, with a preview for every pull request; Railway runs long-lived servers, workers, cron jobs and one-click databases (Postgres, MySQL, Redis, MongoDB and more) from source or a Docker image. Railway Hobby is $5 a month and Pro $20 a month, and each fee counts toward your usage, with unlimited workspace seats on Pro. Vercel Hobby is free for non-commercial personal use, and Pro is $20 a month per deploying seat with $20 of usage credit. Many AI-built apps use both: the front end on Vercel, the backend and database on Railway.
| Best for | Long-running backends, workers, websockets, cron jobs and databases | Front ends, Next.js and short-lived serverless APIs |
|---|---|---|
| How code runs | Always-on containers from source (Railpack) or a Dockerfile/image; optional Serverless mode sleeps idle services | Fluid compute functions; Daemons (beta) run long-lived container workers such as queue consumers |
| Free option | 30-day trial with a one-time $5 credit, then the Free plan: $1 of credit a month, 1 vCPU / 0.5 GB RAM per service | Hobby $0: non-commercial, personal use only (100 GB data transfer, 4 CPU-hours, 1M invocations a month) |
| Cheapest paid plan | Hobby $5/mo minimum usage, includes $5 of usage | Pro $20/mo: 1 deploying seat and $20 of monthly usage credit |
| Team pricing | Pro $20/mo minimum usage with unlimited workspace seats (includes $20 of usage) | Pro: $20/mo per extra deploying seat; viewer seats free |
| Compute pricing | $20 per vCPU-month and $10 per GB-month of RAM, billed per second | Active CPU from $0.128/hour, provisioned memory from $0.0106/GB-hour, $0.60 per 1M invocations (after Pro credit) |
| Bandwidth | Egress $0.05/GB; private networking between services is free | Hobby 100 GB; Pro Flat Rate CDN with 1 TB and 1M CDN requests |
| Long jobs | No execution time limit; a service runs as long as the process does | Functions: 300s default, up to 800s on Pro (1,800s in beta) |
| Memory per workload | Up to 48 GB per service on Hobby, 1 TB on Pro | Functions: 2 GB / 1 vCPU default, up to 4 GB / 2 vCPU on Pro |
| Databases | One-click Postgres, MySQL, Redis, MongoDB, ClickHouse and more, with volumes (5 GB Hobby, up to 1 TB Pro) | Through Vercel Marketplace integrations from outside providers, with billing through Vercel |
| Builds | Builds are free (no charge for build CPU or memory); 1 concurrent build on Free, 3 Hobby, 10 Pro | Hobby 100 deploys/day; Pro 6,000/day; 45-minute build limit |
| PR previews | Preview environments (they run real services and bill like them) | Preview deployment for every pull request on every plan |
| Spend controls | Usage limits: email alert plus a hard limit that takes workloads offline | Spend Management on Pro: alerts, webhook, or pause production deployments |
| Scaling | Vertical autoscaling plus replicas (up to 42 per service on Pro) across regions | Functions scale automatically per request; scale to zero |
| Enterprise extras | SSO, RBAC, HIPAA BAAs, dedicated VMs, 99.999% target; some unlocked by committed spend from $1,000/mo | SSO/SAML ($300/mo add-on on Pro), SCIM, 99.99% SLA on Enterprise |
| Pricing model | Subscription fee is a usage minimum; you pay the larger of the fee or your usage | Platform fee per deploying seat, plus on-demand usage after the included credit |
| Pricing (approx.) | 30-day trial with a one-time $5 credit, then Free ($1/mo credit); Hobby $5/mo and Pro $20/mo usage minimums | Hobby free (non-commercial); Pro ~$20/mo |
| Our rankings | #4 in Deploy & ship | #1 in Deploy & ship |
How the pricing compares
Railway's plan fee is a minimum, not an extra: Hobby is $5 a month and includes $5 of usage, Pro is $20 a month and includes $20, and you pay the larger of the fee or your usage. Compute is $20 per vCPU-month and $10 per GB-month of RAM, billed per second, so a small API using 0.25 vCPU and 0.5 GB around the clock costs about $10 a month. Railway also bills for allocated resources whether or not traffic arrives, unless you turn on Serverless. Vercel Pro is $20 a month per deploying seat with $20 of usage credit, then per-resource billing (Active CPU from $0.128 an hour, memory from $0.0106 per GB-hour, $0.60 per million invocations). For a team, Railway Pro has unlimited seats for $20; on Vercel, three developers who deploy pay $60 a month before usage.
Free options
Vercel Hobby is free for good, with real allowances (100 GB of data transfer, 4 CPU-hours and 1M function invocations a month), but only for non-commercial, personal projects. Railway has no lasting free tier of that size: new accounts get a 30-day trial with a one-time $5 credit, then drop to the Free plan, which gives $1 of credit a month, 1 vCPU and 0.5 GB of RAM per service, one project and no custom domain. Trial accounts Railway can't verify through a linked GitHub account also get restricted outbound network access. For a free demo front end, Vercel wins; for a backend that must stay up, budget Railway Hobby at $5.
Moving between them
Both deploy from a GitHub repo, so you can try one without leaving the other. Moving an API off Vercel functions to Railway means running it as a normal server (Express, FastAPI, Hono and so on) with a start command, then setting the same environment variables and pointing your front end at the new URL. Use Railway's private networking (DATABASE_URL, not the public URL) so database traffic isn't billed as egress. Going the other way, long jobs need to fit Vercel's function time limits or move to Vercel Workflows or the Daemons beta. Point DNS last, after the new deployment works.
Pick Railway if…
You need an always-on server, websockets, background workers, cron jobs or your own Postgres/Redis, want Docker support, or want unlimited team seats for $20 a month.
Prices like these change every week.
Get verified AI tool price changes and free-tier alerts in one Friday email. Free, plus the AI Builder Price Sheet.
Pick Vercel if…
Your app is a Next.js or other web front end with short API routes, you want a free plan for a personal project, PR previews on every plan, or v0 and the AI SDK.
Our verdict
Different jobs, so it is rarely either/or: put the front end on Vercel and the backend, workers and database on Railway. If you want one platform and one bill, Railway can serve the front end too; if you have no long-running work, Vercel alone is enough.
Frequently asked questions
Is Railway free?
Only briefly. New accounts get a 30-day trial with a one-time $5 credit. After that the Free plan gives $1 of credit a month with 1 vCPU and 0.5 GB of RAM per service, enough for a tiny app. Most real projects need Hobby at $5 a month, which includes $5 of usage.
Is Vercel free for commercial use?
No. Vercel's Hobby plan is free but limited to non-commercial, personal use. A business site, client project or paid app needs Pro at $20 a month per deploying seat, which includes $20 of usage credit.
Why does my Railway bill grow when the app has no traffic?
Railway bills for the CPU and memory your services hold while running, not for requests. An idle service still uses RAM. Turn on Serverless to sleep services after a few minutes without outbound traffic, delete unused preview environments, and use private networking for database traffic.
Can Vercel run a long-running backend?
Vercel functions stop at 300 seconds by default and 800 seconds max on Pro (1,800 seconds in beta). For continuous workers, Vercel now has Daemons in public beta, which run container images as long-lived processes. Railway runs any server as a normal always-on process with no execution time limit.
Which is cheaper for a team?
Usually Railway. Railway Pro is a $20 monthly usage minimum with unlimited workspace seats. Vercel Pro is $20 a month for the first deploying seat plus $20 for each extra one; viewer seats are free. Your actual bill on both depends on usage.
Can I cap my bill?
Yes on both. Railway usage limits let you set an email alert and a hard limit; at the hard limit Railway takes your workloads offline. Vercel Pro's Spend Management can alert you, call a webhook or pause production deployments at an amount you set.
Facts and prices checked on vendor pages on Oct 24, 2026: Railway pricing (checked Oct 24, 2026), Railway docs: Pricing plans (checked Oct 24, 2026), Railway docs: Free trial (checked Oct 24, 2026), Railway docs: Understanding your bill (checked Oct 24, 2026), Railway docs: Cost control (checked Oct 24, 2026), Railway docs: Serverless (checked Oct 24, 2026), Railway docs: Compare to Vercel (checked Oct 24, 2026), Vercel pricing (checked Oct 24, 2026), Vercel docs: Hobby plan (checked Oct 24, 2026), Vercel docs: Pro plan (checked Oct 24, 2026), Vercel docs: Limits (checked Oct 24, 2026), Vercel docs: Daemons (beta) (checked Oct 24, 2026). Plans and limits change often, so confirm before you buy.
Go deeper
Paid guides built from the same verified, dated data. Coming this week.
AI Coding Cost Playbook
Which AI coding plan to buy, how the limits really work, how to stretch them, and what a month actually costs.
$29 · ZIP (21 files) + READMEClaude Code & Cursor Rules Pack
Drop-in CLAUDE.md, .cursor/rules and AGENTS.md templates, 8 prompt templates and 4 setup checklists, so your agent stops re-learning your repo every session.