Subnet / CIDR Calculator
Enter an IPv4 address and CIDR prefix to get the network, broadcast, usable host range, subnet mask, wildcard, and host count. Everything runs in your browser.
- Network
- 192.168.1.0
- Broadcast
- 192.168.1.255
- Subnet mask
- 255.255.255.0
- First host
- 192.168.1.1
- Last host
- 192.168.1.254
- Wildcard
- 0.0.0.255
- Usable hosts
- 254
- Total addresses
- 256
How subnetting works (quick refresher)
A CIDR prefix (the /24 in 192.168.1.0/24) is the number of leading bits fixed for the network. The remaining bits address hosts: a /24 leaves 8 host bits = 256 addresses, minus the network and broadcast addresses = 254 usable hosts. Smaller prefixes mean bigger networks.
Setting up the network this lives on? See pfSense vs OPNsense for the firewall and WireGuard vs OpenVPN for remote access.