About the IP Subnet Calculator
Work out everything about an IPv4 subnet from an address and a prefix length: the network and broadcast addresses, subnet and wildcard masks, the first and last usable host and how many hosts fit. It also tells you whether the address is private, public, loopback or another special range.
How to use
- Type an IPv4 address, optionally with a prefix such as 192.168.1.10/24 or 10.0.0.5 255.255.0.0.
- Or pick the prefix length from the list.
- Read the results and the binary view, which highlights the network bits.
Frequently asked questions
How many usable hosts does a /24 have?
A /24 has 256 addresses. The first is the network address and the last is the broadcast address, so 254 can be assigned to hosts.
What about /31 and /32?
A /32 is a single host. A /31 has two addresses and, per RFC 3021, both are usable on point-to-point links because no broadcast address is needed.