Developer

CDN Cost Calculator

Compare CDN pricing across providers like Cloudflare, AWS CloudFront, Fastly, and BunnyCDN. Free — no sign-up needed.

Did this calculator help you?

What is CDN Cost Calculator?

A CDN (Content Delivery Network) cost calculator estimates your monthly content delivery expenses by modeling the relationship between data transfer volume, per-terabyte pricing, HTTP request fees, and origin server costs. It answers the fundamental question every infrastructure team faces: how much will it cost to deliver my content to users around the world? CDN pricing follows a relatively simple formula — monthly cost equals data transfer multiplied by your per-TB rate, plus request fees — but the real value lies in understanding how this compares to serving everything from your origin. Without a CDN, every byte of content travels from your origin server to the end user, incurring full bandwidth charges, compute overhead, and origin egress fees. With a CDN, 70–95% of that traffic is served from edge servers closer to users at lower per-GB rates, reducing both cost and latency. This calculator helps you estimate CDN spend, compare the cost against origin-only delivery, and understand your effective cost per gigabyte. It's designed for DevOps engineers, infrastructure architects, startup CTOs, and anyone evaluating content delivery options for websites, APIs, streaming platforms, or mobile applications.

When to Use This Calculator

  • You're evaluating whether to add a CDN to your infrastructure and need to estimate the monthly cost impact
  • You're comparing pricing across multiple CDN providers for the same traffic and request profile
  • You're budgeting infrastructure costs for a launch, campaign, or scaling phase with predictable traffic growth
  • You're auditing an existing CDN bill to verify charges against expected usage and identify optimization opportunities
  • You're deciding between a flat-rate CDN (like Cloudflare) and pay-as-you-go (like CloudFront) for your traffic volume
  • You're building a business case for CDN investment by quantifying savings versus origin-only delivery

Steps:

  1. Enter your estimated monthly data transfer in terabytes (TB) — the total volume of content delivered to users.
  2. Enter the cost per TB offered by your CDN provider — check their pricing page for region-specific rates.
  3. Enter your expected monthly HTTP/HTTPS request count.
  4. Enter your current origin server monthly cost — this is what you'd pay without a CDN.
  5. Review the estimated monthly CDN cost, savings versus origin-only delivery, and effective cost per GB.

Formula

Monthly CDN Cost = (Data Transfer in TB × Cost Per TB) + (Monthly Requests × Cost Per Request) Savings = Origin Server Cost − Monthly CDN Cost Cost Per GB = Monthly CDN Cost ÷ (Data Transfer in TB × 1,024) Example: Data Transfer = 5 TB, Cost Per TB = $80, Monthly Requests = 50,000,000 Cost Per Request = $0.0000075, Origin Cost = $600 Monthly CDN Cost = (5 × $80) + (50,000,000 × $0.0000075) = $400 + $375 = $775 Savings = $600 − $775 = −$175 (CDN costs more at this volume — origin is cheaper) Cost Per GB = $775 ÷ 5,120 = $0.151/GB

Use Cases

  • Evaluating whether to add a CDN to your infrastructure and estimating the monthly cost impact
  • Comparing pricing across CDN providers (Cloudflare, CloudFront, Fastly, BunnyCDN) for the same traffic profile
  • Budgeting infrastructure costs for a product launch or marketing campaign that will spike traffic
  • Auditing your current CDN bill against expected costs to identify overcharges or misconfigurations
  • Justifying CDN investment to stakeholders by showing concrete monthly savings versus origin-only delivery
  • Planning capacity for a growing application where traffic is increasing 20–50% quarter over quarter

Key Benefits

  • Get an instant, accurate estimate of monthly CDN costs based on your actual traffic profile
  • Compare CDN expenses against origin-only delivery to quantify real savings
  • Understand your effective cost per gigabyte for budgeting and provider negotiations
  • Model different traffic scenarios (growth spikes, seasonal peaks) without manual spreadsheet math
  • Identify whether request fees or bandwidth costs dominate your CDN bill
  • Make data-driven decisions when selecting or switching CDN providers

Pro Tips

  • Always get region-specific pricing from your CDN provider — North American rates don't apply to global traffic
  • Negotiate volume discounts once your monthly transfer exceeds 10 TB — most providers offer custom pricing at scale
  • Optimize cache hit ratios with proper Cache-Control headers — every percent improvement reduces origin costs
  • Use Cloudflare's free tier or BunnyCDN's low-cost plans for small sites — don't pay for enterprise features you don't need
  • Monitor your CDN dashboard weekly for unexpected traffic spikes or bot traffic that inflates request fees
  • Consider multi-CDN strategies for high-availability setups — the cost comparison tool helps model each provider's contribution

