This subnet calculator breaks an IPv4 address in CIDR notation into everything you need: the network address, the broadcast address, the usable host range, the number of hosts, the subnet mask and the wildcard mask. It also tells you whether the address is in a private range. It is built for network admins, students preparing for exams and anyone setting up a router.
How do I use the subnet calculator?
- Enter an IP address with its prefix, for example 192.168.10.37/26.
- Read the results: network, broadcast, first and last usable host, and masks.
- Change the prefix to compare different subnet sizes.

Understanding CIDR notation
CIDR notation writes the network size as a slash and a number. The number says how many of the 32 bits in an IPv4 address belong to the network. The remaining bits are for hosts. A /24 leaves 8 host bits, which gives 256 addresses. Two are reserved, so 254 are usable.
| Prefix | Subnet mask | Total addresses | Usable hosts |
|---|---|---|---|
| /30 | 255.255.255.252 | 4 | 2 |
| /29 | 255.255.255.248 | 8 | 6 |
| /28 | 255.255.255.240 | 16 | 14 |
| /26 | 255.255.255.192 | 64 | 62 |
| /24 | 255.255.255.0 | 256 | 254 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |

Network, broadcast and usable host range
The network address is the first address in the block and identifies the subnet itself. The broadcast address is the last one and reaches every device in the subnet. Everything in between is the usable host range you can give to computers, phones and printers. For 192.168.10.37/26, the network is 192.168.10.0, the broadcast address is 192.168.10.63, and hosts run from .1 to .62.
Subnet mask vs wildcard mask
The subnet mask has 1s for network bits and 0s for host bits, such as 255.255.255.192. The wildcard mask is the reverse, 0.0.0.63 in the same example. Cisco access lists and OSPF settings use wildcard masks, so the calculator shows both.
Private address ranges
These blocks are reserved for local networks and are not routed on the public internet:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
Your home router almost always uses one of them. To see the public address your provider gives you, open what is my IP.
Tips for planning subnets
Leave room to grow. If a team has 25 devices, a /27 with 30 usable hosts is tight; a /26 is safer. Keep subnets for servers, staff and guests separate so you can apply different rules. Write down every subnet in a simple table as you create it.
What to use next
For converting between binary, decimal and hex while you learn subnetting, use the number base converter. Developers checking browser and connection details can try browser info, and the chmod calculator helps with Linux file permissions on the same servers.
