Cloudflare vs Railway: pricing compared

The same workloads priced on Cloudflare and Railway with the cheapest plan that fits on each. Cloudflare is cheaper in 9 of 10 scenarios. Prices come from each provider's published, dated price sheet - see the Cloudflare price sheet and the Railway price sheet.

Monthly cost by workload

WorkloadCloudflareRailwayCheaper
Small app (1M req/mo)$8.90$30.89 *Cloudflare (71% less)
Growing (20M req/mo)$97.50 *$221 *Cloudflare (56% less)
At scale (200M req/mo)$1,088 *$1,850 *Cloudflare (41% less)
Modern SaaS Starter$5.20$29.57 *Cloudflare (82% less)
Video Streaming App$142 *$310 *Cloudflare (54% less)
High-Scale E-Commerce$173 *$317 *Cloudflare (45% less)
Serverless Mobile Backend$27.25$59.66 *Cloudflare (54% less)
AI RAG Chatbot$984$1,004 *Cloudflare (2% less)
Big Data Pipeline$79.18$51.65Railway (35% less)
Budget Web Hosting$5.00 *$31.13 *Cloudflare (84% less)

* The plan prices every piece but something is too small for the workload, a compute style is substituted, or a requested piece is unavailable on that provider.

Where the money goes - Growing (20M req/mo)

20M requests/mo · 40 ms CPU each · 100 GB database · 200 GB files · 1 TB egress. Cloudflare uses Workers, R2 Storage, D1; Railway uses Compute, Buckets, Postgres, Networking.

Cost categoryCloudflareRailway
Serverless$23.40$0.00
Storage$2.85$3.00
Database$71.25$157
Compute$0.00$11.25
Networking$0.00$50.00
Total$97.50$221

Service by service

Each provider's cheapest product per service at the Growing (20M req/mo) workload.

ServiceCloudflareRailway
SQL databaseCloudflare D1 (serverless SQL, SQLite-based)
$71.25
Railway Postgres (0.5 vCPU / 12 GiB)
$157
NoSQL databaseCloudflare Workers KV (Paid plan rates)
$94.50
Railway MongoDB (0.5 vCPU / 12 GiB)
$157
Serverless functionsCloudflare Workers
$23.40
Not offered
ContainersCloudflare Containers (lite: 1/16 vCPU, 256 MiB; Workers Paid plan)
$28.33
Railway Compute (vCPU + RAM)
$11.25
Object storageCloudflare R2 Storage
$2.85
Railway Storage Buckets (S3-compatible)
$3.00
Message queuesCloudflare Queues
$7.60
Not offered
CDNCloudflare CDN (included on every plan)
$0.00
Not offered

Plug in your traffic, database and cache needs to see Cloudflare, Railway and 14 other providers side by side.

Price your own stack

Related comparisons