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.

Verified catalog
Pro engineering assumptions
Monthly Bill$483/moAll 6 layers tracked
Viral Spike RiskUncapped10× month ≈ $4,790 · usage-based spend
Flat-Rate AlternativeAbout evenWithin $1/mo of Flat-Rate Coolify + VPS
Compare flat-rate hosting →
Monthly cost from 0 to 100k monthly active users: your stack vs flat-rate alternative $0$5.5k0 users50k100k

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/moOpen-source CLI$0/mo
2 · Compute$5/moFlat VPS + Coolify$4.59/mo
3 · Database$0/moPostgres on VPS$0/mo
4 · Auth$0/moBetter Auth (OSS)$0/mo
5 · Storage & CDN$1.35/moCloudflare R2$1.35/mo
6 · AI runtime$477/moOpenRouter hybrid$477/mo
Ops time (Pro)4 h/mo on self-hosted VPS$0/moSwap: $0/mo
Total (tracked)$483/moSwap: $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