Cloudflare R2 Pricing Calculator






Cloudflare R2 Pricing Calculator


Cloudflare R2 Pricing Calculator


Enter the total amount of data you plan to store, measured in Gigabytes (GB).


Class A operations tend to modify state (e.g., writes, lists). Enter the monthly count in millions.


Class B operations tend to read existing state (e.g., reads). Enter the monthly count in millions.



Estimated Total Monthly Cost

$0.00

Storage Cost

$0.00

Class A Ops Cost

$0.00

Class B Ops Cost

$0.00

Cost Breakdown Chart
Visual breakdown of monthly cost components.

What is a Cloudflare R2 Pricing Calculator?

A cloudflare r2 pricing calculator is a tool designed to help developers, businesses, and individuals estimate their monthly costs for using Cloudflare’s R2 object storage service. Unlike traditional cloud storage providers that charge often-unpredictable “egress fees” for data transfer out, R2 famously eliminates these charges. However, costs are still incurred based on the amount of data stored and the number and type of operations performed. This calculator simplifies the process of projecting those expenses.

This tool is for anyone considering a move to R2 or looking to understand their potential savings compared to other services like Amazon S3 or Google Cloud Storage. By inputting your expected usage for storage and operations, you can get a clear, transparent cost estimate.

Cloudflare R2 Formula and Explanation

The pricing for Cloudflare R2 (Standard Storage) is based on three main components. The total cost is the sum of the costs for each component after accounting for the monthly free tier.

Total Monthly Cost = (Billable Storage Cost) + (Billable Class A Operations Cost) + (Billable Class B Operations Cost)

The free tier allowances are subtracted from your usage before costs are calculated. There are no egress fees, meaning data transfer out to the internet is free.

Pricing Variables Table

R2 Standard Storage Pricing and Free Tiers
Variable Meaning Unit / Rate Free Monthly Tier
Storage Data stored in R2 buckets. $0.015 / GB-month 10 GB
Class A Operations Operations that modify state, like writes, uploads, and lists. $4.50 / million requests 1 million
Class B Operations Operations that read state, like reads and downloads. $0.36 / million requests 10 million

Practical Examples

Example 1: Small Media Website

A small blog stores its images and video assets in R2. It has a modest amount of data and a decent number of reads from visitors.

  • Inputs:
    • Total Storage: 150 GB
    • Monthly Class A Operations: 0.5 million (500,000 writes/uploads)
    • Monthly Class B Operations: 25 million (reads from visitors)
  • Results:
    • Storage Cost: (150 GB – 10 GB) * $0.015 = $2.10
    • Class A Ops Cost: (0.5M – 1M) -> Billable is 0 = $0.00
    • Class B Ops Cost: (25M – 10M) * $0.36 = $5.40
    • Total Estimated Monthly Cost: $7.50

Example 2: Data-Intensive Application Backend

An application backend that processes and stores large volumes of user-generated content and logs.

  • Inputs:
    • Total Storage: 2,000 GB (2 TB)
    • Monthly Class A Operations: 15 million
    • Monthly Class B Operations: 100 million
  • Results:
    • Storage Cost: (2000 GB – 10 GB) * $0.015 = $29.85
    • Class A Ops Cost: (15M – 1M) * $4.50 = $63.00
    • Class B Ops Cost: (100M – 10M) * $0.36 = $32.40
    • Total Estimated Monthly Cost: $125.25

How to Use This Cloudflare R2 Pricing Calculator

Using this calculator is a straightforward process:

  1. Enter Total Storage: Input the total amount of data you expect to store in R2. The unit is Gigabytes (GB). For reference, 1 TB = 1,000 GB.
  2. Enter Class A Operations: Estimate the number of monthly write operations (like `PutObject`, `ListBuckets`) your application will perform. Enter this value in millions.
  3. Enter Class B Operations: Estimate the number of monthly read operations (like `GetObject`) your application will perform. Enter this value in millions.
  4. Calculate: Click the “Calculate Cost” button. The tool will instantly compute your estimated storage cost, operations costs, and the total monthly bill, all displayed in the results section.
  5. Interpret Results: The primary result shows your total estimated cost. The intermediate values break down where that cost comes from, helping you understand your usage patterns. The chart provides a quick visual comparison of the cost components.

Key Factors That Affect Cloudflare R2 Pricing

  • Storage Volume: The most direct factor. The more data you store (measured in GB-months), the higher your storage bill will be.
  • Operation Types (Class A vs. B): The mix of your operations is critical. Write-heavy applications (high Class A usage) will incur higher costs than read-heavy applications (high Class B usage) for the same number of operations.
  • Data Access Patterns: Applications with millions of small read/write operations can have different cost profiles than those with fewer, larger operations, even with the same total data stored.
  • Utilizing the Free Tier: Small projects or applications with usage below 10 GB of storage, 1 million Class A ops, and 10 million Class B ops per month can operate on R2 completely free of charge.
  • No Egress Fees: This is a massive factor for cost savings, especially for applications that serve a lot of data to users. On other platforms, egress can be the largest and most unpredictable part of the bill. With R2, it’s zero.
  • Data Lifecycle Management: While this calculator focuses on Standard Storage, implementing policies to move older, less-accessed data to Infrequent Access storage (which has different pricing) can further optimize costs, though it introduces a data retrieval fee.

Frequently Asked Questions (FAQ)

What exactly is a “GB-month”?

A GB-month is the unit of measurement for storage billing. It’s calculated based on the amount of data stored over time. For example, storing 10 GB for a full 30-day month is 10 GB-months. Storing 20 GB for only 15 days is also 10 GB-months (20 GB * 15/30 days).

Are there any hidden costs with Cloudflare R2?

Cloudflare R2 is known for its transparent pricing with no egress fees, which eliminates the most common “hidden cost” in cloud storage. The costs are based on storage and operations as detailed in this calculator. The main thing to be aware of is the separate pricing for the Infrequent Access storage class, which includes data retrieval fees.

How does the free tier work?

Every month, your account gets a free allowance of 10 GB-months of storage, 1 million Class A operations, and 10 million Class B operations. You are only billed for usage that exceeds this allowance in any given month. The free tier resets monthly.

What counts as a Class A operation?

Class A operations are typically those that modify or list objects. This includes actions like `PutObject` (uploading a file), `CopyObject`, `ListMultipartUploads`, and `ListBuckets`.

What counts as a Class B operation?

Class B operations are generally read-only actions. The most common one is `GetObject` (downloading or reading a file). `HeadObject` (retrieving metadata about a file) is also a Class B operation.

Is this cloudflare r2 pricing calculator always accurate?

This calculator uses the publicly available pricing for the R2 Standard Storage class. The prices are accurate as of early 2026. However, Cloudflare could update its pricing. Always check the official Cloudflare R2 pricing documentation for the most current information.

Does data transfer between Cloudflare services (like Workers and R2) cost money?

No, data transfer between Cloudflare R2 and Cloudflare Workers is free. This tight integration allows you to build powerful, cost-effective applications on Cloudflare’s edge network without internal bandwidth costs.

Can I use this calculator for Infrequent Access storage?

No, this calculator is specifically designed for the R2 Standard Storage class. The Infrequent Access class has lower storage costs but higher operation costs and includes a per-GB data retrieval fee, which is not factored into this tool.

© 2026 Your Website. All rights reserved. This calculator is for estimation purposes only. Please consult official Cloudflare documentation for exact pricing.



Leave a Reply

Your email address will not be published. Required fields are marked *