Subnet calculator
Subnet calculator
Type a CIDR block like 192.168.1.0/24, an address and mask like 10.0.0.5 255.255.255.0, or an IPv6 prefix like 2001:db8::/48.
Reading the result
The network address is the first address in the block and identifies it; for IPv4, the broadcast address is the last. Hosts can use everything in between, which is why a /24 has 256 addresses but 254 usable hosts. /31 and /32 are special: point-to-point links and single addresses use every address.
IPv6 is different
IPv6 networks are almost always /64, and providers hand homes a /56 or /48, which is 256 or 65,536 of those /64 networks. There is no broadcast address in IPv6, so the whole range is usable.
FAQ
What does the /24 mean?
The number of fixed bits at the start of the address. /24 fixes the first 24 bits (three octets), leaving 8 bits, so 256 addresses.
What is a wildcard mask?
The inverse of the subnet mask, used by some firewalls and routers (notably Cisco access lists).