Cloudflare vs Railway
Side-by-side cost comparison — enter your workload and see which platform is cheaper for your traffic.
1. Pick a workload
Choose the preset closest to your project size.
2. Fine-tune (optional)
Override the preset values with your real numbers.
Cloudflare is cheaper by $36.44/mo (88%) for this workload. Switch presets or adjust the numbers above to see how the gap changes at different scales.
CloudflareWorkers Paid
Lower cost$5.04/mo
Workers Paid (base)
10M requests + 30M CPU-ms included
$5.00
Worker Requests
0.40 M / 10 M included
incl.
Worker CPU Time
~32.0 M CPU-ms / 30 M included
$0.04
R2 Storage
5 GB (within 10 GB free tier)
incl.
CDN / Egress
Free — Cloudflare charges no egress
incl.
CDN bandwidth and egress are free — structural advantage over Vercel and Netlify. R2 ops (1M Class A writes, 10M Class B reads free/month) not itemized — within free tier for most SaaS workloads. KV writes ($5/M) and D1 writes ($1/M) not modeled; add if your app uses them heavily.
Rates verified 2026-05 — Cloudflare pricing page
RailwayPro
$41.48/mo
Pro plan
$20/mo flat — includes $20 resource credit, unlimited seats
$20.00
Compute — 1 vCPU / 1 GB RAM
$20.00 CPU + $10.00 RAM
$30.00
Network Egress
214.6 GB × $0.05/GB
$10.73
Volume Storage
5 GB × $0.15/GB-mo
$0.75
Included Resource Credit
$20 credit applied
$-20.00
Instance recommendation: 1 vCPU / 1 GB RAM for your workload. Adjust in the advanced panel if your real instance is larger or smaller. Pro includes unlimited seats, so team size does not change the Railway bill. Railway charges no per-request fees. Costs are purely compute + egress + storage — predictable scaling behavior. Database not included in this estimate. If you use Railway's managed Postgres add it at $10-40/mo depending on instance size.
Rates verified 2026-09 — Railway pricing page
What Cloudflare excels at
- Zero egress fees — bandwidth is free on all plans, including R2 object storage reads.
- 300+ edge locations globally; typical latency under 50ms worldwide.
- CPU-time billing model: I/O wait does not count toward your bill.
- Integrated ecosystem: R2 (storage), D1 (SQLite), KV, Queues, Durable Objects.
- Built-in DDoS protection and WAF on the same plan.
What Railway excels at
- Container-based (not serverless) — no cold starts, consistent latency.
- Run your database, Redis, and background workers on the same platform.
- Hobby plan at $5/month is excellent value for solo projects; Pro at $20/month flat with unlimited seats for teams.
- Scale-to-zero on staging environments keeps development costs near zero.
- Runs on Railway Metal (own hardware), not AWS, in 4 regions (US West, US East, EU West, Southeast Asia), with a built-in CDN since June 2026.
Compatible
MakerKit deploys to Cloudflare and Railway
Next.js 16 App Router with Dockerfile included — deploy to your preferred hosting platform without touching config.
Get MakerkitOne-time $349 — yours forever
Explore individual calculators: