Writing
NAT gateway costs, and when a VPC endpoint is cheaper
What a NAT gateway really charges for, how to find the traffic behind the bill, and when a free gateway endpoint or a paid interface endpoint costs less.
4 November 2026

TL;DR
- A NAT gateway bills for every hour it exists and for every gigabyte it processes, whatever the destination. Traffic to S3 in the same Region still pays the processing fee if it goes through the NAT.
- Gateway endpoints for S3 and DynamoDB carry no additional charge. If your private subnets talk to S3 through a NAT gateway, that is usually the first and cheapest fix.
- Interface endpoints for other AWS services cost money per hour, per Availability Zone, plus a smaller per-GB fee. They pay for themselves on cost only above a certain volume, and we show the arithmetic.
- One NAT gateway per Availability Zone costs more than one shared gateway, but with a shared gateway, an outage in its zone cuts internet access for the other zones too. In production we keep one per zone, or use a regional NAT gateway.
- To find the traffic, start in Cost Explorer (the usage types ending in NatGateway-Bytes and NatGateway-Hours), then use CloudWatch metrics and VPC Flow Logs to name the sources.
The NAT gateway is one of the easiest lines on an AWS bill to miss. It does not appear as a service of its own in Cost Explorer, it charges for traffic you never think of as “internet traffic”, and it keeps billing in environments nobody uses. Here is what it charges for, how to see where the money goes, and the fixes we reach for first. Prices below are in US dollars, because that is how AWS publishes them, and were checked in November 2026. AWS prices can change, so check the pricing pages before you act on a number.
What a NAT gateway charges for
A NAT gateway lets resources in private subnets connect to services outside the VPC, including the internet and AWS public endpoints, while outside services cannot start a connection back to them. The Amazon VPC pricing page sets out the charges: you pay for each hour the gateway is provisioned and available, with a partial hour billed as a full hour, and you pay a data processing charge “for each gigabyte processed through the NAT gateway regardless of the traffic’s source or destination.” Standard data transfer charges come on top. A public NAT gateway also needs a public IPv4 address (an Elastic IP address), and AWS charges for every public IPv4 address in use, at US$0.005 an hour.
Here are the rates for Canada (Central):
| Item | Price |
|---|---|
| NAT gateway, per hour | US$0.050 |
| NAT gateway, per GB processed | US$0.050 |
| Public IPv4 address on the gateway, per hour | US$0.005 |
| Regional NAT gateway, per Availability Zone per hour | US$0.050 |
| Gateway endpoint for S3 or DynamoDB | No additional charge |
| Interface endpoint, per Availability Zone per hour | US$0.011 |
| Interface endpoint, per GB processed (first PB a month in the Region) | US$0.010 |
| Data transfer between Availability Zones | US$0.01 per GB in each direction |
AWS’s own worked example on the VPC pricing page uses US East (Ohio), where the gateway is US$0.045 an hour and US$0.045 per GB. Other Regions differ, so read the rate for yours.
A gateway that sits idle still costs money. AWS’s own cost formulas use 730 hours in a month, so in Canada (Central) one gateway is 730 × US$0.050 = US$36.50 a month in hours, plus 730 × US$0.005 = US$3.65 for its public IPv4 address. That is US$40.15 a month before a single byte goes through it. A forgotten development VPC with a NAT gateway in each of three zones is about US$120 a month for nothing.
The processing fee is the part that is easy to miss. In AWS’s pricing example, an instance sends a 1 GB file to S3 in the same Region through a NAT gateway. There is no charge for the data transfer itself, because EC2 to S3 in the same Region is free. The NAT gateway still charges its processing fee on that gigabyte. The same example warns that if the instance and the gateway sit in different Availability Zones, data transfer charges apply between them as well. AWS’s networking guide for Amazon ECS names the usual cases: downloading large files from S3, running a high volume of DynamoDB queries, and pulling images from ECR through a NAT gateway are all charged for every gigabyte.
How to see what your NAT gateway costs
Start in Cost Explorer
Cost Explorer does not list NAT gateways as a service. AWS groups them under EC2 - Other, alongside other costs such as EBS volumes and snapshots, and data transfer. To pull them out, AWS’s own Cost Explorer tips suggest filtering to EC2-Other and grouping by usage type. Then look for these rows, each starting with a Region code (CAN1 is Canada (Central), as AWS’s price list shows):
- NatGateway-Hours: the hourly charge. If this line is larger than the bytes line, you may have more gateways than you need, for example in environments nobody uses.
- NatGateway-Bytes: the processing charge. If this is the big line, the traffic is the problem, and the next two tools will show you whose traffic it is.
- RegionalNatGateway-Hours and RegionalNatGateway-Bytes: the same two charges for regional NAT gateways, covered below.
- DataTransfer-Regional-Bytes: data transfer between Availability Zones in the Region, such as traffic crossing a zone to reach a NAT gateway in another one. AWS meters both the outbound and the inbound side of each transfer.
Two related lines sit under Amazon VPC instead, according to AWS’s list of VPC billing codes: PublicIPv4:InUseAddress for the gateway’s public address, and VpcEndpoint-Hours and VpcEndpoint-Bytes for any interface endpoints you already run. If you have several accounts, filter to one linked account at a time, or switch the grouping to linked account, so you can see which environment the money comes from.
Find when it happens, with CloudWatch
Each NAT gateway publishes CloudWatch metrics. BytesOutToDestination and BytesInFromDestination show the traffic going out and coming back, and BytesInFromSource shows what your own resources sent to the gateway. Graph them with the Sum statistic over a few weeks. A steady line suggests something constant, such as log shipping. Spikes that line up with deploys or scale-ups may point at container image pulls.
Find who is sending it, with VPC Flow Logs
To name the sources, AWS’s Knowledge Center has a guide to finding the top contributors to NAT gateway traffic. Turn on flow logs for the VPC or the gateway’s network interface, then query them with CloudWatch Logs Insights or Athena. This query, from that guide and trimmed to a single gateway address, lists the instances sending the most traffic through the gateway (replace the placeholders with your gateway’s primary private IP address and your VPC’s CIDR range):
filter (dstAddr in ["example-NAT-private-IP"] AND isIpv4InSubnet(srcAddr, "example-VPC-CIDR"))
| stats sum(bytes) as bytesTransferred by srcAddr, dstAddr
| sort bytesTransferred descIf you use a custom flow log format, add the pkt-srcaddr, pkt-dstaddr and pkt-dst-aws-service fields. The last one names the AWS service behind a destination address, with values such as S3 and DYNAMODB. If a large share of your NAT bytes go to S3, you have found your fix. One caution: flow logs are not free. AWS charges data ingestion and archival for vended logs, so keep the scope narrow and turn them off when you have your answer, unless you want them for security.
The usual culprits
S3 traffic through the NAT
Backups, user uploads, log archives, build artifacts and data exports all go to S3. In a private subnet with no S3 endpoint, every one of those bytes pays the NAT processing fee. This is the first fix we look for, because it is also the cheapest.
Container image pulls from ECR
Amazon ECR stores image layers in S3. A container pulls the manifest from ECR, then downloads the layers from S3. Each new task or node that does not already have the image downloads its layers again, so deploys and scale-ups on ECS or EKS can push a lot of bytes through a NAT gateway. The S3 gateway endpoint takes the layer downloads off the NAT. If your endpoint policy restricts which buckets it allows, it must allow the ECR layer bucket, which the ECR guide names.
Cross-zone trips to a shared gateway
AWS’s guidance on NAT gateway pricing is to keep heavy senders in the same zone as their gateway, or to create a gateway in each zone. When every private subnet routes to one gateway, traffic from the other zones also pays cross-zone transfer on the way there and back.
Other AWS APIs
Calls to services such as CloudWatch Logs, SQS or Secrets Manager also go through the NAT unless an interface endpoint exists. All three are on AWS’s list of services that support interface endpoints. API calls are often small. Shipping logs can be the exception, so check the bytes before you decide.
Gateway endpoints and interface endpoints
There are two kinds of VPC endpoint for AWS services, and they price very differently.
| Feature | Gateway endpoint | Interface endpoint |
|---|---|---|
| Services | S3 and DynamoDB only | Many AWS services, including S3, DynamoDB, ECR and CloudWatch Logs |
| Cost | No additional charge | Hourly, per Availability Zone, plus a per-GB processing fee |
| How it works | A target in your subnet route tables | A network interface in your subnets, usually with private DNS |
| Reach | Only inside the VPC and Region where you create it | Also reachable from on-premises networks, peered VPCs in other Regions and transit gateways |
The gateway endpoint documentation says it directly: “There is no additional charge for using gateway endpoints.” The AWS Knowledge Center’s advice on reducing NAT gateway charges says the same: if most of your NAT charges come from traffic to S3 or DynamoDB in the same Region, set up a gateway endpoint and route that traffic through it.
Two things to know before you add one. First, a gateway endpoint for S3 or DynamoDB only works in its own Region, so buckets elsewhere still go through the NAT. Second, adding it changes the routes and AWS warns that it “disconnects open TCP connections.” Do it in a quiet window, and make sure your software reconnects.
If you also run an interface endpoint for S3, check its DNS setting. With plain private DNS, traffic from inside the VPC uses the paid interface endpoint instead of the free gateway. The S3 guide explains the setting that sends only on-premises traffic to the interface endpoint.
When an interface endpoint is worth its hourly cost
An interface endpoint has a fixed monthly cost, and it saves the gap between the NAT processing fee and its own. In Canada (Central), at the prices above:
- One endpoint in two zones costs 2 × 730 × US$0.011 = US$16.06 a month in hours.
- Every gigabyte moved off the NAT saves US$0.050 − US$0.010 = US$0.040.
- So it breaks even at US$16.06 ÷ US$0.040, about 400 GB a month of that service’s traffic.
- In three zones the hours are US$24.09, and break-even is about 600 GB a month.
Below that volume, an interface endpoint costs more than it saves. Some services need more than one endpoint, which raises the bar. ECR uses two, ecr.api and ecr.dkr, plus the S3 gateway endpoint for the layers. Once the free S3 endpoint carries the layers, check what ECR traffic is left on the NAT. It may be too small to justify two paid endpoints on cost alone.
Cost is not the only reason, though. If you want private subnets with no route to the internet at all, endpoints are how those subnets reach AWS services: gateway endpoints for S3 and DynamoDB, interface endpoints for the rest. That is a security decision, and it is a fair one to pay for. Just make it on purpose.
One NAT gateway per zone, or one shared
The AWS documentation on NAT gateway basics is clear about the risk: “If you have resources in multiple Availability Zones and they share one NAT gateway, and if the NAT gateway’s Availability Zone is down, resources in the other Availability Zones lose internet access.” AWS’s advice is a gateway in each zone, with each zone’s subnets routed to their own gateway.
The trade, in Canada (Central) numbers: each extra gateway costs about US$40.15 a month with its address. Sharing one saves that, adds cross-zone charges for the traffic from the other zones, and turns one zone into a single point of failure for anything that calls a third-party API, fetches a package or sends an email. Our default:
- Production: one NAT gateway per zone, or a regional NAT gateway. We would rather pay about US$40 a month per zone than lose outbound access in every zone during one zone’s outage.
- Staging and development: one shared gateway is a fair trade, if everyone knows that a zone outage cuts outbound access there.
- Environments nobody uses: delete the gateway, or the whole VPC.
AWS now also offers regional NAT gateways. One regional gateway expands across the zones where you have workloads, without public subnets or a route table per zone. It is billed per zone-hour, at US$0.050 in Canada (Central), so in a three-zone VPC its hourly charge matches three zonal gateways. The gain is simpler setup and high availability by default, not a lower bill. AWS notes that it can take up to 60 minutes to expand into a new zone, and traffic crosses zones until it does. It does not support private NAT. Switching from zonal gateways resets existing connections, so plan a maintenance window.
A worked example, with invented numbers
The numbers below are illustrative arithmetic on an invented setup. They are not a client result, and your traffic will differ.
Say a production VPC in Canada (Central) has private subnets in three zones and one NAT gateway in each. Each month 3,000 GB goes through the gateways: 1,800 GB to S3 (backups, uploads and logs), 700 GB of container image layers pulled from ECR, and 500 GB to the internet.
- Hours: 3 × 730 × US$0.050 = US$109.50.
- Public IPv4 addresses: 3 × 730 × US$0.005 = US$10.95.
- Processing: 3,000 GB × US$0.050 = US$150.00.
- Total: US$270.45 a month, before internet data transfer, which stays the same either way.
Add an S3 gateway endpoint. The S3 traffic and the image layers, 2,500 GB in all, leave the NAT. Processing drops to 500 GB × US$0.050 = US$25.00, and the total to US$145.45. That saves US$125.00 a month, or US$1,500 a year, for a change that costs nothing to run.
Plain arithmetic on invented traffic at Canada (Central) prices checked November 2026, in USD. AWS prices can change. Not a client result or a promised outcome.
Should this team add interface endpoints for ECR as well? Two endpoints in three zones cost 2 × 3 × 730 × US$0.011 = US$48.18 a month, so together they break even at US$48.18 ÷ US$0.040, about 1,200 GB a month of ECR traffic. In this example we assume the ECR traffic left after the S3 endpoint is a few gigabytes, far below that, so on cost alone the answer is no. Should they share one NAT gateway to save another US$80.30? Not in production, for the reason above. In their staging account, probably yes.
A short checklist
- Filter Cost Explorer to EC2-Other, group by usage type, and find the NatGateway-Hours and NatGateway-Bytes lines.
- Delete NAT gateways in environments nobody uses.
- Add gateway endpoints for S3 and DynamoDB in every VPC with private subnets, in a quiet window.
- Use CloudWatch metrics and flow logs to name whatever traffic is left.
- Add an interface endpoint when the traffic clears the break-even above, or when you want subnets with no internet route.
- Keep one gateway per zone, or a regional gateway, in production. Share one only where a zone outage is acceptable.
NAT spend is one of the lines we read when we first open an AWS account. The rest of the bill has its own levers, which we cover in why your AWS bill creeps up and sizing a Savings Plan for a small SaaS team. If you run EKS, a managed node group upgrade launches new nodes, and fresh nodes have to pull your images, so put the S3 endpoint in place before you work through our EKS upgrade checklist. All our guides are collected on the AWS cost and reliability page.
Sources, all from AWS and checked in November 2026 (AWS prices can change): Amazon VPC pricing, AWS PrivateLink pricing, the AWS Price List (for the Canada (Central) rates and usage type names, files published 3 and 4 November 2026), NAT gateways, pricing for NAT gateways, NAT gateway basics, regional NAT gateways, NAT gateway metrics, gateway endpoints, gateway endpoints for S3, gateway endpoints for DynamoDB, ECR interface endpoints, connecting Amazon ECS to AWS services, EKS node update behaviour, services that support interface endpoints, flow log record fields, VPC Flow Logs, Cost Explorer service grouping, understanding data transfer charges, Amazon VPC billing codes, Cost Explorer tips, EC2 instance IP addressing, and the Knowledge Center articles on finding NAT gateway traffic sources and reducing NAT gateway charges. The worked example uses invented numbers.
Have us read your NAT line
Reading the NAT and data transfer lines, and naming the traffic behind them, is part of the cost review in our AWS Cost and Reliability Audit: free, read-only, and about a week. It covers one production AWS account plus its staging account if there is one, across the Regions you use, from read-only access. You get the top three fixes, each with its estimated saving and effort, plus any urgent security problem we find, in a short written summary, and a readout call. If your NAT spend is too small to be worth fixing, the summary says so, and there is no obligation to buy anything after the readout. The full prioritised list and a 30-day fix list open a paid fix sprint ($4,500 to $7,500 CAD, before GST where it applies). AWS costs stay on your own account. We reply within one or two business days.
Not ready for that? The free AWS self-check is twelve questions you can answer yourself, and the free audit, fix sprint and retainer ladder is on the managed DevOps page.

The monthly AWS note
One AWS cost or reliability fix a month.
For small SaaS teams running AWS without a DevOps hire. One short email a month:
- One concrete fix for cost or reliability, with the console steps or CLI command
- A common AWS mistake small teams make, and how to avoid it
- New RavGB guides and free tools, before anyone else
From RavGB Technologies Inc., Saddlemont NE, Calgary, AB, Canada (hello@ravgb.com). By subscribing you agree to receive this monthly email. No spam, we never share your address, and you can unsubscribe in one click, any time.