Ad slot — header (728x90)

Subnet Cheat Sheet — Complete CIDR Reference (/0 – /32)

Last reviewed: May 2026

This subnet cheat sheet covers every IPv4 CIDR prefix from /0 to /32, providing the subnet mask, wildcard mask, total IP count, usable host count, and typical use case for each prefix length. Bookmark this page as your go-to reference whether you're a network engineer designing a corporate LAN, a CCNA student preparing for the exam, or a cloud architect planning AWS VPC, Azure VNet, or GCP subnet ranges.

Calculate any subnet instantly →

Complete /0 to /32 Reference Table

Rows highlighted in blue are the most commonly referenced prefixes in real-world networking and cloud deployments.

Prefix Subnet Mask Wildcard Mask Total IPs Usable Hosts Typical Use
/00.0.0.0255.255.255.2554,294,967,2964,294,967,294Default route (all IPv4 addresses)
/1128.0.0.0127.255.255.2552,147,483,6482,147,483,646Half of IPv4 space
/2192.0.0.063.255.255.2551,073,741,8241,073,741,822Quarter of IPv4 space
/3224.0.0.031.255.255.255536,870,912536,870,910Large regional allocation
/4240.0.0.015.255.255.255268,435,456268,435,454Large regional allocation
/5248.0.0.07.255.255.255134,217,728134,217,726Large regional allocation
/6252.0.0.03.255.255.25567,108,86467,108,862Large regional allocation
/7254.0.0.01.255.255.25533,554,43233,554,430Large regional allocation
/8255.0.0.00.255.255.25516,777,21616,777,214Class A / ISP allocation (e.g. 10.0.0.0/8 RFC 1918)
/9255.128.0.00.127.255.2558,388,6088,388,606Large enterprise or ISP block
/10255.192.0.00.63.255.2554,194,3044,194,302Large enterprise block
/11255.224.0.00.31.255.2552,097,1522,097,150Large enterprise block
/12255.240.0.00.15.255.2551,048,5761,048,574172.16.0.0/12 RFC 1918 private range
/13255.248.0.00.7.255.255524,288524,286Large enterprise aggregation
/14255.252.0.00.3.255.255262,144262,142Large enterprise aggregation
/15255.254.0.00.1.255.255131,072131,070Large enterprise aggregation
/16255.255.0.00.0.255.25565,53665,534AWS VPC root CIDR / campus network
/17255.255.128.00.0.127.25532,76832,766Half of a /16
/18255.255.192.00.0.63.25516,38416,382Quarter of a /16
/19255.255.224.00.0.31.2558,1928,190Large building or campus segment
/20255.255.240.00.0.15.2554,0964,094Large AZ subnet / EKS node group
/21255.255.248.00.0.7.2552,0482,046Large VLAN segment
/22255.255.252.00.0.3.2551,0241,022Large office VLAN / EKS node group
/23255.255.254.00.0.1.255512510Medium office VLAN
/24255.255.255.00.0.0.255256254Standard subnet (most common)
/25255.255.255.1280.0.0.127128126Half of /24
/26255.255.255.1920.0.0.636462Small department / AWS workload / Azure Firewall min
/27255.255.255.2240.0.0.313230Azure GatewaySubnet minimum
/28255.255.255.2400.0.0.151614AWS minimum subnet (11 usable after reservation)
/29255.255.255.2480.0.0.786Very small segment / management VLAN
/30255.255.255.2520.0.0.342Point-to-point links
/31255.255.255.2540.0.0.122*RFC 3021 point-to-point (no broadcast)
/32255.255.255.2550.0.0.011*Host route / loopback interface
Notes on special prefixes:

Cloud Provider Adjustments

The "Usable Hosts" column above reflects standard RFC 950 calculations (total IPs minus 2 for network and broadcast). Cloud providers reserve additional IPs:

ProviderReserved IPs Per SubnetExample: /24 usableExample: /28 usable
Standard (RFC 950)225414
AWS5 (.0, .1, .2, .3, .255)25111
Azure5 (.0, .1, .2, .3, .255)25111
GCP4 (.0, gateway, second-to-last, .255)25212

Use the AWS VPC Calculator for accurate cloud-adjusted subnet planning.

Quick Reference by Use Case

Use CaseRecommended PrefixUsable HostsNotes
Home / SOHO network/24254Default for most home routers
AWS VPC root CIDR/1665,534Provides room to subdivide into many subnets
Standard AWS workload subnet/24251 (AWS)Balance of size and address efficiency
Small AWS workload subnet/2659 (AWS)Dev environments, small services
Azure GatewaySubnet/27 minimum27 (Azure)/27 required; /26 or larger recommended
Azure Firewall / Bastion/26 minimum59 (Azure)AzureFirewallSubnet, AzureBastionSubnet
Point-to-point WAN link/302One IP each end of the link
Point-to-point (efficient)/312RFC 3021; no wasted addresses
Management VLAN/296Switches, routers, OOB access
Loopback / host route/321BGP router ID, security group rules
Default route (all traffic)/00.0.0.0/0 matches all destinations
Open SubnetSolver — free subnet calculator →

Related Guides

Ad slot — footer (728x90)