Skip to content
TR EN
/31 IPv4 RFC 4632

/31 Subnet Mask & Usable Host Capacity

Standardized by RFC 3021. Both IP addresses in the 2-host block are assigned to router interfaces with zero network or broadcast overhead.

Open in Calculator →
Subnet Mask 255.255.255.254 31 Network Bits
Wildcard Mask 0.0.0.1 Inverse Mask
Usable Hosts 2 RFC 3021 P2P
Total IP Space 2 Inc. Net & Broadcast

/31 Subnet Architecture & Use Cases

The /31 prefix indicates that 31 bits of the 32-bit IPv4 address belong to the network prefix, while the remaining 1 bits identify local host nodes.

A network interface assigned to this subnet can address up to 2 active nodes simultaneously in its local broadcast segment.

/31 in Binary: Network vs Host Bits

Subnet mask 255.255.255.254 in binary is 11111111.11111111.11111111.11111110: the first 31 bits are 1s (network portion) and the last 1 bits are 0s (host portion). Per RFC 3021, both addresses in a /31 can be assigned to the two ends of a point-to-point link.

A /24 block splits into 128 subnets of size /31.

Example: 192.168.1.0/31 Address Range

Network address192.168.1.0
First usable IP192.168.1.0
Last usable IP192.168.1.1
Broadcast addressN/A (RFC 3021 P2P)

Frequently Asked Questions (FAQ)

How many usable hosts are in a /31 subnet? →

A /31 subnet accommodates 2 total IP addresses and 2 usable host endpoints.

What is the subnet mask and wildcard mask for /31? →

The subnet mask for /31 is 255.255.255.254, and the wildcard mask is 0.0.0.1.

Where is a /31 network typically deployed? →

Standardized by RFC 3021. Both IP addresses in the 2-host block are assigned to router interfaces with zero network or broadcast overhead.

What is the /31 subnet mask in binary? →

The /31 mask is 255.255.255.254, written in binary as 11111111.11111111.11111111.11111110: the first 31 bits are 1s (network portion) and the remaining 1 bits are 0s (host portion). Per RFC 3021, both addresses in a /31 are usable; no network or broadcast address is reserved.

Example: what is the IP range of 192.168.1.0/31? →

The usable address(es) in 192.168.1.0/31: 192.168.1.0 and 192.168.1.1.

How many /31 subnets fit in a /24? →

A /24 block can be divided into 128 subnets of size /31 (2^(31-24) = 128).

Network Engineering Toolset

All calculations execute client-side in your browser.

11 tools