Cloud Egress: Why Getting Data Out Costs Money
What egress fees cover, where they hide on a bill, and practical ways to estimate and reduce them.
Key takeaways
- Egress fees apply mainly to data going out to the internet, between regions, and sometimes between availability zones.
- Providers have real network costs, and pricing that makes arrival cheap and departure expensive also discourages moving away.
- Surprise bills often come from internal paths, such as cross-zone chatter or traffic routed through a managed gateway.
- Caching, compression, keeping chatty components together and private service endpoints are the most reliable savings.
- Rates, free allowances and exit policies change, so confirm them on your provider's current price pages.
Egress is data leaving a cloud provider's network, or leaving one part of it for another, and many providers charge for it by volume. Uploading data into the cloud is usually free or close to it. Sending it back out to your users, your office or a competing service often isn't. That asymmetry surprises people when a bill arrives.
The charges aren't mysterious once you know which paths are metered. This article explains why they exist, where they tend to hide, how to estimate them and what actually lowers them.
Ingress, egress and the meter
Ingress is traffic coming in; egress is traffic going out. The meter usually runs on the number of gigabytes crossing a billing boundary, and the rate depends on the boundary.
A typical pattern looks like this: traffic within one availability zone over private addresses costs nothing or very little. Traffic between zones may carry a small per-gigabyte charge, sometimes in both directions. Traffic between regions costs more. Traffic to the public internet usually costs the most. Details differ by provider and service, so treat this as a map of what to check.
Exact boundaries and rates vary by provider and service.
Why providers charge for it
Moving bits costs money. Providers build and lease long-haul fiber, pay for transit and peering arrangements, and run equipment sized for peak demand.
Still, cloud egress prices are often well above what raw bandwidth costs at scale, and critics argue the gap serves another purpose. If moving data in is free and moving it out is expensive, the more you store, the harder it is to leave or to split work across vendors. This effect is part of cloud lock-in.
Providers respond that egress charges fund a global network and keep other prices lower, and that heavy users can negotiate or use cheaper paths. Regulators in some places have taken an interest in switching costs, and several providers have changed their exit policies. Rules and offers have been shifting, so check what applies to you now.
Where the charges hide
The obvious egress is downloads: web pages, video, backups pulled back to your office. The less obvious kinds cause more surprises.
- Cross-zone traffic. An application server in one zone querying a database in another pays for each exchange. A service that passes large payloads back and forth thousands of times an hour adds up.
- Replication. Copying a database or storage bucket to another region for safety creates ongoing transfer.
- Gateways. A managed NAT gateway, which lets private servers reach the internet, often charges a processing fee per gigabyte on top of transfer.
- Load balancers and endpoints. Some bill for the data they process.
- Third-party tools. Shipping logs or metrics to an outside monitoring company is egress, and verbose logging can produce a lot of it.
- Leaks and abuse. A public bucket hotlinked by another site, or a scraper pulling large files repeatedly, lands on your bill.
Understanding a cloud bill shows how to group line items so these stand out.
Reading the line items
Bills rarely have one entry labeled "egress". Look for names containing words like data transfer, bandwidth, outbound, inter-zone, inter-region, processing or retrieval. Each service may report its own transfer, so storage downloads, database replication and load balancer processing can appear in different sections.
Group costs by usage type, then sort by amount. For anything large, ask three questions: what is sending the data, where is it going, and does it need to go there? Flow logs, which record connections between addresses with byte counts, can answer the first two when the bill alone can't. They cost money to store, so you may want to enable them for a limited investigation.
A sudden jump usually has a plain cause: a new feature that fetches large objects, a backup job pointed at another region, debug logging left on, or a loop that re-downloads the same file. Comparing the day the line rose with your deployment history often finds it quickly.
Estimating before you build
You can get a reasonable estimate with simple arithmetic: size of each response, times number of requests, gives monthly volume. Then multiply by the rate for the path.
Here's a made-up example. Say a page weighs 2 megabytes and gets 500,000 views a month. That's about 1,000,000 megabytes, or roughly 1,000 gigabytes. At a hypothetical rate of $0.08 per gigabyte, it's about $80. If images are compressed so the page weighs 0.8 megabytes, the same traffic is about 400 gigabytes, or $32.
The last bar counts only what still leaves the origin. A CDN has its own delivery charges. Hypothetical example: the numbers are made up to show the method, not a quote or an average.
Watch units. Network speeds are measured in bits per second, while storage and billing use bytes, and providers differ on whether a gigabyte means 10 to the ninth bytes or 2 to the thirtieth. The transfer time planner helps with conversions.
Ways to lower the bill
Start with measurement. Turn on cost breakdowns by service and usage type, tag resources by team or application, and set a budget alert so a spike is noticed in days, not at month end.
Then apply the changes that match what you find:
- Send less. Compress text with gzip or Brotli, serve modern image formats, paginate large API responses and avoid re-sending unchanged data.
- Cache closer. A CDN serves repeat requests without hitting your origin. CDN delivery has its own price, which is often lower, and some providers don't charge for transfer from their storage to their own CDN.
- Keep chatty parts together. Place components that exchange lots of data in the same zone, while weighing that against resilience.
- Use private service endpoints. Reaching cloud storage through an endpoint can avoid gateway processing fees.
- Process before you move. Filter or summarize data where it lives and ship only the result.
- Review replication and logs. Copy what you need, at the frequency you need.
For large steady flows to your own sites, a dedicated connection may carry a lower transfer rate, though port and carrier fees offset some of it.
A quick example of an internal leak
Say an application in one zone reads from a cache in another. Each page view pulls 200 kilobytes from it, and the site handles 10 million views a month. That's about 2,000 gigabytes crossing zones, even though no user sees it. If the hypothetical rate is $0.01 per gigabyte in each direction of the boundary, the movement costs about $40 a month.
That number may be fine. Now imagine ten services behaving this way, or each page making many such reads. Options include preferring a replica in the same zone, compressing cached values, or fetching only the fields a page uses. The same habits tend to make the application faster, since less data moves for every request.
Architecture choices matter here too. Splitting a program into many small services turns function calls into network calls, which may cross zones. Microservices versus monoliths weighs that along with other costs.
Splitting work across providers
Using two clouds can improve flexibility, but data that travels between them pays egress on the way out of each. Running an application in one cloud while its database or analytics lives in another can produce a steady transfer bill and added delay.
If you do spread across providers, keep each workload close to its own data and exchange summaries or events, not whole tables. Hybrid and multi-cloud designs deserve a transfer estimate before approval, with growth built in.
Trade-offs to keep in mind
Cheapest isn't always right. Putting everything in one zone cuts cross-zone fees and also means one facility problem takes you down. Replicating to another region costs transfer but may be exactly what your recovery plan needs.
Engineering time has a price too. Spending weeks to save a few dollars a month is rarely sensible.
Planning your exit before you need it
If you ever move providers or bring data home, you'll pay to read and transfer it unless an exit program waives the fee. Estimate that figure for your current data volume once a year. Include request charges for millions of small objects and retrieval fees for archival storage tiers, which can exceed the transfer cost.
Large migrations sometimes use physical transfer devices that the provider ships to you, which can be faster than the network. Moving off a cloud service covers how to verify that everything arrived.
For households, the picture is simpler. Consumer storage services usually don't bill per gigabyte downloaded, though business-style object storage used for personal backups often has retrieval or egress terms. Read them before you store a large archive, and test restoring a few files early.
Common questions
Is traffic between my own two servers ever billed?
It can be. If they're in different zones or regions, or if one reaches the other through its public address, charges may apply. Use private addresses and check the routing.
Does a VPN avoid egress fees?
No. Data leaving the cloud through a VPN tunnel over the internet is still outbound traffic.
Can an attack run up my egress?
Yes. Floods of download requests generate transfer. Rate limits, caching, access controls on storage and budget alerts all help, and some providers will review charges caused by abuse if you ask.