All cloud cost guides

Public IPv4 charges and how to find idle IPs

Why the charge appears

You retired a staging instance and its compute charges stopped, but the next invoice still shows public IPv4 charges. An Elastic IP can remain allocated after the workload that used it is gone. The official VPC pricing page lists a standard hourly rate of $0.005 for both idle and in-use provider-assigned public IPv4 addresses.

That works out to about $3.60 for one address over 30 days at the listed rate. Review idle addresses first, then trace in-use charges to dependencies such as NAT gateways, load balancers, or EC2 instances.

Find it in Cost Explorer or CUR

In Cost Explorer, group by Usage type and look for PublicIPv4:IdleAddress and PublicIPv4:InUseAddress. Compare linked accounts and Regions to see where the hours accumulate.

In CUR 2.0, filter line_item_usage_type for those two suffixes and sum cost and usage by product_region_code. Compare dates before and after a workload was retired. Use resource IDs when the export includes them, and use inventory to confirm which addresses still exist.

Read-only CLI checks

Run these commands in the billed account. Replace uppercase placeholders with your own values.

aws ec2 describe-addresses --region REGION --query 'Addresses[?AssociationId==null].[AllocationId,PublicIp,Tags]'
aws ec2 describe-addresses --region REGION
aws ec2 describe-network-interfaces --region REGION --filters Name=association.public-ip,Values=PUBLIC_IP

Run the queries using your own cloud credentials with permission to read EC2 address and network-interface inventory. Check all billed Regions and accounts. The address list covers Elastic IP allocations, so use VPC IPAM Public IP Insights to investigate public IPs attached to other cloud services.

For each idle allocation, check ownership, DNS records, firewall allowlists, and recovery plans before deciding whether the address is safe to release.

Official references