Skip to content

Line item · Ilia Dubovskii · 1 December 2026

PublicIPv4:InUseAddress on Your AWS Bill: What It Is and How to Reduce It

PublicIPv4:InUseAddress is the AWS public IPv4 address charge: $0.005 per address per hour at list price, in every commercial region, for each public IPv4 address attached to something in your account. PublicIPv4:IdleAddress is the same price for addresses you hold but have not attached, usually Elastic IPs. One address is about $3.65 a month at list price, so the line is large when you have many: EC2 instances in public subnets, load balancers in every Availability Zone, publicly accessible databases, and Elastic IPs nobody released. Searches for "aws ip address charge" or "elastic ip cost" usually mean this line.

The short version

1. What this line is

AWS meters every public IPv4 address your account holds, by the hour, whether it is attached to a resource or not.

The Amazon VPC pricing page defines the two meters:

Billing is in one-second increments with a minimum of 60 seconds. The pricing page lists no free allowance. The 2023 announcement said the charge started on 1 February 2024, with 750 free hours a month for 12 months under the old EC2 free tier; the current credits-based free tier pages do not list that, so do not count on it. Not charged: addresses you bring yourself (BYOIP), customer-owned IPs on Outposts, and shared service addresses such as those of Amazon S3.

List prices from the AWS Price List API (service code AmazonVPC, group VPCPublicIPv4Address). Every location in the file carries the same price:

Region In-use usage type Idle usage type List price per address-hour
us-east-1 (N. Virginia)USE1-PublicIPv4:InUseAddressUSE1-PublicIPv4:IdleAddress$0.005
us-east-2 (Ohio)USE2-PublicIPv4:InUseAddressUSE2-PublicIPv4:IdleAddress$0.005
us-west-2 (Oregon)USW2-PublicIPv4:InUseAddressUSW2-PublicIPv4:IdleAddress$0.005
eu-west-1 (Ireland)EU-PublicIPv4:InUseAddressEU-PublicIPv4:IdleAddress$0.005
eu-central-1 (Frankfurt)EUC1-PublicIPv4:InUseAddressEUC1-PublicIPv4:IdleAddress$0.005
ap-southeast-1 (Singapore)APS1-PublicIPv4:InUseAddressAPS1-PublicIPv4:IdleAddress$0.005

Related lines you may see next to it:

The CUR operation column tells address types apart (AWS networking blog): AllocateAddressVPC is an idle Elastic IP, AssociateAddressVPC an attached one, RunInstances an EC2 auto-assigned address, DescribeNetworkInterfaces a service-managed address such as a load balancer or RDS, CreateVpnConnection a VPN tunnel, CreateAccelerator a Global Accelerator.

2. Why it shows up on your bill

The charge is small per address and large in total, because public IPv4 addresses are the default in many places you never chose them.

Most frequent first. All figures are at list price, 730 hours a month, for this example.

  1. Instances in subnets that auto-assign a public IPv4 address. Default VPC subnets, and subnets created by the launch wizard, have the attribute set to true (subnet public IP settings). Every instance gets a billable address, including ones that only talk to internal services. 100 such instances are $365.00 a month, under the RunInstances operation.
  2. One address per Availability Zone on every internet-facing load balancer. A load balancer in three zones uses three addresses, $10.95 a month. Ten of them, one per environment and service, are 30 addresses and $109.50 a month.
  3. Publicly accessible RDS instances. "Amazon RDS uses Public Elastic IPv4 addresses from EC2's public IPv4 address pool for publicly accessible database instances" (RDS in a VPC). 50 of them are $182.50 a month.
  4. Idle Elastic IPs. An Elastic IP stays allocated, and billed, until you release it (Elastic IP addresses). 20 forgotten addresses are $73.00 a month; one left idle for a year is $43.80.
  5. Kubernetes and container nodes in public subnets. An EKS node group or ECS cluster in public subnets gives every node a public IP. 40 nodes are $146.00 a month, even though traffic reaches them through a load balancer.
Cost of doing nothingthe line grows with every autoscaling event and new environment, and never falls on its own.

