Ad slot — header (728x90)

/24 vs /25: Which Subnet Size Should You Use?

Last reviewed: May 2026

Both /24 and /25 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
/24256254251251252Standard workload subnet
/25128126123123124Half a /24 — two AZs from one block

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

Use a /24 when…

You want one subnet per tier and have no near-term pressure on address space. A /24 is the default for a reason: it is the largest block that still fits neatly into a /16 plan (256 of them), and the third octet reads directly as the subnet number, which makes firewall rules and documentation easy to scan.

Use a /25 when…

You need two subnets and only have a /24 to give. Splitting into 10.0.1.0/25 and 10.0.1.128/25 gets you two AZs from a single block. The cost is that 126 usable hosts is a real ceiling for anything running a container platform, where each pod can consume an IP.

The gotcha

Watch outThe split point is the trap. A /25 boundary falls at .0 and .128, so 10.0.1.100 is in the first /25 and 10.0.1.130 is in the second. People routinely mis-assign a gateway to .1 in one half and .129 in the other and then wonder why half the hosts cannot route.
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 /24 better than a /25?

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

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

Related Guides

Ad slot — footer (728x90)