Free Tool

Cloudflare Workers
Cost Calculator

Estimate your monthly bill before Cloudflare's 15-minute lag catches up. Workers, KV, R2, D1, and Queues — all in one place.

// Inputs
Workers plan
// Live Estimate
Workers compute$0.00
KV ops$0.00
R2 ops$0.00
D1$0.00
Queues$0.00
Total / month$0.00
Get burn alerts →

We'll email you the moment your real usage crosses this estimate

// Cost Breakdown
Workers$0
KV$0
R2$0
D1$0
Queues$0

What's included in the Workers Paid plan?

$5/month

Base price. Everything below is included — you only pay overage when you exceed these allowances.

Requests10M / month
CPU time10M CPU-ms / month
KV writes / reads1M / 10M per month
R2 Class A / B1M / 10M per month
D1 rows read / written25B / 50M per month
Memory128MB (not billed)

// Memory is fixed at 128MB per Worker invocation and is not a billing dimension. // You are billed on CPU time, not wall-clock time — I/O wait time is free.

FAQ

How is Cloudflare Workers billed?+

Cloudflare Workers uses a pay-as-you-go model. The Free plan includes 100K requests/day with 10ms CPU per request. The Paid plan costs $5/month and includes 10M requests and 10M CPU-ms per month. Beyond the included allowances, you pay $0.30 per million requests and $12.50 per million CPU-ms. KV, R2, D1, and Queues are billed separately based on operations performed.

Does Cloudflare charge for memory?+

No. Memory is fixed at 128MB per Worker invocation and is not a billing dimension. You are billed on CPU time (CPU-ms), not wall-clock time or memory usage. A request that waits 5 seconds on a fetch() call consumes zero billable CPU time during that wait — only the actual compute work counts.

How do I avoid Workers bill shock?+

The most common cause of surprise bills is a misconfigured loop that generates millions of KV writes or requests per day. To avoid bill shock: (1) monitor your usage in real time with a tool like FlareLog, (2) set spending caps in the Cloudflare dashboard, (3) use KV reads ($0.50/M) instead of writes ($5/M) wherever possible, and (4) cache aggressively to reduce repeat operations.

What is a CPU-ms?+

A CPU-millisecond (CPU-ms) is one millisecond of actual CPU compute time consumed by your Worker. It is not wall-clock time — time spent waiting for I/O (fetch calls, KV operations, subrequests) does not count. The Paid plan includes 10M CPU-ms per month, after which you pay $12.50 per million CPU-ms. A typical lightweight Worker uses 1-5 CPU-ms per request.

Is KV more expensive than D1?+

It depends on your access pattern. KV writes cost $5 per million (16x more than reads at $0.50/M), while D1 rows written cost $1 per million and D1 rows read cost $0.001 per million. If your workload is read-heavy, D1 is dramatically cheaper. If you need sub-millisecond key-value lookups, KV reads are cost-effective — but avoid using KV as a write-heavy cache, as write costs compound fast.

Don't wait 15 minutes to find out
your bill spiked.

Get real-time cost burn alerts. FlareLog watches your Workers, KV, R2, and D1 usage — and emails you the moment it spikes.

Start free — 10k logs/mo