Key Takeaways
- Data egress (outbound) typically costs $0.05-$0.12/GB depending on provider and volume
- Ingress (inbound) data transfer is usually free across all major cloud providers
- Using a CDN can reduce egress costs by 30-80% through caching and lower rates
- Same-AZ transfer is free; cross-AZ costs ~$0.01/GB on most providers
- Enterprise agreements can reduce rates by 20-40% for high-volume users
Understanding Cloud Data Transfer Costs
| Provider |
Egress to Internet |
Egress to Same Region |
Notes |
| AWS | $0.09/GB (first 10TB/month) | Free | Reduces to $0.085 above 10TB |
| Google Cloud | $0.08/GB | Free | First 1GB/month free |
| Azure | $0.087/GB (first 10TB) | Free | Reduces with volume |
| Cloudflare R2 | $0.00/GB | Free | No egress fees (disruptive) |
| DigitalOcean | $0.01/GB (after 1TB) | Free | 1TB/month included |
| Backblaze B2 | $0.01/GB | Free | CDN partners free |
| Unit |
Bytes |
MB |
GB |
TB |
| 1 Kilobyte (KB) | 1,024 B | 0.000977 MB | — | — |
| 1 Megabyte (MB) | 1,048,576 B | 1 MB | 0.000977 GB | — |
| 1 Gigabyte (GB) | 1.07 × 10⁹ B | 1,024 MB | 1 GB | 0.000977 TB |
| 1 Terabyte (TB) | 1.10 × 10¹² B | 1,048,576 MB | 1,024 GB | 1 TB |
| 1 Petabyte (PB) | 1.13 × 10¹⁵ B | — | 1,048,576 GB | 1,024 TB |
| Use Case |
Typical Monthly Transfer |
Est. AWS Cost |
| Small website (10K visitors) | 10–50 GB | $0.90–$4.50 |
| Medium SaaS app | 500 GB–2 TB | $45–$180 |
| Video streaming (1M views) | 50–500 TB | $4,500–$45,000 |
| Mobile app backend | 100–500 GB | $9–$45 |
| ML model inference API | 1–10 TB | $90–$900 |
| Large e-commerce | 5–50 TB | $450–$4,500 |
Data transfer costs are often the most surprising element of cloud bills. While compute and storage pricing is well understood, egress charges can quickly accumulate and represent a significant portion of total cloud spend. This guide explains how data transfer pricing works and strategies to optimize these costs.
Types of Data Transfer
Ingress (Data In): Data transferred INTO the cloud is typically free across all major providers including uploads, incoming API requests, and data migration.
Egress (Data Out): Data transferred OUT of the cloud incurs charges including serving content to users, API responses, backup downloads, and data exports.
Internal Transfer Costs
| Transfer Type |
AWS |
GCP |
Azure |
| Same AZ |
Free |
Free |
Free |
| Cross-AZ (same region) |
$0.01/GB |
$0.01/GB |
Free* |
| Cross-Region |
$0.02-0.09/GB |
$0.01-0.08/GB |
$0.02-0.08/GB |
*Azure charges for cross-AZ in some configurations
Internet Egress Pricing
AWS Data Transfer Out
| Tier |
Volume/Month |
Price/GB |
| Free Tier |
First 100 GB |
Free (12 months) |
| Tier 1 |
Up to 10 TB |
$0.09 |
| Tier 2 |
10-50 TB |
$0.085 |
| Tier 3 |
50-150 TB |
$0.07 |
| Tier 4 |
150+ TB |
$0.05 |
Pro Tip: CDN Savings Example
10 TB monthly egress with 85% cache hit rate: Direct AWS egress = 10,000 GB x $0.09 = $900. With Cloudflare Pro ($20/mo) = $20 flat + minimal origin egress = ~$50. That's 94% savings!
Cost Optimization Strategies
1. Use CDNs for Static Content
- Cache static assets (images, JS, CSS) at edge locations
- Set appropriate cache headers for maximum efficiency
- Choose CDN with best pricing for your volume tier
2. Architect for Data Locality
- Keep data and compute in same AZ when possible
- Use regional services appropriately
- Consider multi-region only when truly needed
3. Compress Data
- Enable gzip/brotli compression for all text content
- Optimize image formats (WebP, AVIF)
- Minimize API response payloads
4. Negotiate Enterprise Agreements
- Committed use discounts available at scale (20-40% off)
- AWS has Private Pricing for high volume customers
- Consider multi-cloud for negotiating leverage
Hidden Data Transfer Costs
Watch out for these often-overlooked charges:
- NAT Gateway: $0.045/GB processed on AWS
- VPN/Direct Connect: Additional per-GB charges
- Load Balancer: Data processing charges
- API Gateway: Per-request and data charges
- Lambda: Response payload egress
Frequently Asked Questions
How accurate are the results?
The Data Transfer Cost applies a standard formula to your inputs — accuracy depends on how precisely you measure those inputs. For planning and estimation, results are reliable. For high-stakes or professional decisions, cross-check the output with a domain expert or primary source.
Can I use this on mobile?
Yes — the calculator is designed to work on any device. For complex multi-input calculations on small screens, landscape orientation gives more room to see all fields and results simultaneously.
What is data egress and why does it cost money?
Data egress (also called "data transfer out") is the cost charged when data flows OUT of a cloud provider's network to the public internet or to another provider. Data ingress (data flowing IN to a cloud provider) is almost always free. Why providers charge for egress: Bandwidth is a real infrastructure cost — providers pay transit providers for internet connectivity. Charging for egress creates lock-in — it's expensive to move your data to another provider. This has been widely criticized as anti-competitive. Typical egress costs (2024): AWS: $0.09/GB. Google Cloud: $0.08/GB. Azure: $0.087/GB. These seem small but add up: 100 TB/month × $0.09 = $9,216/month in AWS egress fees alone. Free egress alternatives: Cloudflare R2: No egress fees — disruptive pricing that pressured other providers. Cloudflare CDN: Free egress to end users from CDN. Backblaze B2: $0.01/GB; free with Cloudflare CDN partnership. DigitalOcean Spaces: 1 TB/month included, then $0.01/GB. Reducing egress costs: Use a CDN (content delivery network) — serves content from edge nodes, reducing origin egress. Keep compute and storage in the same region/provider. Use compression to reduce transfer size. Architect read-heavy apps to minimize unnecessary data fetches.
How do I calculate data transfer costs for my application?
Step-by-step calculation: Estimate monthly data transfer volume: Identify all sources of outbound data. Per-request size × requests per month. Example for a web app: Average page size: 2 MB. Monthly page views: 500,000. Image/asset transfers: 1.5 MB average, 400,000 loads. API responses: 50 KB average, 2,000,000 calls. Calculate: Pages: 500K × 2 MB = 1,000 GB = 1 TB. Images: 400K × 1.5 MB = 600 GB. APIs: 2M × 0.05 MB = 100 GB. Total: ~1,700 GB/month (1.7 TB/month). Apply provider rates: AWS at $0.09/GB: First 10 TB: 1,700 × $0.09 = $153/month. Cost reduction strategies: Add a CDN: If 80% of requests are cached at edge, origin transfers drop 80%. CDN cost (~$0.01–0.02/GB) often cheaper than origin egress. Compression: gzip/Brotli compression reduces text assets 70–90%. 1 TB of HTML/CSS/JS compressed → ~150 GB effective transfer. Image optimization: WebP format 25–35% smaller than JPEG. Lazy loading reduces total loaded per session. Budget rule of thumb: Plan for egress to be 10–20% of your total hosting bill as you scale.
What is the difference between bandwidth and data transfer?
Bandwidth and data transfer are related but different concepts: Bandwidth (network speed): The maximum rate of data flow, measured in bits per second (Mbps, Gbps). Example: A 1 Gbps network connection can transfer up to 1 gigabit per second. Bandwidth is like the width of a pipe — bigger = more data can flow simultaneously. Data transfer (volume): The total amount of data moved, measured in gigabytes (GB) or terabytes (TB). Example: Transferring 100 GB of files uses 100 GB of data transfer. Data transfer is like the total volume of water that flowed through the pipe. How they interact: Transfer time = Data size / Bandwidth. 100 GB at 1 Gbps (125 MB/s) = ~800 seconds (~13 minutes). Cost structures: Cloud providers usually charge per GB of data transfer (volume). ISPs may charge for bandwidth (Mbps tier) — home internet. Some providers use 95th percentile billing ("burstable billing"): Measure bandwidth every 5 minutes for a month. Remove the top 5% of measurements. Bill based on the 95th percentile measurement. Common at data centers and for CDN peering. Why developers confuse them: "We need more bandwidth" often means both faster speed AND higher volume allowance. Check whether a cloud provider's limits are on bandwidth (speed cap) or data transfer (monthly GB allowance).
How can I reduce cloud data transfer costs?
Top strategies for reducing egress costs: 1. Add a CDN: Most impactful change for content-heavy apps. CDN serves from edge nodes near users, reducing origin egress dramatically. Cloudflare free tier: unlimited bandwidth; paid starts at $20/mo. AWS CloudFront: ~$0.01–0.02/GB vs $0.09/GB origin. If 70% of traffic is cacheable: 1 TB origin → 300 GB origin egress ($27 vs $90). 2. Switch storage providers: Cloudflare R2: No egress (saves 100% vs AWS S3). Backblaze B2 + Cloudflare CDN: Effectively free delivery. 3. Compress aggressively: Enable gzip/Brotli on your web server. Use WebP/AVIF images (30–50% smaller than JPEG). Minify CSS/JS. 4. Optimize API payloads: Remove unused fields from API responses. Use pagination instead of returning full datasets. Consider GraphQL to request only needed fields. 5. Move compute closer to data: Reduce inter-service transfer by colocating services. Use same-region buckets and databases (no egress fee within same region/AZ). 6. Implement edge functions: Run logic at the CDN edge, reducing round trips to origin. 7. Monitor and alert: Set billing alerts — egress surprises are common when traffic spikes. AWS: Use Cost Explorer to see egress breakdown by service.