Utiliverse guide
What an IP Subnet Calculator Does
An IP subnet calculator turns an address and network prefix into usable network information. For IPv4, it can identify the network address, broadcast address, subnet mask, host range and number of usable host addresses. For IPv6, the focus is on the network prefix and the size of the address space represented by that prefix.
Subnetting divides an IP network into smaller logical networks. This is fundamental in business LANs, VLANs, cloud environments, data centers, labs and home networks because it provides a structured way to separate traffic and address different groups of devices.
In practice, you can apply the calculator by entering an address already assigned to a device, switch, router interface or proposed VLAN and then checking the resulting network boundary before making configuration changes. The network address can be used in route tables and firewall objects, the subnet mask or prefix can be entered on interfaces and DHCP scopes, and the usable host range helps you decide which addresses are safe for gateways, servers, printers, access points and client devices.
How to Use the IP Subnet Calculator
Choose IPv4 or IPv6, enter the address you want to evaluate, and select the CIDR prefix length. The results update automatically and can also be recalculated with the button in each mode.
In IPv4 mode, the tool returns the network address, conventional broadcast address, first and last host values, subnet mask, wildcard mask, total address capacity and usable host count. In IPv6 mode, it normalizes the network prefix and shows the selected prefix length, remaining host bits and address-space capacity.
CIDR and IPv4
CIDR notation expresses the network boundary with a slash and prefix length. A /24 means 24 bits identify the network and leaves 8 bits for the host portion. The corresponding mask is 255.255.255.0. Longer prefixes create smaller subnets, while shorter prefixes create larger address blocks. For a deeper explanation of prefix boundaries, masks, /31 and /32 behavior, see the CIDR and subnet masks guide.
Traditional IPv4 calculations reserve the network address and broadcast address, leaving fewer usable hosts than total addresses. Special cases such as /31 and /32 have different operational uses, so engineers should interpret those prefixes according to the network design.
IPv6 prefixes
IPv6 uses a much larger address space and identifies the network boundary with a prefix length. IPv6 does not use an IPv4-style broadcast address. A /64 is common in many IPv6 network designs, while larger aggregated prefixes can be divided into multiple networks.
CIDR Prefix Length & IPv4 Subnet Reference
Prefix length is one of the most common subnetting lookups. A larger CIDR prefix means more network bits and a smaller IPv4 address block. The table below provides a quick reference for commonly used IPv4 prefixes, masks, total addresses and conventional usable-host counts.
| CIDR prefix | Subnet mask | Total addresses | Conventional usable hosts |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,216 | 16,777,214 |
| /16 | 255.255.0.0 | 65,536 | 65,534 |
| /20 | 255.255.240.0 | 4,096 | 4,094 |
| /22 | 255.255.252.0 | 1,024 | 1,022 |
| /23 | 255.255.254.0 | 512 | 510 |
| /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 |
| /31 | 255.255.255.254 | 2 | 2 endpoints on supported point-to-point links |
| /32 | 255.255.255.255 | 1 | 1 address / host route |
How to read CIDR prefix length
A CIDR value such as /24 means the first 24 bits identify the network and the remaining 8 bits are available for addresses inside that IPv4 block. In IPv6, the same slash notation is used across a 128-bit address. Prefix length is therefore the direct bridge between subnet size, host bits and IP range.
How to find the IP range of a subnet
For IPv4, the network address is the first address in the calculated block and the broadcast address is the last address for conventional prefixes below /31. The usable host range normally starts one address above the network and ends one address below the broadcast. For example, 192.168.10.77/26 belongs to the range 192.168.10.64–192.168.10.127, with conventional usable hosts from .65 through .126.
Common IPv6 prefix lengths
IPv4 versus IPv6 subnet calculation
An IPv4 subnet calculator commonly focuses on network address, broadcast address, subnet mask, wildcard mask and usable host range. An IPv6 subnet calculator focuses on prefix normalization, prefix length, host bits and address-space capacity because IPv6 does not use an IPv4-style broadcast address.
When Subnet Math Is the Right Troubleshooting Layer
Use this calculator when the question is about address boundaries: whether an IP belongs to a CIDR block, what the network and broadcast addresses are, how many usable IPv4 addresses are available, or what prefix an IPv6 address belongs to. If the addressing math is correct but communication still fails, move to the next layer rather than changing the subnet repeatedly.
Subnet Calculation Methodology and Limits
The IPv4 calculator converts the entered address to a 32-bit integer, builds a mask from the selected CIDR prefix, then applies bitwise network and broadcast calculations. The IPv6 calculator expands the address into eight hexadecimal groups, converts the 128-bit value to binary, zeros every bit after the selected prefix boundary, and compacts the resulting network prefix for display.
Worked example: IPv4 /26
Input: 192.168.10.77/26
Network: 192.168.10.64
Broadcast: 192.168.10.127
Mask: 255.255.255.192
Wildcard: 0.0.0.63
Conventional hosts: 192.168.10.65–192.168.10.126
Usable hosts: 62
Worked example: IPv4 /31
A /31 contains exactly two addresses. On supported point-to-point links, RFC 3021 allows both addresses to be used as endpoints, so the traditional network/broadcast reservation model does not apply in the same way.
Input: 192.0.2.10/31
Block: 192.0.2.10–192.0.2.11
Address count: 2
Conventional broadcast label: Not applicable
Worked example: IPv6 /64
Input: 2001:db8:1234:1::25/64
Network prefix: 2001:db8:1234:1::/64
Host bits: 64
Address-space capacity: 2^64 addresses
Address capacity is not the same as deployable-device count
The tool reports mathematical address capacity. Real networks can reserve addresses for gateways, platform services, DHCP infrastructure, anycast, network appliances, cloud-provider functions, or organizational policy. Cloud platforms in particular can reserve addresses beyond the conventional IPv4 network and broadcast values.
The calculator does not detect overlapping networks
Each calculation evaluates one address/prefix pair at a time. It does not compare two CIDR blocks for overlap, inspect live routes, query DHCP scopes, discover VLANs, or validate firewall objects. Compare proposed ranges separately before deploying them.
Routing reachability is separate from subnet membership
Two addresses can fall inside the same calculated prefix and still fail to communicate because of VLAN separation, firewall policy, host configuration, duplicate addresses, routing, wireless isolation, VPN policy, or other network controls. Conversely, different subnets can communicate when routing permits it.
IPv6 input limitations
The current parser supports standard hexadecimal IPv6 notation, compressed :: notation, and an optional zone identifier such as %eth0. The zone identifier is ignored for prefix math. IPv4-embedded dotted-decimal IPv6 forms are not parsed by this implementation, so convert those to hexadecimal notation before use.
Related Utiliverse Tools & Guides
Last reviewed: October 9, 2026 · IPv4 bitwise calculations, /31 and /32 handling, IPv6 prefix normalization, wildcard masks, and parser limitations reviewed against the current implementation.
IP Subnet Calculator Use Cases
Network administrators can use a subnet calculator while planning office networks. A business may want separate address space for employees, voice devices, servers, printers and guest Wi-Fi. Calculating the network boundaries helps ensure that each segment has enough capacity.
VLAN planning is another common application. When a VLAN is assigned an IP subnet, the selected prefix needs to accommodate the expected devices without unnecessarily consuming a larger block. A calculator makes these comparisons quick.
Cloud networking also benefits from subnet calculations. Cloud environments commonly use virtual networks, subnets, route tables and security controls. Planning address ranges before deployment can reduce overlap and leave room for expansion.
VPN configuration often requires non-overlapping ranges between locations or environments. Calculate each proposed network, then compare the resulting ranges manually to check for overlap and identify suitable ranges for tunnels.
Home labs and virtualization environments can become surprisingly complex. Separate management, storage, server, testing and guest networks may all need distinct address ranges. A quick subnet calculation helps keep the design organized.
Students studying networking can use the tool to verify subnetting exercises. Manual binary calculations are valuable for learning, but checking an answer against a calculator is a useful way to catch arithmetic mistakes and reinforce concepts.
Security teams can use network boundaries when reviewing firewall and access-control rules. Knowing the exact addresses included in a subnet can prevent rules from being broader or narrower than intended.
IPv6 planning benefits from the same disciplined approach. Because IPv6 provides abundant address space, designers can create clear hierarchical prefixes for sites, departments and services rather than treating addresses as isolated numbers.
During troubleshooting, the network address and prefix can reveal why two devices do or do not belong to the same local subnet. This does not replace routing analysis or packet captures, but it is a useful first verification step.
A simple deployment workflow is to inventory how many devices a segment needs, choose a prefix with enough room for growth, calculate the exact network and host boundaries, reserve addresses for infrastructure, and then apply the same prefix consistently to the router or Layer 3 switch, VLAN interface, DHCP scope, firewall rules and documentation. Before going live, compare the proposed subnet against neighboring networks to avoid overlap and verify that any static addresses fall inside the intended usable range.