IP Address Count Calculator

Calculate total and usable IP addresses for any CIDR range. Plan IP allocation for VPCs, subnets, and networks.

Reserves 5 addresses per subnet
/24
Additional bits to subdivide
%
Total Addresses
256.00
2^8 = 256.00
Usable Addresses
249.00
2.00 standard + 5 cloud reserved
Subnet Mask
255.255.255.0
/24 โ€” 8 host bits
Target Capacity
199.00
80% of 249.00 usable addresses
Possible /24 Subnets
1.00
Number of standard-size (256 addr) subnets
Address Utilization
โ–  Usable: 199.00โ–  Reserved: 7โ–  Free: 50.00

IPv4 CIDR Reference Table

CIDRSubnet MaskTotal IPsUsableTypical Use
/8255.0.0.016,777,216.0016,777,209.00Class A
/10255.192.0.04,194,304.004,194,297.00Large ISP
/12255.240.0.01,048,576.001,048,569.00ISP block
/16255.255.0.065,536.0065,529.00Class B / large org
/18255.255.192.016,384.0016,377.00Data center
/20255.255.240.04,096.004,089.00AWS VPC default
/22255.255.252.01,024.001,017.00Medium subnet
/24255.255.255.0256.00249.00Standard LAN
/25255.255.255.128128.00121.00Half /24
/26255.255.255.19264.0057.00Small office
/27255.255.255.22432.0025.00Tiny subnet
/28255.255.255.24016.009.00AWS minimum
/29255.255.255.2488.001.00Micro subnet
/30255.255.255.2524.000.00Point-to-point
/31255.255.255.2542.000.00RFC 3021 p2p
/32255.255.255.2551.000.00Single host
Planning notes, formulas, and examples

About the IP Address Count Calculator

IP address planning is fundamental to network architecture. Every device, container, load balancer, and service endpoint consumes an IP address. Running out of addresses in a subnet forces disruptive resizing operations.

This calculator helps planners determine how many IP addresses are available in a given CIDR range and how many subnets can be carved from a larger network block. It accounts for reserved addresses (network, broadcast, and cloud provider reservations) to show the truly usable count.

Cloud providers reserve additional addresses beyond the standard network and broadcast addresses. AWS reserves 5 addresses per subnet (.0, .1, .2, .3, and .255). Understanding these reservations is critical for accurate capacity planning.

When This Page Helps

Running out of IP addresses forces costly network reconfiguration. This calculator helps plan address allocation with sufficient headroom for growth.

How to Use the Inputs

  1. Enter the CIDR prefix length for your network.
  2. Enter the number of cloud-reserved addresses per subnet (default 5 for AWS).
  3. Review the total, reserved, and usable address counts.
  4. Plan your subnet sizes to accommodate projected growth.
Formula used
Total Addresses = 2^(32 โˆ’ prefix) Standard Reserved = 2 (network + broadcast) Cloud Reserved = provider_reserved_count Usable = Total โˆ’ Standard Reserved โˆ’ Cloud Reserved

Example Calculation

Result: 251 usable out of 256 total

A /24 has 256 total addresses. AWS reserves 5 addresses (.0 network, .1 VPC router, .2 DNS, .3 future use, .255 broadcast). Usable: 256 โˆ’ 5 = 251 addresses for your resources.

Tips & Best Practices

  • AWS reserves 5 IPs per subnet; Azure reserves 5; GCP reserves 4.
  • Plan for 2โ€“3x current need to accommodate growth.
  • Kubernetes pods can consume many IPs โ€” use /20 or larger subnets for clusters.
  • Each ELB, NAT gateway, and ENI consumes an IP address.
  • Track IP utilization and alert when subnets reach 70% capacity.
  • Document IP allocations in an IPAM tool to prevent conflicts.

Cloud-Specific Address Reservations

Cloud providers reserve addresses for infrastructure services. AWS reserves 5 per subnet for routing, DNS, and future use. Azure reserves 5 for gateway, DNS, and broadcast. GCP reserves 4. These reservations reduce usable addresses, especially in small subnets.

Capacity Planning for Growth

Network architects typically plan for 3โ€“5 years of growth. If you currently need 50 IPs, choose a subnet supporting 200+ to accommodate growth without reshuffling. For dynamic environments (auto-scaling, Kubernetes), planning is even more critical because IP consumption fluctuates.

Avoiding Address Exhaustion

Monitor IP utilization with cloud provider tools (VPC Flow Logs, IPAM services). Set alerts at 70% utilization. When approaching capacity, plan migration to larger subnets during maintenance windows to avoid emergency resizing.

Sources & Methodology

Last updated:

Frequently Asked Questions

  • AWS reserves 5 addresses: .0 (network), .1 (VPC router), .2 (DNS server), .3 (reserved for future use), and .255 (broadcast). A /24 subnet therefore has 251 usable addresses, not 254.