Edge Compute Cost Calculator
Cost an edge function platform on per-million requests plus CPU milliseconds, after the allowances your plan includes.
About Edge Compute Cost Calculator
Edge platforms meter two independent things: how often your code is invoked and how much processor time each invocation burns. Both meters start only after the plan's included allowance is used up, so a low-volume function can be free while a CPU-heavy one is dominated by the millisecond charge rather than the request charge. Knowing which meter dominates tells you what to optimise — batching or caching cuts request count, while trimming JSON parsing and crypto work cuts CPU milliseconds. Rates and included allowances change with plan tiers, so confirm the current figures with the provider before you budget.
Formula
Edge Compute Cost
cost = plan fee + max(0, requests − included) × request price + max(0, requests × CPU ms per request − included CPU ms) × CPU price.
- included allowance
- Requests and CPU milliseconds the plan fee already covers
- CPU ms per request
- Billed processor time, excluding time spent awaiting subrequests
- billable requests
- Requests above the included allowance
Worked example
With the default values below, Edge Compute Cost Calculator returns Monthly Cost of $116.40. Change any input above and every figure here is recalculated in your browser.
Inputs used
- Requests per monthaccepts 0–1,000,000 million
- 250 million
- CPU time per requestaccepts 0–30,000 ms
- 8 ms
- Price per million requestsaccepts 0–100 USD
- 0.3 USD
- Price per million CPU-millisecondsaccepts 0–100 USD
- 0.02 USD
- Requests included in the planaccepts 0–100,000 million
- 10 million
- CPU-milliseconds includedaccepts 0–1,000,000 million
- 30 million
- Plan feeaccepts 0–100,000 USD/month
- 5 USD/month
Results
- Monthly Cost
- $116.40
- Request Charge
- $72.00
- CPU Time Charge
- $39.40
- CPU Share of the Bill
- 33.8%
- Billable Requests
- 240.00 million
- CPU Time Consumed
- 2,000.00 million ms
- Effective Cost per Million Requests
- $0.4656
- Annual Cost
- $1,396.80
Step by step
- 1Values used
- 2Edge Compute Cost
- 3Monthly Cost= 116.40
- 4Request Charge= 72.00
- 5CPU Time Charge= 39.40
- 6CPU Share of the Bill= 33.8
- 7Billable Requests= 240.00 million
- 8CPU Time Consumed= 2,000.00 million ms
Assumptions and limits
- The result is derived only from the 7 inputs listed above. Anything not among them is not part of the calculation.
- In particular, this calculator does not take inflation, tax or compounding frequency into account.
- Figures are rounded for display to 4 decimal places, so totals built from several rounded parts can differ slightly from the unrounded arithmetic.
How these calculators are built and tested is described on the Methodology page. If a figure looks wrong, please report it.
Frequently Asked Questions
How is Edge Compute Cost calculated?
cost = plan fee + max(0, requests − included) × request price + max(0, requests × CPU ms per request − included CPU ms) × CPU price. Edge platforms meter two independent things: how often your code is invoked and how much processor time each invocation burns. Both meters start only after the plan's included allowance is used up, so a low-volume function can be free while a CPU-heavy one is dominated by the millisecond charge rather than the request charge.
Why does Edge Compute Cost matter?
Knowing which meter dominates tells you what to optimise — batching or caching cuts request count, while trimming JSON parsing and crypto work cuts CPU milliseconds. Rates and included allowances change with plan tiers, so confirm the current figures with the provider before you budget.
What values do I need to enter?
This calculator takes 7 inputs: Requests per month, CPU time per request, Price per million requests, Price per million CPU-milliseconds, Requests included in the plan, CPU-milliseconds included, Plan fee. The pre-filled defaults are a realistic starting point — replace them with figures from your own environment for a result you can act on.
Related Calculators
You might also need
- Cloudflare Workers Cost CalculatorCommonly used together
- Edge Storage CalculatorCommonly used together
- API Response Latency CalculatorCommonly used together
- Cloudflare CDN Cost CalculatorAlso in CDN, Edge & DNS
- CDN Cache Hit Ratio CalculatorAlso in CDN, Edge & DNS
- Global Latency CalculatorAlso in CDN, Edge & DNS
