What this calculator does
Enter an IPv4 address and a prefix length from 0 to 32. The calculator returns the network address, subnet mask, broadcast address, number of usable hosts, and the first and last usable addresses.
Enter an IPv4 address and CIDR prefix to see its network, mask, broadcast address and usable host range.
Enter an IPv4 address and a prefix length from 0 to 32. The calculator returns the network address, subnet mask, broadcast address, number of usable hosts, and the first and last usable addresses.
The prefix length says how many leading bits identify the network. The mask has that many 1 bits.
Network = address AND mask
Broadcast = network OR (NOT mask)
Usable hosts = 2(32 − prefix) − 2, because the network and broadcast addresses are reserved. /31 (point-to-point links, RFC 3021) and /32 (a single host) are treated as fully usable.
Each step down in prefix length doubles the size of the block.
In cloud networks, providers reserve extra addresses in each subnet (AWS reserves 5, for example), so usable counts are lower than this calculator shows. Private ranges for internal networks are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. IPv6 is not supported.
254 usable hosts out of 256 addresses.
Writing an address with a slash and the number of network bits, such as 192.168.1.0/24.
RFC 3021 allows both addresses on point-to-point links, since no broadcast address is needed.
No, IPv4 only.
Count the 1 bits. 255.255.255.192 has 26.