Subnet calculator
Subnet Calculator
Enter an IP address and prefix length to get the network, host range, and mask details instantly.
Start with any IPv4 address. Results update live as you type.
Quick guide
- Use the prefix length to control how many hosts live inside the subnet.
- Network and broadcast boundaries update automatically from the IP and prefix.
- /31 and /32 are special cases for point-to-point and single-host links.
CIDR preview
—
Related tool
Subnet summary
Network address
—
Network CIDR
—
Broadcast address
—
Input IP role
—
Host range
Usable range
—
Usable hosts
—
Host bits
—
Total addresses
—
Block size
—
Mask details
Prefix length
—
Subnet mask
—
Wildcard mask
—
Binary view
IP address
—
Subnet mask
—
Network address
—
Common masks
Notes for planners
/31 subnets are commonly used for point-to-point links and treat both addresses as usable.
/32 represents a single host route, so network and host address are the same.
For larger allocations, use the total address count to estimate capacity before adding reserved ranges.