CDN Cache Hit Ratio, Origin Bandwidth Offload & Egress Cost Calculator

See how improving CDN Cache Hit Ratio cuts origin bandwidth and cloud egress bills.

Monthly Cloud Egress Savings 7,176 USD/mo
Origin Server Egress Traffic 9.6 TB/mo
CDN Edge Offloaded Traffic 110.4 TB/mo
Total Monthly Bill (CDN + Origin) 3,024 USD/mo
Inputs
Try:
TB/mo
Total monthly edge data transfer delivered to end users (TB).
%
CDN Cache Hit Ratio percentage (CHR %).
USD/GB
Cloud origin egress price per GB ($/GB).
USD/GB
CDN edge delivery price per GB ($/GB).
Results & Graph
Monthly Cloud Egress Savings
7,176 USD/mo
Origin Server Egress Traffic
9.6 TB/mo
CDN Edge Offloaded Traffic
110.4 TB/mo
Total Monthly Bill (CDN + Origin)
3,024 USD/mo

Monthly Cloud Egress Savings

Graph 1 • How the inputs feed CDN Cache Offload
CDN Cache Hit Ratio, Origin Bandwidth Offload & Egress Cost Calculator • Custom Domain Schematic (Cloud SRE & Distributed Systems) totalMoncacheHitOut Total Monthly Traffic Tb: 120 TB/mo • Cache Hit Ratio Pct: 92 % MONTHLY CLOUD EGRESS SAVIN 7,176 USD/mo • Origin Server Egress T: 9.6 TB/mo • CDN Edge Offloaded Tra: 110.4 TB/mo Eq: EdgeServed_TB = TotalTraffic_TB
Graph 2 • Monthly Cloud Egress Savings as Total Monthly Traffic Tb changes (40% to 160% of current)
0 USD/mo 6.3k USD/mo 12.6k USD/mo 2.9k 48TB/mo 4.3k 72TB/mo 5.7k 96TB/mo 7.2k 120TB/mo 8.6k 144TB/mo 10.0k 168TB/mo 11.5k 192TB/mo
Graph 3 • Total Monthly Traffic Tb and Cache Hit Ratio Pct together Compares Monthly Cloud Egress Savings when Cache Hit Ratio Pct is shifted +25% (solid) vs. −25% (dashed).
0 USD/mo 5.1k USD/mo 10.3k USD/mo --- Cache Hit Ratio Pct @ 75% 5.0k -30% 6.1k -15% 7.2k +0% 8.3k +15% 9.3k +30%
Summary: At 92% Cache Hit Ratio on 120 TB/mo, CDN offloads 110.4 TB and cuts origin egress to 9.6 TB, saving $7176/month.
Summary: At 92% Cache Hit Ratio on 120 TB/mo, CDN offloads 110.4 TB and cuts origin egress to 9.6 TB, saving $7176/month.
Interactive chart & math engine powered by CalculatorGraph

Formula: CDN Cache Offload Systems Engineering Formula

EdgeServedTB = TotalTrafficTB × (CHR% / 100)
OriginEgressTB = TotalTrafficTB × (1 − CHR% / 100)
EdgeServed_TB = TotalTraffic_TB × (CHR% / 100); OriginEgress_TB = TotalTraffic_TB × (1 − CHR% / 100)
  • totalMonthlyTrafficTb: Total Monthly Traffic Tb (TB/mo)
  • cacheHitRatioPct: Cache Hit Ratio Pct (%)
  • originEgressCostPerGb: Origin Egress Cost Per Gb (USD/GB)
  • cdnEdgeCostPerGb: Cdn Edge Cost Per Gb (USD/GB)

Frequently Asked Questions

Why does the saving drop to zero when I make both prices equal?

The saving is cached traffic multiplied by the difference between the origin and edge prices. If both prices are 0.085 per GB, swapping one for the other saves nothing, so the result is zero. In reality a CDN that bills every delivered byte would cost more than no CDN in that case, because the miss traffic is paid at both rates.

Should I enter the request hit ratio or the byte hit ratio?

Enter the byte hit ratio, also called offload or bandwidth saved. The calculator multiplies the percentage by terabytes, so it needs the share of bytes served from cache. Request hit ratio can be much higher or lower than byte hit ratio depending on which objects you cache, and using it here can badly misstate origin egress.

Does the calculator use decimal or binary terabytes?

It uses decimal units, a thousand gigabytes per terabyte, which is how cloud providers and CDNs usually bill transfer. You can confirm it from the defaults: 110.4 TB of edge traffic at 0.065 USD of saving per GB gives exactly 7,176 USD. If your tooling reports binary units, convert before entering the traffic.

How much does one extra point of hit ratio save?

