What is a visual subnet calculator?
Most subnet calculators work out one subnet at a time. A visual subnet calculator shows the whole plan. You start with a big network, cut it into smaller pieces and see at once where every piece begins and ends, how many hosts it holds and how the pieces fit together.
This one has two views of the same plan. The subnet map is a table with a Hierarchy (Split/Join) column: a Split button on every subnet and Join buttons that group the subnets that belong together. The hierarchy is a tree that shows each subnet under the network it was cut from.
How to use the Visual Subnet Calculator
Type the Network Address and pick the mask, either in the Subnet Mask box or with the CIDR slider. You can also paste an address with its prefix, like 10.0.0.0/16, into the first box. If the address is inside a network but is not its first address, the calculator uses the network address and tells you.
The result shows straight away and follows every change you make. At first the map holds one subnet: your whole network. Under Visual Subnetting you see each subnet with its network address, first and last usable IP, broadcast address and host counts, just like the other calculators on this site.
The Hierarchy (Split/Join) column is on the right of the table. Every subnet has a teal button there that shows its own prefix, like /24. Click it to split that subnet into two equal halves, here two /25 subnets. Keep clicking to go smaller. Each subnet is split on its own, so you can end up with subnets of different sizes. To cut everything to one size in one go, use Divide all to.
The blue buttons work the other way round. A blue /24 sits next to the group of subnets it covers and shows the size you get when you click it: all of them become one /24 again. The buttons closest to the subnets join two halves, and the buttons further right join bigger groups. Join All puts the whole network back together.
Tick or untick boxes in Show Columns to choose what the map shows. Tick Note to type a label next to each subnet, such as "Sales VLAN" or "Servers". On a phone or tablet the table slides sideways.
Copy puts the subnet map and the hierarchy on your clipboard and Download saves them as a CSV file. Both include every subnet and the columns you ticked. Clear All puts the form back to its starting values.
How dividing and joining works
A subnet with prefix /n holds 2(32 − n) addresses. Dividing it adds one bit to the prefix, which gives two subnets of half the size:
Joining does the opposite. The two halves become the parent again, with the prefix /(n − 1) and the network address of the first half. Only two subnets that were cut from the same parent can be joined, which is why the Join cells always cover whole groups.
Usable IPs are the addresses between the network address and the broadcast address. A /31 has 2 usable hosts (RFC 3021) and a /32 has 1.
Example: split a /24 into three subnets
Start with 192.168.0.0/24. Divide it into two /25 subnets, then divide the second /25 into two /26 subnets. The map ends with three subnets:
| Network Address | First Usable IP | Last Usable IP | Broadcast Address | Total Usable Hosts |
|---|---|---|---|---|
| 192.168.0.0/25 | 192.168.0.1 | 192.168.0.126 | 192.168.0.127 | 126 |
| 192.168.0.128/26 | 192.168.0.129 | 192.168.0.190 | 192.168.0.191 | 62 |
| 192.168.0.192/26 | 192.168.0.193 | 192.168.0.254 | 192.168.0.255 | 62 |
| Level | Subnet | Type | Range of Addresses | Total Usable Hosts |
|---|---|---|---|---|
| 1 | 192.168.0.0/24 | Parent | 192.168.0.0 – 192.168.0.255 | 254 |
| 2 | 192.168.0.0/25 | Subnet | 192.168.0.0 – 192.168.0.127 | 126 |
| 2 | 192.168.0.128/25 | Parent | 192.168.0.128 – 192.168.0.255 | 126 |
| 3 | 192.168.0.128/26 | Subnet | 192.168.0.128 – 192.168.0.191 | 62 |
| 3 | 192.168.0.192/26 | Subnet | 192.168.0.192 – 192.168.0.255 | 62 |
The hierarchy shows that the first /25 was left whole, while the second /25 became a parent with two /26 subnets under it.
When it helps
Use it to plan VLANs and office networks, to share a cloud VPC range between teams, to explain subnetting in a class, and to check your own answers when you study for CCNA or Network+. Because the plan is a map, you can try a layout, change your mind in one click and copy the result into your documentation.
If you already know how many subnets or hosts you need, the FLSM Calculator and the VLSM Calculator work it out for you. To look at one subnet in detail, use the IPv4 Subnet Calculator.