The complete IPv4 subnet reference table — every CIDR prefix from /0 to /32 with subnet mask, wildcard mask, total addresses, usable hosts, and block size. Filter by CIDR, mask, or host count to find exactly what you need.
| CIDR | Subnet Mask | Wildcard Mask | Total Addresses | Usable Hosts | Block Size | Class |
|---|

A subnet cheat sheet is a quick-reference table that maps every possible IPv4 CIDR prefix to its corresponding subnet mask, wildcard mask, and host capacity. Network engineers, system administrators, and students use it daily for IP address planning, firewall rules, and exam preparation. This interactive version lets you search, filter, and highlight the subnets you need most.
For detailed subnet calculations on specific IP addresses, use our Subnet Calculator. To convert between CIDR notation and subnet masks, see the CIDR Converter. If you need to understand how subnet masks work at the bit level, the IP to Binary Converter shows the binary representation.
While all 33 CIDR prefixes are valid, a handful appear in nearly every network configuration. These are the ones you should memorize:
| CIDR | Subnet Mask | Usable Hosts | Common Use |
|---|---|---|---|
| /8 | 255.0.0.0 | 16,777,214 | Class A networks (10.0.0.0/8 for private) |
| /16 | 255.255.0.0 | 65,534 | Class B networks (172.16.0.0/16 for private) |
| /24 | 255.255.255.0 | 254 | Most common LAN, home networks |
| /25 | 255.255.255.128 | 126 | Small office split |
| /26 | 255.255.255.64 | 62 | Department segments |
| /27 | 255.255.255.224 | 30 | Small team, VLAN segment |
| /28 | 255.255.255.240 | 14 | Small subnet, DMZ |
| /30 | 255.255.255.252 | 2 | Point-to-point links between routers |
| /32 | 255.255.255.255 | 1 | Host route, loopback |
Pro Tip: For the CCNA exam and daily networking work, memorize the /24 through /30 range cold. The block sizes follow powers of 2: /24 = 256 addresses, /25 = 128, /26 = 64, /27 = 32, /28 = 16, /29 = 8, /30 = 4. Each step up in CIDR halves the addresses. Practice with our Subnet Calculator until it becomes automatic.
CIDR (Classless Inter-Domain Routing) notation expresses an IP address and its subnet mask as a single compact string: 192.168.1.0/24. The number after the slash indicates how many bits of the 32-bit address are the network portion.
CIDR replaced the old classful system (Class A/B/C) in 1993, allowing more flexible allocation. For deeper understanding, read our guide on what is a subnet mask and convert specific addresses with the CIDR Converter.
The subnet mask and wildcard mask are bitwise inverses of each other, but they are used in different contexts:
| Property | Subnet Mask | Wildcard Mask |
|---|---|---|
| Purpose | Defines network/host boundary | Defines match/ignore bits in ACLs |
| 1 bits mean | Network portion | Ignore this bit (don't care) |
| 0 bits mean | Host portion | Must match this bit |
| Used in | Interface config, routing tables | Cisco ACLs, OSPF area config |
| Example (/24) | 255.255.255.0 | 0.0.0.255 |
| Example (/27) | 255.255.255.224 | 0.0.0.31 |
| Relationship | Wildcard = 255.255.255.255 - Subnet Mask | |
Wildcard masks are primarily a Cisco convention. Juniper, Fortinet, and most modern platforms use CIDR or standard subnet masks. For ACL configuration on Cisco equipment, you need the wildcard mask from this cheat sheet.
RFC 1918 defines three private IP ranges that are not routable on the public internet. These are the networks you'll configure on your home router (typically at your router's IP) and internal infrastructure:
| Range | CIDR | Subnet Mask | Total Addresses | Common Usage |
|---|---|---|---|---|
| 10.0.0.0 – 10.255.255.255 | 10.0.0.0/8 | 255.0.0.0 | 16,777,216 | Enterprise, cloud VPCs, VPNs |
| 172.16.0.0 – 172.31.255.255 | 172.16.0.0/12 | 255.240.0.0 | 1,048,576 | Medium business, Docker default |
| 192.168.0.0 – 192.168.255.255 | 192.168.0.0/16 | 255.255.0.0 | 65,536 | Home networks, small office |
Most home routers use a /24 subnet within 192.168.0.0/16 or 10.0.0.0/8. Check your current IP assignment with What Is My IP to see both your public and private addresses.
For fast mental math when subnetting, use these relationships:
Practice these calculations with the Subnet Calculator to verify your answers. For converting IP addresses to their binary form, use the IP to Binary Converter.
VLSM allows you to use different subnet sizes within the same major network, optimizing address utilization. Instead of giving every segment a /24, you match the subnet size to actual need:
Always start with the largest subnet and work down. This prevents overlapping and wasted address space. For large-scale planning, the CIDR Converter helps aggregate and summarize routes. Understanding subnet masks is essential for VLSM design. Test your network connectivity after changes with the Ping Test and verify throughput with the Speed Test.
255.255.255.0 (/24) is by far the most common subnet mask. It provides 254 usable host addresses, which is sufficient for most home networks and small office LANs. It's also the default subnet mask for Class C addresses and the one most consumer routers use out of the box.
A /30 subnet has 4 total addresses (2 usable hosts) and is the traditional choice for point-to-point router links. A /31 subnet (RFC 3021) has only 2 addresses with no network or broadcast address, and both are usable. /31 saves one IP per link and is increasingly used in modern networks, especially in data centers.
From a /24, you can create: 2 x /25 subnets (126 hosts each), 4 x /26 (62 hosts each), 8 x /27 (30 hosts each), 16 x /28 (14 hosts each), 32 x /29 (6 hosts each), or 64 x /30 (2 hosts each). The number doubles as the CIDR prefix increases by 1.
The first address in every subnet is the network address (identifies the subnet itself), and the last address is the broadcast address (sends to all hosts in the subnet). Neither can be assigned to a device. For example, in 192.168.1.0/24, .0 is the network address and .255 is the broadcast. The exception is /31 (RFC 3021) and /32 (host route).
A wildcard mask is the bitwise inverse of a subnet mask. It's used in Cisco IOS access control lists (ACLs) and OSPF area definitions to specify which bits of an address to match and which to ignore. For /24, the wildcard is 0.0.0.255. You can calculate wildcard masks by subtracting each octet from 255.
Always use classless (CIDR) subnetting. Classful addressing (Class A/B/C) was deprecated in 1993. CIDR allows any prefix length from /0 to /32, giving you precise control over network size. All modern routers and operating systems support CIDR natively.
Count the number of devices that need IP addresses, add 20-30% for growth, then pick the smallest CIDR prefix that covers that number. For example, if you have 45 devices plus 30% growth = 59 needed. The smallest subnet is /26 (62 usable hosts). Use our Subnet Calculator to verify the exact capacity and address range.
About Tommy N.
Tommy is the founder of RouterHax and a network engineer with 10+ years of experience in home and enterprise networking. He specializes in router configuration, WiFi optimization, and network security. When not writing guides, he's testing the latest mesh WiFi systems and helping readers troubleshoot their home networks.
![]() |
![]() |
![]() |
![]() |
Promotion for FREE Gifts. Moreover, Free Items here. Disable Ad Blocker to get them all.
Once done, hit any button as below
![]() |
![]() |
![]() |
![]() |