Subnetting is the fundamental mathematical mechanism utilized in computer networking to partition an Internet Protocol version 4 (IPv4) address block into smaller, distinct sub-networks. By segmenting a 32-bit address space into Network Identifier and Host Identifier portions via Classless Inter-Domain Routing (CIDR), network engineers optimize routing table efficiency, minimize broadcast domain congestion, and enforce tight security perimeters across enterprise subnets.

The number of usable host addresses in an IPv4 subnet prefix is determined by: \(\text{Usable Hosts} = 2^{(32 - \text{CIDR})} - 2\). The subtraction of 2 addresses accounts for the Network Identifier (all host bits 0) and the Subnet Broadcast Address (all host bits 1).

4. In-Depth Worked Real-World Case Study

A standard /24 subnet has 32 - 24 = 8 host bits, yielding 2^8 = 256 total IP addresses and 254 usable client IPs with a subnet mask of 255.255.255.0. If partitioned into two /25 subnets, each /25 subnet possesses 7 host bits, providing 2^7 - 2 = 126 usable client IPs and a mask of 255.255.255.128.

Please note: This calculator gives a general estimate for 2026/27 using the figures shown on this page. It is not tax, legal, mortgage or financial advice. Rules, thresholds and your own circumstances can change the result, so check the figures that matter with a qualified adviser before you act on them.