This visual subnet calculator takes an IPv4 address and a prefix or mask, shows the network, broadcast, wildcard mask and usable host range, and then splits the network into equal smaller subnets so you can see exactly where each one starts and ends. It is a quick way to check a subnet plan before you configure anything.
Visual Subnet Calculator
See an IPv4 subnet bit by bit: network, broadcast, mask, wildcard, usable range, class and type, plus an optional split into equal subnets.
Starting values: the calculator opens with 192.168.1.10/26. The network is 192.168.1.0, the mask is 255.255.255.192, the broadcast is 192.168.1.63 and the usable hosts run from 192.168.1.1 to 192.168.1.62, which is 62 hosts.
What the calculator shows
- Network address, subnet mask and wildcard mask.
- Broadcast address and the first and last usable host.
- Number of usable hosts and the address class.
- Whether the address is private.
- A split table that divides the network into equal subnets of a longer prefix.
How the numbers are calculated
The mask turns the first n bits of the address into the network part, where n is the prefix length. The network address is the address ANDed with the mask. The wildcard mask is the mask inverted. The broadcast address is the network address with all host bits set to 1. The number of usable hosts is 2 to the power of the host bits, minus 2.
For a /26, there are 6 host bits, so each subnet holds 64 addresses and 62 usable hosts. The mask is 255.255.255.192, because the last octet has its top two bits set: 128 + 64 = 192.
Worked examples
Example 1: the default /26
The address 192.168.1.10 is in the block that starts at 192.168.1.0. The wildcard mask is 0.0.0.63, so the broadcast address is 192.168.1.63. Usable hosts run from .1 to .62. The address is in the class C range and it is private.
Example 2: splitting into four subnets
The split view divides the /26 into smaller subnets. With a /28 split, each subnet has 16 addresses, so they start at 192.168.1.0, 192.168.1.16, 192.168.1.32 and 192.168.1.48. Each has 14 usable hosts. This is the quick way to carve one department block into four small ones.
Example 3: a mask that does not end on a byte boundary
Take 10.1.2.3 with the mask 255.255.240.0. That is a /20. Only the third octet is split: 2 ANDed with 240 gives 0, so the network is 10.1.0.0. The block covers 4,096 addresses, so the broadcast address is 10.1.15.255 and there are 4,094 usable hosts.
Special prefix lengths
A /31 has no network or broadcast address in the usual sense. The calculator treats it as a point-to-point link, as described in RFC 3021. A /32 is a single host. Both are common on router links and loopback addresses, and in those cases the usual formula of 2 to the power n, minus 2, does not apply.
When to use it
- Checking whether two addresses are on the same subnet: if they give the same network address, they are.
- Working out a mask for a given number of hosts.
- Splitting a block into equal parts for several sites or VLANs.
- Studying for a networking exam, where the arithmetic is the point.
If your subnets need different sizes, a variable length plan wastes fewer addresses than an equal split. The VLSM calculator covers that case.
Limits
The tool handles IPv4 only. It does not check your addresses against anything already in use, and it splits into equal parts, so unequal sizes need a separate plan.
Common prefix lengths at a glance
| Prefix | Mask | 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 |
Each step to a longer prefix halves the block. That is why the block starts in the split table always fall on multiples of the block size: 64, 32, 16 and so on.
Private ranges
The calculator flags addresses in the private ranges defined by RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Addresses in these ranges are not routed on the public internet, so you can reuse them inside different networks. The default 192.168.1.10 belongs to the last range.
Common mistakes
- Entering the host address and expecting it to be the network address. The calculator shows the network the address belongs to, so 192.168.1.10/26 reports 192.168.1.0.
- Forgetting the two reserved addresses when counting hosts for a subnet of 8 or 16 addresses, where the loss is a large share of the block.
- Mixing up the mask and the wildcard mask. They are inverses, and access lists often want the wildcard form.
Using the split table for a real plan
Suppose a site has one /26 and needs four equal VLANs. Pick /28 in the split table, assign the first subnet to the servers, the second to staff, the third to guests and keep the fourth in reserve. Write the network address and range of each next to its purpose, and the plan is done in a couple of minutes.
Frequently asked questions
How do I find the network address from an IP and mask?
AND the address with the mask, bit by bit. For 192.168.1.10 with 255.255.255.192, the result is 192.168.1.0.
How many usable hosts are in a /26?
62. A /26 has 64 addresses, and two are reserved for the network and broadcast addresses.
What is a wildcard mask?
The inverse of the subnet mask. For 255.255.255.192 it is 0.0.0.63. It is used in some access lists and routing configurations.
Can I split a subnet into equal parts?
Yes. Pick a longer prefix in the split table and the calculator lists every subnet it creates, with its range.
Does it work for IPv6?
No. This calculator handles IPv4 addresses only.
