What the bit math does
An IPv4 address is 32 bits, and the prefix length counts network bits from the left. A /24 fixes the first 24 bits and leaves 8 for hosts, so the block holds 2 to the 8th, or 256 addresses. The mask 255.255.255.0 is the same 24 bits written differently. The network address clears all host bits and the broadcast sets them all, and neither can go to a device, so usable hosts are 2 to the power of 32 minus prefix, minus 2. Thus 192.168.1.0/24 holds 256 addresses, 254 usable, from .1 to .254.
Steps
- Enter an address such as 192.168.1.10. It need not be the network address; the tool normalizes it.
- Enter prefix 24, or drag the slider to try anything from 8 to 32.
- Click Calculate for the network address, broadcast, usable range, mask and host count.
- Download keeps the result, Example loads a standard case and Clear resets for another block.
Two exceptions worth knowing
A /31 is often reported as zero usable hosts, and the formula 2 to the 1st minus 2 does give zero, but RFC 3021 allows both addresses on point-to-point links, a common carrier-to-router configuration. A /32 is a single address; the formula yields minus one, so it is treated as one host, typical for a route pointing at one target or a load balancer's virtual IP. Without these exceptions a /31 looks like a calculation error.
Planning with it
When splitting a block, list requirements before sizing. An office with twenty devices fits a /27 with 30 usable; fifty devices need a /26 with 62. Do not hand out /24 everywhere, because wasted space complicates later aggregation. Reserve a block for network gear and printers, and another for growth. Remember that subnets talk through routers, so finer splits shrink broadcast domains but complicate routing tables and maintenance.
Common misjudgements
Reading 10.0.0.0/8 as 254 usable addresses ignores the actual 16,777,214; the prefix length alone sets the order of magnitude. Assigning the network address to a device causes conflicts or silence. Using 192.168 ranges for servers collides with home networks once staff work remotely over VPN, a very common incident since remote work spread, so servers belong in 10.x or 172.16 through 172.31.