Cloudflare R2 Pricing Calculator






Cloudflare R2 Pricing Calculator: Estimate Your Costs


Cloudflare R2 Pricing Calculator

An interactive tool to estimate your monthly costs for Cloudflare’s R2 object storage, helping you budget effectively by eliminating surprise egress fees.

Calculate Your R2 Storage Costs


Enter the total amount of data you plan to store in GB.
Please enter a valid, non-negative number.


Enter millions of write/list operations (e.g., PutObject, ListBuckets).
Please enter a valid, non-negative number.


Enter millions of read operations (e.g., GetObject).
Please enter a valid, non-negative number.



Estimated Monthly Cost
$0.00

Storage Cost
$0.00

Class A Ops Cost
$0.00

Class B Ops Cost
$0.00

Formula Used: Total Cost = (Billable Storage × $0.015) + (Billable Class A Ops × $4.50) + (Billable Class B Ops × $0.36). This includes R2’s generous free tier for storage and operations. Data egress is always free.

Metric Total Usage Free Tier Allowance Billable Amount Cost
Storage 500 GB 10 GB 490 GB $7.35
Class A Operations 5M 1M 4M $18.00
Class B Operations 50M 10M 40M $14.40
Total Estimated Monthly Cost $39.75

A detailed breakdown of monthly costs from the cloudflare r2 pricing calculator.

Dynamic chart showing the proportion of total costs for Storage, Class A, and Class B operations, as calculated by the cloudflare r2 pricing calculator.

What is a Cloudflare R2 Pricing Calculator?

A cloudflare r2 pricing calculator is a specialized tool designed to estimate the monthly cost of using Cloudflare’s R2 object storage service. Unlike other cloud storage providers that have complex pricing tiers and expensive data transfer (egress) fees, R2 offers a simplified model with zero egress fees. This makes it a highly attractive option for developers and businesses looking to store large amounts of unstructured data without unpredictable costs. Our calculator helps you translate your expected usage into a clear financial estimate.

Anyone who stores digital assets—from website images and videos to large datasets for AI training, application logs, or backups—should consider using a cloudflare r2 pricing calculator. It is particularly valuable for those migrating from other services like Amazon S3, as it highlights the potential savings from eliminating egress fees. A common misconception is that because R2 has “zero egress fees,” it’s entirely free. While data transfer is free, you are still charged for storage volume and the operations performed (reading and writing data), which this calculator clarifies.

Cloudflare R2 Formula and Mathematical Explanation

The pricing for Cloudflare R2 is calculated by summing the costs of three components after subtracting the generous free tier allowances for each. The cloudflare r2 pricing calculator automates this process. The formula is as follows:

  1. Storage Cost Calculation:
    Billable Storage = Max(0, Total Storage GB – 10 GB)
    Storage Cost = Billable Storage × $0.015
  2. Class A Operations Cost Calculation:
    Billable Class A Ops = Max(0, Total Millions of Ops – 1 Million)
    Class A Cost = Billable Class A Ops × $4.50
  3. Class B Operations Cost Calculation:
    Billable Class B Ops = Max(0, Total Millions of Ops – 10 Million)
    Class B Cost = Billable Class B Ops × $0.36
  4. Total Monthly Cost:
    Total Cost = Storage Cost + Class A Cost + Class B Cost

This straightforward model is a key advantage, and using a cloudflare r2 pricing calculator ensures you account for all variables correctly. For more details on what constitutes different operation classes, see our guide on understanding object storage.

Variables in the R2 Pricing Formula
Variable Meaning Unit Typical Range
Total Storage Total data stored at rest. GB-months 1 – 1,000,000+
Class A Operations State-mutating operations like writes, lists, copies. Millions of Ops/Month 0.1 – 100+
Class B Operations Data-reading operations like gets and heads. Millions of Ops/Month 1 – 10,000+
Egress Data transferred out to the internet. GB/Month N/A (Always free)

Practical Examples (Real-World Use Cases)

Example 1: A Small Business Website

A small e-commerce site stores its product images and digital downloads on R2. Their usage is modest.

  • Inputs:
    • Total Storage: 150 GB
    • Class A Operations: 0.5 million (500,000 writes/updates per month)
    • Class B Operations: 30 million (image and file downloads)
  • Outputs (from the cloudflare r2 pricing calculator):
    • Storage Cost: (150 GB – 10 GB) * $0.015 = $2.10
    • Class A Cost: (0.5M – 1M) -> $0 (within free tier)
    • Class B Cost: (30M – 10M) * $0.36 = $7.20
    • Total Estimated Monthly Cost: $9.30
  • Financial Interpretation: For less than $10 a month, the business gets reliable, fast storage with no surprise egress bills, a significant saving compared to alternatives. To compare this with other providers, check out our S3 pricing calculator.

    Example 2: A Data Analytics Startup

    A startup uses R2 to store large datasets for their machine learning models. They have heavy read and write operations.

    • Inputs:
      • Total Storage: 10,000 GB (10 TB)
      • Class A Operations: 20 million (frequent data ingestion and processing)
      • Class B Operations: 100 million (data access by analytics platforms)
    • Outputs (from the cloudflare r2 pricing calculator):
      • Storage Cost: (10,000 GB – 10 GB) * $0.015 = $149.85
      • Class A Cost: (20M – 1M) * $4.50 = $85.50
      • Class B Cost: (100M – 10M) * $0.36 = $32.40
      • Total Estimated Monthly Cost: $267.75
    • Financial Interpretation: Even with heavy usage, the cost is predictable. If this startup were using a traditional cloud provider, the egress fees for reading 100 million objects could have added hundreds or even thousands of dollars to their bill. This demonstrates the power of the cloudflare r2 pricing calculator in forecasting savings.

