What is a /25 subnet? 128 IPs, and two fit in a /24
By TechCompare · Updated · How we check
A /25 subnet has the mask 255.255.255.128 and 128 addresses, with 126 usable. Two fit in one /24, so one /24 can serve two segments.
A /25 subnet, written as 255.255.255.128, covers 128 addresses, with 126 usable for hosts. It's half of a /24, so one /24 holds two /25 blocks side by side. That makes it a practical size for a small office VLAN, a guest network or a lab.
CIDR reference table
Every IPv4 prefix from /8 to /32 with its subnet mask, wildcard mask and address counts. Pick a prefix to open its page or the calculator.
| Prefix | Subnet mask | Wildcard mask | Total addresses | Usable hosts |
|---|---|---|---|---|
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /25This page | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
Usable hosts are the total minus the network address and the broadcast address. A /31 is the exception: it has neither, so both addresses work as hosts on a point to point link (RFC 3021). A /32 is a single address. The wildcard mask is the subnet mask with every bit flipped, and Cisco IOS access lists and OSPF network commands use it.
How this is calculated
The mask 255.255.255.128 leaves 7 host bits, so each /25 holds 128 addresses. A /24 holds 2 of these blocks, so the two halves can serve different segments without a second address plan. The first runs from 192.168.1.0 to 192.168.1.127, and its usable range is 192.168.1.1 to 192.168.1.126. The second block starts at 192.168.1.128, and its usable range is 192.168.1.129 to 192.168.1.254. AWS and Azure both allow a /25 and both reserve five addresses per subnet, so a cloud subnet of this size keeps 123 addresses for resources. One /24 can serve staff and guests if each gets a /25 and a firewall rule separates the two.
Verdict
Pick a /25 for a guest network, a small office VLAN or a lab that needs dozens of devices and has room to grow. The 126 usable addresses cover that, but check the headroom before you commit, since device counts can climb over time. Keep the DHCP pool to part of the block, so static devices like printers and access points have addresses that DHCP won't hand out. Count the addresses already taken by the gateway and any static servers before you settle on the mask. If the guest network outgrows its /25, it needs a bigger block, and that only works if the other half of the /24 is still free. If you want to split the block later, a /25 splits into 2 /26 blocks.
More Subnet scenarios
Related guides
Frequently asked questions
How many usable IPs are in a /25?
What's the difference between a /25 and a /24?
Can I split a /24 into two /25 subnets on one switch?
Related tools
DNS Lookup
Look up a domain's DNS records on Cloudflare or compare several resolvers at once, and read its SPF, DMARC and DKIM records in plain words.
Use toolDisplay Bandwidth Calculator
Check display bandwidth for HDMI, DisplayPort, USB-C, Thunderbolt, and USB4.
Use toolData Transfer Calculator
Estimate transfer times for files over USB, WiFi, Ethernet, and more.
Use tool