Subnet Calculator (IPv4)
Free IP subnet calculator and CIDR calculator. Enter an IP address and a prefix (or type it as 192.168.1.10/24) to get the network, broadcast, host range and masks instantly.
Binary view
Red bits are the network part; grey bits are the host part.
Split this network into smaller subnets
How to use the subnet calculator
- Type an IPv4 address, for example
192.168.1.10. You can also type it with a prefix, like192.168.1.10/26, or with a mask, like192.168.1.10 255.255.255.192. - Pick the subnet mask or CIDR prefix from the list (skip this if you typed it).
- Press Calculate. Use Copy link to share the exact result.
What the results mean
- Network address – the first address in the subnet. It identifies the network and is not given to a device.
- Broadcast address – the last address. Traffic sent here reaches every host on the subnet.
- Usable host range – the addresses you can assign to devices, between the network and broadcast addresses.
- Subnet mask – marks which bits belong to the network (1s) and which to hosts (0s).
- Wildcard mask – the inverse of the subnet mask, used in Cisco ACLs and OSPF.
Worked example: 192.168.10.77/27
A /27 leaves 5 host bits, so each subnet has 25 = 32 addresses. Subnets start every 32 addresses in the last octet: 0, 32, 64, 96… The address 77 falls in the block that starts at 64.
- Network:
192.168.10.64 - Broadcast:
192.168.10.95 - Usable hosts:
192.168.10.65to192.168.10.94(30 hosts) - Mask:
255.255.255.224, wildcard0.0.0.31
Subnet mask cheat sheet
| CIDR | Subnet mask | Wildcard mask | Total addresses | Usable hosts |
|---|---|---|---|---|
| /32 | 255.255.255.255 | 0.0.0.0 | 1 | 1 |
| /31 | 255.255.255.254 | 0.0.0.1 | 2 | 2 |
| /30 | 255.255.255.252 | 0.0.0.3 | 4 | 2 |
| /29 | 255.255.255.248 | 0.0.0.7 | 8 | 6 |
| /28 | 255.255.255.240 | 0.0.0.15 | 16 | 14 |
| /27 | 255.255.255.224 | 0.0.0.31 | 32 | 30 |
| /26 | 255.255.255.192 | 0.0.0.63 | 64 | 62 |
| /25 | 255.255.255.128 | 0.0.0.127 | 128 | 126 |
| /24 | 255.255.255.0 | 0.0.0.255 | 256 | 254 |
| /23 | 255.255.254.0 | 0.0.1.255 | 512 | 510 |
| /22 | 255.255.252.0 | 0.0.3.255 | 1,024 | 1,022 |
| /21 | 255.255.248.0 | 0.0.7.255 | 2,048 | 2,046 |
| /20 | 255.255.240.0 | 0.0.15.255 | 4,096 | 4,094 |
| /19 | 255.255.224.0 | 0.0.31.255 | 8,192 | 8,190 |
| /18 | 255.255.192.0 | 0.0.63.255 | 16,384 | 16,382 |
| /17 | 255.255.128.0 | 0.0.127.255 | 32,768 | 32,766 |
| /16 | 255.255.0.0 | 0.0.255.255 | 65,536 | 65,534 |
| /15 | 255.254.0.0 | 0.1.255.255 | 131,072 | 131,070 |
| /14 | 255.252.0.0 | 0.3.255.255 | 262,144 | 262,142 |
| /13 | 255.248.0.0 | 0.7.255.255 | 524,288 | 524,286 |
| /12 | 255.240.0.0 | 0.15.255.255 | 1,048,576 | 1,048,574 |
| /11 | 255.224.0.0 | 0.31.255.255 | 2,097,152 | 2,097,150 |
| /10 | 255.192.0.0 | 0.63.255.255 | 4,194,304 | 4,194,302 |
| /9 | 255.128.0.0 | 0.127.255.255 | 8,388,608 | 8,388,606 |
| /8 | 255.0.0.0 | 0.255.255.255 | 16,777,216 | 16,777,214 |
/31 networks are used for point-to-point links (RFC 3021) and /32 represents a single host.
Private IP address ranges
| Range | CIDR | Addresses |
|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | 16,777,216 |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | 1,048,576 |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 65,536 |
Related free tools
- IPv6 Subnet Calculator – IPv6 network range, /64 count and reverse DNS zone
- Password Strength Checker – strength score, crack time and data breach check
- All free cybersecurity tools – every tool in one place
Stay current on the threats these tools help defend against: read the latest vulnerability news, threats and malware and data breach coverage on Cyber Strike News.
Frequently asked questions
What is a subnet calculator?
A subnet calculator takes an IP address and a prefix length (or subnet mask) and works out the network address, broadcast address, usable host range and number of hosts for that subnet.
How many usable hosts are in a /24?
A /24 has 256 addresses. Two are reserved (the network and broadcast addresses), so 254 are usable for hosts.
What is the difference between a subnet mask and CIDR notation?
They describe the same thing. 255.255.255.0 and /24 both mean the first 24 bits are the network part. CIDR is just a shorter way to write the mask.
What is a wildcard mask?
A wildcard mask is the inverse of the subnet mask (for /24, 0.0.0.255). It is used in Cisco ACLs and OSPF configuration to say which bits to ignore.
Why does a /31 have 2 usable hosts?
Normally the first and last addresses are reserved. RFC 3021 allows /31 networks on point-to-point links, where both addresses can be used and no broadcast address is needed.
Is my IP address sent anywhere when I use this tool?
No. All calculations run in your browser with JavaScript. Nothing you type is sent to a server or stored.
