/31 subnet (CIDR)

A /31 network has subnet mask 255.255.255.254, 2 total addresses and 2 usable hosts.

255.255.255.254Subnet mask
0.0.0.1Wildcard mask
2Addresses
2Usable hosts

Open 192.168.1.0/31 in the subnet calculator →

Details

PropertyValue
Network bits31
Host bits1
Mask in binary11111111.11111111.11111111.11111110
Mask in hex0xFFFFFFFE
Total addresses21 = 2
Usable hosts2 (RFC 3021 point-to-point)
Subnets per /24128
Historic class equivalent—

Typical use: Point-to-point link without network/broadcast (RFC 3021).

First /31 blocks in 192.168.1.0/24

NetworkFirst hostLast hostBroadcast
192.168.1.0/31192.168.1.0192.168.1.1—
192.168.1.2/31192.168.1.2192.168.1.3—
192.168.1.4/31192.168.1.4192.168.1.5—
192.168.1.6/31192.168.1.6192.168.1.7—
192.168.1.8/31192.168.1.8192.168.1.9—
192.168.1.10/31192.168.1.10192.168.1.11—
192.168.1.12/31192.168.1.12192.168.1.13—
192.168.1.14/31192.168.1.14192.168.1.15—

Example: 192.168.1.0/31

Network 192.168.1.0, no broadcast address, hosts 192.168.1.0 to 192.168.1.1.

Neighbouring prefixes

Each step of one bit halves (or doubles) the size: a /31 holds two /32s.

Frequently asked questions

How many hosts in a /31?
2 usable out of 2 addresses.
What is the subnet mask for /31?
255.255.255.254 (binary 11111111.11111111.11111111.11111110).