Subnet Calculator
Enter an IPv4 address and CIDR prefix to instantly calculate the network address, broadcast address, usable host range, subnet mask and total hosts.
How to use
What CIDR notation means
CIDR (Classless Inter-Domain Routing) writes a network as an IP plus a prefix length, like 192.168.1.0/24. The /24 means the first 24 bits identify the network, leaving 8 bits for hosts.
Network vs broadcast vs hosts
The network address is the first address in the block, the broadcast is the last, and everything in between is usable for devices. A /24 has 256 total addresses and 254 usable hosts.
The subnet mask
The prefix length maps to a dotted mask: /24 is 255.255.255.0, /16 is 255.255.0.0. The wildcard mask is its inverse and is used in access control lists on Cisco devices.
CIDR was introduced in 1993 to slow the exhaustion of IPv4 addresses by replacing the rigid Class A/B/C system with flexible prefix lengths — it extended the usable life of IPv4 by decades.