Home/Networking Tools/Subnet calculator

Subnet calculator

Subnet Calculator

Enter an IP address and prefix length to get the network, host range, and mask details instantly.

Waiting Mask Hosts
IP addressIPv4 only
Prefix length/0 to /32
CIDR notation (optional)IP/prefix

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

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

/24255.255.255.0
/16255.255.0.0
/8255.0.0.0
/30255.255.255.252
/32255.255.255.255

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.