How to Calculate CDN and Egress Costs
Calculate storage and data delivery costs for cloud storage, CDNs and zero-egress storage, using published list prices and a worked example.
Last updated 2026-11-26
Cloud storage is cheap to hold data in, but data delivered to users, called egress, is often billed per gigabyte and can cost more than the storage itself. A media site, a software download service or an app serving large files can see delivery become the largest line on the bill. This guide shows how to estimate both parts.
The formulas
hyperscaler (S3 + CloudFront) = storage GB x $0.023 + delivered GB x $0.085 zero-egress (Cloudflare R2) = storage GB x $0.015 budget CDN (Bunny) = storage GB x $0.01 + delivered GB x $0.01
Delivered GB is the data sent to users in a month. Cache hits and misses are both billed as delivered data on CloudFront, so a higher cache hit rate does not lower this line. Transfer from S3 to CloudFront is free, which is why the origin is not charged separately here.
Where the rates come from
- S3 Standard storage: $0.023 per GB-month for the first 50 TB in US East. Reported consistently by third-party summaries of AWS pricing.
- CloudFront data transfer out: about $0.085 per GB for the first 10 TB in the US and Europe. Third-party trackers report this figure, but the official AWS page did not load during our check, so confirm it before you rely on it.
- Cloudflare R2: $0.015 per GB-month for storage, with no charge for data leaving the bucket to the internet. Operation charges are billed separately.
- Bunny: $0.01 per GB for storage in one region and $0.01 per GB for CDN delivery in Europe and North America. Its pricing pages list several storage models, so check the one you would use.
A worked example
A media site stores 1,500 GB and delivers 8,000 GB to users each month.
- Hyperscaler storage: 1,500 × $0.023 = $34.50
- Hyperscaler delivery: 8,000 × $0.085 = $680.00
- Hyperscaler total: $714.50
- Zero-egress storage: 1,500 × $0.015 = $22.50
- Budget CDN: 1,500 × $0.01 + 8,000 × $0.01 = $95.00
- Saving against the hyperscaler: $714.50 − $22.50 = $692 a month, or about $8,304 a year
Delivery drives almost all of the hyperscaler bill in this example. If your traffic is small, the storage price matters more, and the choice of provider matters less.
Common mistakes
- Comparing storage prices only. The storage rate is the smaller part of most media bills.
- Mixing up GB and GiB. Providers bill in decimal gigabytes for most of these services. Check the unit on each pricing page.
- Assuming a cache lowers the CloudFront bill. It lowers origin load and request charges, but delivered bytes are still billed.
- Ignoring request and retrieval charges. Very busy sites and archive tiers add fees the calculator does not model.
What to do next
Measure last month's delivered gigabytes from your provider's usage report, not from your site's page counts. Run the calculator with those figures, then check the provider's current price sheet for your region before you migrate anything.