AWS S3 vs Cloudflare R2: Viral Egress Cost
Compare AWS S3 $0.09/GB egress against Cloudflare R2 ($0 egress) and Bunny CDN ($0.01/GB) from 10 GB to 20 TB/month.
Stack Cost Summary: At 10 TB/month of media or dataset downloads, AWS S3 internet egress costs ~$900/mo, Bunny CDN costs ~$100/mo, and Cloudflare R2 charges $0 for egress.
Estimate my stack cost
Verified catalog rates as of 2026-12-01 00:01 UTC.
Pro engineering assumptions
Purple line: your stack. Green line: flat-rate swap. Dashed line: your current users.
Billing cliff alerts
Amber cards show a price jump your current inputs have already crossed.
Watch · D1 row-scan explosion
50M rows read/mo, under 25B included. Unindexed queries multiply this.
Your 6-layer stack
Change any layer to see the bill move. The flat-rate swap uses the same sliders and assumes one VPS; capacity limits and migration effort are not modelled.
| Layer | Your option | Monthly | Flat-rate swap |
|---|---|---|---|
| 1 · Build | $0/mo | Open-source CLI$0/mo | |
| 2 · Compute | $5/mo | Flat VPS + Coolify$4.59/mo | |
| 3 · Database | $0/mo | Postgres on VPS$0/mo | |
| 4 · Auth | $0/mo | Better Auth (OSS)$0/mo | |
| 5 · Storage & CDN | $1.35/mo | Cloudflare R2$1.35/mo | |
| 6 · AI runtime | $477/mo | OpenRouter hybrid$477/mo | |
| Ops time (Pro) | 4 h/mo on self-hosted VPS | $0/mo | Swap: $0/mo |
| Total (tracked) | $483/mo | Swap: $483/mo |
Cost at 0 / 1k / 10k / 50k / 100k users
Dollars per month. Traffic and AI usage scale in proportion to your current sliders. Small figure under the swap cost: how much more (+) or less (−) your stack costs.
| Users | Your stack | Flat swap |
|---|---|---|
| 0 users | $5 | $4.59+$0.41 |
| 1,000 | $52.70 | $52.29+$0.41 |
| 10,000 | $483 | $483+$0.41 |
| 50,000 | $2,397 | $2,397+$0.41 |
| 100,000 | $4,790 | $4,789+$0.41 |
Why object storage egress is the #1 viral launch surprise
Object storage pricing looks tiny on the storage line ($0.015–$0.023/GB-month), so builders rarely model bandwidth until a video, dataset, or generated-image gallery goes viral. On AWS S3, internet data transfer out bills at roughly $0.09/GB after the first 100 GB. Serving 5 TB of assets costs ~$450/mo; serving 20 TB costs ~$1,800/mo.
Cloudflare R2 prices storage at $0.015/GB-month (with 10 GB free) and charges $0.00/GB for egress—making bandwidth spikes cost-neutral. If you need multi-region edge caching in front of an existing origin or VPS, Bunny CDN provides standard volume delivery at ~$0.01/GB, a 9× reduction over raw S3 egress.
Quick egress rule of thumb
- Under 100 GB/mo: S3, R2, and Bunny are all within a few dollars; pick whichever matches your existing IAM/SDK setup.
- 500 GB–20 TB/mo: switch media buckets to R2 ($0 egress) or Bunny CDN ($0.01/GB) before running paid ads or launch campaigns.
- Explore more: see Zero-Egress Object Storage Deals and Storage Egress Calculator.