Cloudflare R2 Pricing Calculator

Free Tier: 10 GB
Free Tier: 1M operations
Free Tier: 10M operations

Cost Breakdown

Understanding Your R2 Costs

Storage Costs

Storage costs $0.015 per GB per month (first 10GB free). Storage costs are calculated based on monthly storage volume.

Class A Operations

Class A operations include PUT, POST, LIST and other modifying API calls. First 1 million operations free, then $4.50 per million operations. Examples include uploading files and creating buckets.

Class B Operations

Class B operations include GET and HEAD requests. First 10 million operations free, then $0.36 per million operations. These are typically read operations like downloading files or checking object metadata.

Free Tier Calculation

Cloudflare R2's free tier includes:

  • First 10GB storage free
  • First 1 million Class A operations free
  • First 10 million Class B operations free

Example: Managing Your Paper Collection

Let's analyze the cost of managing a personal academic paper collection on R2:

Small Collection

  • Storage: approximately 5GB:
    • Approximately 1,000 journal papers (500KB-1MB each)
    • Approximately 100 thesis papers (3MB-20MB each)
  • Monthly downloads (Class B operations): 1 million
  • Monthly uploads (Class A operations): 100,000
  • Monthly cost: $0 (completely within the free tier!)

Medium Collection

  • Storage: approximately 20GB:
    • Approximately 2,500 journal papers (500KB-1MB each)
    • Approximately 300 thesis papers (3MB-20MB each)
  • Monthly downloads (Class B operations): 5 million
  • Monthly uploads (Class A operations): 500,000
  • Monthly cost: $0.15
  • Breakdown:
    • Storage: $0.15 (10GB over the free tier)
    • Operations: $0 (within the free tier)

Large Research Collection

  • Storage: approximately 50GB:
    • Approximately 5,000 journal papers (500KB-1MB each)
    • Approximately 1,000 thesis papers (3MB-20MB each)
  • Monthly downloads (Class B operations): 15 million
  • Monthly uploads (Class A operations): 2 million
  • Monthly cost: $2.28
  • Breakdown:
    • Storage: $0.60 (40GB over the free tier)
    • Class A operations: $4.50 (1 million over the free tier)
    • Class B operations: $1.80 (5 million over the free tier)

File Size Reference

  • Journal papers: typically less than 1MB
    • Most papers: 300KB - 800KB
    • Papers with high-resolution images: up to 1MB
  • Thesis papers/monographs: 3MB - 20MB
    • Standard papers: 3MB - 8MB
    • Papers with images/data: 10MB - 20MB
    • File size, images, and format vary

Cost Comparison: Compared to other cloud storage services, Cloudflare R2 has competitive pricing, especially for small to medium-sized academic paper collections.

  • AWS S3: $0.023 per GB + data transfer fees
  • Google Cloud Storage: $0.020 per GB + data transfer fees
  • Azure Blob Storage: $0.018 per GB + data transfer fees

Cloudflare R2's free tier and lower pricing make it an ideal choice for individuals and small organizations, especially those who don't require large data transfers.

Collection Cost Comparison

Collection Size Storage Details Monthly Operations Monthly Cost Yearly Cost
Small (5GB) - 1,000 journal papers (approximately 1MB each)
- 100 thesis papers (approximately 20MB each)
- Downloads: 1 million
- Uploads: 100,000
$0.00 $0.00
Medium (20GB) - 2,500 journal papers (approximately 1MB each)
- 300 thesis papers (approximately 20MB each)
- Downloads: 5 million
- Uploads: 500,000
$0.15 $1.80
Large (50GB) - 5,000 journal papers (approximately 1MB each)
- 1,000 thesis papers (approximately 20MB each)
- Downloads: 15 million
- Uploads: 2 million
$2.28 $27.36
Extra Large (100GB) - 10,000 journal papers (approximately 1MB each)
- 2,000 thesis papers (approximately 20MB each)
- Downloads: 30 million
- Uploads: 4 million
$5.91 $70.92

Note: Costs include storage and operations, exceeding the free tier. All calculations are based on assumptions about file size and access patterns.