R2 origin costs for a video library
An on-demand video service stores 24 TB and delivers 140 TB each month. A warm CDN serves 95% of bytes from cache and charges $0.008 per GB delivered.
Jump to resultsInputs
Results
Runs in your browser- Baseline TCO
- $2,324.80/ month
- R2 Standard TCO
- $1,500.52/ month
- Candidate savings
- $824.28/ month
Both totals include the same edge delivery charge.
| Baseline annual TCO | $27,897.60 / year |
|---|---|
| Candidate annual TCO | $18,006.24 / year |
| CDN-to-viewer delivery | 140 TB |
| Origin-to-CDN transfer | 7 TB |
| Candidate billable transfer | 0 TB |
| Class B origin requests | 7 million/month |
| Baseline origin transfer charge | $630.00 / month |
| Candidate origin transfer charge | $0.00 / month |
| Shared CDN delivery charge | $1,120.00 / month |
What to try
R2 removes origin bandwidth expense in this scenario. The candidate still spends $1,120 delivering cached and uncached traffic from the edge.
How the estimate works
Origin traffic = edge delivery × (1 − cache hit rate)
The edge delivers all viewer traffic. Origin transfer and Class B origin requests use the same cache-miss share. Class A requests are already measured at origin. A volume-weighted hit rate and a request-weighted hit rate can differ in production.
Prices are modeled linearly in decimal GB and millions of requests. The R2 Standard preset uses $0.015 per GB-month, $4.50 and $0.36 per million Class A and B calls, and zero origin egress. The B2 pay-as-you-go preset uses $0.00695 per GB-month, free Class A and B calls, and $0.01/GB after 3× stored data.
The estimate includes one editable CDN rate, shared by both options. Provider free tiers other than the B2 transfer allowance, rounding, retrieval, partner waivers, discounts, and taxes are outside this estimate. Enter a zero candidate egress rate to model an eligible partner waiver.
Frequently asked questions
Should the video hit rate be weighted by objects or bytes?
Use a byte-weighted hit rate for egress. A missed long segment can cost much more than a missed thumbnail, even if each is one request.
How can I estimate origin traffic after a video cache purge?
Model the cold portion separately with a lower cache hit rate. Aggregate forecasts for cache-warm and cache-cold intervals in your billing sheet.