On 120 TB a month, one percentage point moves 1.2 TB from origin to edge. With a price gap of 0.065 USD per GB, that is 78 USD a month. The value per point scales with your traffic and with the gap between your two prices, and it is constant across the range because the model has no tiers.

Why does origin egress fall so much faster than the bill?

Origin egress depends on the miss fraction, which shrinks dramatically near the top of the range. Going from 92% to 99% cuts misses from 8% to 1%, so origin traffic falls from 9.6 TB to 1.2 TB. The bill falls much less because the cached bytes still cost the edge rate, which does not go away.

What origin egress price should I use?

Use the per-GB internet egress rate on your own cloud invoice for the region your origin runs in, after any discounts. If your provider offers reduced rates for traffic sent to a partner CDN, use that reduced rate instead. For large volumes priced in tiers, a blended average for your actual monthly volume gives a fairer result than the first-tier price.

Is the CDN monthly bill on this page complete?

No. It includes only per-GB transfer: misses at the origin rate and hits at the edge rate. Request fees, minimum commitments, shield or cache-fill charges and add-on features are not included. Many CDNs also bill the miss bytes they deliver, which you can add yourself as miss traffic multiplied by the edge rate.

Can I use this for video streaming traffic?

Yes, the arithmetic is the same for any bytes. Video often has a very high byte hit ratio for popular titles and a long tail of rarely watched content that misses. If your catalogue is mostly long tail, measure the real byte hit ratio rather than assuming one, because a few points either way move a lot of terabytes at streaming volumes.

Why do my real origin bytes exceed what the calculator predicts?

Common causes are cache revalidation requests, purges that force refetches, uncached API or personalised traffic, multiple CDN edge locations each filling their own cache, and bots requesting uncached URLs. Each of these sends bytes to origin that a simple hit ratio may hide. An origin shield layer is a typical fix for the multiple-edge fill problem.

What happens at a 0% hit ratio?

Every byte comes from origin, the edge carries nothing, the saving is zero and the bill is simply total traffic times the origin rate. That case is useful as a baseline: it is the bill the headline saving is measured against. A real CDN at zero hits would still charge its delivery fee, which this model leaves out. Ratios below 0% or above 100% return an error.

Does a higher hit ratio always mean lower latency for users?

Usually, because a hit is answered from an edge location near the user without a round trip to origin. The calculator does not measure latency, though, and a misconfigured cache can still be slow. Treat the origin egress line as a measure of load and cost, and check response times separately in your CDN or monitoring tools.

Reading the default: 9.6 TB from origin and 7,176 USD saved

The default describes a site pushing 120 TB of traffic a month to its users, with a CDN in front that answers 92% of requests from its own caches. Origin egress is billed at 0.085 USD per GB and CDN edge delivery at 0.02 USD per GB.

Two traffic lines come first. Edge-served traffic is 120 multiplied by 0.92, which gives 110.4 TB. Origin egress is 120 multiplied by the miss fraction of 0.08, which gives 9.6 TB. Those two always add back up to the total, so if they ever do not, something was typed wrong.

The money lines follow. The calculator treats a terabyte as a thousand gigabytes, the decimal convention cloud bills use, then prices each slice of traffic at its own rate. The 9.6 TB of misses is charged at the origin rate and the 110.4 TB of hits at the edge rate. Together they make the Total Monthly Bill of 3,024 USD.

The headline saving of 7,176 USD is the gap between that blended bill and what the same 120 TB would cost if every byte left your origin at 0.085 per GB. In plain terms, it answers the question: how much cheaper is this month with the CDN than it would be with no CDN at all, assuming the CDN costs nothing beyond its per-GB delivery fee?

Checking origin egress by hand

The core relationship is short enough to check on a napkin. Origin egress equals total traffic multiplied by one minus the hit ratio. With the defaults that is 120 times 0.08, or 9.6 TB. Edge traffic is the remainder, 110.4 TB.

The saving has an equally short form. Every gigabyte served from cache costs the edge rate instead of the origin rate, so each cached gigabyte saves the difference between them, 0.065 USD at the defaults. Multiply that by the 110.4 TB of hits, converted to gigabytes, and you land on 7,176 USD. That shortcut is a good way to confirm you entered the prices in the right boxes: if the saving is not hits times the price gap, a field has been swapped.

It also shows what the saving is really made of. It is not a property of the hit ratio alone. It is cached volume multiplied by the spread between the two prices. A huge hit ratio on a site where origin and edge cost almost the same saves very little.

Each point of hit ratio is worth 78 USD here

Because the model is linear, a single percentage point of cache hit ratio on 120 TB moves 1.2 TB between origin and edge. At a price gap of 0.065 per GB, that point is worth 78 USD a month. You can see it by running 95% instead of 92%: origin egress falls to 6 TB and the saving rises by three of those points.

