IP subnet calculator
Enter an IPv4 address with a prefix such as /24, or with a dotted mask, and get the network, broadcast, mask and usable range.
What a subnet is
An IPv4 address has 32 bits. A prefix length such as /24 says how many of those bits identify the network. The rest identify hosts inside it. A /24 leaves 8 bits, which gives 256 addresses.
You can type 192.168.1.10/24 or 192.168.1.10 255.255.255.0. The tool accepts both forms and updates as you type.
How to read the result
- Network address: the first address. It names the subnet and is not given to a host.
- Broadcast address: the last address. It reaches all hosts on the subnet.
- Subnet mask: the prefix in dotted form.
- Wildcard mask: the inverse of the mask. Firewalls and routers often use it in rules.
- Usable range and hosts: the addresses you can assign. For most subnets it is the total minus two.
Common prefixes
| Prefix | Mask | Usable hosts |
|---|---|---|
| /32 | 255.255.255.255 | 1 (a single address) |
| /31 | 255.255.255.254 | 2 (point-to-point links) |
| /30 | 255.255.255.252 | 2 |
| /28 | 255.255.255.240 | 14 |
| /24 | 255.255.255.0 | 254 |
| /16 | 255.255.0.0 | 65,534 |
Private ranges
Three blocks are reserved for private networks: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Addresses in 100.64.0.0/10 are shared space used by some carriers. The tool labels the address you enter so you can tell whether it can be reached from the internet.
Monitoring hosts in a subnet
After you plan a subnet, add monitors for the hosts that matter. Uptimecat offers ping and port checks as well as web checks. Remember that private addresses are reachable only from inside the network, so the check must run from a host that can reach them. See website monitoring.
Worked example
Take 10.20.30.77/26. A /26 has 64 addresses in blocks of 64, so the network is 10.20.30.64 and the broadcast is 10.20.30.127. The usable range is 10.20.30.65 to 10.20.30.126, which gives 62 hosts. The mask is 255.255.255.192. Type the same input in the tool to confirm each line. A quick rule: each step down in prefix length doubles the block, so /25 holds 128 addresses and /23 holds 512. Plan the largest subnets first so smaller ones fit in what is left.
Frequently asked questions
Why are two addresses unusable?
The first is the network address and the last is the broadcast address. A /31 and a /32 are special cases without that loss.
Can I enter a host address instead of the network?
Yes. The tool masks it for you and shows the network the host belongs to.
What about IPv6?
Use the IPv6 subnet calculator.
Run the check
Related
Open the dashboard
Sign in with your Google account to add a monitor and pick an alert channel. Access is currently limited to Moruk accounts; open sign-up is not available yet.