Ad slot — header (728x90)

/28 vs /29: Which Subnet Size Should You Use?

Last reviewed: May 2026

Both /28 and /29 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
/281614111112Smallest AWS/Azure subnet allowed
/2986n/an/an/aOn-prem only — below cloud minimums

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

Use a /28 when…

Any cloud subnet that needs to be small. A /28 is the floor on both AWS and Azure — you cannot create anything smaller — so it is the correct choice for NAT gateway subnets, VPC endpoint subnets and small management tiers.

Use a /29 when…

On-premises and lab networks only. A /29 gives six usable addresses, which suits a small DMZ or a rack of infrastructure devices, but AWS and Azure both reject it. Reaching for a /29 in a cloud plan is a sign the plan was written against textbook subnetting rather than provider rules.

The gotcha

Watch outA /28 in AWS yields 11 usable IPs, not 14. Providers reserve five addresses per subnet (four on GCP). At /28 that reservation is nearly a third of the block, which is why undersized cloud subnets fail so much earlier than engineers expect.
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 /28 better than a /29?

Neither is better in the abstract. A /28 has more usable addresses and a /29 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 /29 subnets fit in a /28?

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 /28 therefore yields fewer assignable addresses in cloud than the textbook figure.

Related Guides

Ad slot — footer (728x90)