Cloudflare R2 vs. AWS S3 + CloudFront CDN Cost Calculator: Zero-Egress vs. Class A/B Operations & Cache-Hit Ratio Break-Even

AWS S3 waives data transfer fees to CloudFront, but still bills $85/TB ($0.085/GB) at the CDN edge plus $0.0100 per 10,000 HTTPS requests ($1.00/Million) and S3 origin GET/PUT fees on cache misses. Cloudflare R2 eliminates egress fees entirely ($0.00/GB) and stores data at $15/TB/mo vs. S3 Standard’s $23/TB/mo—yet R2’s $4.50/Million Class A mutating operations and $0.36/Million Class B reads can dominate bills for millions-of-tiny-files telemetry workloads. Audit your exact crossover point below.

1. Storage Volume, Outbound Egress & CDN Cache-Hit Inputs

AWS S3 Standard: $23.00/TB/mo ($0.023/GB) vs. Cloudflare R2: $15.00/TB/mo ($0.015/GB, first 10 GB free).
CloudFront Edge: $85/TB ($0.085/GB after 1 TB/mo free tier). Cloudflare R2 + CDN: $0.00/GB egress.
Cache hits serve from CloudFront/Cloudflare edge; only cache misses (15%) trigger origin Class B GET reads on S3 or R2.
R2 Class A: $4.50/Million (1M free/mo). AWS S3 PUT/COPY/POST/LIST: $5.00/Million ($0.005 per 1,000).
CloudFront charges $1.00/M edge HTTPS requests (10M free) + S3 charges $0.40/M on origin cache misses. R2 charges $0.36/M on origin reads (10M free).
Compare R2 against either S3 + CloudFront (best practice) or direct S3 bucket egress.

2. Live Cloud Storage & CDN Cost Breakdown

DEPLOY ON CLOUDFLARE R2

Cloudflare R2 Saves $1,769/mo ($21,228/yr)

Zero egress fees eliminate $1,615/mo in AWS CloudFront bandwidth charges while cutting base storage cost by 34.8%.

Monthly AWS S3 + CloudFront Bill
$2,043.70
Storage: $345 | Egress: $1,615 | Ops: $84
Monthly Cloudflare R2 Bill
$256.50
Storage: $225 | Egress: $0 | Ops: $32
Egress Fee Eliminated
$1,615.00/mo
$19,380/yr saved at 20 TB/mo outbound
Class A/B Request Cost Share
12.3% of R2 Bill
R2 Ops: $31.50 vs. AWS Ops: $83.70
What Would Change the Answer? (Class A/B vs. Egress Crossover): Because Cloudflare R2 storage ($15/TB) and Class A writes ($4.50/M vs. S3 $5.00/M) are both cheaper than AWS S3 Standard, R2 wins at every positive egress level. However, if you batch-upload millions of tiny <4 KB IoT files without aggregating them, Class A PUT operations ($4.50/M) can exceed your raw storage bill once writes surpass 3.33 Million PUTs per stored TB.
Multi-Cloud Object Storage Comparison: Need to compare AWS S3 and Cloudflare R2 against Backblaze B2 ($6/TB + 3x Free Egress) and Wasabi ($6.99/TB with 90-Day Minimum Retention)? Run our AWS S3 vs. Backblaze B2 vs. Cloudflare R2 vs. Wasabi Egress Calculator →
Sponsored Infrastructure & Cloud Cost Resource (280px Zero-CLS Reserved Slot)

3. Workload Comparison: Video/Media Delivery vs. AI Datasets vs. High-Frequency Small-File Writes

Object storage bills are governed by three orthogonal pricing vectors: base capacity ($/TB-month), outbound egress ($/GB transferred to the internet), and API request density (Class A mutating PUT/LIST vs. Class B read GET/HEAD). The table below benchmarks how AWS S3 Standard (Direct), AWS S3 + CloudFront CDN, and Cloudflare R2 behave across three real-world production profiles.

