AWS Subnet Calculator

Plan AWS VPC subnets accurately by accounting for the 5 AWS-reserved IP addresses per subnet block (/16 to /28).

Examples:
10.0.0.0/24AWS Subnet (ap-southeast-1)
Subnet Mask
255.255.255.0
Wildcard Mask
0.0.0.255
Network Address
10.0.0.0
Broadcast Address
10.0.0.255
First Usable EC2 IP
10.0.0.4
Last Usable EC2 IP
10.0.0.254
256Total IPs
251AWS Usable Hosts
5 IPsAWS Reserved
/24Prefix Length
IP Address Capacity Ratio98.0% Usable (2.0% Reserved)
AWS 5 Reserved IP Rule Notice

Unlike standard IPv4 networking (which reserves 2 IPs: Network & Broadcast), AWS reserves 5 IP addresses in every VPC subnet block (Base+0 Network, Base+1 VPC Router, Base+2 Amazon DNS, Base+3 Future Use, Base+Last Broadcast). Standard subnetting would yield 254 usable IPs, but AWS yields 251 usable IPs.

AWS IP Address Allocation Breakdown

IP AddressAllocation / NameAWS PurposeStatus
10.0.0.0Network AddressReserved by AWS for network identifierReserved by AWS
10.0.0.1VPC RouterReserved by AWS for default VPC router gatewayReserved by AWS
10.0.0.2Amazon DNS ServerReserved by AWS for Amazon-provided DNS resolverReserved by AWS
10.0.0.3AWS Future UseReserved by AWS for future expansion/internal serviceReserved by AWS
10.0.0.4 ... 10.0.0.254Usable EC2 / EKS RangeAvailable for customer workload instances (251 usable IPs)Usable Host
10.0.0.255Broadcast AddressReserved by AWS for network broadcast identifierReserved by AWS

Understanding the AWS 5 Reserved IP Address Rule

In traditional IPv4 networking, every subnet reserves 2 IP addresses: the Network Address (first IP) and the Broadcast Address (last IP). However, Amazon Web Services (AWS) reserves five (5) IP addresses in every VPC subnet block, reducing the usable host count for EC2 instances, EKS pods, and RDS databases.

IP OffsetAllocation / NameAWS Purpose
Base + 0Network AddressNetwork identifier (Reserved by AWS)
Base + 1VPC RouterDefault gateway for instance outbound traffic
Base + 2Amazon DNS ResolverBase of VPC network range + 2 (AmazonProvidedDNS)
Base + 3AWS Future UseReserved by AWS for internal infrastructure services
Base + LastNetwork BroadcastReserved broadcast address (VPC does not support broadcast)

AWS Subnet CIDR Sizing Limits (/16 to /28)

AWS VPC subnet block sizes are restricted between a /16 netmask (maximum 65,536 total IPs) and a /28 netmask (minimum 16 total IPs).

PrefixTotal IPsStandard UsableAWS Usable IPsTypical AWS Use Case
/1665,53665,53465,531Primary VPC CIDR block
/204,0964,0944,091Large EKS / K8s worker node pools
/24256254251Public Web Tier / ALB Load Balancers
/26646259Private App Tier / Microservice Group
/28161411Small Database Tier / Bastion / Isolated Subnet

Related Architecture Guide

For a comprehensive deep dive into designing enterprise VPCs across Availability Zones, read our detailed technical guide: AWS VPC Subnet Planning: Best Practices for /24 to /28 Networks ➔

Frequently Asked Questions (FAQ)

Why does AWS reserve 5 IP addresses per subnet?

AWS reserves 5 IP addresses to manage VPC virtual routing (Base+1), internal Amazon DNS resolution (Base+2), and future network expansion (Base+3), alongside standard Network (Base+0) and Broadcast (Base+Last) identifiers.

Can I change or reclaim AWS reserved IP addresses?

No. AWS reserved IP addresses are hardcoded into AWS VPC networking infrastructure and cannot be unreserved or assigned to customer EC2 or ENI interfaces.

What is the minimum subnet size allowed in AWS?

The smallest subnet CIDR allowed in an AWS VPC is /28, which yields 16 total IP addresses and exactly 11 usable IP addresses for host resources.