Online Tool Store Online Tool Store

Subnet Mask Cheat Sheet

Subnet Mask Cheat Sheet is the lookup table; the minus two is the part people forget when sizing a subnet. Runs entirely in your browser with no upload and no.

🔒 This tool runs entirely in your browser. Your files are never uploaded to a server.

Networking

Subnet Mask Cheat Sheet

Ready

Frontend preview — no upload or external service.

Subnet Reference

Your results are ready.

How the Subnet Mask Cheat Sheet works

  1. Find the prefix length you are working with, or the host count you need.
  2. Read across for the mask, the wildcard mask and the usable host count.
  3. Remember that usable hosts is two fewer than total addresses on a normal subnet, because of the network and broadcast addresses.

The method

A prefix length says how many leading bits are the network portion; the rest address hosts.

usable hosts = 2^(32 - prefix) - 2

The two subtracted are the all-zeros network address and the all-ones broadcast address, neither of which can be assigned to a host.

FAQ

Why are two addresses unusable?

The all-zeros address identifies the network itself and the all-ones address is the broadcast address. Neither can be assigned, which is why a /24 gives 254 hosts rather than 256.

What is a wildcard mask?

The bitwise inverse of a subnet mask, used in access control lists on some network equipment. A /24 mask of 255.255.255.0 has a wildcard of 0.0.0.255.

Does the minus two rule apply to IPv6?

No. IPv6 has no broadcast address and subnets are conventionally /64 regardless of host count, so the arithmetic that governs IPv4 subnetting largely does not carry over.

How we compare

Feature Online Tool Store A terminal utility A hosted diagnostics service
Full prefix table Calculator only
Wildcard masks
Works offline once loaded Printed
No sign-up

Subnet Mask Cheat Sheet is the lookup table; the minus two is the part people forget when sizing a subnet.

Explore related tools

Embed this tool

Paste this on your own site — it stays free, and every file still stays in your visitor's browser, not yours or ours.