Common Mistakes to Avoid

  • Comparing only the per-GB bandwidth rate without factoring in request fees, regional surcharges, and minimum commitments
  • Using peak monthly traffic instead of average — this inflates estimates and leads to over-provisioning
  • Ignoring origin server cost reduction when calculating CDN ROI — the full picture includes savings from reduced origin load
  • Forgetting that CDN pricing varies by region — serving traffic from Asia-Pacific or South America can cost 20–80% more than North America
  • Not accounting for protocol differences — HTTPS requests typically cost more than HTTP, and many providers charge extra for SSL termination

Key Terms Explained

CDN (Content Delivery Network): A distributed network of edge servers that cache and deliver content from locations closer to end users, reducing latency and origin load.
Data Transfer (Egress): The total volume of content delivered from CDN edge servers to users, measured in terabytes (TB) or gigabytes (GB) per billing period.
Edge Server: A server in the CDN's distributed network that caches content and serves it to users from the geographically closest location.
Origin Server: Your original web server or cloud storage where content is hosted before being cached and distributed by the CDN.
Cache Hit Ratio: The percentage of requests served directly from edge servers without contacting the origin — higher ratios mean lower costs and faster delivery.
Per-TB Rate: The cost charged per terabyte of data transfer, which typically decreases with volume through tiered pricing.
Request Fee: An additional charge per HTTP/HTTPS request, applied on top of bandwidth costs by most CDN providers.
PoP (Point of Presence): A physical location where a CDN provider operates edge servers — more PoPs generally means better global coverage and lower latency.

Related Concepts

  • Cloud Hosting Cost Calculator: Estimate your total cloud infrastructure spend — CDN costs are one piece of the hosting puzzle alongside compute, storage, and database.
  • Storage Cost Calculator: Model cloud storage expenses for the origin content your CDN distributes — S3, GCS, and Azure Blob pricing affects your total delivery cost.
  • Bandwidth Calculator: Calculate raw bandwidth requirements and data transfer volumes to size your CDN plan accurately before committing to a provider.
  • GPU Compute Cost Calculator: For AI and media workloads that generate heavy CDN traffic, understanding compute costs alongside delivery costs gives the full infrastructure picture.
  • API Monetization Calculator: If your CDN serves API responses, understanding per-request economics helps balance CDN request fees against your revenue per call.

Example

A SaaS application serves 8 TB of static assets (images, CSS, JS) and API responses monthly through a CDN at $60/TB, with 80 million HTTPS requests at $0.0075 per 10,000 requests. The origin server currently costs $900/month. Monthly CDN Cost = (8 × $60) + (80,000,000 ÷ 10,000 × $0.0075) = $480 + (8,000 × $0.0075) = $480 + $60 = $540/month Savings vs Origin = $900 − $540 = $360/month ($4,320/year) Cost Per GB = $540 ÷ (8 × 1,024) = $540 ÷ 8,192 = $0.066/GB The CDN reduces delivery cost by 40% while improving latency globally. The origin server can also be downsized since it now handles only 5–10% of traffic, potentially saving another $200–400/month.

Interpreting Your Results

The Monthly CDN Cost is your primary budgeting number — it represents the estimated total you'll pay the CDN provider at the given data transfer, request volume, and per-TB rate. The Savings vs Origin shows how much you save compared to serving everything from your origin server; a positive number means the CDN saves money, while a negative number means the CDN costs more than origin-only delivery at your current volume. Cost Per GB tells you the effective rate you're paying per gigabyte delivered, which is useful for comparing against provider pricing pages and negotiating volume discounts. If your Cost Per GB is significantly higher than the provider's advertised rate, request fees or regional surcharges are likely driving up the total. When interpreting results, remember that the true ROI of a CDN extends beyond direct cost savings: reduced origin load allows server downsizing, improved latency boosts user experience and SEO rankings, and better availability during traffic spikes protects revenue. Factor these indirect benefits when making infrastructure decisions.

Frequently Asked Questions

