Short answer: At scale, Cloudflare Pages is the cheapest of the three for serving traffic, because static bandwidth is never billed and dynamic requests cost $0.30 per million on the $5 Workers Paid plan. Railway is the cheapest place to run always-on servers, workers, and databases, at $20 per vCPU-month, $10 per GB of memory per month, and $0.05/GB egress. Vercel costs the most per terabyte ($0.15/GB past the 1 TB included on Pro) but buys the smoothest Next.js workflow, so pick it when developer time matters more than the bandwidth bill.

These three platforms are often compared as if they were interchangeable. They are not. Vercel and Cloudflare Pages are edge platforms for frontends and request-scoped functions. Railway runs containers, so it hosts the long-lived processes the other two cannot. The cost question therefore splits into two: what you pay per gigabyte served, and what you pay per unit of compute. This page prices both at published list rates, checked against the Vercel, Cloudflare, and Railway pricing pages in October 2026, and works through three realistic workloads.

For the frontend-only comparison, see Vercel vs Cloudflare Pages. For backend hosts, see Fly.io vs Railway vs Render vs Coolify.

Vercel vs Cloudflare Pages vs Railway pricing at a glance

Line itemVercel (Pro)Cloudflare Pages + Workers PaidRailway (Hobby / Pro)
Base price$20/month, includes $20 usage creditPages Free $0; Workers Paid $5/monthHobby $5/month, Pro $20/month per workspace, each including equal usage credit
Bandwidth included1 TB Fast Data TransferUnlimited static bandwidthNone (pay per GB)
Bandwidth overageFrom $0.15/GB$0 for static assets$0.05/GB egress
Requests10M CDN requests included, then from $2 per millionStatic requests free; Workers 10M/month included, then $0.30 per millionNot billed per request
Compute modelFluid compute functions: Active CPU from $0.128/hour, memory from $0.0106/GB-hour, invocations from $0.60 per millionWorkers isolates: 30M CPU ms/month included, then $0.02 per million CPU msContainers metered per second: $20 per vCPU-month, $10 per GB memory-month
Long-running processesNo (request-scoped functions)No (request-scoped isolates)Yes
Persistent storageVia marketplace integrationsD1, KV, R2 (metered separately)Volumes at $0.15/GB-month; databases run as services
Global edge CDNYesYesNo (region-based)

Vercel lists its usage rates as "starting at" because some rates vary by region. The figures below use the starting rates, so real Vercel bills in pricier regions can run higher.

Real bandwidth cost at 1 TB, 5 TB, and 10 TB

Bandwidth is where the three diverge most. This table isolates the data-transfer line item only, before compute and base fees.

Monthly egressVercel ProCloudflare Pages (static)Railway
1 TB$0 (included)$0$50
5 TB$600$0$250
10 TB$1,350$0$500

Railway's per-gigabyte rate is a third of Vercel's, but Vercel includes the first terabyte, so at 1 TB Vercel's data transfer costs less. Past roughly 1.5 TB, Railway's egress line becomes cheaper than Vercel's. Cloudflare Pages wins every row for static assets. The caveat is that Cloudflare's unlimited bandwidth covers static files; HTML rendered by Workers is billed by request and CPU time, not by gigabyte.

Railway has no built-in CDN. If you serve heavy assets from a Railway service, every byte leaves your region and is billed. Putting a CDN in front, or moving the static frontend to Cloudflare Pages, removes most of that egress.