3. How to find what is causing it

Group the line by operation to learn which kind of address it is, then list the addresses with the EC2 API or Public IP Insights to find the resources.

  1. Cost Explorer. Filter Service to Amazon Virtual Private Cloud, group by Usage type for the in-use and idle split by region, then group by API operation for the address type.
  1. The same from the CLI, read-only. Add the usage type strings for the regions you use (get-cost-and-usage):
aws ce get-cost-and-usage \
  --time-period Start=2026-11-01,End=2026-12-01 \
  --granularity MONTHLY \
  --metrics UnblendedCost UsageQuantity \
  --filter '{"Dimensions":{"Key":"USAGE_TYPE","Values":[
      "USE1-PublicIPv4:InUseAddress","USE1-PublicIPv4:IdleAddress",
      "USW2-PublicIPv4:InUseAddress","USW2-PublicIPv4:IdleAddress"]}}' \
  --group-by Type=DIMENSION,Key=USAGE_TYPE Type=DIMENSION,Key=OPERATION
  1. Per account and address type, from the Cost and Usage Report (CUR 2.0) in Athena. Replace the table name with yours. With resource IDs enabled, the resource ID column names the address (line item columns).
SELECT line_item_usage_account_id,
       product_region_code,
       line_item_usage_type,
       line_item_operation,
       COUNT(DISTINCT line_item_resource_id) AS addresses,
       SUM(line_item_usage_amount)           AS address_hours,
       SUM(line_item_unblended_cost)         AS cost
FROM   cur2_table
WHERE  line_item_usage_type LIKE '%PublicIPv4%'
  AND  line_item_usage_start_date >= TIMESTAMP '2026-11-01 00:00:00'
  AND  line_item_usage_start_date <  TIMESTAMP '2026-12-01 00:00:00'
GROUP  BY 1, 2, 3, 4
ORDER  BY cost DESC;
  1. List idle Elastic IPs (describe-addresses), then every in-use address with the interface that owns it; the description names the load balancer, NAT gateway or RDS instance (describe-network-interfaces).
aws ec2 describe-addresses \
  --query 'Addresses[?AssociationId==null].{IP:PublicIp,Allocation:AllocationId,Tags:Tags}' \
  --output table

aws ec2 describe-network-interfaces \
  --query 'NetworkInterfaces[?Association.PublicIp!=null].{IP:Association.PublicIp,Type:InterfaceType,Instance:Attachment.InstanceId,Owner:RequesterId,Description:Description}' \
  --output table
  1. Across all accounts and regions: Public IP Insights. Part of Amazon VPC IP Address Manager (IPAM), included in the IPAM Free Tier on the VPC pricing page. It lists every public IPv4 address in the organisation with its type and association status, and flags unassociated Elastic IPs (Public IP Insights). The CLI equivalent is get-ipam-discovered-public-addresses (reference).

4. How to reduce it

