Skip to content

Cloud Egress and Data Transfer Costs Explained

9-minute read. Assumes you've read Cloud cost basics and Regions and availability zones.

The one-line answer

Moving data into a cloud is usually free. Moving it out, across regions, and often across availability zones is billed per gigabyte. The charge depends on where the two ends of the transfer sit, not on how much compute you run.

That is why egress shows up as a surprise. Nothing on your laptop charges for traffic, and nothing in the console warns you when an architecture quietly sends the same gigabytes across a billing boundary a million times.

This page gives you a way to read any architecture and spot those boundaries. It does not quote prices. Rates change and differ by region, so read them from the vendor pages at the end.

The mental model: billing boundaries

Think of every transfer as a line drawn between two points. Cost depends on which boundaries the line crosses.

flowchart LR
    Internet[Internet users]
    subgraph Region A
        subgraph AZ 1
            A1[App server]
            D1[Database primary]
        end
        subgraph AZ 2
            A2[App server]
            D2[Database replica]
        end
    end
    subgraph Region B
        B1[Backup or DR copy]
    end
    A1 -- "same zone: usually free" --> D1
    A1 -- "cross-zone: often billed" --> D2
    D1 -- "cross-region: billed" --> B1
    A1 -- "internet egress: billed" --> Internet

The diagram shows four paths from one app server. Staying in the same zone is cheapest, crossing zones is usually metered, crossing regions is metered at a higher rate, and leaving to the internet is metered most prominently.

The common tiers, from cheapest to most expensive in general:

Boundary crossed Typical billing
Same zone, private IP Usually free
Different zone, same region Often billed, sometimes in both directions
Different region, same provider Billed, rate depends on the region pair
To the internet Billed
Into the cloud from the internet Usually free

"Usually" and "often" are deliberate. Providers differ, and the rules change. Check the pricing page for your provider before you build a business case on any row.

How the three providers differ

