CloudFront vs Cloudflare CDN cost: compare the right line items (bandwidth, requests, origin egress)

The easiest way to compare CloudFront vs Cloudflare cost is to treat the CDN bill as a set of line items, not a single number. If you model the same line items for both providers, you can swap pricing assumptions and see which driver actually dominates for your traffic.

0) Start with the same 3 core line items

  • Bandwidth: GB delivered from edge to end users ($/GB).
  • Requests: request fees (often per 10k or per 1M) if applicable.
  • Origin egress (cache fill): bytes pulled from origin to CDN on cache misses, billed by your origin provider.

Bandwidth is not the same as origin egress. If you double-count those legs, your comparison will be wrong.

1) Measure traffic inputs (baseline + peak)

Use a representative window (a normal week and an incident week if you have one). CDNs are often dominated by peak events: bot traffic, marketing spikes, deploys that reduce cache hit rate, and incidents.

Tools: CDN bandwidth, CDN request fees, RPS to monthly requests.

2) Model origin egress from hit rate (the cache fill leg)

A practical estimate is: origin GB ~= edge GB * (1 - hit rate). Purges, low TTLs, and deploys can temporarily crush hit rate and spike origin traffic.

Tools: CDN origin egress, Data egress cost.

3) Add-ons that commonly flip the winner

  • WAF / bot mitigation: security add-ons can dominate for attack-heavy traffic.
  • Logs: access logs at high request volume can be expensive (ingestion + retention + scans).
  • Edge compute: functions/worker usage can become its own cost center.
  • Image optimization: can reduce bandwidth but add compute/caching costs depending on plan.

If you enable add-ons, model them as explicit line items instead of hiding them inside $/GB.

4) Comparison checklist (what to verify)

  1. Region mix: split GB and requests by region if you can; pricing often differs by geography.
  2. Request units: per 10k vs per 1M (order-of-magnitude mistakes are common). Guide: CDN request pricing.
  3. Hit rate: validate hit rate by path; one large endpoint can dominate origin egress even if overall hit rate looks good.
  4. Peaks: model bot spikes and incident windows separately.
  5. Commitments: discounts change the effective rate; ensure you model realistic utilization.

Worked template (copy/paste)

  • Edge GB/month = baseline + peak
  • Edge requests/month = baseline + peak (include bots/retries)
  • Origin GB/month ~= edge GB/month * (1 - hit rate) (model purge/deploy separately)
  • Add-ons = WAF + logs + edge compute (explicit line items)

Related tools

Sources


Related guides

CDN Cost & Pricing Guide (bandwidth, requests, origin egress)
Step-by-step CDN cost breakdown: bandwidth $/GB, request fees, and origin egress. Includes estimation tips and pitfalls.
API Gateway vs ALB vs CloudFront cost: what to compare (requests, transfer, add-ons)
A practical cost comparison of API Gateway, Application Load Balancer (ALB), and CloudFront. Compare request pricing, data transfer, caching impact, WAF, logs, and the hidden line items that change the answer.
Origin egress vs CDN bandwidth: what's the difference?
CDN bills often have two related but different bandwidth concepts: origin egress (from your origin) and CDN bandwidth (to end users). Learn how to model both without double-counting.
Azure Front Door pricing: model requests, bandwidth, and origin traffic
A practical Azure Front Door cost model: edge bandwidth, request volume, logging, and origin traffic (cache fill). Includes a checklist to validate hit rate and avoid double-counting egress.
CDN cost comparison: how to compare pricing across providers
A practical framework to compare CDN pricing across providers: normalize bandwidth, requests, regions, cache fill, and contract terms before choosing the lowest total cost.
CDN request pricing: estimate $ per 10k / 1M requests (and when it dominates)
Some CDNs charge request fees in addition to bandwidth. Learn what counts as a billable request, how to estimate requests/month from RPS or analytics, and how to model per-10k vs per-1M pricing without unit mistakes.

Related calculators


FAQ

Which is cheaper: CloudFront or Cloudflare?
There is no universal winner. Total cost depends on traffic mix (bandwidth vs requests), regions, cache hit rate (origin egress), and add-ons like WAF/logs/edge compute. Compare with the same line items and your own traffic inputs.
What inputs do I need to compare providers fairly?
At minimum: monthly GB delivered to users, monthly requests, and an estimate of cache hit rate (to approximate origin egress). If you have regional traffic mix, use it.
Do I need to include origin egress?
Often yes. If your origin provider charges egress, low cache hit rate shifts cost away from the CDN and into origin egress (cache fill).
What is the most common comparison mistake?
Comparing only one line item (like $/GB) and ignoring request fees, origin egress, and add-ons. The winner often changes when you add WAF/logs or model bot spikes.

Last updated: 2026-01-27