Keel

Why is my AWS NAT Gateway so expensive, and how do I reduce it?

By the Keel team · Last checked · 6 min read

Short answer

A NAT gateway charges for each hour it is available and for each gigabyte it processes, with standard data transfer charges on top. The bill grows when private workloads push a lot of traffic through it, often to AWS services such as S3. The usual fixes are an S3 gateway endpoint, which AWS says has no additional charge, endpoints for other heavy AWS services where they cost less than the processing they replace, and fewer gateways in non-production.

What does a NAT gateway actually charge for?

A NAT gateway charges for each hour it is available and for each gigabyte of data it processes.

AWS's NAT gateway pricing page says exactly that, and the VPC pricing page adds that you also incur standard AWS data transfer charges for all data transferred via the gateway.

Rates differ by Region. The figures in this post are the US East (Ohio) rates the VPC pricing page showed when checked in November 2026: $0.045 per hour for a gateway and $0.045 per GB processed. Look up London (eu-west-2) on that page before doing sums for your own account. The cost model matters more than the numbers: a fixed monthly cost for every gateway you run, plus a variable cost that grows with traffic.

The three parts of a NAT gateway bill
Cost partHow it is chargedWhere it adds up
Gateway availabilityPer hour, per gatewaySeveral gateways across zones and environments
Data processedPer GB through the gatewayImage pulls, downloads, logs and S3 traffic from private subnets
Data transferStandard AWS data transfer chargesTraffic leaving AWS or crossing zones via the gateway

How much can a few gateways cost before any traffic?

A few gateways can cost a surprising amount before they process a single byte, because the hourly charge applies to every gateway in every environment.

The arithmetic below is illustrative: it uses the US East (Ohio) hourly rate above and an average month of 730 hours.

  • One gateway: 730 hours x $0.045 = $32.85 a month.
  • One gateway in each of three Availability Zones: 3 x $32.85 = $98.55 a month.
  • The same layout copied into staging, six gateways in all: 6 x $32.85 = $197.10 a month.
  • Add 2,000 GB processed in the month: 2,000 x $0.045 = $90.00 of processing on top.

London rates will differ, so redo this with the current figures. The point is that the fixed part is easy to multiply by accident, and it is paid even when staging is idle.

Which traffic usually inflates a NAT gateway bill?

Traffic from private subnets to AWS services such as S3 is the usual culprit, because the gateway processes and bills it per GB even though an endpoint could carry it instead.

AWS's own NAT gateway pricing guidance says that if most traffic through a gateway goes to AWS services that support endpoints, you should consider creating one.

  • Reads and writes to S3 from application subnets.
  • Container image pulls and package downloads, repeated on every deploy and every scale-out.
  • Logs, metrics and traces shipped out of the VPC.
  • Backups, exports and data syncs run from private subnets.
  • Genuine calls to third-party APIs, which do need a route to the internet.

Only the last item truly needs the gateway. The rest are candidates for an endpoint, a smaller volume, or both. Why an AWS bill can be high with almost no users covers NAT gateways briefly alongside other quiet costs.

How do you estimate the saving before changing anything?

Work out how much of the gateway's processed data goes to AWS services, because that is the part an endpoint can remove.

The method is simple arithmetic on your own bill.

  1. Split last month's NAT lines into gateway hours and GB processed.
  2. Identify the biggest destinations. Your bucket names, container registry and log shipping settings usually explain most of it.
  3. Multiply the GB going to AWS services by the per-GB processing rate for your Region.
  4. Subtract the charges of any interface endpoints you would add.
  5. Compare what is left with the effort and risk of the change.

Illustrative example at US East (Ohio) rates: 2,000 GB processed in a month, of which 1,400 GB is S3 traffic. A gateway endpoint for S3 removes 1,400 x $0.045 = $63.00 of processing, and AWS says gateway endpoints for S3 have no additional charge. If you cannot tell which services are behind the bill, start with how to work out which AWS service is driving your bill.

How do you add an S3 gateway endpoint?

Create a gateway endpoint for S3 in the VPC and associate it with the route tables used by your private subnets.

AWS's documentation says there is no additional charge for gateway endpoints, and that associating a route table adds the route to the endpoint automatically.

resource "aws_vpc_endpoint" "s3" {
  vpc_id            = aws_vpc.main.id
  service_name      = "com.amazonaws.${var.aws_region}.s3"
  vpc_endpoint_type = "Gateway"
  route_table_ids   = [aws_route_table.private.id]
}

The same thing from the AWS CLI, for an account you are not yet managing in code:

aws ec2 create-vpc-endpoint \
  --vpc-id vpc-0123456789abcdef0 \
  --vpc-endpoint-type Gateway \
  --service-name com.amazonaws.eu-west-2.s3 \
  --route-table-ids rtb-0123456789abcdef0

Two limits from AWS's documentation are worth knowing. A gateway endpoint is available only in the Region where you created it, and it cannot be used from on-premises networks, peered VPCs in other Regions or through a transit gateway. Those cases need an interface endpoint, which costs extra. Make the change through your normal pull request and pipeline, and confirm S3 access from a private subnet afterwards.

Do interface endpoints always save money?

No, an interface endpoint only saves money where the traffic it takes off the gateway costs more to process than the endpoint costs to run.

AWS says interface endpoints are available for an additional cost, unlike gateway endpoints for S3.

AWS's NAT gateway guidance points to the PrivateLink pricing page for the potential savings. Compare that page's charges for your Region with the processing charge you would avoid. A service that moves a few GB a month will not repay an endpoint, while a service pulling large volumes on every deploy may. Treat each endpoint as a small purchase with its own break-even, not a default.

What do you lose by running fewer NAT gateways?

You lose some resilience, because private subnets in a zone without a gateway depend on a gateway in another zone.

If the zone holding the only gateway has problems, those workloads lose their route out until it recovers.

AWS's guidance is to keep resources in the same Availability Zone as the gateway they use, or to create a gateway in each zone that has resources. The data transfer overview adds that traffic crossing zones is charged, so a single shared gateway can add cross-zone transfer. For production, a gateway per zone is usually the safer default. For staging and development, one gateway is a sensible trade if a short outbound outage is acceptable. How AWS data transfer charges work explains the cross-zone part, and the monthly AWS cost review checklist is the place to keep gateway counts honest.

Is your NAT gateway bill under control?

Tick each item that is true today.

  • You know how many NAT gateways you run and in which environments.
  • You have split a month's NAT lines into gateway hours and GB processed.
  • S3 traffic from private subnets goes through a gateway endpoint.
  • Any interface endpoint carries more traffic than it costs to run.
  • Non-production does not run a gateway per zone without a reason.
  • NAT gateway lines appear in your monthly cost review.

Decision point: Five or six ticks: your NAT costs are understood. Three or fewer: start with the S3 endpoint and the gateway count, which are the quickest checks.

Sources

  1. AWS, Amazon VPC pricing (NAT gateway) (checked November 2026)
  2. AWS docs, Pricing for NAT gateways (checked November 2026)
  3. AWS docs, Gateway endpoints for Amazon S3 (checked November 2026)
  4. AWS Architecture Blog, Overview of Data Transfer Costs for Common Architectures (30 June 2021, page modified October 2026)

Keep reading

Keel is an AWS release and recovery operations service for SaaS teams of 3 to 15 developers, provided by Bargainn Services Ltd, a UK company registered at Companies House (16497746). Registered office: 3rd Floor, 86-90 Paul Street, London, EC2A 4NE, United Kingdom.