How to Use This Cloudflare R2 Pricing Calculator

Using our cloudflare r2 pricing calculator is simple and intuitive. Follow these steps to get an accurate cost estimate:

  1. Enter Total Storage: Input the total amount of data you expect to store in gigabytes (GB).
  2. Enter Class A Operations: Provide your estimated monthly number of write operations (like `PutObject`, `ListBuckets`, `CopyObject`) in millions. If you expect 500,000 operations, enter 0.5.
  3. Enter Class B Operations: Input your estimated monthly number of read operations (like `GetObject`) in millions. If you expect 25,000,000 reads, enter 25.
  4. Review the Results: The calculator instantly updates your total estimated monthly cost, along with a breakdown of expenses for storage, Class A ops, and Class B ops. The table and chart visualize this data for easier analysis.
  5. Reset or Copy: Use the “Reset” button to return to default values or “Copy Results” to save a summary of your inputs and estimated costs to your clipboard.

This tool helps in decision-making by providing clear financial data, allowing you to compare R2 against your current provider or other options like Wasabi. For more guidance, see our article on choosing a cloud provider.

Key Factors That Affect Cloudflare R2 Results

The final monthly cost shown by the cloudflare r2 pricing calculator is influenced by several key factors related to your usage patterns.

  1. Total Storage Volume: This is the most direct cost factor. The more data you store beyond the 10 GB free tier, the higher your storage cost.
  2. Frequency of Data Writes (Class A): Applications that frequently upload, copy, or list objects will have higher Class A operation costs. This includes scenarios like frequent log uploads or creating many new objects.
  3. Frequency of Data Reads (Class B): The number of times your stored objects are accessed or downloaded directly impacts your Class B costs. This is often the highest operational cost for public-facing content like images or downloads. Understanding your r2 storage cost is crucial.
  4. Object Size: While not a direct pricing metric, average object size indirectly affects costs. Storing millions of tiny files can drive up operation counts relative to storage volume, while storing a few very large files does the opposite.
  5. Data Lifecycle Policies: Although R2 doesn’t have complex tiering like S3’s Glacier, implementing your own lifecycle rules (e.g., deleting old logs via an API) can reduce storage totals over time, lowering costs.
  6. Public vs. Private Access: Publicly accessible files served directly from R2 will incur Class B operations for every download. However, putting Cloudflare’s CDN in front of R2 can cache content at the edge, significantly reducing the number of Class B operations hitting your bucket. This is a powerful strategy for lowering your `r2 pricing estimator` costs.

Frequently Asked Questions (FAQ)

1. What are Class A and Class B operations?

Class A operations are those that modify state, such as writing data (Put), listing the contents of a bucket (List), or copying an object. Class B operations are those that read data, primarily getting an object (Get) or checking its existence (Head). The cloudflare r2 pricing calculator prices them differently as Class A is more expensive.

2. Are there really no egress fees?

Correct. Cloudflare R2 has zero egress fees, meaning you are not charged for data transfer out of R2 to the internet. This is a major cost advantage over competitors like Amazon S3 and Google Cloud Storage. Your primary costs are storage and operations.

3. How does the free tier work?

Each month, you get 10 GB of storage, 1 million Class A operations, and 10 million Class B operations for free. The cloudflare r2 pricing calculator automatically subtracts this allowance from your total usage before calculating the billable amount.

4. Can I use this calculator for Cloudflare’s Infrequent Access tier?

This calculator is specifically for the R2 Standard Storage class. The Infrequent Access tier has different pricing for storage and operations, plus a data retrieval fee, which is not factored into this tool.

5. How does R2 compare to Amazon S3?

R2 is S3-compatible, meaning you can use many of the same tools. The primary difference is pricing. S3 charges significant egress fees, which R2 eliminates. To see the cost difference for your workload, you can use our s3 vs r2 cost comparison tool.

6. Is the output of this cloudflare r2 pricing calculator guaranteed?

No. This is an estimation tool based on Cloudflare’s publicly available pricing as of our last update. Your actual bill may vary based on exact usage. It should be used for budgeting and comparison purposes.

7. What if my usage is very low? Will I be charged?

If your monthly usage stays within the free tier (under 10 GB, 1M Class A ops, and 10M Class B ops), your R2 bill will be $0. This makes it ideal for small projects and developers who want to explore `cheap object storage`.

8. How can I migrate my data to R2?

Cloudflare offers tools like Super Slurper to help migrate data from other S3-compatible services. The migration process itself may incur Class A operation charges on your R2 bucket. Our guide on R2 data migration has more information.

© 2026 Your Company. All rights reserved. This tool is for estimation purposes only.



Leave a Comment