Calculator Form
Example Data Table
| Input Block | Mode | Target | Expected Prefix | Usable Hosts |
|---|---|---|---|---|
| 192.168.1.0/24 | Desired subnets | 4 subnets | /26 | 62 |
| 10.10.0.0/16 | Desired hosts | 500 hosts | /23 | 510 |
| 172.16.5.40/28 | Summary | One block | /28 | 14 |
| 192.0.2.0/31 | Summary | Point link | /31 | 2 |
Formula Used
- Total addresses: 232 - prefix
- Usable hosts: total addresses minus 2 for normal IPv4 subnets from /0 to /30.
- /31 point link: usable hosts can be 2 when point to point handling is enabled.
- /32 host route: usable host count is 1.
- Subnet count: 2borrowed bits
- Borrowed bits: ceil(log2(required subnets))
- Host bits: ceil(log2(required hosts + 2)) for normal host planning.
- New prefix: parent prefix plus borrowed bits.
- Wildcard mask: inverse of the subnet mask.
How to Use This Calculator
- Enter an IPv4 address with CIDR notation, such as 192.168.10.0/24.
- You may also enter an address and use the prefix field separately.
- Choose a calculation mode.
- Enter desired subnets, desired hosts, or borrowed bits when needed.
- Choose how many subnet rows should be displayed.
- Select a gateway suggestion option.
- Press the calculate button.
- Download the result as CSV or PDF when needed.
Understanding Subnets and Hosts
Subnet planning keeps a network organized and predictable. It divides one address block into smaller blocks. Each block can serve a department, site, lab, server zone, or device group. Good planning prevents wasted addresses. It also makes routing easier to read.
A subnet is created by moving the prefix boundary. A shorter prefix gives more host addresses. A longer prefix gives more subnets. This calculator shows both sides of that trade. It converts the entered address into network details. It also lists subnet ranges when splitting is requested.
Why Host Counts Matter
Host capacity is not always the same as total addresses. In normal IPv4 subnetting, the first address is the network address. The last address is the broadcast address. These two values are not used by ordinary hosts. That is why a /24 has 256 total addresses but 254 usable hosts.
There are exceptions. A /31 can be used for point to point links. In that case both addresses may be usable. A /32 represents one host route. This tool includes those cases, so design notes stay realistic.
Planning with CIDR
CIDR notation writes an address and prefix together, such as 192.168.10.0/24. The prefix tells how many bits belong to the network part. The remaining bits belong to hosts. When you borrow host bits, each borrowed bit doubles the subnet count. It also cuts the size of each subnet in half.
Use this calculator during lessons, audits, and network design. Start with the parent block. Then choose a target. You can calculate by desired subnets, desired hosts, or borrowed bits. Review the first usable address, last usable address, broadcast address, mask, and wildcard. Export the result when you need a record for documentation or team review.
Practical Checks
Always confirm that the parent block is large enough. A request for too many hosts may need a shorter parent prefix. A request for many subnets may leave too few hosts. The result table helps spot those problems before addresses are assigned.
Keep labels clear when saving outputs. Include the site name, VLAN number, gateway choice, and purpose. These small notes reduce mistakes when teams later review firewall rules, routes, leases, inventory records, or planned changes quickly.
FAQs
What is a subnet?
A subnet is a smaller address block inside a larger network. It helps organize devices, improve routing, and separate traffic by site, team, or function.
What does the prefix mean?
The prefix shows how many bits belong to the network part. A /24 means 24 network bits and 8 host bits.
Why are two addresses removed from usable hosts?
Normal IPv4 subnets reserve the first address for the network. They reserve the last address for broadcast. Hosts use the remaining addresses.
Can a /31 have usable hosts?
Yes. A /31 can support two usable addresses on point to point links. Enable the /31 option when using that design.
What is a wildcard mask?
A wildcard mask is the inverse of the subnet mask. It is often used in routing rules, access lists, and network matching tasks.
What happens when I request more subnets?
The calculator borrows host bits. Each borrowed bit doubles subnet count, but it reduces the number of host addresses per subnet.
What happens when I request more hosts?
The calculator keeps more host bits. This creates larger subnets, but it may reduce the number of possible subnets inside the parent block.
Why is my entered address changed in the result?
The tool normalizes the entered address to its network address. This shows the real start of the CIDR block.