Cloudflare R2 Egress Cost Calculator
R2 charges nothing for direct internet egress. So why does an app uploading millions of small files still get a monthly bill, and how big will yours be?

Cloudflare R2 cost calculator
Enter one billing period’s Standard usage across your account. Use decimal GB-month for storage and whole counts for operations. The calculator applies the monthly free allowance once.
Rates checked November 2, 2026: Standard storage costs $0.015 per GB-month, Class A operations $4.50 per million and Class B $0.36 per million. The monthly allowance includes 10 GB-month, 1 million Class A and 10 million Class B operations. These are the rates in Cloudflare’s R2 pricing documentation.
For a quick comparison with other clouds, Cloudflare also has an official R2 pricing calculator. The calculator here exposes the paid billing units beneath the dollar total, so you can see why a small change in usage creates a larger change in cost.
Which numbers to put into the calculator
Start with the billing period, then collect storage and operations for that same period. In the Cloudflare dashboard, open R2 → your bucket → Metrics. Change the time range before reading the request totals: a day’s traffic and a month’s traffic produce very different estimates. Cloudflare’s metrics guide explains the storage, operations and bandwidth datasets, including how to group requests by actionType.
- Storage: enter GB-month, which measures how much you held over time. A bucket containing 1,000 GB throughout the period contributes 1,000 GB-month. A bucket that reached 1,000 GB only yesterday does not.
- Class A: count uploads, copies, listings and multipart steps. Enter
2000000for two million operations, rather than2. - Class B: count GET and HEAD operations that reached R2. Browser page views and CDN requests are different quantities.
- Egress: enter downloaded decimal GB if you want to see the delivery assumption alongside the other inputs. Changing this field leaves the R2 egress charge at zero.
For several Standard buckets, add their operation counts before calculating the bill. Cloudflare’s analytics query can also omit the bucket filter to return account-level operations. The calculator deducts the allowance once from those totals; it does not assign a free tier to every bucket.
A dashboard storage number needs a time period
Cloudflare calculates storage usage from the average daily peak over a 30-day billing period. In our example, holding a daily peak of 20 GB for 15 days and zero for the other 15 gives 10 GB-month. Uploading the 20 GB for only an hour on each of those days still reaches the same daily peak. Deleting it before midnight does not erase that day’s usage.
Use decimal units consistently. Cloudflare distinguishes GB from GiB: 1 GB is one billion bytes, while 1 GiB is 230 bytes. Consequently, 1 TB is 1,000 GB, whereas 1 TiB is 1,099.511627776 GB. Entering 1,024 means 1,024 decimal GB here; its storage estimate is $15.21, and it does not represent a TiB.
From download traffic to paid requests
A public image library can deliver many files without making the same number of R2 reads. When a cache serves the response without reaching the bucket, R2 receives no GET for that response. Other origin traffic, such as metadata checks and private downloads, still needs to be added.
Consider our calculated example: 1,000 GB-month stored, 1 million Class A operations and 50 million download requests. With one R2 GET per download and no cache hits, Class B costs $14.40 and the monthly total is $29.25. If 90% of those requests are served entirely from cache, only 5 million GETs reach R2. With no other Class B traffic, reads stay inside the allowance and the total falls to $14.85. The bytes delivered have not changed; the R2 operation count has.
The cache-hit percentage in that example is a share of requests. A bandwidth cache-hit percentage measures bytes and cannot be substituted without knowing file sizes. Nor does one million visitors tell you how many object reads occurred: a single page can fetch several images, while a repeat visit may reuse files already cached in the browser.
Alexander Dahl’s Swedish property-map project shows the other side of the calculation. In December 2022 he described serving a 25 MB gzip-compressed JSON dataset through R2 with a GET. That is a large download from one object request. A gallery of many small thumbnails can generate more reads while transferring fewer bytes. The two workloads need different Class B inputs even when their monthly bandwidth is identical.
Uploads and listings can cost more than downloads
At Standard list rates, one million paid Class A operations cost 12.5 times as much as one million paid Class B operations. Listing objects belongs to Class A even though it looks like reading a directory. Deleting an object is free. The official operation lists identify which requests belong in each input.
A multipart upload is also several operations. A successful upload using 20 parts requires a create request, 20 part uploads and a completion request: 22 Class A operations before retries or listings. If one million such uploads occurred in a month, those steps alone would generate 22 million Class A operations, with a $94.50 request charge after the allowance. Counting only the number of finished files would miss most of that bill.
In his media-library design, Batuhan Baş keeps the file inventory in the application database instead of listing R2 every time an admin screen opens. For one known object, HEAD can retrieve metadata without a bucket listing. These choices change request costs without changing how many bytes the files occupy.
Backup software adds another pattern. Ben Johnson’s Litestream VFS explanation describes compacting SQLite changes into LTX files and reading portions of those files from object storage. For this kind of workload, count writes, compaction reads and restores separately. A 100 GB database size does not tell you how many operations the backup tool will issue.
Why the bill jumps just above the free tier
Cloudflare rounds usage up to whole billing units. In this calculator, monthly storage rounds to GB-month and each request class rounds to millions of operations. That makes one Class A operation beyond the free million cost $4.50. You are buying the next billing unit, rather than paying a millionth of its price.
storage = max(ceil(GB-month) − 10, 0) × 0.015
Class A = max(ceil(A / 1,000,000) − 1, 0) × 4.50
Class B = max(ceil(B / 1,000,000) − 10, 0) × 0.36
total = storage + Class A + Class B; direct egress = 0
Aggregate the billing period before rounding. Rounding each object or each day independently would overstate usage. The free quantities are whole billing units, so subtracting the allowance before rounding a positive remainder gives the same result as the formula above.
The examples below are our calculations, using the full Standard allowance. Internally the calculator keeps costs in thousandths of a dollar and rounds the final display to cents. One storage unit costs $0.015 and displays as $0.02; two units cost $0.030 and display as $0.03. Adding rounded component displays can therefore differ from the total calculated from unrounded costs.
Each example keeps its usage and costs together. Class A and Class B are monthly origin-operation counts.
| GB-month | 10 |
|---|---|
| Class A | 1,000,000 |
| Class B | 10,000,000 |
| Storage USD | $0.00 |
| Operations USD | $0.00 |
| Total USD | $0.00 |
| GB-month | 10.5 |
|---|---|
| Class A | 0 |
| Class B | 0 |
| Storage USD | $0.02 |
| Operations USD | $0.00 |
| Total USD | $0.02 |
| GB-month | 11.5 |
|---|---|
| Class A | 0 |
| Class B | 0 |
| Storage USD | $0.03 |
| Operations USD | $0.00 |
| Total USD | $0.03 |
| GB-month | 10 |
|---|---|
| Class A | 1,000,001 |
| Class B | 10,000,001 |
| Storage USD | $0.00 |
| Operations USD | $4.86 |
| Total USD | $4.86 |
| GB-month | 1,000 |
|---|---|
| Class A | 1,000,000 |
| Class B | 10,000,000 |
| Storage USD | $14.85 |
| Operations USD | $0.00 |
| Total USD | $14.85 |
| GB-month | 1,099.511627776 |
|---|---|
| Class A | 1,000,000 |
| Class B | 10,000,000 |
| Storage USD | $16.35 |
| Operations USD | $0.00 |
| Total USD | $16.35 |
| GB-month | 1,000 |
|---|---|
| Class A | 2,000,000 |
| Class B | 50,000,000 |
| Storage USD | $14.85 |
| Operations USD | $18.90 |
| Total USD | $33.75 |
| GB-month | 10,000 |
|---|---|
| Class A | 5,000,000 |
| Class B | 100,000,000 |
| Storage USD | $149.85 |
| Operations USD | $50.40 |
| Total USD | $200.25 |
Adding a bucket to an existing account
Calculate the account before and after the addition. Suppose existing buckets use 9 GB-month and a new one adds 2.5 GB-month, with all requests still included. The account moves from $0 to $0.03. Calculating the new bucket in isolation would incorrectly show $0.
The same method works when the allowance has already been consumed. At 1,000 GB-month and 2 million Class A operations, the account costs $19.35 if Class B stays included. Add 100 GB-month and 100,000 Class A operations and the total becomes $25.35: $16.35 storage plus $9 Class A. The extra bucket adds $6, including a newly opened million-operation billing unit. It does not get a second free million.
For reconciling an estimate, open the account’s usage-based billing breakdown and compare the same period’s quantities. A calculation for one bucket cannot explain a total that also includes other buckets and other Cloudflare products.
Which costs sit outside this Standard estimate
A Worker handling authorization or rewriting a response adds Workers request and CPU charges. R2 egress can remain free while that compute bill rises. Image processing and other connected services likewise need their own line in the application budget.
For public files, a custom domain enables Cloudflare caching and WAF features. Configure caching for the files you actually serve; the domain alone does not make every request a hit. Disable public r2.dev access if it would provide a route around the controls on your custom domain. Successful unwanted reads can still use the Class B meter.
Infrequent Access changes both storage and access charges and has a 30-day minimum storage duration. The Standard free allowance does not apply to it. For a small bucket that fits inside Standard’s free usage, moving to a lower listed storage rate can therefore create a bill. The Standard versus Infrequent Access comparison covers that calculation.
For retained backups, Backblaze B2’s current list price is $6.95 per decimal TB per month, with 10 GB free and ordinary egress included up to three times average monthly storage. That makes backup retention and expected restores useful comparison inputs. For a public download service, the larger question is often how much data leaves the provider; the S3 versus R2 cost comparison follows that trade-off.
This calculator covers the three Standard usage meters and direct egress. Additional buckets above the included 100,000, Basin services, custom contracts and taxes are outside its total. Use the displayed storage and operation breakdown to identify which part of your workload changes the estimate.
Frequently asked questions
How much does 1TB cost on Cloudflare R2?
One decimal TB held all month is 1,000 GB-month. Standard storage costs $14.85 after the full free allowance. One TiB is 1,099.511627776 decimal GB and costs $16.35 after billing-unit rounding. Add request charges to either figure.
Why does 10.5 GB-month display as $0.02?
With the full Standard allowance, 10.5 GB-month rounds to 11 units, leaving one paid unit at $0.015, displayed as $0.02. At 11.5 GB-month, two paid units cost $0.030, displayed as $0.03. The calculator sums component costs before rounding the displayed total.
What does one request above the free allowance cost?
With no other Standard usage, 1,000,001 Class A operations cost $4.50 and 10,000,001 Class B operations cost $0.36. Each class rounds separately to million-operation billing units.
Does downloaded bandwidth change this estimate?
Direct R2 egress costs $0. The GET and HEAD operations reaching R2 can still create Class B charges. A Worker, image processor or another metered service on the delivery path has its own bill.
How do I estimate the cost of adding a bucket?
Calculate the whole account before adding the bucket, then calculate the whole account with its additional usage. Subtract the first result from the second. The free allowance applies once to the account, rather than separately to every bucket.