subnetting January 15, 2026

IPv4 Subnet Mask Cheat Sheet — Complete Reference

Complete IPv4 subnet mask cheat sheet with CIDR notation, usable hosts, wildcard masks, and binary representations for all prefix lengths /1 to /32.

IPv4 Subnet Mask Cheat Sheet

A complete reference for all IPv4 subnet masks from /1 to /32, including usable host counts, wildcard masks, and binary representations.

Quick reference table

CIDRSubnet maskWildcard maskUsable hostsNetwork bitsHost bits
/8255.0.0.00.255.255.25516,777,214824
/9255.128.0.00.127.255.2558,388,606923
/10255.192.0.00.63.255.2554,194,3021022
/11255.224.0.00.31.255.2552,097,1501121
/12255.240.0.00.15.255.2551,048,5741220
/13255.248.0.00.7.255.255524,2861319
/14255.252.0.00.3.255.255262,1421418
/15255.254.0.00.1.255.255131,0701517
/16255.255.0.00.0.255.25565,5341616
/17255.255.128.00.0.127.25532,7661715
/18255.255.192.00.0.63.25516,3821814
/19255.255.224.00.0.31.2558,1901913
/20255.255.240.00.0.15.2554,0942012
/21255.255.248.00.0.7.2552,0462111
/22255.255.252.00.0.3.2551,0222210
/23255.255.254.00.0.1.255510239
/24255.255.255.00.0.0.255254248
/25255.255.255.1280.0.0.127126257
/26255.255.255.1920.0.0.6362266
/27255.255.255.2240.0.0.3130275
/28255.255.255.2400.0.0.1514284
/29255.255.255.2480.0.0.76293
/30255.255.255.2520.0.0.32302
/31255.255.255.2540.0.0.12*311
/32255.255.255.2550.0.0.01**320

*RFC 3021 point-to-point links. **Host route.

Private IP ranges (RFC 1918)

RangeCIDRAddresses
10.0.0.0 – 10.255.255.25510.0.0.0/816,777,216
172.16.0.0 – 172.31.255.255172.16.0.0/121,048,576
192.168.0.0 – 192.168.255.255192.168.0.0/1665,536

Special ranges

RangePurpose
127.0.0.0/8Loopback
169.254.0.0/16Link-local (APIPA)
224.0.0.0/4Multicast (Class D)
240.0.0.0/4Reserved (Class E)
0.0.0.0/0Default route

How to calculate subnet masks

To convert a CIDR prefix to a subnet mask: set the first N bits to 1, the remaining 32-N bits to 0, then convert each 8-bit group to decimal.

Example for /26:

  • Binary: 11111111.11111111.11111111.11000000
  • Decimal: 255.255.255.192

Use our subnet calculator to compute any subnet instantly.

← All articles