Every AWS engineer has opened their monthly bill at least once and stared in disbelief at a massive line item under VPC: NAT Gateway - Hourly & Data Processing.

Unlike EC2 instances that you can scale down or turn off on weekends, NAT Gateways have two silent design traps that quietly drain budgets 24/7.

Here is why it happens, how much it is actually costing you, and the 30-second fix.

Trap 1: The Idle Baseline Tax ($32.40/mo per AZ)

Even if zero packets pass through it, AWS charges $0.045 per hour simply for keeping a NAT Gateway provisioned.

  • Multi-AZ Best Practice (3 AZs): ~$97.20/month before transmitting a single byte.
  • 5 Development / Staging VPCs: ~$486/month thrown away on idle non-production environments.

If you have test VPCs running across multiple regions or accounts, you could easily be paying thousands of dollars a year for idle gateways doing nothing.

Trap 2: The S3 & DynamoDB Hairpinning Leak ($0.045/GB)

By default, any private subnet route table with 0.0.0.0/0 -> nat-gateway sends all outbound traffic through the NAT Gateway.

When an EC2 instance, ECS container, or EKS pod in your private subnet downloads an S3 checkpoint, Docker image layer, or queries DynamoDB, that traffic routes through the NAT Gateway:

  1. AWS charges you $0.045 per GB in NAT data processing fees.
  2. If your S3 bucket happens to be in a different Availability Zone than the NAT Gateway, AWS also hits you with $0.01/GB in cross-AZ data transfer fees in each direction.

If your nightly backup or batch pipeline pulls 10 TB of data per month, that is $450 to $650 per month in completely unnecessary processing fees for data that never needed to leave AWS's internal network.

The Free Fix: Gateway VPC Endpoints

AWS provides Gateway VPC Endpoints for Amazon S3 and Amazon DynamoDB.

Unlike Interface Endpoints (PrivateLink), Gateway Endpoints are 100% FREE:

  • $0.00 / hour
  • $0.00 / GB data processing

By adding an S3 Gateway Endpoint to your VPC route tables, all traffic between your private instances and S3 bypasses the NAT Gateway entirely through AWS's private backbone at zero cost.

Alternative for Small/Dev VPCs: fck-nat

For staging environments, development VPCs, or workloads with < 1 Gbps outbound throughput, you don't need a managed AWS NAT Gateway.

Running the open-source fck-nat AMI on an ARM-based t4g.nano EC2 instance costs ~$3.04/month total—delivering an 85% to 90% direct cost reduction compared to an idle managed gateway.

Audit Your VPC in 30 Seconds

Instead of doing manual spreadsheet math across AZs and transfer volumes, I built a free, 100% client-side calculator:

👉 DevOpsKit AWS NAT Gateway & Egress Trap Auditor

What it models:

  1. Exact idle gateway hourly tax across 1, 2, or 3 AZs.
  2. Cross-AZ hairpinning leaks from S3/DynamoDB traffic.
  3. Monthly dollar savings from enabling free Gateway Endpoints.
  4. Estimated savings switching to fck-nat on t4g.nano.
  5. Generates 1-click Terraform code to deploy Gateway Endpoints or fck-nat right into your infrastructure repo.

Constraints: 100% in-browser computation (zero backend, zero tracking, open source on GitHub).

Hope this helps you reclaim some cloud budget before your next AWS invoice arrives!