N NetCalc

Home / CIDR cheat sheet

IPv4 CIDR Cheat Sheet

Every prefix from /0 to /32 in one table — netmask, wildcard mask, total addresses and usable hosts. Useful for subnetting drills, CCNA practice and config reviews.

PrefixNetmaskWildcardHost bitsTotalUsable
Remember: usable = 2host bits − 2 for everything except /31 (RFC 3021, 2 usable) and /32 (single host, 1 usable).

Common prefixes at a glance

PrefixWhere you meet it
/8Class A default, huge private block (10.0.0.0/8)
/12172.16.0.0/12 — the middle RFC 1918 range
/16Class B default, one campus or large VLAN group
/24Class C default, the most common LAN subnet (254 hosts)
/25 – /27Splitting a /24 into smaller VLANs
/30Classic point-to-point link (2 usable)
/31RFC 3021 point-to-point, both ends usable
/32Single host route, loopback, firewall rule

Related