AWS Elastic IP pricing, the short answer: every public IPv4 address costs $0.005 per hour since February 1, 2024, and it makes no difference whether it is an Elastic IP or a public IP AWS assigned to the instance on its own, or whether it is attached to anything. The VPC pricing page puts the same number on both rows, "in-use" and "idle", and the official announcement says it in those words: "whether attached to a service or not". That is $3.60 per 30-day month per address, or $3.65 with the 730 hours AWS uses in its examples. Before that date only the idle Elastic IP was billed; since then everything that is a public IPv4 and dedicated to one of your resources is.
What is billed and what is exempt
Billed: any public IPv4 attached to a resource launched in a VPC: an EC2 instance, a load balancer, a NAT gateway, an RDS database with public access, EKS nodes, plus the addresses used by Global Accelerator and Site-to-Site VPN tunnels. And any Elastic IP allocated to the account that is not on any resource, which is the "idle" row. The charge is computed per second with a 60-second minimum, and applies in every commercial region, GovCloud, China and the Local Zones.
Exempt, per the same page: addresses you bring with BYOIP and Customer-owned IPs on Outposts, which are not charged; and public IPs not dedicated to your resource, with S3 as the example. The EC2 Free Tier includes 750 hours per month of public IPv4 usage for the account's first 12 months, which covers a single address for the whole month. Private IPv6 addresses carry no charge, and the announcement closes by asking you to speed up IPv6 adoption; the price we are looking at is IPv4 only. One separate case: the contiguous IPv4 blocks Amazon provides are billed at $0.008 per address per hour from the moment the block is provisioned, in use or not.
Where it shows up on the bill
In the Cost and Usage Report there are two usage types: PublicIPv4:InUseAddress for addresses in use and PublicIPv4:IdleAddress for those allocated to the account and serving nothing. AWS added them to the CUR in July 2023, half a year before billing them, so you could estimate the bill; with "Include resource IDs" on, the export carries the id of the resource using each address. If you do not have an export yet, the CUR 2.0 note has the command to create it and the base SQL query. In Cost Explorer you filter by the same usage type.
-- Data Exports / Athena: hours and cost per public IPv4 usage type in the month SELECT line_item_usage_type, line_item_resource_id, SUM(line_item_usage_amount) AS hours, SUM(line_item_unblended_cost) AS usd FROM cur WHERE line_item_usage_type LIKE '%PublicIPv4:%Address' AND bill_billing_period_start_date = DATE '2026-11-01' GROUP BY 1, 2 ORDER BY usd DESC; How to find the ones you do not need
The list of Elastic IPs in a region comes out of a single command. The ones without an AssociationId are the "idle" row; they cost the same as the others, but serve nobody:
# Elastic IPs with no association in the active region aws ec2 describe-addresses \ --query 'Addresses[?AssociationId==null].[PublicIp,AllocationId,NetworkBorderGroup]' \ --output table # Release one (it must be disassociated first) aws ec2 release-address --allocation-id eipalloc-0123456789abcdef0 There is a second class that filter does not see: the Elastic IP attached to a network interface whose instance no longer exists. It has an AssociationId and a NetworkInterfaceId, but an empty InstanceId; it keeps billing and cannot be released until the interface is freed. That case, with the command to detect it, is in the unassociated Elastic IP policy. The same empty InstanceId pattern belongs to NAT gateways and NLBs, which are in use: before releasing you check who owns the interface, and who pays for the shared NAT gateway is the conversation that follows.
To see every account in the organization and every region at once, Public IP Insights is an IPAM feature with no cost: it shows the total by type (Elastic IP, EC2 public IP, service IPs) and, if there are unassociated Elastic IPs, it shows a banner recommending you release them. About the automatic EC2 public IP: when the instance is stopped, hibernated or terminated, that address goes back to Amazon's pool and a new one comes out on restart; it does not keep billing. The Elastic IP, on the other hand, is yours until you release it, with the instance stopped or with no instance at all. The rules per cloud, GCP included, are in the public IPs AWS and GCP charge for.
Terraform: aws_eip and what happens on destroy
resource "aws_eip" "web" { domain = "vpc" instance = aws_instance.web.id tags = { Name = "web" } } # NAT gateway and load balancers: pass allocation_id, not network_interface resource "aws_nat_gateway" "egress" { allocation_id = aws_eip.nat.id subnet_id = aws_subnet.public.id } The resource documentation asks for domain = "vpc", and one of two: instance or network_interface, not both (the API returns no error, but the behavior is undefined). For NAT gateways and load balancers the registry note is explicit: do not use network_interface, pass the allocation_id and let AWS manage the association. An existing Elastic IP is imported by its allocation id, with an import block from Terraform 1.5 on. On terraform destroy the resource is released, and that is where it pays to know what AWS says about recovering it: after releasing an Elastic IP you "might" be able to recover it with allocate-address --domain vpc --address <ip>, but not if it was already allocated to another account or if it would put you over your limit, and the tags do not come back. If that address is in a DNS record or on a customer's allowlist, the destroy has to exclude it or the resource has to carry prevent_destroy.
Frequently asked questions
Is an Elastic IP attached to a stopped instance billed? Yes. The Elastic IP stays allocated to the account until you release it, and the price is the same in use or idle: $0.005 per hour. The automatic EC2 public IP is different: when the instance stops it goes back to Amazon's pool and stops existing.
How much does an Elastic IP cost per month? $3.60 in a 30-day month (24 hours times 30 days times $0.005), or $3.65 with 730 hours. The pricing page example with four idle Elastic IPs comes to $14.40 per month.
Do BYOIP addresses pay the same? No. Addresses you bring with BYOIP, and Customer-owned IPs on Outposts, carry no per-address-hour charge; the charge is for the addresses AWS lends you.
Sources
- AWS, "Amazon VPC pricing", Public IPv4 Address tab ($0.005 per hour in use and idle; per second with a 60-second minimum; BYOIP and COIP not charged; $14.40 and $25.20 examples; contiguous block at $0.008). Read on 2026-11-29.
- AWS News Blog, "New - AWS Public IPv4 Address Charge + Public IP Insights" ($0.005 per IP per hour since February 1, 2024, attached or not; 750 Free Tier hours for 12 months; BYOIP not charged; Public IP Insights at no cost). Read on 2026-11-29.
- AWS Networking Blog, "Identify and optimize public IPv4 address usage on AWS" (
PublicIPv4:IdleAddressandPublicIPv4:InUseAddressusage types in the CUR; the EC2 public IP is released when the instance is stopped, hibernated or terminated). Read on 2026-11-29. - Amazon EC2 User Guide, "Elastic IP addresses" (charge in use and idle; a disassociated address stays allocated until released; quota of 5 per Region) and "Release an Elastic IP address" (recovery with allocate-address and its limits). Read on 2026-11-29.
- Amazon VPC IPAM User Guide, "View public IP insights" (banner for unassociated Elastic IPs). AWS CLI,
ec2 describe-addresses(JMESPath--query,AssociationId,InstanceId,NetworkInterfaceIdfields). Read on 2026-11-29. - Terraform Registry,
aws_eipresource (domain = "vpc",instanceornetwork_interface,allocation_idfor NAT gateways and load balancers, import by allocation id). Read on 2026-11-29. - Control Cloud source code (
cloudmap/go-cloudsmap/internal/awsmap/live_fetcher.go,web/src/lib/orphan.ts):DescribeAddresses, Elastic IP states and adoption of idle ones on start.
I write about infrastructure on the Control Cloud blog, where I work; the original version of this note is at https://controlcloud.dev/en/blog/aws-elastic-ip-pricing-cuanto-cuesta-ipv4-publica-por-hora?utm_source=devto&utm_medium=referral&utm_campaign=devto-elastic-ip
This article was created with the help of AI and reviewed by the author.


