AWS Cost Optimization: 7 Places Your Bill Is Leaking (and How to Find Them)
The June invoice closes 18% above April's. Traffic grew 6% over the same two months. The CFO's question lands in the platform channel as one line, "what happened?", and nobody can answer it from the invoice, because the invoice is grouped by service and waste is grouped by resource.
AWS waste isn't random. It collects in seven places, every one of them findable with a command you can run today, and the fastest way in is to ask which kind of increase you're looking at before you hunt. This guide does both: twenty minutes of Cost Explorer to read the increase, then the seven leaks with a detection command and the list price that makes each one cost money.
Part two runs the full audit with native tools. Part three shows how Optimize keeps the picture current without the monthly scramble.
01Leftovers
Orphans
Unattached EBS volumes, old snapshots, unassociated Elastic IPs and idle load balancers, billing for nothing.
02Sizing
Oversized
EC2 and RDS sized for a launch-day guess, and non-prod environments running all week.
03Pricing and design
Overpaid
Stable compute on on-demand rates, and data transfer through NAT gateways and across AZs.
Start with the increase, not the list
Here's the 18% from the opening, worked through. The account and figures are illustrative. Name the possible readings first, because each one predicts something different in Cost Explorer:
01Reading 1
Real growth
A new service or a customer launch. Predicts new resources with owners and matching usage.
02Reading 2
Waste
Things nobody uses. Predicts cost rising in usage types that do not track traffic.
03Reading 3
Pricing drift
The same usage at a worse rate. Predicts falling commitment coverage as usage grows.
Step 1: which service moved? Pull April through June by service:
aws ce get-cost-and-usage \
--time-period Start=2026-04-01,End=2026-07-01 \
--granularity MONTHLY --metrics UnblendedCost \
--group-by Type=DIMENSION,Key=SERVICE
"Amazon Elastic Compute Cloud - Compute" is up $4,100 a month and "EC2 - Other" is up $2,300. RDS is flat. Nothing else moved much.
Step 2: usage or rate? Re-run for EC2 compute with --metrics UsageQuantity, grouped by USAGE_TYPE. Instance hours rose 9%, close to traffic, so cost grew faster than usage. Then check commitments for the same months:
aws ce get-savings-plans-coverage \
--time-period Start=2026-04-01,End=2026-07-01 \
--granularity MONTHLY
Coverage fell from 74% to 58%. That's reading 3: new usage landed outside the Savings Plan and billed at on-demand rates.
Step 3: what's in "EC2 - Other"? That bucket holds EBS, NAT gateways, Elastic IPs and data transfer. Grouped by usage type, the jump is USE1-NatGateway-Bytes and USE1-EBS:VolumeUsage.gp3. Neither tracks traffic. That's reading 2.
Conclusion. No new product explains it. Most of the gap is coverage that didn't keep up with growth (leak 3), and the rest is waste in volumes and NAT traffic (leaks 1 and 6). Twenty minutes turned "nobody can explain it" into three tickets with owners. Now the seven leaks, in order.
1. Unattached EBS volumes and orphaned snapshots
What it is. When you terminate an instance, its EBS volumes are deleted only if DeleteOnTermination is set, and for secondary volumes it usually isn't. The volume detaches, enters the available state, and keeps billing. Snapshots pile up the same way: an old backup script, an AMI built for a migration two years ago.
Why it happens. Deletion feels risky and storage feels cheap, so nothing gets deleted.
How to detect it. List every volume not attached to anything:
aws ec2 describe-volumes \
--filters Name=status,Values=available \
--query 'Volumes[*].{ID:VolumeId,Size:Size,Type:VolumeType,Created:CreateTime}' \
--output table
Then list snapshots you own that predate your retention policy (adjust the date):
aws ec2 describe-snapshots --owner-ids self \
--query 'Snapshots[?StartTime<=`2026-01-01`].{ID:SnapshotId,Vol:VolumeId,Size:VolumeSize,Start:StartTime}' \
--output table
Repeat per region. Orphans collect in the regions you stopped using.
What it costs. gp3 is $0.08 per GB-month and standard snapshots $0.05 in us-east-1 (EBS pricing). A forgotten 500 GB volume is $40 a month, forever. It's the safest money on this list: an unattached volume has no workload depending on it. Snapshot first, then delete.
2. Idle or oversized EC2 instances
What it is. Instances whose CPU sits in single digits for a month. Some are truly idle, like a proof of concept nobody shut down. Most are oversized: someone picked an m5.2xlarge to be safe and the service never needed more than an m5.large.
Why it happens. Capacity planning happens once, at launch, under uncertainty. Rightsizing means a restart, restarts need a change window, and change windows need someone to care.
How to detect it. Pull 30 days of CPU for a suspect instance:
aws cloudwatch get-metric-statistics \
--namespace AWS/EC2 --metric-name CPUUtilization \
--dimensions Name=InstanceId,Value=i-0123456789abcdef0 \
--start-time $(date -u -d '30 days ago' +%Y-%m-%dT%H:%M:%SZ) \
--end-time $(date -u +%Y-%m-%dT%H:%M:%SZ) \
--period 86400 --statistics Average Maximum
(On macOS, use $(date -u -v-30d +%Y-%m-%dT%H:%M:%SZ) for the start time.)
A common rule of thumb: average CPU under 10% and maximum under 40% over 30 days makes the instance a candidate. Check memory too if the CloudWatch agent publishes it, since CPU alone misjudges memory-bound services. For fleet-wide recommendations, AWS Compute Optimizer does the first pass, and part two shows how to check it.
What it costs. Each size down within a family halves the price. An m5.2xlarge is $0.384 an hour on-demand in us-east-1 and an m5.xlarge is $0.192 (EC2 pricing), so one step down saves about $140 a month per instance.
3. Savings Plans and Reserved Instance coverage gaps
What it is. Every hour of stable compute billed on-demand, instead of under a Savings Plan or Reserved Instance, pays the full rate when a discount was available. Savings Plans discounts run up to 72% against on-demand (AWS Savings Plans), depending on term, payment option and instance family.
Why it happens. Commitment feels scary ("what if we migrate off this family?"), so teams under-commit, or bought RIs three years ago and never renewed. Meanwhile coverage falls on its own every time usage grows past the commitment.
How to detect it. Savings Plans coverage for last month:
aws ce get-savings-plans-coverage \
--time-period Start=2026-06-01,End=2026-07-01 \
--granularity MONTHLY
And RI coverage, if you hold RIs:
aws ce get-reservation-coverage \
--time-period Start=2026-06-01,End=2026-07-01 \
--granularity MONTHLY
Or in the console: Billing and Cost Management → Savings Plans → Coverage report. Compare coverage with your stable baseline, the compute that runs every hour of every day. That baseline is the part a commitment should cover. Spiky usage can stay on-demand.
What it costs. The worked example above shows the shape: coverage slid 16 points in two months and nobody noticed, because nothing alerts on it unless you've set a coverage budget.
4. Unused Elastic IPs and idle load balancers
What it is. AWS charges $0.005 an hour for every public IPv4 address, attached or not, about $3.60 a month each (VPC pricing). An Application Load Balancer bills $0.0225 an hour in us-east-1, about $16 a month before a single request, plus capacity units (ELB pricing).
Why it happens. Load balancers get created per environment, per experiment and per migration, and outlive all three. Elastic IPs get allocated "so the IP doesn't change" for instances terminated a year ago.
How to detect it. Unassociated Elastic IPs:
aws ec2 describe-addresses \
--query 'Addresses[?AssociationId==null].{IP:PublicIp,AllocId:AllocationId}' \
--output table
For load balancers, list them with aws elbv2 describe-load-balancers and check RequestCount in CloudWatch for each. Near-zero requests over two weeks means idle. Trusted Advisor's "Idle Load Balancers" check does this for you on Business support or above.
What it costs. Small in absolute terms, but it's waste with no removal risk, and a count of idle load balancers is a good proxy for overall hygiene.
5. Over-provisioned RDS instances
What it is. The database version of leak 2, but stickier, because databases get sized for a launch-day estimate and nobody touches a production database that works. A db.r5.2xlarge at 7% CPU with 40 connections is paying for headroom it doesn't use.
Why it happens. Fear. Resizing RDS needs a failover or a maintenance window, and the person who sized it has usually moved on.
How to detect it. Use the same get-metric-statistics pattern as EC2 with --namespace AWS/RDS and --dimensions Name=DBInstanceIdentifier,Value=your-db. Check DatabaseConnections and FreeableMemory too, because CPU alone understates memory-bound databases. Compute Optimizer also produces RDS recommendations.
What it costs. As with EC2, one size down roughly halves the instance price. A Multi-AZ deployment bills for the standby too, so the saving doubles.
6. Data transfer: cross-AZ and NAT gateways
What it is. The line items nobody can read. Traffic between Availability Zones bills $0.01 per GB in each direction. A NAT gateway bills $0.045 an hour plus $0.045 per GB it processes in us-east-1 (VPC pricing). Chatty microservices spread across AZs, or private subnets pulling container images and S3 data through a NAT gateway, add up fast.
Why it happens. Data transfer is invisible at design time. Nothing in a Terraform plan says "this service mesh will move 40 TB a month across AZs".
How to detect it. In Cost Explorer, group by Usage Type and filter the usage type group to EC2: Data Transfer - Inter AZ. Via the CLI:
aws ce get-cost-and-usage \
--time-period Start=2026-06-01,End=2026-07-01 \
--granularity MONTHLY --metrics UnblendedCost \
--group-by Type=DIMENSION,Key=USAGE_TYPE \
--filter '{"Dimensions":{"Key":"USAGE_TYPE_GROUP","Values":["EC2: Data Transfer - Inter AZ"]}}'
For NAT gateways, sum BytesInFromSource and BytesInFromDestination in the AWS/NATGateway CloudWatch namespace (metric definitions). Processing is billed in both directions, so that sum is the volume you pay for. Then ask what the traffic is. S3 and DynamoDB traffic through a NAT gateway is the classic finding, and a free gateway VPC endpoint removes it.
What it costs. At list price, 20 TB a month of S3 reads through a NAT gateway is about $920 in processing charges alone, for traffic a free endpoint would carry.
7. Non-production environments running 24/7
What it is. Staging, dev, QA, demo and load-test environments running nights and weekends. A business-hours workload (12 hours, 5 days) needs 60 of the week's 168 hours. Running it around the clock pays for 108 hours of nothing, about 64% of that environment's compute.
Why it happens. Nobody owns turning things off, and one broken Monday-morning startup ends the initiative.
How to detect it. If you tag environments, group Cost Explorer by that tag:
aws ce get-cost-and-usage \
--time-period Start=2026-06-01,End=2026-07-01 \
--granularity MONTHLY --metrics UnblendedCost \
--group-by Type=TAG,Key=environment
Multiply each non-prod environment's compute cost by 0.36 (60 of 168 hours) to see what a schedule would leave. If you don't tag environments, that's finding zero. Fix it first.
What it costs. Up to two-thirds of every non-prod compute dollar, depending on how many hours the environment really needs.
Why a monthly review keeps missing them
Most teams already do a cost review. It misses the seven leaks for structural reasons, not effort.
- Waste is created continuously and reviewed in batches. Every termination can orphan a volume, every launch can be oversized, every new service can add cross-AZ chatter. A monthly look sees each one weeks late.
- The bill is grouped by service, waste by resource. "EC2 up 12%" doesn't say which 14 instances, or whether it's usage or rate.
- Fixing needs context the reviewer doesn't have. Is that
m5.2xlargeidle, or sized for a month-end batch job? The person who knows isn't in the meeting. - Commitments drift on their own. Coverage falls as usage grows, with no alert unless you build one.
01Day 0
Waste starts
An instance is terminated and its data volume keeps billing.
02Day 15
Average age
With a monthly review, the typical finding is two weeks old before anyone looks.
03Day 30+
Review
Someone opens Cost Explorer, finds it, and files a ticket.
04Day 45+
Maybe fixed
If the ticket has an owner. If the review was not skipped for a release.
The arithmetic is simple. With a monthly review, the average finding is about two weeks old before anyone looks, and the review is the first thing skipped in the month of a big release, which is the month that creates the most waste.
| Monthly manual review | Continuous detection | |
|---|---|---|
| Age of a finding | About 15 days on average, often more | A day or two, once billing data lands |
| Coverage | Whatever the reviewer checks that month | Every billed service, every time |
| Engineer time | Most of a day, every time | Reviewing evidence and approving changes |
| When skipped | The month of a big release | Doesn't depend on someone's calendar |
| Output | A spreadsheet and some tickets | Findings with evidence and an estimate |
The checks are the same in both columns. What changes is how long waste bills before anyone sees it.
What to do next
Run Step 1 on your own account today, with your last three months. If the answer isn't obvious in twenty minutes, part two walks through the full audit of all seven leaks with Cost Explorer, Trusted Advisor, Compute Optimizer, CloudWatch and the CLI.



