Type an IP address, then either enter a subnet mask or drag the CIDR slider. The mask and the CIDR stay in sync, and the table updates as you type. You can also paste an address with a prefix, such as 10.0.0.5/26, into the IP field.
Small prefixes follow different rules, so the calculator shows a message when you select them.
| CIDR | Subnet mask · Total addresses · Usable hosts |
|---|---|
| /24 | 255.255.255.0 · 256 · 254 |
| /25 | 255.255.255.128 · 128 · 126 |
| /26 | 255.255.255.192 · 64 · 62 |
| /27 | 255.255.255.224 · 32 · 30 |
| /28 | 255.255.255.240 · 16 · 14 |
| /29 | 255.255.255.248 · 8 · 6 |
| /30 | 255.255.255.252 · 4 · 2 |
| /31 | 255.255.255.254 · 2 · 2 (point-to-point) |
| /32 | 255.255.255.255 · 1 · 1 (single host) |
Need to split one network into different sizes? Use the VLSM Calculator.
Enter the IP address, then type the subnet mask or move the CIDR slider. The calculator shows the network address, first and last usable IP, broadcast address and the number of hosts.
A /24 has 256 addresses and 254 usable hosts, because the first address is the network address and the last one is the broadcast address.
A /31 has two addresses and no network or broadcast address. RFC 3021 allows both to be used, which makes /31 the usual choice for point-to-point router links.
A /32 is a single IP address. It is used for loopback interfaces, host routes and firewall rules that match exactly one host.
A wildcard mask is the inverse of the subnet mask. Cisco access lists and OSPF network statements use it. For 255.255.255.0 the wildcard mask is 0.0.0.255.