Skip to main content

IPv4 Subnetting Reference Pack

A fuller printable subnetting pack covering CIDR, subnet masks, wildcard masks, host counts, and network boundaries with binary-first explanations and quick lookup logic.

Filename: ipv4-subnetting-reference-pack.pdfFile size: 4 KB

Formula highlights

Usable hosts
2^(host bits) - 2

What this pack covers

Use this pack when you need subnetting logic in front of you: CIDR boundaries, dotted-decimal masks, host counts, wildcard masks, and worked network-range examples.

Core reminders

  • /n = n network bits
  • usable hosts = 2^(host bits) - 2 for standard subnets
  • block size = 256 - mask octet value
  • wildcard mask = inverse of subnet mask

How to read a prefix

CIDR and subnet masks are the same boundary expressed differently. The key step is identifying how many host bits remain and which octet contains the changing block size.

Worked example: /27

A /27 gives 32 total addresses and 30 usable hosts. In the final octet the block size is 32, so ranges start at .0, .32, .64, and so on.

Worked example: design from host requirements

Around 50 usable hosts needs a /26 rather than a /27. Design is often easier when you start from host requirement and only then choose the smallest prefix with headroom.

Wildcard masks and policy work

Wildcard masks are useful for ACL-style matching and should be mentally separated from routed subnet boundaries even though they are directly related mathematically.

Common mistakes

  • Counting network and broadcast as usable in standard subnets.
  • Using the block size in the wrong octet.
  • Confusing wildcard logic with routed subnet logic.
  • Picking prefixes that technically fit today but leave no growth room.
Related calculators

Use the formulas in live tools.

More downloads

Continue the topic cluster.