The shape is the same everywhere. The details are not.

  • AWS bills data transfer between availability zones in the same region. Traffic between zones is charged in each direction, so a request-and-response pair pays twice (the EC2 pricing page lists cross-zone transfer as charged "in each direction"). Traffic within one zone over private IPs is not charged. Some managed paths are exceptions: the AWS architecture blog notes that RDS Multi-AZ replication between primary and standby carries no extra transfer charge.
  • Google Cloud does not charge for egress within the same zone over internal IPs, but does charge for traffic between zones in a region and between regions. Internet egress price depends on the Network Service Tier you pick: Premium (traffic rides Google's backbone as far as possible) or Standard (traffic exits to the public internet closer to the source).
  • Azure bills outbound internet data and inter-region transfer. As of 2026-11-30 the bandwidth pricing page lists inbound transfer and transfer within the same availability zone as free. Check that page for how traffic between availability zones is treated, because that has been the most changeable row.

πŸ“– AWS: Overview of data transfer costs for common architectures - the clearest official walk through which hops are billed and which are not

πŸ“– AWS: Amazon EC2 On-Demand pricing (Data Transfer section) - the cross-zone and cross-region transfer rules for EC2 and related services

πŸ“– Google Cloud: VPC network pricing - the full table of same-zone, cross-zone, cross-region and internet rules

πŸ“– Google Cloud: Network Service Tiers overview - Premium versus Standard and what each means for routing

πŸ“– Azure: Bandwidth pricing - inbound, same-zone, inter-region and internet egress rules, priced by source continent

A worked example: finding the hidden hops

Take a plain web app and trace where the bytes go. No prices here, only counting.

Setup: an app runs in two zones behind a load balancer. It reads images from object storage, queries a database whose replica sits in the other zone, and writes logs to a central logging service.

For one user request that returns a 2 MB page:

  1. User to load balancer. Inbound, free.
  2. Load balancer to app server. If the balancer picks a server in a different zone, this can be a cross-zone hop. Many load balancers have a setting that controls cross-zone distribution, and the default differs by product. Check it.
  3. App to database. If the app is in zone 1 and the primary is in zone 2, every query and result crosses a zone boundary. Chatty ORMs make dozens of queries per request.
  4. App to object storage. Same region, free on most providers. But if the app reaches storage through a NAT gateway instead of a private endpoint, you pay a per-gigabyte processing fee on top. See VPC explained.
  5. App to user. The 2 MB response is internet egress.
  6. App to logging. Verbose logs shipped across zones or regions are billed as transfer, plus the logging service's own ingest fee.

Count the hops, not the dollars. Steps 2, 3, 4 and 6 are the invisible ones. A request that looks like "2 MB out" may touch five billing meters. Multiply by requests per day and you can see why the line item grows faster than traffic does.

Where surprise bills come from

Most egress incidents fall into a few repeatable patterns.

1. NAT gateway as the default route for everything. On AWS, a NAT gateway charges per hour and per gigabyte it processes. Sending S3 or DynamoDB traffic through it is wasted spend. AWS offers gateway endpoints for S3 and DynamoDB that carry no additional charge. Interface endpoints (PrivateLink) do have hourly and per-gigabyte charges, so they trade a NAT bill for a different one.

2. Cross-zone chatter. Services that call each other thousands of times per second, spread across zones for availability, pay for every call. High availability needs zones. You can still keep tight call chains in one zone and replicate only what must survive a zone loss.

3. Replication and backups across regions. Disaster recovery is a deliberate cost: the copy is billed, and so is every changed byte you ship. See Disaster recovery: RPO and RTO. Replicate what the recovery objective demands, not the whole estate.

4. Serving large files straight from origin. A popular download served from object storage pays internet egress on every request. Put a CDN in front, so repeat requests are answered from the cache instead of the origin. Check your provider's pricing page for how origin-to-CDN transfer is billed. See CDN explained.

5. Cross-cloud and hybrid traffic. Data leaving one cloud for another, or for your data center, is internet or dedicated-link egress. A multi-cloud design that moves data between providers on every request pays egress both architecturally and every day. See Multi-cloud networking.

6. Analytics that pull data to the compute. Running a query engine in region B against data in region A repeats the transfer on every run. Move the compute, not the data. For data-platform patterns, see the Data Zero to Hero site.

7. Verbose logging and metrics. Telemetry is data too. Debug-level logs from a fleet add up in transfer and in ingest charges.

A decision rule for placement

Use this order when you design, before you reach for optimisation tricks:

  1. Co-locate things that talk a lot. Put chatty services and their database in the same zone, then add a replica elsewhere for failure, not for reads on the hot path.
  2. Use private endpoints for provider services (storage, queues, databases) so traffic stays off the NAT path.
  3. Cache and compress before you cross a boundary. A smaller payload is cheaper on every tier.
  4. Put a CDN in front of anything large and popular.
  5. Keep compute in the same region as the data it reads in bulk.
  6. Treat cross-region and cross-cloud as design decisions, written down with an estimated monthly gigabyte figure.

If a design needs to break one of these, fine. Write down why and what it costs.

flowchart TB
    Start[Data must move] --> Q1{Same zone possible?}
    Q1 -- Yes --> Free[Keep it in-zone]
    Q1 -- No --> Q2{Must survive zone loss?}
    Q2 -- Yes --> Cross[Accept cross-zone cost, batch and compress]
    Q2 -- No --> Move[Move compute to the data]
    Cross --> Q3{Leaves the region or cloud?}
    Q3 -- Yes --> CDN[Cache or CDN, send only what is needed]
    Q3 -- No --> Done[Done]

This flowchart shows the order of questions to ask when a transfer crosses a boundary: keep it local, then accept zone cost only for resilience, then minimise anything that leaves the region.

Leaving a provider

Moving all your data out of a provider is egress like any other, so a large migration can be a large line item. In 2024 AWS, Google Cloud and Azure each announced a way to waive internet egress fees for customers moving their data off the platform. The waivers come with conditions (for example, a support request or application first, and on Azure, cancelling your subscriptions within a time limit), and they do not cover ordinary day-to-day egress. Estimate the transfer volume early and read each vendor's current terms before you count on a waiver. See the cloud-to-cloud migration guide.

πŸ“– AWS: Free data transfer out to internet when moving out of AWS - the AWS announcement and how to request it

πŸ“– Google Cloud: Eliminating data transfer fees when migrating off Google Cloud - the Google Cloud announcement and its conditions

πŸ“– Azure: Free data transfer out to internet when leaving Azure - the Azure update and its process

How to see your own transfer costs

You cannot fix what you cannot see. Do this before you optimise.

  1. Group the bill by usage type. In AWS Cost Explorer, filter on usage types containing DataTransfer or NatGateway. Azure Cost Management and Google Cloud billing reports can group by meter or SKU.
  2. Turn on flow logs for the busiest VPCs or VNets, then aggregate bytes by source, destination and port. This tells you which services talk, not just how much.
  3. Tag by workload, so a transfer line item has an owner. See FinOps principles.
  4. Set a budget alert on the networking category. Anomaly alerts catch a runaway sync job faster than a monthly review.

Common mistakes

  • Assuming "same region" means free. Cross-zone traffic inside a region is often billed.
  • Using NAT for traffic that has a free endpoint.
  • Spreading a chatty call chain across zones without measuring the transfer.
  • Replicating everything cross-region "just in case."
  • Benchmarking in one zone, then deploying across three. Costs change with the topology.
  • Ignoring logs and metrics as a data stream.
  • Quoting a transfer rate from a blog post. Use the vendor's current pricing page.

What to look at next

Check yourself

Try these before you move on. Each answer is collapsed; click it to check yourself.

  1. Name three boundaries a transfer can cross that are commonly billed.

    Answer Between availability zones in a region, between regions, and out to the internet. Inbound transfer is usually free. See: The mental model

  2. Why can sending S3 traffic through a NAT gateway cost more than it should?

    Answer A NAT gateway charges per gigabyte it processes, while a gateway endpoint for S3 has no additional charge. See: Where surprise bills come from

  3. A chatty service and its database are in different zones. What is the cost, and what is the fix?

    Answer Every query and result crosses a zone boundary and is usually billed. Co-locate the hot path in one zone and keep replicas in other zones for failure. See: A decision rule for placement

  4. How would you find out where your own transfer costs come from?

    Answer Group the bill by usage type or meter, enable flow logs, tag by workload, and alert on the networking category. See: How to see your own transfer costs