1. Home
  2. Articles
  3. Guide

Guide

Why is my AWS NAT Gateway bill so high?

NAT Gateways are one of the most common surprises on an AWS bill. Here is how they are charged in Sydney, how to find the traffic behind the cost, and the fixes that usually work, with the commands to do it.

Short answer: A NAT Gateway charges for every hour it exists and for every gigabyte it processes: $0.059 for each in Sydney. Bills usually grow because private workloads send S3, ECR or other AWS traffic through it. A free S3 gateway endpoint removes most of that; interface endpoints pay off above about 580 GB a month per service.

01 · Pricing

How a NAT Gateway is charged

A NAT Gateway has two charges:

  • An hourly charge for every hour it exists, whether or not traffic flows through it.
  • A data processing charge for every gigabyte that passes through it, in either direction.

The hourly charge is predictable. The processing charge is what grows: every gigabyte a private workload sends to the internet, to another AWS service’s public endpoint, or back from them, is processed by the gateway. Normal data transfer charges apply on top.

Charge in Sydney (ap-southeast-2)Rate (USD)Usage type on the bill
NAT Gateway, per hour$0.059APS2-NatGateway-Hours
NAT Gateway, per GB processed$0.059APS2-NatGateway-Bytes
Interface VPC endpoint, per hour per Availability Zone$0.013APS2-VpcEndpoint-Hours
Interface VPC endpoint, per GB processed (first PB)$0.01APS2-VpcEndpoint-Bytes
Gateway VPC endpoint (S3, DynamoDB)No charge

Rates are from the AWS price list in October 2026, exclude GST, and change from time to time. Check the pricing pages linked below before you budget.

02 · Example

A worked example

A typical setup has three NAT Gateways, one per Availability Zone, and a month has about 730 hours.

  • Hours: 3 gateways × 730 hours × $0.059 = $129.21 a month, before any traffic.
  • Processing: if workloads pull 5 TB a month from S3 (container layers, files, backups) through the gateways, that is 5,120 GB × $0.059 = $302.08 a month.

The second line is the one that grows, and it is often the easiest to remove: an S3 gateway endpoint would carry the same 5 TB for nothing.

03 · Diagnosis

Find the traffic behind the cost

1. Confirm it is processing, not hours

In Cost Explorer, group by usage type and compare NatGateway-Bytes with NatGateway-Hours. From the command line:

terminal
aws ce get-cost-and-usage \
  --time-period Start=2026-09-01,End=2026-10-01 \
  --granularity MONTHLY \
  --metrics UnblendedCost UsageQuantity \
  --filter '{"Dimensions":{"Key":"USAGE_TYPE","Values":["APS2-NatGateway-Bytes","APS2-NatGateway-Hours"]}}' \
  --group-by Type=DIMENSION,Key=USAGE_TYPE

Each Cost Explorer API request is billed (a cent each at the time of writing), so run it deliberately rather than in a loop.

2. Find the busiest gateway

The BytesOutToDestination and BytesInFromDestination CloudWatch metrics show traffic per gateway:

terminal
aws cloudwatch get-metric-statistics \
  --namespace AWS/NATGateway \
  --metric-name BytesOutToDestination \
  --dimensions Name=NatGatewayId,Value=nat-0123456789abcdef0 \
  --start-time 2026-09-01T00:00:00Z --end-time 2026-10-01T00:00:00Z \
  --period 86400 --statistics Sum

3. Find the sources and destinations

Turn on VPC Flow Logs for the gateway’s network interface, sending them to CloudWatch Logs, and run a Logs Insights query to rank the conversations by volume:

CloudWatch Logs Insights
filter interfaceId = "eni-0123456789abcdef0"
| stats sum(bytes) as totalBytes by srcAddr, dstAddr
| sort totalBytes desc
| limit 25

Private addresses on the source side are your workloads. To tell whether a destination is Amazon S3, compare it with the S3 prefix list for the region:

terminal
aws ec2 describe-managed-prefix-lists \
  --filters Name=prefix-list-name,Values=com.amazonaws.ap-southeast-2.s3

aws ec2 get-managed-prefix-list-entries --prefix-list-id pl-xxxxxxxx

In most environments, a large share of NAT traffic goes to Amazon S3, Amazon ECR or another AWS service.

04 · Fixes

The fixes, in the order to try them

1. Gateway endpoints for S3 and DynamoDB

Gateway VPC endpoints route traffic to Amazon S3 and Amazon DynamoDB privately, and AWS charges nothing for them: no hourly charge and no processing charge. Amazon ECR stores image layers in S3, so container image pulls benefit too. If your workloads pull container layers, read files or write logs to S3 through a NAT Gateway, this is usually the biggest and cheapest win.

endpoints.tf
resource "aws_vpc_endpoint" "s3" {
  vpc_id            = aws_vpc.main.id
  service_name      = "com.amazonaws.ap-southeast-2.s3"
  vpc_endpoint_type = "Gateway"
  route_table_ids   = aws_route_table.private[*].id
}

The endpoint only takes effect for subnets whose route tables are listed, and only for buckets in the same region. Traffic to buckets in other regions still goes through the gateway.

2. Interface endpoints, where the numbers work

Other services, such as Amazon ECR’s API, AWS Secrets Manager and Amazon CloudWatch Logs, need interface endpoints. These are not free. In Sydney, one interface endpoint in three Availability Zones costs 3 × 730 × $0.013 = $28.47 a month, plus $0.01 per GB.

The break-even against NAT processing is where $0.059 × GB = $28.47 + $0.01 × GB, which is about 580 GB a month per service. Below that, the NAT Gateway is cheaper; above it, the endpoint is. Do the sum per service before adding them.

3. Keep traffic in its Availability Zone

Run one NAT Gateway per Availability Zone and route each private subnet to the gateway in its own zone. Sending traffic to a gateway in another zone adds cross-zone data transfer charges, and makes that zone a single point of failure.

4. Question the traffic itself

Large, repeated downloads (the same container images, packages or datasets on every deploy) are often better cached, or pulled once into your own registry or bucket.

05 · Mistakes

Common mistakes

  • One gateway for every zone. Cheaper by the hour, but every gigabyte from the other zones also pays cross-zone transfer, and losing that zone takes outbound access with it.
  • An interface endpoint for every service. Each one is charged per hour in every zone. For services you call occasionally, they cost more than they save.
  • Creating the S3 endpoint but not associating route tables. Traffic keeps going through the gateway, and the bill doesn’t move.
  • An endpoint policy that is too tight. It can quietly block access to buckets you depend on, such as those used by AWS services or package mirrors. Test in non-production first.
  • Forgetting idle gateways. A gateway left in an unused VPC still costs about $43 a month in hours alone.
06 · Caution

What not to do

Don’t replace NAT Gateways with public IP addresses on workloads just to save money. It removes a layer of protection, and AWS charges for every public IPv4 address anyway ($0.005 an hour each in Sydney, about $3.65 a month). Keep workloads private, and reduce what they send through the gateway.

07 · Sources

Sources

See also Lower cloud costs, AWS consulting and AWS data transfer costs, explained.

Next step

Want a second pair of eyes on your bill?

On a 30-minute call we’ll look at where your networking costs come from and which fixes apply.