Remove addresses that nothing on the internet needs to reach, and keep the rest.

  1. Release idle Elastic IPs. Check tags and history first: an address in DNS records, firewall allowlists or a partner's configuration is not idle just because it is unassociated. Roll back: AWS lets you try to recover a released address with allocate-address --address, but only if no other account has taken it, so treat release as permanent. Terraform: delete the aws_eip resource.
  2. Stop auto-assigning public IPs in subnets that do not need them. Turn the attribute off with aws ec2 modify-subnet-attribute --subnet-id subnet-0123456789abcdef0 --no-map-public-ip-on-launch (modify-subnet-attribute). It affects new launches only, so roll the instances afterwards; they then need a NAT gateway for outbound access. The AWS networking blog works this out: 100 instances with public IPs cost $365.00 a month, against $77.50 for two NAT gateways with 100 GB of traffic, for its example. Roll back: set the attribute back to true. Terraform: map_public_ip_on_launch = false on aws_subnet, and associate_public_ip_address = false on aws_instance.
  3. Move instances behind a load balancer into private subnets, and turn off public accessibility on databases reached only from inside the VPC. Test: health checks stay green and connection strings resolve to private addresses. Terraform: private subnet_ids on the autoscaling group or EKS node group, and publicly_accessible = false on aws_db_instance.
  4. Replace public SSH and RDP access. Session Manager "provides secure node management without the need to open inbound ports, maintain bastion hosts, or manage SSH keys" (Session Manager). Bastions with Elastic IPs can go.
  5. Consolidate load balancers. Several Application Load Balancers serving one domain can often become one with host-based or path-based rules. Each one removed in three zones saves $10.95 a month at list price, for this example, plus its hourly charge.
  6. Serve IPv6-only where clients allow it. An Application Load Balancer supports the dualstack-without-public-ipv4 IP address type, where "Clients must connect to the load balancer using IPv6 addresses" (Application Load Balancers). It fits partner traffic that is already IPv6, not a public website. Terraform: ip_address_type = "dualstack-without-public-ipv4" on aws_lb. AWS services that support IPv6 lists what else can go dual-stack.
  7. Leave it when the address does a job. A NAT gateway, a VPN tunnel, a Global Accelerator and an internet-facing load balancer each need their addresses. At $3.65 a month per address this is expected; spend the effort on instance and idle addresses instead.
Do nowrun the idle Elastic IP query above in every region you use. It takes a minute, and those addresses have no owner by definition.

Rather have this line cut for you? We cut cloud bills within 30 days and invoice one month of the measured saving, once. No savings, no payment.

Get a free savings assessment

5. What to watch out for

Most fixes move an address or a path rather than deleting it, so check what else depended on the public IP.

6. Have it done for you

Public IPv4 charges come from dozens of small defaults spread across accounts, regions and services, and the work is finding every one, deciding which addresses do a job, and removing the rest without cutting off access. That is what FinOps, paid from savings, does. You see savings in the bill within 30 days. Then you get one invoice for one month of the measured saving, and you keep every month after. No savings, no payment: the assessment is free, and if nothing is found or approved there is no invoice. Changes arrive as pull requests in your own process. It covers AWS, Azure and Google Cloud, for any account size. Get a free savings assessment.

Prefer to do it yourself? Compass is open source and finds AWS cost waste with a savings estimate per finding (AWS only).

7. Sources

8. FAQ

What is PublicIPv4:InUseAddress on my AWS bill?

It is the hourly charge for every public IPv4 address attached to a resource in your account: EC2 instances with a public IP, Elastic IPs, NAT gateways, load balancers, publicly accessible RDS instances, VPN tunnels and Global Accelerators. The list price is $0.005 per address per hour in every commercial region, about $3.65 a month per address. It appears with a region prefix, such as USE1-PublicIPv4:InUseAddress or EUC1-PublicIPv4:InUseAddress, under the service Amazon Virtual Private Cloud.

What is PublicIPv4:IdleAddress?

It is the same $0.005 per hour list price for a public IPv4 address your account holds but has not attached to anything, almost always an Elastic IP that was never associated or was left behind after its instance was terminated. Release the address to stop the charge.

Why is my AWS IP address or Elastic IP cost so high?

Because the charge applies to every address, and many AWS defaults hand out addresses you did not ask for: subnets that auto-assign a public IP to each instance, one address per Availability Zone on each internet-facing load balancer, "publicly accessible" on databases, and Elastic IPs that outlive their resource. 100 instances with public IPs are $365.00 a month at list price, and one idle Elastic IP is $43.80 a year.

How do I reduce public IPv4 cost on AWS?

Release idle Elastic IPs, turn off auto-assign public IP on subnets whose instances do not serve the internet directly, put those instances in private subnets behind a NAT gateway or load balancer, set databases to not publicly accessible, consolidate load balancers, and use IPv6 where clients support it. Use Public IP Insights in IPAM to list every address across the organisation first.

Related

Last checked: 1 December 2026. Written from AWS pricing pages and documentation, linked below. Prices are list prices; confirm against your own rates before acting.

Related: All AWS bill line items explained · Why is my AWS bill so high? · FinOps paid from savings