A startup launches their first product using a major cloud provider, hosting product demonstration videos on the storage product. Although they store the same amount of data in the second month as they did in the first, their bill jumps dramatically. Part of the difference is likely egress fees as a growing user base watches those videos.
Many newcomers haven't even heard the word "egress" before getting started with cloud services. This article will tell you what it is and the places it hides to bloat your cloud bills.
Explaining Egress Fees
Cloud providers use the term "ingress" to refer to data going into their network and "egress" to refer to data coming out. The providers incur expenses for both types of transfer. Since they make more money when you store more data, they typically let you upload for free.
Downloading is different. Unlike additional storage, additional downloads do not make them more money unless they charge you for egress. These egress fees can add up quickly if you aren't careful.
The Sources of Surprise Charges
There are a number of ways that egress fees can get out of hand if you don't understand how they work:
- Serving visitors from storage: Every image or video on your website that is served directly from storage is an egress cost. This is what's hitting our startup the hardest. One large video or a lot of large images can inflate egress costs significantly as you scale.
- Cross-region traffic: When you sign up for cloud services, you pick a region. These are where the data centers are. If your storage is in one region and your app server is in another, you'll be charged egress each time they talk to one another.
- Backup storage: No company wants to suffer data loss. To avoid this, some businesses have a second cloud storage provider where they backup the main one. Every time they do, they're paying for egress from the primary one.
- API calls and log requests: Even if you don't have any large files in storage, your cloud server is still sending something; otherwise, there would be no point. Even small data like the response to API requests or logs sent to third-party monitors can add up.
Calculating Egress Exposure
The easiest way to avoid the surprise of a large egress bill is to estimate how much a new product or feature will cost you. You know what's coming out of the server, so you can calculate a ballpark figure. Here's how to do it at each phase:
Initial Planning
In the earliest phases of your project, you'll just be getting set up with the cloud provider. Look at their egress policy thoroughly. Most providers offer free egress up to some threshold. There's usually a charge for transfer between regions. Sometimes, you'll get a discount for higher volumes. Without understanding the full fee structure, you can't hope to accurately guess how much those fees will be.
During Development
As you're building the product or feature, you know when you're adding something to the server that users will pull down. This is the perfect time for some back of the envelope math. Imagine the videos hosted by our startup were 500 MB each. If they take off unexpectedly and get 10,000 potential customers viewing their video, that's 5 TB of egress. Egress rates in 2026 range from 9 to 12 cents per GB. That means the startup is spending $450 to $600 on egress alone.
Post Launch
After you launch is when you'll start getting actual figures back. If they're higher than expected, and if you've set up things carefully, you'll be able to identify where things are getting out of hand and find a solution. If your cloud provider allows you to tag resources or projects, do that. You can then sort your next bill by usage and tag, giving you a good picture of where your egress budget is being spent.
Mitigating Egress Fees
You probably don't want to wait for your first bill to figure out that you're spending too much on egress. Each of the tips below will reduce your costs:
- Use a CDN: The job of a content delivery network (CDN) is to cache your data on servers closer to the user and serve them from there. CDNs often have lower egress fees, so using them saves money anytime the data is cached.
- Use regions effectively: When you know that two or more products from the cloud providers will need to talk to one another, make sure you set them both up in the same region. This will reduce or eliminate the egress fees for them to communicate.
- Compress and cache: When you save images or video, do so in a format that offers a smaller file size. Whenever practical, cache the data your server sends on the client. You pay no egress when the client has the data cached locally.
- Shop around: If your project relies on a lot of large files being transferred to users, it's worth the effort to try and find a provider that has more generous egress policies. Cloudflare and Backblaze both offer storage with zero or low-cost egress.
- Set billing alerts: Every major provider allows you to set a billing alert that will notify you when your spending goes over a certain amount. Usage can lag, so you may get this notification late, but it can prevent you from spending a disastrous amount on cloud services.
Let's go back to our startup example. Had they read this article, they would have known to better compress their videos and to use a CDN to serve them. They might have even picked a more favorable provider for egress costs. This would have saved them a lot of money at a stage where their business needs it the most.
Conclusion
While a large egress bill can come as a surprise to businesses that are just getting started working with the cloud, it's a predictable expense once you know where the charges are coming from. If your product is already launched, open last month's bill and look at your data transfer costs to see if you're spending more than you need to.
If you haven't launched yet, pay close attention to egress fees for your provider and the design of your product to minimize those costs when they come. Had the startup in our example followed this advice, they would not have experienced the sticker shock they did when the second month brought more people to their videos.