Kitloft

All tools / References

Subnet mask cheat sheet

Netmask, address count and usable hosts for every IPv4 prefix length from /8 to /32.

PrefixNetmaskAddressesUsable hostsAWS usable
/8255.0.0.016,777,21616,777,214n/a
/9255.128.0.08,388,6088,388,606n/a
/10255.192.0.04,194,3044,194,302n/a
/11255.224.0.02,097,1522,097,150n/a
/12255.240.0.01,048,5761,048,574n/a
/13255.248.0.0524,288524,286n/a
/14255.252.0.0262,144262,142n/a
/15255.254.0.0131,072131,070n/a
/16255.255.0.065,53665,53465,531
/17255.255.128.032,76832,76632,763
/18255.255.192.016,38416,38216,379
/19255.255.224.08,1928,1908,187
/20255.255.240.04,0964,0944,091
/21255.255.248.02,0482,0462,043
/22255.255.252.01,0241,0221,019
/23255.255.254.0512510507
/24255.255.255.0256254251
/25255.255.255.128128126123
/26255.255.255.192646259
/27255.255.255.224323027
/28255.255.255.240161411
/29255.255.255.24886n/a
/30255.255.255.25242n/a
/31255.255.255.25422n/a
/32255.255.255.25511n/a

Usable hosts leave out the network and broadcast addresses, except for /31 and /32. AWS reserves 5 addresses in every subnet. To check a specific block or split a VPC into subnets, use the CIDR subnet calculator.