How much does a CDN cost?
CDN pricing varies by provider and volume. Entry-tier plans from BunnyCDN and KeyCDN start around $0.01/GB, while AWS CloudFront ranges from $0.085/GB for the first 10 TB down to $0.020/GB above 5 PB. Cloudflare offers unlimited bandwidth on its Pro plan ($20/month) with no per-GB charges. At 5 TB/month, expect $50–$400 depending on provider and region.
What is CDN data transfer and how is it measured?
CDN data transfer (also called bandwidth or egress) is the total volume of content delivered from CDN edge servers to end users each month. It's measured in terabytes (TB) or gigabytes (GB). Every image, CSS file, JavaScript bundle, and video byte served to a visitor counts toward your data transfer. A site serving 2 MB pages to 500,000 monthly visitors at 3 pages per visit transfers roughly 3 TB/month.
How do CDN request fees work?
Most CDN providers charge per 10,000 or per million HTTP/HTTPS requests on top of bandwidth costs. Request fees are typically small — AWS CloudFront charges $0.0075 per 10,000 HTTPS requests, Fastly charges $0.0075 per 10,000. For a site with 50 million monthly requests, request fees add $37.50 to your bill. Cloudflare and BunnyCDN include requests in their flat-rate pricing.
Can a CDN really reduce my hosting costs?
Yes. A CDN offloads 70–95% of traffic from your origin server, which means you can use a smaller, cheaper origin and avoid overage fees. The savings often exceed the CDN cost itself. For example, origin serving at $0.12/GB for 5 TB costs $600/month, while a CDN at $0.05/GB costs $250 — a $350/month saving. High-traffic sites can save thousands monthly.
What factors affect CDN pricing the most?
The biggest cost drivers are: (1) total data transfer volume — most providers offer volume discounts, (2) geographic region — North America and Europe are cheapest, Asia and South America cost 20–80% more, (3) request volume — each HTTPS request carries a small fee, (4) edge location density — more PoPs means lower latency but sometimes higher cost, and (5) provider — Cloudflare's fixed pricing vs pay-as-you-go models from AWS, Fastly, and others create very different cost curves.
What is a CDN cache hit ratio and why does it matter for cost?
The cache hit ratio is the percentage of requests served directly from edge servers without contacting your origin. A 95% hit ratio means only 5% of traffic reaches your origin. This directly impacts cost because cached responses are cheaper to serve (no origin compute, no origin bandwidth) and CDN providers often charge less for cached egress. Improving cache hit from 80% to 95% can cut total delivery costs by 20–30%.
How does Cloudflare pricing compare to AWS CloudFront?
Cloudflare uses flat-rate pricing: Pro ($20/month), Business ($200/month), Enterprise (custom) with unlimited bandwidth. AWS CloudFront is pure pay-as-you-go: $0.085/GB for the first 10 TB, dropping to $0.020/GB above 5 PB, plus request fees. For sites under 1 TB/month, Cloudflare is almost always cheaper. Between 1–10 TB, Cloudflare Pro still wins. Above 10 TB, CloudFront can become competitive if you optimize cache policies and use Shield.
Should I include origin server costs when comparing CDN pricing?
Absolutely. The true cost of content delivery is CDN fees plus reduced origin costs minus what you were paying before. A CDN doesn't just add a line item — it reduces origin bandwidth, compute, and storage I/O. Always compare total infrastructure cost with and without the CDN, not just the CDN bill in isolation.
What is the difference between CDN cost per GB and cost per TB?
Cost per GB and cost per TB express the same unit price at different scales — 1 TB = 1,024 GB. Providers typically quote per-GB rates (e.g., $0.085/GB) while this calculator accepts per-TB input for convenience. At $0.085/GB, the per-TB rate is $87.04. Always check which unit your provider uses to avoid decimal-point errors in your estimates.
How accurate is this CDN cost estimate?
This calculator provides a solid baseline estimate using the core cost components: data transfer, per-TB rate, request fees, and origin comparison. Actual bills may vary by 10–20% due to factors like regional price differences, surcharges for specific content types (video, large files), DDoS mitigation fees, and SSL certificate costs. Use this as a planning tool and add a 15–20% buffer for production budgeting.
When should I upgrade from a basic CDN plan to a higher tier?
Upgrade when: (1) your monthly data transfer exceeds your plan's included volume and overage fees make a higher tier cheaper, (2) you need advanced features like WAF, bot management, or edge compute, (3) your global audience grows and you need more edge locations in underserved regions, or (4) latency SLAs become critical for your business — enterprise plans often include 100% uptime guarantees and dedicated support.

Discover More Tools

Fresh picks from across our tool library.