Cloud cost calculators

Cloudflare Cost Calculator: Workers, R2, D1, KV and CDN

See exactly what Workers, R2 storage, a D1 database, KV and the CDN cost on Cloudflare, and how that compares with AWS, Google Cloud and Azure.

  • Free foreverNo trial, no paywall, no usage limits.
  • No sign-upOpen the page and start. We never ask for an email to use a tool.
  • PrivateEverything runs in your browser. Your input is never uploaded or stored on our servers.
  • Works offlineOnce the page has loaded, the tool keeps working without a connection.

Start from a preset

Region

Monthly free usage every account gets, such as 1 million Lambda requests or 100 GB of AWS egress. Sign-up credits and 12-month trials are not included. Turn this off if other projects already use them.
Reset to the preset

CDN

Cloudflare CDN

Duplicate CDNRemove CDN
Bandwidth served from the CDN's edge to visitors in the selected region's part of the world.
GB
million

Serverless functions

Workers

Duplicate serverless functionsRemove serverless functions
million
Wall-clock time per request, including time spent waiting on databases and APIs. Lambda, Cloud Run and Azure Functions bill this time.
ms
Memory given to each function. Lambda bills it exactly, Google Cloud adds CPU in proportion, and Azure's Consumption plan rounds up to 128 MB steps (up to 1.5 GB). Cloudflare Workers get 128 MB.
MB
Only Cloudflare Workers bill CPU time rather than duration. An API that mostly waits on a database might use 5–20 ms of CPU even if it takes 200 ms.
ms CPU

File storage

R2

Duplicate file storageRemove file storage
GB
Write-type requests: uploads, copies and list operations.
million
Read requests, one per file downloaded. Download bandwidth is priced as data transfer out, so add that too if files are downloaded.
million

NoSQL database

Workers KV

Duplicate noSQL databaseRemove noSQL database
million
million
Estimates assume items of about 1 KB, the size most per-request prices are quoted for.
GB

Add another service

Add as many as you need, for example two server groups or several buckets.

Monthly estimate

On-demand list prices in USD for the selected region, with always-free allowances applied when that switch is on. Taxes, support plans and committed-use discounts are not included.

Your Cloudflare estimate

$5.15 /month

$61.80 a year

AWS would cost $1.65 less a month for this workload.

  1. Cloudflare$5.15/mo
  2. AWSCheapest$3.50/mo
  3. Google Cloud$70.59/mo
  4. Azure$89.95/mo
  • Functions
  • Files
  • NoSQL
  • CDN

Real bills are rarely just list prices

Idle servers, chatty services and unplanned egress add up. Our cloud engineers review your setup and show you where the money goes, free.

Get a free cloud cost review

Official list prices checked . Sources

Cost breakdown

What each service costs on each cloud, and the exact arithmetic behind every number.
Monthly cost per service and provider, in USD
ServiceCloudflareAWSGoogle CloudAzure
CDN$0.00CDN (Free plan)$0.00CloudFront$65.75Cloud CDN$85.25Azure Front Door Standard
Serverless functions$5.00Workers (Standard)$0.80Lambda (x86)$1.20Cloud Run functions$0.80Azure Functions (Consumption)
File storage$0.15R2 Standard$1.76S3 Standard$1.56Cloud Storage Standard$1.72Blob Storage (Hot, LRS)
NoSQL database$0.00Workers KV$0.94DynamoDB on-demand$2.09Firestore (Standard edition)$2.19Cosmos DB serverless
Total per month$5.15$3.50$70.59$89.95

How each number was calculatedEvery line uses the provider's own unit price for the selected region, so you can check it against their price list.

  • CDN · CDN (Free plan)

    $0.00

    • 500 GB and 10M requests, unmetered$0.00

    Cloudflare does not charge for bandwidth on any plan. Pro costs $25/month ($20/month billed yearly) for more security and performance features.

    Under Cloudflare's terms, video and other large files must be served through its paid products, such as R2, Stream or Images.

  • Serverless functions · Workers (Standard)

    $5.00

    • Workers Paid plan (one fee covers Workers, KV and D1)$5.00
    • Requests: 0 beyond the 10M included × $0.30/million$0.00
    • CPU time: 0 ms beyond the 30M included × $0.02/million ms$0.00

    Workers bill CPU time only. Time spent waiting on databases or APIs is free.

  • File storage · R2 Standard

    $0.15

    • Storage: 10 GB billable × $0.015/GB-month (first 10 GB free)$0.15
    • Class A (writes, lists): 0 million billable × $4.50/million (first 1M free)$0.00
    • Class B (reads): 0 million billable × $0.36/million (first 10M free)$0.00

    No egress fees: downloads from R2 are free. R2 rounds usage up to the next whole GB or million operations.

  • NoSQL database · Workers KV

    $0.00

    • Reads: 0 beyond the 10M included × $0.50/million$0.00
    • Writes: 0 beyond the 1M included × $5.00/million$0.00
    • Storage: 0 GB beyond the 1 GB included × $0.50/GB-month$0.00

    KV is eventually consistent: a write can take up to a minute to reach every location. Use D1 or Durable Objects when reads must see the latest write.

