Cloud Object Storage & Egress Cost Calculator (AWS S3 vs. R2 / B2)
At $0.09/GB internet egress, serving 20 TB of media or dataset downloads per month from AWS S3 costs ~$1,800 in bandwidth fees alone—whereas zero-egress object stores like Cloudflare R2 eliminate egress entirely and charge only for storage ($0.015/GB) and requests.
Interactive Parameters & Live Verdict
Rule Diagnostics & Recommendations
Engineering Formula & Verification Notes
Models standard us-east-1 S3 tiers ($0.023/GB storage, 100 GB free egress then $0.09/GB, $0.40/M GET, $5/M PUT) against Cloudflare R2 ($0.015/GB after 10 GB free, $0 egress, $0.36/M Class B after 10M free, $4.50/M Class A after 1M free).
Worked Example: 5 TB Storage + 15 TB Monthly Downloads
Serving 15 TB/month of AI weights, datasets, or user media from S3 incurs $1,341 in egress + $115 storage + $20 requests = ~$1,476/month. On R2, the exact same workload costs ~$85/month—saving ~$1,391 every month.
- Always pair object storage with aggressive Cache-Control headers so repeat hits serve from edge cache.
- Watch Class A (PUT/LIST) call frequency in automated backup scripts—batch small files into tar/parquet archives.
Common Cloud Bandwidth Cost Mistakes
Unexpected viral downloads or unthrottled crawlers can generate surprise $1,000+ egress invoices overnight.
- Leaving public S3 buckets exposed directly without a CDN or rate limits.
- Running frequent `aws s3 ls` / LIST loops over millions of tiny objects.
Object Storage Rate Comparison (Standard Tiers)
| Provider | Storage ($/TB) | Internet Egress ($/TB) |
|---|---|---|
| AWS S3 Standard | $23.00 | $90.00 (after 100 GB) |
| Backblaze B2 | $6.00 | $0 (up to 3× storage or CF partner) |
| Cloudflare R2 | $15.00 | $0.00 (Unlimited) |
Frequently Asked Technical Questions
Does Cloudflare R2 charge for bandwidth?
No—R2 charges $0 for outbound internet egress, billing only for stored GB-months and Class A/B operations.
Are AWS S3 APIs compatible with R2 and B2?
Yes, both expose S3-compatible endpoints for standard PutObject, GetObject, and multipart uploads.
Can CloudFront reduce AWS S3 egress bills?
Yes—CloudFront Origin Fetch from S3 is free, and CloudFront includes 1 TB/month free tier, though high-TB traffic still incurs CloudFront per-GB rates.