Cloudflare vs Heroku: pricing compared
The same workloads priced on Cloudflare and Heroku with the cheapest plan that fits on each. Cloudflare is cheaper in 8 of 10 scenarios. Prices come from each provider's published, dated price sheet - see the Cloudflare price sheet and the Heroku price sheet.
Monthly cost by workload
| Workload | Cloudflare | Heroku | Cheaper |
|---|---|---|---|
| Small app (1M req/mo) | $8.90 | $14.15 * | Cloudflare (37% less) |
| Growing (20M req/mo) | $97.50 * | $408 * | Cloudflare (76% less) |
| At scale (200M req/mo) | $1,088 * | $2,330 * | Cloudflare (53% less) |
| Modern SaaS Starter | $5.20 | $14.00 * | Cloudflare (63% less) |
| Video Streaming App | $142 * | $42.35 * | Heroku (70% less) |
| High-Scale E-Commerce | $173 * | $453 * | Cloudflare (62% less) |
| Serverless Mobile Backend | $27.25 | $12.25 * | Heroku (55% less) |
| AI RAG Chatbot | $984 | $989 * | Cloudflare (1% less) |
| Big Data Pipeline | $79.18 | $79.85 | Cloudflare (1% less) |
| Budget Web Hosting | $5.00 * | $14.00 * | Cloudflare (64% 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; Heroku uses Dynos, R2 Storage, Postgres.
| Cost category | Cloudflare | Heroku |
|---|---|---|
| Serverless | $23.40 | $0.00 |
| Storage | $2.85 | $2.85 |
| Database | $71.25 | $400 |
| Compute | $0.00 | $5.00 |
| Total | $97.50 | $408 |
Service by service
Each provider's cheapest product per service at the Growing (20M req/mo) workload.
| Service | Cloudflare | Heroku |
|---|---|---|
| SQL database | Cloudflare D1 (serverless SQL, SQLite-based) $71.25 | Heroku Postgres $400 |
| NoSQL database | Cloudflare Workers KV (Paid plan rates) $94.50 | Not offered |
| Serverless functions | Cloudflare Workers $23.40 | Not offered |
| Containers | Cloudflare Containers (lite: 1/16 vCPU, 256 MiB; Workers Paid plan) $28.33 | Heroku Dynos $5.00 |
| Object storage | Cloudflare R2 Storage $2.85 | Not offered |
| Message queues | Cloudflare Queues $7.60 | Not offered |
| CDN | Cloudflare CDN (included on every plan) $0.00 | Not offered |
Plug in your traffic, database and cache needs to see Cloudflare, Heroku and 14 other providers side by side.
Price your own stack