Toolman

/25 subnet

A /25 has a subnet mask of 255.255.255.128 and 126 usable hosts.

The numbers

Prefix length/25
Subnet mask255.255.255.128
Wildcard mask0.0.0.127
Network bits25
Host bits7
Total addresses128
Usable hosts126
/24 networks contained

Where a /25 is used

Half a /24 — 126 hosts. The first size where you have to think in binary, because the boundary no longer lands on a dot.

Why the usable count is what it is

A /25 leaves 7 bits for hosts, giving 27 = 128 addresses. Two of those cannot be assigned to a machine: the one with all host bits set to zero is the network address, which names the subnet itself, and the one with all host bits set to one is the broadcast address. That leaves 126.

Binary layout

mask   11111111.11111111.11111111.10000000
       ^^^^^^^^^^^^^^^^^^^^^^^^^       
       25 network bits, 7 host bits

Splitting and combining

PrefixUsable hostsRelationship
Twice the size/24254Two /25 networks combine into one /24
This network/25126
Half the size/2662One /25 splits into two /26 networks
A quarter/2730Four /27 networks fit in a /25

Frequently asked questions

How many hosts are in a /25?

128 addresses in total, of which 126 are usable. The first is the network address and the last is the broadcast address, so two are always lost.

What is the subnet mask for /25?

255.255.255.128. The prefix length is the count of leading 1 bits in the mask, so /25 is 25 ones followed by 7 zeros.

What is the wildcard mask for /25?

0.0.0.127 — the bitwise inverse of the subnet mask. Cisco access lists and OSPF network statements take the wildcard rather than the mask; a zero bit must match and a one bit is ignored.

How does a /25 compare to a /24?

A /25 is smaller: 2 of them fit inside one /24.

Other prefix lengths

All prefix lengths · Subnet calculator