Subnet Mask & CIDR Cheat Sheet (/0–/32)

Complete IPv4 mask table from /0 to /32: dotted decimal, binary, wildcard mask, total addresses and usable hosts.

PrefixMaskWildcardBinaryTotalUsable hostsTypical use
/00.0.0.0255.255.255.25500000000.00000000.00000000.000000004,294,967,2964,294,967,294Default route / entire IPv4 space
/1128.0.0.0127.255.255.25510000000.00000000.00000000.000000002,147,483,6482,147,483,646Very large block
/2192.0.0.063.255.255.25511000000.00000000.00000000.000000001,073,741,8241,073,741,822Very large block
/3224.0.0.031.255.255.25511100000.00000000.00000000.00000000536,870,912536,870,910Very large block
/4240.0.0.015.255.255.25511110000.00000000.00000000.00000000268,435,456268,435,454Very large block
/5248.0.0.07.255.255.25511111000.00000000.00000000.00000000134,217,728134,217,726Very large block
/6252.0.0.03.255.255.25511111100.00000000.00000000.0000000067,108,86467,108,862Very large block
/7254.0.0.01.255.255.25511111110.00000000.00000000.0000000033,554,43233,554,430Very large block
/8255.0.0.00.255.255.25511111111.00000000.00000000.0000000016,777,21616,777,214Large ISP or very large enterprise
/9255.128.0.00.127.255.25511111111.10000000.00000000.000000008,388,6088,388,606Customer block
/10255.192.0.00.63.255.25511111111.11000000.00000000.000000004,194,3044,194,302Customer block
/11255.224.0.00.31.255.25511111111.11100000.00000000.000000002,097,1522,097,150Customer block
/12255.240.0.00.15.255.25511111111.11110000.00000000.000000001,048,5761,048,574Customer block
/13255.248.0.00.7.255.25511111111.11111000.00000000.00000000524,288524,286Customer block
/14255.252.0.00.3.255.25511111111.11111100.00000000.00000000262,144262,142Customer block
/15255.254.0.00.1.255.25511111111.11111110.00000000.00000000131,072131,070Customer block
/16255.255.0.00.0.255.25511111111.11111111.00000000.0000000065,53665,534Large campus
/17255.255.128.00.0.127.25511111111.11111111.10000000.0000000032,76832,766Customer block
/18255.255.192.00.0.63.25511111111.11111111.11000000.0000000016,38416,382Customer block
/19255.255.224.00.0.31.25511111111.11111111.11100000.000000008,1928,190Customer block
/20255.255.240.00.0.15.25511111111.11111111.11110000.000000004,0964,094Mid-size enterprise (~4,000 hosts)
/21255.255.248.00.0.7.25511111111.11111111.11111000.000000002,0482,046Customer block
/22255.255.252.00.0.3.25511111111.11111111.11111100.000000001,0241,022~1,000 hosts
/23255.255.254.00.0.1.25511111111.11111111.11111110.00000000512510~500 hosts
/24255.255.255.00.0.0.25511111111.11111111.11111111.00000000256254Standard department (254 hosts)
/25255.255.255.1280.0.0.12711111111.11111111.11111111.10000000128126Half block (126 hosts)
/26255.255.255.1920.0.0.6311111111.11111111.11111111.110000006462Small department (62 hosts)
/27255.255.255.2240.0.0.3111111111.11111111.11111111.111000003230Small team (30 hosts)
/28255.255.255.2400.0.0.1511111111.11111111.11111111.111100001614Device segment / small rack (14 hosts)
/29255.255.255.2480.0.0.711111111.11111111.11111111.1111100086In-rack interconnect (6 hosts)
/30255.255.255.2520.0.0.311111111.11111111.11111111.1111110042Router point-to-point (2 hosts)
/31255.255.255.2540.0.0.111111111.11111111.11111111.1111111022Point-to-point link (RFC 3021, 2 usable)
/32255.255.255.2550.0.0.011111111.11111111.11111111.1111111111Single host / host route
Source: Generated from the calculation logic; /31 and /32 follow RFC 3021 and host-route conventions. Last updated: 2026-11-20