Master subnet masks, host ranges, and network IDs with confidence. Solve realistic scenarios much faster. Sharpen binary thinking through guided practice, feedback, graphs, exports.
| Base Network | Requirement | Chosen Prefix | Subnet Mask | Subnets | Usable Hosts | Example Selected Network |
|---|---|---|---|---|---|---|
| 192.168.10.0/24 | 4 subnets, 50 hosts | /26 | 255.255.255.192 | 4 | 62 | 192.168.10.64 |
| 10.20.0.0/16 | 8 subnets, 2000 hosts | /19 | 255.255.224.0 | 8 | 8190 | 10.20.32.0 |
| 172.16.5.0/24 | 16 subnets, 10 hosts | /28 | 255.255.255.240 | 16 | 14 | 172.16.5.80 |
1. Borrowed bits
Borrowed Bits = New Prefix − Base Prefix
2. Total subnets
Total Subnets = 2Borrowed Bits
3. Addresses per subnet
Addresses per Subnet = 232 − New Prefix
4. Usable hosts per subnet
Usable Hosts = Addresses per Subnet − 2
5. Selected subnet network
Selected Network = Base Network + (Subnet Index − 1) × Addresses per Subnet
6. Broadcast address
Broadcast = Selected Network + Addresses per Subnet − 1
7. First and last host
First Host = Network + 1, Last Host = Broadcast − 1
8. Subnet increment
Subnet Increment = 256 − Interesting Octet Value
It calculates subnet masks, prefixes, network ranges, host ranges, and broadcast addresses. It also lets you enter your own answers and checks them instantly for practice and revision.
Yes. Leave borrowed bits and desired prefix blank, then enter required usable hosts. The tool searches for the smallest valid subnet size that still satisfies the host requirement.
The calculator tries to find one prefix that satisfies both constraints. If no prefix can satisfy both at the same time, it shows an error message instead of returning misleading output.
Subnetting often produces many subnet ranges. The selected subnet field lets you inspect one specific subnet quickly, including its exact network address, usable host range, and broadcast address.
The interesting octet is the mask octet where subnet increments occur. It helps you spot the jump size between network addresses, which makes mental subnetting faster during exams and interviews.
Yes. You can type your expected network, broadcast, first host, last host, mask, and usable host values. The page then scores your answers and shows the correct values beside them.
Large networks can generate many thousands of subnets. To keep the page fast and readable, the table displays the first sixteen rows while still calculating the total subnet count accurately.
Yes. The page includes CSV export for the subnet table and PDF export for the visible result area. That makes it easy to save practice attempts or share worked examples.
Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.