Workload Profile & Traffic MixAWS S3 Standard (Direct Bucket Egress)AWS S3 Standard + CloudFront CDNCloudflare R2 + Cloudflare CDN EdgeEngineering Verdict & Optimization
1. Video / Media Delivery
(25 TB Stored, 80 TB/mo Egress, 90% Cache-Hit, 2M PUTs, 20M GETs)
$7,793/mo
($575 storage + $7,200 egress @ $90/TB + $18 ops)
$7,311/mo
($575 storage + $6,715 CF egress after 1TB free + $21 edge/origin ops)
$379.50/mo
($375 storage @ $15/TB + $0 egress + $4.50 Class A/B ops)
Cloudflare R2 Saves 94.8% ($83,178/yr): High-egress streaming and large binary distribution are crushed by CloudFront’s $85/TB bandwidth tax.
2. AI Dataset / SaaS Image Hosting
(15 TB Stored, 20 TB/mo Egress, 85% Cache-Hit, 8M PUTs, 45M GETs)
$2,203/mo
($345 storage + $1,800 egress + $58 S3 PUT/GET ops)
$2,038/mo
($345 storage + $1,615 CF egress + $35 CF HTTPS reqs + $43 S3 ops)
$256.50/mo
($225 storage + $0 egress + $31.50 Class A + $0 Class B within 10M free origin misses)
Cloudflare R2 Saves 87.4% ($21,378/yr): Even with 85% CDN cache offload, CloudFront edge bandwidth ($85/TB) + $1.00/M edge request fees dwarf storage costs.
3. High-Frequency Telemetry / Tiny Files
(2 TB Stored, 0.2 TB/mo Egress, 0% Cache, 180M Class A PUTs, 50M GETs)
$984/mo
($46 storage + $9 egress after 100GB free + $900 PUTs + $20 GETs)
$986/mo
($46 storage + $0 CF egress under 1TB free + $900 S3 PUTs + $40 CF/S3 GETs)
$849.90/mo
($30 storage + $0 egress + $805.50 Class A PUTs + $14.40 Class B GETs)
Class A Ops Dominate Both (94.7% of R2 Bill): R2 still edges out S3 ($4.50/M vs $5.00/M PUTs), but batching writes into 64MB Parquet/JSONL chunks via queues cuts both bills by >95%.

4. Engineering Methodology: Class A/B Request Accounting & Cache-Hit Offload Math

To prevent artificial vendor lock-in comparisons, this calculator models the complete request and transfer path between origin object storage and the CDN edge:

  • Origin Cache-Miss Request Filtering: When an asset is fronted by CloudFront or Cloudflare CDN at a cache-hit ratio $h \in [0, 0.99]$, only $(1 – h) \times N_{\text{GET}}$ requests reach the origin bucket as billable Class B `GET`/`HEAD` operations. However, AWS CloudFront still bills $0.0100 per 10,000 HTTPS requests ($1.00 per Million) at the CDN edge (after the 10M/month free tier), whereas standard Cloudflare CDN edge cache hits on R2 custom domains do not incur per-10k edge bandwidth request surcharges.
  • S3-to-CloudFront Zero Transfer vs. CloudFront-to-Internet Egress: AWS waives data transfer out from an S3 origin to CloudFront, meaning you do not pay S3’s $0.09/GB fee when using CloudFront. Instead, you pay CloudFront’s regional internet egress rate (modeled at the US/EU baseline of $0.085/GB or $85/TB after the 1 TB/month perpetual free tier).
  • The Tiny-File Class A Write Trap: Both S3 ($5.00/Million `PUT`/`POST`/`LIST`) and Cloudflare R2 ($4.50/Million Class A operations after 1M free) penalize architectures that write millions of tiny 2 KB JSON telemetry payloads directly to object storage. If 1 TB of data is written as 500 million 2 KB objects, the storage costs $15/mo on R2, but the one-time Class A ingestion costs $2,245.50 on R2 ($2,500 on S3). Aggregating events via Cloudflare Queues/Pipelines or Kinesis Firehose into 50 MB Parquet files reduces Class A operations by 25,000x.
Editorial & Cloud Infrastructure Oversight: Object storage egress models, CDN cache-hit request equations, and multi-cloud TCO architectures on ManyKeep.com are engineered and reviewed by the ManyKeep Engineering & Editorial Team. Read our Engineering & Financial Disclaimer.
Embed This Calculator on Your Engineering Blog or FinOps Wiki (1-Click Iframe Snippet): <iframe src="https://manykeep.com/cloud/cloudflare-r2-vs-aws-s3-cloudfront-calculator/?embed=1" width="100%" height="760" style="border:1px solid #cbd5e1;border-radius:12px;" loading="lazy" title="Cloudflare R2 vs. AWS S3 + CloudFront Cost Calculator"></iframe>