Want an engineer to check this estimate against your real architecture? Talk to our team

Quick answer

Cloudflare Workers is free for up to 100,000 requests a day. The Workers Paid plan costs $5 a month and includes 10 million requests and 30 million CPU milliseconds, then $0.30 per million requests and $0.02 per million CPU ms; Cloudflare R2 storage costs $0.015 per GB-month with free egress. Playxoft's free Cloudflare cost calculator adds R2, D1, KV and the CDN from official prices checked October 14, 2026: 50 million requests at 10 ms of CPU each cost $26.40 a month.

  • Workers CPU-time billing
  • R2, D1 and KV
  • $5 plan included usage
  • Free plan check
  • Compare with Lambda
  • Every line explained

How to use the Cloudflare Cost Calculator

  1. 1Start from the Static site + API preset, or Start empty and add Workers, R2, D1 and KV one by one.
  2. 2Enter requests per month and the CPU time per request: the time your code computes, not the time it waits on databases or APIs.
  3. 3Add R2 storage and operations, D1 rows read and written, and KV reads and writes.
  4. 4Read the Cloudflare total first, with AWS, Google Cloud and Azure priced for the same workload below.
  5. 5Open Cost breakdown to see what the $5 plan already covers and what you pay beyond it.

How much does Cloudflare Workers cost per month?

The Workers Paid plan costs $5 a month per account and includes 10 million requests and 30 million CPU milliseconds. Beyond that, you pay $0.30 per million requests and $0.02 per million CPU milliseconds.

Two things make Workers billing different from every other serverless platform:

  • Only CPU time is billed. Time spent waiting on a database, an API or a fetch is free. Memory is not billed either; every Worker gets 128 MB.
  • Egress is free. Data sent from Workers and R2 to users costs nothing, on every plan.

So 50 million requests a month at 10 ms of CPU each cost $26.40: the $5 plan, 40 million extra requests and 470 million extra CPU milliseconds. Requests for static assets are free and do not count.

When do Workers cost less than Lambda, Cloud Run or Azure Functions?

It depends on how much of each request is spent waiting. For a light endpoint (100 ms per request, 128 MB, 10 ms of CPU), the always-free allowances of Lambda, Cloud Run and Azure Functions win at low volume, and Lambda's lower per-request price keeps it ahead at high volume:

Requests a monthAWSGoogle CloudAzureCloudflare
1 million$0.00$0.00$0.00$5.00
10 million$1.80$3.20$1.80$6.40
100 million$33.97$57.03$33.40$51.40

Now take an API that waits on a database: 300 ms per request at 512 MB, still with 10 ms of CPU. At 100 million requests a month, Lambda bills the full duration and comes to $263.13, while Workers bill only the CPU and cost $51.40. Google Cloud Run comes to $311.24 and Azure Functions to $253.40.

The rule of thumb: the more time your code spends waiting on I/O, the more Workers save. For the full head-to-head, with break-even points, see AWS Lambda vs Cloudflare Workers and Cloud Run vs Cloudflare Workers.

What do Cloudflare R2, D1 and Workers KV cost?

One $5 plan covers Workers, Workers KV and Cloudflare D1 up to their included amounts. Cloudflare R2 object storage is billed separately, with its own monthly free allowance:

ProductIncluded with the $5/month Workers Paid planBeyond that
Workers requests10 million a month$0.30 per million
Workers CPU time30 million ms a month$0.02 per million ms
D1 rows read25 billion a month$0.001 per million
D1 rows written50 million a month$1.00 per million
D1 storage5 GB$0.75 per GB-month
KV reads10 million a month$0.50 per million
KV writes1 million a month$5.00 per million
KV storage1 GB$0.50 per GB-month
R2 storage (billed separately)10 GB free$0.015 per GB-month
R2 writes / reads (billed separately)1M / 10M free$4.50 / $0.36 per million
Egress from Workers and R2Unlimited$0

R2 rounds usage up to the next whole unit (GB-month or million operations). D1 bills the rows a query scans, not the rows it returns, so a query that scans 1,000 rows to return 10 counts 1,000; indexes keep that number down.

What are the Cloudflare Workers free tier limits?

The free plan allows 100,000 requests a day with up to 10 ms of CPU per request. It is a hard cap, not a bill: over the limit, requests fail with an error until the next day. Workers KV on the free plan allows 100,000 reads and 1,000 writes a day, and Cloudflare D1 allows 5 million rows read and 100,000 rows written a day with 5 GB of storage.

That makes the free plan ideal for side projects and prototypes. For production traffic that must never be cut off, the $5 plan is the safer choice; the calculator tells you when your usage would also fit the free plan.

When is Cloudflare not the right fit?

