NetKit Subnet

Subnetting reference

IPv4 subnet cheat sheet

Find the mask and address count for a CIDR prefix, then use the worked examples to calculate a network range or split a subnet.

For a standard IPv4 subnet, a /24 contains 256 addresses and normally has 254 usable host addresses. A /26 contains 64 addresses and normally has 62 usable hosts. Cloud networks have their own reservation rules, so these conventional host counts are not cloud capacity estimates.

CIDR prefixes, masks and host counts

The prefix is the number of network bits in a 32-bit IPv4 address. The remaining bits determine the block size: 2^(32 − prefix) addresses. For ordinary broadcast subnets through /30, subtract two for the network and broadcast addresses.

Common IPv4 subnet sizes, /16 through /32
CIDRSubnet maskTotal addressesUsable hosts
/16255.255.0.065,53665,534
/17255.255.128.032,76832,766
/18255.255.192.016,38416,382
/19255.255.224.08,1928,190
/20255.255.240.04,0964,094
/21255.255.248.02,0482,046
/22255.255.252.01,0241,022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422 (point-to-point)
/32255.255.255.25511 (single address)

A smaller prefix means a larger block. A /25 is half the size of a /24, and a /26 is one quarter of a /24. The table assumes conventional IPv4 addressing; it does not apply to IPv6.

Worked example: 192.168.10.34/26

  1. Find the block size. There are six host bits: 32 − 26 = 6. That gives 64 addresses.
  2. Find the boundaries. Within 192.168.10.0/24, /26 blocks start at .0, .64, .128 and .192. Address .34 falls in the first block.
  3. Read the range. The network is 192.168.10.0/26 and the broadcast address is 192.168.10.63.
  4. Find the host range. Conventional usable addresses run from 192.168.10.1 through 192.168.10.62: 62 hosts.

The mask is 255.255.255.192. Its inverse, the wildcard mask, is 0.0.0.63. An input such as 192.168.10.34/26 describes an address inside the block; 192.168.10.0/26 names the network itself.

Split a /24 into four equal subnets

Splitting into four uses two additional network bits, because 2² = 4. Start with 192.168.10.0/24 and increase the prefix to /26:

The blocks cover the original /24 without overlap. Together they have 248 conventional host addresses, compared with 254 before splitting, because each new subnet reserves its own network and broadcast addresses.

When subtracting two is wrong

On a /31 point-to-point link, both addresses can identify endpoints under RFC 3021. This is a special use, not a two-host replacement for an ordinary LAN. A /32 identifies a single IPv4 address and is often used for a host route.

Cloud providers reserve addresses separately. Use provider-specific rules when planning AWS, Azure or Google Cloud networks rather than subtracting two from this table. See NetKit Subnet’s cloud-aware calculations.

Check a subnet on your iPhone

NetKit Subnet accepts CIDR notation, subnet masks and wildcard masks, and shows the network, broadcast and usable range as you type. It also supports splitting networks and IPv6. Explore the NetKit Subnet app or read the input-format help.

Reference: RFC 4632: CIDR and prefix notation. Published October 3, 2026 by Fidget Digit Studios L.L.C.