How to Use a Subnet Calculator to Find Network, Broadcast, and Host Ranges
Updated
Enter an IPv4 address with its prefix or mask (for example 192.168.1.10/24) into an IPv4 subnet calculator, and it returns the network address, broadcast address, subnet mask, wildcard mask, and usable host range in one step. This works for any IPv4 subnet you can express in CIDR or dotted-decimal form. You only need the address and either the prefix length or the mask — no binary math required.
What to enter
Most calculators accept either format, so pick whichever you already have:
- CIDR notation:
192.168.1.10/24— the/24is the prefix length. - Address plus mask:
192.168.1.10with255.255.255.0.
If the tool has separate fields, put the host address in the IP field and the prefix or mask in its own field. The Networking Toolbox IPv4 Subnet Calculator is described as calculating "subnet masks, network addresses, broadcast addresses, and host ranges," so those are the outputs to expect.
A quick sanity check before you trust the result: the address you type is usually a host address inside the subnet, not the network address itself. If you enter the network address by mistake, the output still computes, but the "usable host range" may look off by one at the start.
Reading the output fields
| Field | What it means | Example for 192.168.1.10/24 |
|---|---|---|
| Network address | The first address in the subnet; identifies the subnet | 192.168.1.0 |
| Broadcast address | The last address; reaches all hosts in the subnet | 192.168.1.255 |
| Subnet mask | Dotted-decimal form of the prefix | 255.255.255.0 |
| Wildcard mask | Inverse of the mask, used in ACLs and some configs | 0.0.0.255 |
| Usable host range | Addresses you can assign to devices | 192.168.1.1 – 192.168.1.254 |
| Host count | Number of assignable addresses | 254 |
The two boundary addresses — network and broadcast — are not assignable to hosts in a standard subnet. That is why a /24 gives 256 total addresses but only 254 usable ones.
How the prefix decides the range
The prefix length is the number of leading bits fixed as the network portion. The remaining bits are host bits, and usable hosts follow 2^(host bits) − 2.
| Prefix | 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 |
| /30 | 255.255.255.252 | 4 | 2 |
| /31 | 255.255.255.254 | 2 | 0 (point-to-point only) |
| /32 | 255.255.255.255 | 1 | 0 (single host) |
So 192.168.1.10/25 sits in 192.168.1.0 – 192.168.1.127, with usable hosts 192.168.1.1 – 192.168.1.126 and broadcast 192.168.1.127. The same address under /24 lands in a different subnet — the prefix, not the address alone, defines the boundary.
Verify with a CIDR-to-mask conversion
Cross-check the calculator by converting the prefix to a mask and back:
- Take the prefix (e.g.
/26). - Convert it to dotted decimal (
255.255.255.192) using a CIDR → Mask tool. - Re-enter the address with the mask form and confirm the network, broadcast, and host range match the CIDR result.
If the two disagree, you likely mistyped the prefix or mask. This check also catches the common error of using a mask that does not align to a valid prefix boundary (for example 255.255.255.100).
Common pitfalls
- Treating the network or broadcast address as a host. Assigning
192.168.1.0or192.168.1.255to a device causes conflicts or unreachable hosts. - Assuming the address defines the subnet.
10.0.0.5is a host in10.0.0.0/24but also in10.0.0.0/8— the prefix decides. - Forgetting
/31and/32are special. They have no usable host range in the usual sense;/31is for point-to-point links and/32for a single host. - Mixing up mask and wildcard mask. The wildcard is the bitwise inverse; use it only where the platform expects it (ACLs, OSPF, some firewalls).
Once you can read the network, broadcast, and host-range fields, you can size a subnet, pick an address for a device, or confirm whether two addresses share a subnet — all without hand-converting to binary.