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