IPv4 subnet calculatorNetwork, host range, broadcast, mask and wildcard for any IPv4 blockIPv6 subnet calculatorPrefix ranges, /64 counts, splits and a ULA prefix generatorVLSM calculatorSize subnets by host count, with AWS, Azure, GCP and OCI rulesVisual subnet plannerSplit and join blocks, label them, then share or export the planCIDR and IP range calculatorTurn any start and end address into the fewest CIDR blocksSupernet and route summarySummarise networks into one route or merge them exactlyWildcard mask calculatorACL wildcards, matched ranges and ready Cisco linesSubnetting practiceExam-style questions, checked instantly with the working shownSubnet mask cheat sheetEvery prefix from /0 to /32 with mask, wildcard and hostsIPv6 cheat sheetPrefix sizes, address types and the reserved rangesGuidesHow subnetting works, explained with worked examples

Reserved IP addresses in AWS, Azure, Google Cloud and Oracle subnets

Every cloud keeps a few addresses in each subnet for its own routers and DNS. The numbers differ, and they change how big your subnets need to be.

Updated Nov 20, 20267 min readFigures tested
Addresses each cloud keeps in every subnet AWS VPC/16 to /285 reservedAzure VNetdown to /295 reservedGoogle Clouddown to /294 reservedOracle Clouddown to /303 reserved
Key facts
  • AWS reserves 5 addresses per subnet; subnets range from /16 to /28.
  • Azure reserves 5 addresses per subnet; the smallest subnet is /29.
  • Google Cloud reserves 4 addresses in each primary IPv4 range.
  • Oracle Cloud reserves 3 addresses per subnet.
VLSM calculator

Size subnets by host count, with AWS, Azure, GCP and OCI rules

Open the tool

Side by side

PlatformReservedWhich addressesSubnet sizes
AWS VPC5First four and the last/16 to /28
Azure VNet5First four and the lastSmallest /29
Google Cloud VPC4First two, second-to-last and lastSmallest /29
Oracle Cloud VCN3First two and the lastSmallest /30

The VLSM calculator applies these rules when you select a platform, so host counts are sized against the addresses you can actually use.

AWS

In a subnet such as 10.0.0.0/24, AWS reserves:

  • 10.0.0.0: the network address.
  • 10.0.0.1: the VPC router.
  • 10.0.0.2: the DNS server (the VPC base plus two).
  • 10.0.0.3: reserved for future use.
  • 10.0.0.255: the broadcast address, which AWS does not support but still reserves.

A /24 therefore has 251 usable addresses and the smallest subnet, a /28, has 11.

Azure

Azure also reserves five addresses in every subnet: the network address, the default gateway at .1, two addresses at .2 and .3 that map Azure DNS into the virtual network, and the last address for broadcast. The smallest IPv4 subnet Azure supports is a /29, which leaves 3 usable addresses. Some services need far more: gateway subnets and many managed services require a /27 or larger, so check each service's own requirement.

Google Cloud

In each primary IPv4 subnet range Google Cloud reserves four addresses: the network address (first), the default gateway (second), the second-to-last address for future use, and the broadcast (last). A /29 gives 4 usable addresses and a /24 gives 252. Google Cloud subnets are regional, so one subnet can span every zone in a region.

Oracle Cloud

Oracle Cloud Infrastructure reserves the first two addresses and the last address in each subnet's CIDR, three in total. VCN and subnet blocks range from /16 down to /30, so the smallest subnet has one usable address.

How this changes sizing

The difference matters most for small subnets. Here is the smallest prefix that fits a given host count on each platform:

Hosts neededOn premisesAWSAzureGoogle CloudOracle
3/29/28/29/29/29
11/28/28/28/28/28
12/28/27/28/28/28
14/28/27/27/27/28
60/26/26/26/26/26
62/26/25/25/25/26
250/24/24/24/24/24
252/24/23/23/24/24
Cloud subnets fill up faster than expected: load balancers, NAT gateways, endpoints and container networking all take addresses. Size for the services you will add, not only the instances you start with.
How we check this page

Every figure on this site comes from the same calculation engine as the tools, and that engine is tested on each build against more than 6,600 cases generated by Python's standard ipaddress module. Rules are taken from the RFCs and vendor documents listed under Sources. Last reviewed November 20, 2026.

Sources

  1. AWS: Subnet CIDR blocks
  2. Microsoft Azure: Virtual network FAQ
  3. Google Cloud: Subnets
  4. Oracle Cloud Infrastructure: Networking overview