Cloudflare Workers Serverless Cost Calculator
Simulate edge serverless execution costs on Cloudflare Workers Standard Paid plan ($0.30 per 1M requests).
Parameters & Config
Total function executions triggered per month
RAM allocated to the serverless container
Average latency per execution in milliseconds
Cloud provider fee per 1,000,000 invocation requests
Charge per GB-second of compute runtime consumed
Combined monthly charge for invocations and compute runtime
Blended cost to execute 1,000,000 function requests
Key Metrics & Sub-Totals
3 itemsCalculation Summary & Unit Breakdown
| Metric | Calculated Value | Notes / Logic |
|---|---|---|
| Monthly Invocations | 25,000,000 | requests/month |
| Allocated Function Memory | 128 MB | 0.125 GB |
| Average Execution Duration | 15 ms | per call |
| Total Compute Volume | 46,875 GB-s | GB-seconds |
| Request Surcharge | $7.50 | Invocation fee |
| Compute Runtime Charge | $0.59 | Memory-duration fee |
| Effective Cost per 1M Calls | $0.32 | Blended rate |
| Total Monthly Cloud Bill | $8.09 | USD |
Overview & Methodology
Cloudflare Workers runs on Chrome V8 isolates distributed across 330+ edge data centers. The Paid plan ($5/mo includes 10M requests) charges $0.30 per 1M requests plus $0.0000125 per GB-second of active wall-clock CPU time.
Mathematical Formulation
Total Cost = $5.00 Base + ((Billable Requests / 1M) × $0.30) + (Compute GB-s × $0.0000125).Optimization Best Practices
Unlike AWS Lambda which bills idle I/O wait time, Cloudflare Workers bills strictly for active CPU time, slashing costs for fetch/network heavy proxies.
Zero cold starts: V8 isolates instantiate in less than 5 milliseconds worldwide.
Pair with Cloudflare KV, D1 (SQL), or R2 object storage with zero egress fees.
Frequently Asked Questions
Q.How much does 25,000,000 Cloudflare Workers requests cost?
Invocations cost ~$7.50 plus ~$0.59 compute time, totaling around $8.09 on top of the $5 base plan.
Q.How is Cloudflare Workers CPU billing different from AWS Lambda?
Cloudflare only bills while JavaScript code is actively computing; while waiting for external database or fetch calls, CPU billing pauses.
Q.Is there a free tier for Cloudflare Workers?
Yes. Cloudflare Workers offers 100,000 requests per day for free on the Free tier.