Going the other way matters more in practice. Drop the hit ratio to 80% and origin egress jumps to 24 TB, two and a half times the default, while the saving falls by about 13 percent. Origin bandwidth is the number that grows fastest as the ratio slips, which is why a falling hit ratio after a deploy often shows up first as load on the origin rather than on the bill.

At the top end the returns flatten in money terms. Moving from 92% to 99% cuts origin egress from 9.6 TB to 1.2 TB, an eightfold drop in origin load, but the saving rises by only about 8 percent. If your goal is to protect a small origin, chasing the last few points is worth a lot. If your goal is the invoice, it is worth exactly 78 USD per point at these prices and no more.

Scaling the traffic: 72 TB and 180 TB

The traffic field scales everything in proportion, since every output is total traffic times a fixed fraction times a fixed price. At 72 TB a month with the other defaults, origin egress is 5.76 TB, the edge carries 66.24 TB, the bill is 1,814.4 USD and the saving is 4,305.6 USD.

At 180 TB, origin egress is 14.4 TB, edge traffic is 165.6 TB, the bill is 4,536 USD and the saving is 10,764 USD. Fifty percent more traffic means exactly fifty percent more of everything. There are no volume tiers in this model.

That linearity is the main thing to adjust for if you are a large customer. Most cloud providers and CDNs price egress in tiers that get cheaper per GB as monthly volume rises, and many large contracts are negotiated outright. If your provider charges a lower rate above some threshold, enter a blended average rate for your actual volume rather than the headline first-tier price, or the saving will be overstated at high traffic.

How the edge rate is applied to misses

Look closely at the bill and you will see that the edge price is charged only on the hit traffic, 110.4 TB, and the origin price only on the misses, 9.6 TB. That is a simplification. In a typical CDN setup the CDN delivers every response to the user, including the ones it had to fetch from origin on a miss. Many CDN plans bill for all bytes delivered, so the missed 9.6 TB is often paid for twice: once as origin egress and again as edge delivery.

One quick way to see this assumption is to set the edge price equal to the origin price, 0.085. The calculator then reports a saving of zero, because it assumes each cached byte simply swaps one price for an identical one. Under a bill-everything CDN plan, that setup would actually cost more than having no CDN.

If your CDN bills on total delivered bytes, add the miss traffic times the edge rate to the bill yourself. At the defaults that adds the 9.6 TB at 0.02 per GB to the 3,024 USD and reduces the saving by the same amount. It is a small correction at a 92% hit ratio and a large one at low ratios.

Byte hit ratio versus request hit ratio

The input is labelled Cache Hit Ratio, and CDN dashboards often show two different versions of it. Request hit ratio counts the share of requests answered from cache. Byte hit ratio, sometimes called offload, counts the share of bytes. They can be far apart.

A site that caches its large images and video segments well but passes small API calls to origin may have a modest request hit ratio and a very high byte hit ratio. A site that caches tiny HTML fragments but streams big uncached downloads can be the reverse. Because this calculator multiplies the ratio by traffic volume in terabytes, the figure it needs is the byte version. Typing the request ratio from a dashboard is the most common way to get a misleading answer here.

If your dashboard only reports request hits, look for an offload or bandwidth-saved metric, or compare the origin egress line on your cloud bill with the total bytes the CDN reports delivering. One divided by the other gives you the miss fraction directly.

Costs this model does not price

The calculator covers only per-GB transfer. Several other lines on a real invoice can change the decision. CDNs commonly charge per request as well as per GB, which matters for sites with many small objects. Some charge for cache fill, origin shield tiers, or premium features such as image optimisation, edge logic and security rules. Your cloud provider may charge less, or nothing, for egress to certain CDN partners, which would change the origin rate you should enter.

Monthly commitments are also absent. A plan with a fixed minimum fee changes the comparison at low traffic, where the 72 TB case above may not clear the minimum.

There is an operational side too. A higher hit ratio means less origin compute, fewer database reads and smaller origin instances, which can be worth more than the egress saving. The calculator does not try to value that, but the origin egress line is a reasonable proxy for how much load still reaches your servers.

Using the numbers in a caching decision

A practical way to use this page is to measure, then test a change. Enter last month's total traffic and byte hit ratio from your CDN, and the real origin and edge rates from your invoices. Check that the bill line is roughly what you paid. If it is not, the gap usually points to request fees or the miss double-billing described above.

Then model the change you are considering: longer cache lifetimes, an origin shield, normalised query strings, or caching an API response that is currently bypassed. Estimate the new byte hit ratio and run it. At the default prices on 120 TB, every point gained is 78 USD a month, so a project that lifts the ratio from 92% to 95% is worth roughly three of those points.

Weigh that against the risk of serving stale content. Longer lifetimes raise the ratio but slow down how quickly a fix reaches users. The calculator tells you what the bytes are worth; it cannot tell you how fresh your pages need to be.