Cloudflare is often the cheapest option for APIs and anything bandwidth-heavy, but it is not a drop-in replacement for a full cloud:

  • No virtual machines. Long-running servers, background workers with large memory needs and most off-the-shelf software need Containers or another cloud.
  • 128 MB of memory per Worker. Heavy image processing or large in-memory datasets will not fit.
  • D1 databases hold up to 10 GB each. Larger datasets must be split across databases, or kept in an external PostgreSQL reached through Hyperdrive.
  • KV is eventually consistent. A write can take 60 seconds or more to reach other locations, so it suits configuration and caching, not balances or inventory.
  • Large media on the CDN. Under Cloudflare's terms, video and other large files must be served through paid products such as R2, Stream or Images.

Many teams get the best of both: Workers and R2 at the edge, with a database or long-running jobs on AWS, Google Cloud or Azure.

How does Cloudflare compare with AWS, Google Cloud and Azure?

Each comparison prices both clouds at three usage levels in all 12 regions and compares their features from official documentation.

  • [AWS vs Cloudflare](/tools/cloud-pricing/aws-vs-cloudflare): Cloudflare charges no egress fees and bills Workers for CPU time only, while AWS offers a far wider range of services, including servers.
  • [Google Cloud vs Cloudflare](/tools/cloud-pricing/google-cloud-vs-cloudflare): Cloudflare charges no egress fees and bills Workers for CPU time only, while Google Cloud runs larger, longer workloads in a single region.
  • [Azure vs Cloudflare](/tools/cloud-pricing/azure-vs-cloudflare): Cloudflare charges no egress fees and no base fee for its CDN, while Azure offers servers and a broad catalog billed per region.

Service by service: AWS Lambda vs Cloudflare Workers · Google Cloud Run vs Cloudflare Workers · Amazon S3 vs Cloudflare R2 · Google Cloud Storage vs Cloudflare R2 · Amazon CloudFront vs Cloudflare CDN.

Where do these prices come from?

Every number comes from the provider's own published price list, read on October 14, 2026: the AWS Price List files, the Azure Retail Prices API, Google Cloud's pricing pages and Cloudflare's pricing documentation. Nothing is scraped from third-party sites, and each value was checked against a second official source where one exists.

Prices are in US dollars, on-demand, for Linux, with no commitments. Every figure on this page is generated from the same price snapshot as the calculator, and automated tests check each claim whenever the prices change. A month is 730 hours and 1 TB is 1,024 GB. Providers change prices from time to time, so for a purchase decision confirm the final figure in the provider's console.

Want an engineer to check your real cloud bill?

A calculator shows list prices. A real bill also carries the costs nobody planned for: servers sized for a launch that never came, test environments left running, services that talk across zones, logs nobody reads. Finding those is our day job.

Playxoft designs, builds and runs production backends on Cloudflare: real-time game services and messaging platforms on Google Cloud Run, player systems on AWS EC2 and Lambda, and edge services on Cloudflare Workers. We help teams:

  • Choose the right cloud and architecture before the first bill, not after
  • Cut an existing bill by rightsizing, committing where it pays and removing waste
  • Migrate between clouds with a tested plan and no surprise downtime
  • Deliver white-label cloud work for agencies and software studios, under your brand

Send us your architecture or last month's invoice and we will tell you, free and honestly, where the money goes and what we would change. Get a free cloud cost review or see our backend and cloud services.

Frequently asked questions

Yes, up to 100,000 requests a day with 10 ms of CPU per request on the free plan. Above that, the Workers Paid plan costs $5 a month and includes 10 million requests and 30 million CPU milliseconds.
Workers bill only the time your code actively uses the CPU, at $0.02 per million milliseconds beyond the 30 million included. Time spent waiting on network requests, databases or timers is not billed, and neither is memory.
No. Downloads from R2 are free. You pay $0.015 per GB-month of storage, $4.50 per million writes and $0.36 per million reads, after a free 10 GB, 1 million writes and 10 million reads each month.
No. The $5 Workers Paid plan covers Workers, KV and D1 up to their included amounts, plus Durable Objects and Hyperdrive. R2 is billed separately and has its own monthly free allowance.
For Workers apps, $0 on the free plan or $5 a month on Workers Paid, plus usage beyond the included amounts and R2 storage at $0.015 per GB-month. The CDN has no bandwidth charges on any plan: the Free plan costs $0 and Pro costs $25 a month, or $20 a month billed yearly.
Storing 1 TB (1,024 GB) in R2 Standard costs $15.21 a month: 1,014 GB after the free 10 GB, at $0.015 per GB-month. Downloads are free, so serving that terabyte to users adds nothing. Operations beyond the free 1 million writes and 10 million reads each month cost $4.50 and $0.36 per million.

Last updated by the Playxoft engineering team.

From the cloud engineers who built this calculator

Paying more for cloud than you should?

Most cloud bills leak in the same places: oversized servers, environments nobody switched off, chatty services and egress nobody planned for. We design, migrate and tune backends on AWS, Google Cloud, Azure and Cloudflare. Send us your architecture or last bill and we will show you where the money goes, free.