Ad slot — header (728x90)

/26 vs /27: Which Subnet Size Should You Use?

Last reviewed: May 2026

Both /26 and /27 are common choices, and the right one depends less on host counts than on where the block sits in your wider plan. Here is the direct comparison, then the practical guidance.

Side by side

PrefixTotal IPsUsable (standard)AWS usableAzure usableGCP usableTypical use
/266462595960Service subnet, Azure Firewall/Bastion minimum
/273230272728Small service tier, Azure Gateway minimum

AWS and Azure reserve 5 addresses per subnet; GCP reserves 4. Those columns are what you can actually assign to workloads.

Use a /26 when…

Anything on Azure that touches a managed service. AzureFirewallSubnet, AzureBastionSubnet and Application Gateway all require a /26 minimum — a /27 is rejected outright at deployment time, which is one of the most common first-time Azure networking failures.

Use a /27 when…

Infrastructure subnets with a known, small, fixed host count: NTP, DNS, jump hosts, load balancer front-ends. A /27 leaves 30 usable addresses, which is comfortable for a service tier that will never scale horizontally.

The gotcha

Watch outCloud reservations bite hardest at these sizes. A /27 looks like 30 usable hosts by textbook maths, but on AWS or Azure it is 27, and on GCP 28. If you size a /27 for exactly 30 instances, the deployment fails on the twenty-eighth.
Rule of thumbSize for the host count you expect in two years, then check it against the provider-adjusted column above — not the textbook one. Running out of addresses in a live subnet means rebuilding it, because neither AWS nor Azure lets you resize a subnet in place.
Compare any two prefixes in the calculator →

Where these fit in a cloud plan

Prefix choice is a downstream decision. Start from the VPC or VNet block, divide it per region and per availability zone, and only then choose subnet sizes. The Cloud VPC & VNet CIDR Planning Guide covers that top-down process, and the free subnet finder will tell you which of these sizes actually fits in the space you have left.

Frequently Asked Questions

Is a /26 better than a /27?

Neither is better in the abstract. A /26 has more usable addresses and a /27 conserves address space. Choose based on expected host count, provider minimums for the service involved, and how much room the parent block has left.

How many /27 subnets fit in a /26?

Exactly 2, because the prefix difference is 1 bit and 2^1 = 2.

Why do AWS and Azure show fewer usable hosts?

Both reserve five addresses in every subnet: the network address, the default gateway, two for internal DNS and future use, and the broadcast address. GCP reserves four. A /26 therefore yields fewer assignable addresses in cloud than the textbook figure.

Related Guides

Ad slot — footer (728x90)