NAT Gateway Costs Explained: AWS vs. Azure Pricing, Architecture and Optimization
Compare AWS zonal and regional NAT with Azure Standard and StandardV2 NAT, model processing and egress charges, and evaluate endpoints and centralized outbound access.
NAT Gateway often enters an architecture as a simple requirement: private workloads need outbound access. Its bill becomes harder to explain when container images, package downloads, external APIs, and telemetry all pass through the same gateway.
Network address translation (NAT) replaces a connection’s source address so private clients can communicate with external destinations. A managed NAT gateway permits return traffic for initiated connections. It is not an application firewall, a general inbound publishing service, or a requirement for every private service call.
This guide compares the architecture and economics of AWS and Azure NAT. Calculations use illustrative USD assumptions and 730 hours per month; confirm region, SKU, billing units, and actual allowances before purchase.
1. When a private subnet needs outbound translation
A private client connecting to a public IPv4 endpoint needs an appropriate outbound path. A public NAT gateway is one option. A private endpoint, supported service endpoint, proxy, or suitable IPv6 design can provide a different path depending on the destination.
In AWS, a traditional public zonal NAT gateway sits in a public subnet, and private-subnet routes direct eligible outbound traffic to it. Its internet path uses an internet gateway. AWS private NAT serves different private routing use cases and is not a substitute for public internet NAT.
Azure NAT Gateway associates with subnets in one VNet rather than requiring a gateway route in each AWS-style private-subnet route table. User-defined routes to appliances or gateways still matter: associating NAT does not mean every flow will take it.
2. AWS: zonal NAT, regional NAT, or a NAT instance?
| Option | Operating model | Availability and cost consequence |
|---|---|---|
| Zonal NAT Gateway | Managed service in one AZ | Route each zone to a local gateway for a common resilient design |
| Regional NAT Gateway | One managed NAT ID that expands across zones | Simplifies management; configured AZ-hours still contribute to billing |
| NAT instance | EC2 instance configured to forward and translate | You manage software, sizing, failover and scaling |
AWS regional NAT automatically expands and contracts with workload presence in its automatic mode. It supports public rather than private NAT. Expansion can take up to 60 minutes; traffic can temporarily cross zones while expansion completes. Manual mode requires explicit zone and address management.
Regional availability does not mean one zonal gateway’s hourly price covers all zones. The VPC pricing schedule bills regional NAT per configured AZ-hour as well as processed data. Address charges and applicable transfer are additional.
A NAT instance can suit a deliberately managed niche or test environment. Compare the EC2 price plus operations, patching, routing, source/destination-check configuration, throughput, connection tracking, and failover testing. A cheaper instance-hour alone does not establish lower total cost.
3. Azure: Standard versus StandardV2
Microsoft’s NAT SKU comparison distinguishes Standard from StandardV2. Standard is zonal or placed without an explicitly selected zone; “no zone” does not mean zone redundant. StandardV2 is zone redundant and adds IPv6 support and higher aggregate performance.
For supported deployments, StandardV2 is designed for up to 100 Gbps aggregate throughput. Standard’s documented aggregate limit is 50 Gbps with directional constraints. Treat these as service limits, not guaranteed application throughput; ports, packet rates, connection behavior, and downstream services can constrain a workload first.
Check compatible public IP SKUs and region availability when planning a migration. Azure NAT is not inherently a transitive outbound gateway for peered VNets. A centralized egress design generally needs an explicitly routed appliance/firewall architecture; AWS-style gateway diagrams do not transfer directly to Azure.
Azure also changed the defaults for new VNets using API versions released after March 31, 2026: their subnets default to private and need an explicit outbound method for relevant public destinations. Existing VNets are not automatically changed. Check default outbound access guidance instead of assuming an old template’s implicit internet access will persist.
4. NAT charges stack with other meters
The core estimate is:
NAT-related cost
= billable gateway-hours × hourly rate
+ processed GB × processing rate
+ applicable public-IP charges
+ applicable transfer charges
+ transit / firewall / monitoring charges on the actual path
Processed GB includes eligible traffic in both directions, including responses. Internet egress concerns the outward transfer leg. They are different quantities. See the Azure NAT pricing page for SKU-specific billing, and the transfer guide for boundary rules.
An upload with a small response and a download with a small request can incur similar NAT processing if their total byte volumes match. Estimating NAT from outbound-only application counters understates download-heavy workloads.
5. Monthly example: traffic dominates the gateway fee
Assume one billable gateway unit runs for 730 hours. The workload sends 1,000 GB to the internet and receives 9,000 GB of responses. Use illustrative rates of $0.045/hour, $0.045/GB processing, $0.09/GB billable internet egress, and $0.005/hour for one public IPv4.
| Component | Calculation | Cost |
|---|---|---|
| Gateway availability | 730 × $0.045 | $32.85 |
| Processing | (1,000 + 9,000) × $0.045 | $450.00 |
| Internet egress | 1,000 × $0.09 | $90.00 |
| One public IPv4 | 730 × $0.005 | $3.65 |
| Modeled total | Sum | $576.50 |
The example assumes all 1,000 outbound GB are billable after allowance treatment and excludes cross-zone, transit, inspection, and logs. Reuse the formula with Azure’s selected rates; identical arithmetic does not imply equal provider prices or gateway architecture.
Stopping the application without deleting an unnecessary gateway may leave the fixed charge. Reducing unnecessary downloads affects the much larger processing component.
6. One central AWS gateway versus one per zone
Consider three zones and a zonal NAT design. At the same illustrative hourly rate, three gateways cost $98.55/month rather than $32.85. The extra availability charge is $65.70 before additional public IPs.
Assume the central design incurs an aggregate extra $0.02/GB for qualifying cross-zone traffic, with no other differences. Avoiding 3,285 GB/month offsets the $65.70 gateway-hour difference:
Break-even traffic = $65.70 / $0.02 = 3,285 GB
This is a sensitivity calculation, not a universal architecture recommendation. Add public IPs, any transit processing, the actual charged sides, and failure requirements. Traffic can follow a different path after failover. Regional NAT offers another operational model whose AZ-hour costs must be estimated separately.
Centralized egress through Transit Gateway can introduce attachment and processing charges. VPC peering alone cannot make another VPC’s NAT gateway a shared transitive egress service.
7. Endpoint alternatives: measure the marginal change
AWS S3 and DynamoDB gateway endpoints have no additional endpoint charge and avoid NAT on supported routes. Gateway endpoints are not universal transit endpoints for every peered or on-premises client. Interface endpoints have a different hourly and processing model.
Suppose 8,000 GB/month of same-region S3 traffic can move from NAT to a correctly configured gateway endpoint. At the example’s processing rate, avoided NAT processing is 8,000 × $0.045 = $360/month. NAT availability and public-IP charges remain if the gateway is still needed.
For Azure, basic service endpoints and Private Endpoints are different designs. Basic service endpoints use supported services’ public endpoints with VNet identity and service-side access rules. Private Endpoints place a private interface in the VNet and introduce their own charges and DNS requirements. Newer paid Standard service endpoints require a separate assessment. The private networking guide covers these distinctions.
An endpoint is a cost optimization only when its full cost and security behavior fit the workload. Multiplying hourly endpoint fees across many services and VNets can outweigh avoided NAT processing.
8. Containers, microservices, scaling and port exhaustion
Image pulls during autoscaling can create large bursts. Pulling the same layers repeatedly, fetching dependencies at startup, exporting verbose logs, or retrying a failing API can all increase traffic without increasing useful output.
Measure destination volume and application behavior. Cache artifacts where policy permits, reduce image size, reuse connections appropriately, and limit unbounded retries. Check whether an endpoint-enabled registry still needs other service dependencies for authentication or image layers.
AWS documents scaling and connection limits in NAT gateway basics. Connection concentration toward a single destination can exhaust ports even when aggregate bandwidth is modest. Monitor connection errors, dropped packets, and latency alongside bytes. Adding IPs or gateways should address a measured limit rather than mask faulty connection reuse.
9. Security, troubleshooting and cleanup
NAT’s lack of unsolicited inbound access does not restrict which external destinations clients may contact. Apply identity controls, egress policy and inspection according to requirements. Native NAT integration with AWS Network Firewall can also affect pricing discounts; the security-cost guide explains why adding two list prices can overstate eligible combined costs.
When connectivity fails, verify DNS, effective routes, subnet association, security rules, public-IP compatibility, port availability, and destination response. Confirm the path before blaming the gateway.
Before removing an apparently idle gateway, review scheduled jobs, deployments, disaster-recovery procedures, and external allowlists that depend on its addresses. Test a reversible route change and observe a representative period.
10. How CloudVectra helps
CloudVectra cost visibility supports comparisons of NAT-related service spending and cost trends across AWS and Azure. Cost Centers provide ownership and shared-cost context for centrally operated networking.
Use anomaly detection to prioritize unexpected spending changes, then validate the cause using gateway metrics and provider telemetry. A dollar spike identifies an investigation target; it does not by itself reveal a container, connection, or external domain.