DevOps

Subnet Cheat Sheet.

Written by Laura Clayton Verified by Alex Ioannides 7 min read Updated Jan 12, 2026
0%

We’ve put together a quick-reference subnet cheat sheet for IPv4 and IPv6 designed for fast lookups. 

If you already work with CIDR notation and just need to quickly check a subnet mask, usable hosts, wildcard mask, or block size, this page is meant to give you the information cleanly and directly.

There’s no subnetting theory in the main sections. Just clean tables you can scan, copy, and use when you’re in the middle of a task.

If you want a bit of context or a refresher, optional explanations are included after the tables.

UptimeRobot
Downtime happens. Get notified!
Join the world's leading uptime monitoring service with 2.1M+ happy users.

Key takeaways

  • Use the IPv4 tables to quickly find CIDR prefixes, subnet masks, wildcard masks, usable hosts, and block sizes.
  • A /24 subnet is common, but /26 and /30 show up frequently in real-world networks.
  • Usable hosts are usually total IPs minus two, with /31 and /32 as exceptions.
  • IPv6 subnetting focuses on standard prefixes, not host exhaustion or broadcast addresses.
  • Wildcard masks are mainly used in ACLs, firewall rules, and legacy configurations.
  • Cheat sheets work best for fast reference; calculators are better for validation and complex planning.

Tip: If you’re working across mixed environments, it helps to understand when IPv4 and IPv6 behave differently, especially around addressing, subnetting conventions, and compatibility.

For a quick, practical breakdown, see IPv4 vs IPv6: What’s the difference and when does it matter? and Subnet Explained.

IPv4 subnet cheat sheet table

CIDR prefixSubnet maskWildcard maskTotal IP addressesUsable hostsBlock size
/32255.255.255.2550.0.0.0111
/31255.255.255.2540.0.0.1222
/30255.255.255.2520.0.0.3424
/29255.255.255.2480.0.0.7868
/28255.255.255.2400.0.0.15161416
/27255.255.255.2240.0.0.31323032
/26255.255.255.1920.0.0.63646264
/25255.255.255.1280.0.0.127128126128
/24255.255.255.00.0.0.255256254256
/23255.255.254.00.0.1.255512510512
/22255.255.252.00.0.3.2551,0241,0221,024
/21255.255.248.00.0.7.2552,0482,0462,048
/20255.255.240.00.0.15.2554,0964,0944,096
/19255.255.224.00.0.31.2558,1928,1908,192
/18255.255.192.00.0.63.25516,38416,38216,384
/17255.255.128.00.0.127.25532,76832,76632,768
/16255.255.0.00.0.255.25565,53665,53465,536
/15255.254.0.00.1.255.255131,072131,070131,072
/14255.252.0.00.3.255.255262,144262,142262,144
/13255.248.0.00.7.255.255524,288524,286524,288
/12255.240.0.00.15.255.2551,048,5761,048,5741,048,576
/11255.224.0.00.31.255.2552,097,1522,097,1502,097,152
/10255.192.0.00.63.255.2554,194,3044,194,3024,194,304
/9255.128.0.00.127.255.2558,388,6088,388,6068,388,608
/8255.0.0.00.255.255.25516,777,21616,777,21416,777,216

How to read this table

  • Each row represents one subnet size.
  • Total IP addresses includes network and broadcast addresses.
  • Usable hosts is the number of assignable IPs in most real networks.
  • Block size shows how much the subnet increments when calculating ranges.

Notes

  • Most IPv4 subnets subtract two IPs for network and broadcast.
  • /31 and /32 are special cases and do not follow the usual usable-host rule.
  • Commonly used subnets like /24, /26, and /30 are highlighted visually in practice to make scanning easier.

IPv4 subnet mask to CIDR conversion table

This table is for reverse lookups when you’re given a subnet mask and need the CIDR prefix fast.

Subnet maskCIDR prefixWildcard mask
255.255.255.255/320.0.0.0
255.255.255.254/310.0.0.1
255.255.255.252/300.0.0.3
255.255.255.248/290.0.0.7
255.255.255.240/280.0.0.15
255.255.255.224/270.0.0.31
255.255.255.192/260.0.0.63
255.255.255.128/250.0.0.127
255.255.255.0/240.0.0.255
255.255.254.0/230.0.1.255
255.255.252.0/220.0.3.255
255.255.248.0/210.0.7.255
255.255.240.0/200.0.15.255
255.255.224.0/190.0.31.255
255.255.192.0/180.0.63.255
255.255.128.0/170.0.127.255
255.255.0.0/160.0.255.255
255.254.0.0/150.1.255.255
255.252.0.0/140.3.255.255
255.248.0.0/130.7.255.255
255.240.0.0/120.15.255.255
255.224.0.0/110.31.255.255
255.192.0.0/100.63.255.255
255.128.0.0/90.127.255.255
255.0.0.0/80.255.255.255

When to use this table

  • When reviewing legacy configurations that list subnet masks instead of CIDR.
  • When working with ACLs or firewall rules that rely on wildcard masks.
  • When documenting or auditing networks that mix notation styles.

IPv6 subnet cheat sheet table

IPv6 prefixTotal addressesTypical use case
/1281Single interface or loopback
/6418 quintillionStandard LAN or subnet
/562⁷² addressesISP customer allocation
/482⁸⁰ addressesSite or organization allocation
/322⁹⁶ addressesLarge provider allocation

How to use this table

  • IPv6 does not use broadcast addresses.
  • Host exhaustion is not a practical concern in IPv6 subnetting.
  • Most IPv6 networks use /64 for individual subnets, regardless of size.
  • Planning is based on standard prefixes and conventions, not address counts.

Wildcard mask cheat Sheet

Wildcard masks are most commonly used in ACLs, firewall rules, and routing filters. This table shows the relationship between CIDR, subnet masks, and their wildcard equivalents.

CIDR prefixSubnet maskWildcard maskCommon usage
/32255.255.255.2550.0.0.0Single host match
/31255.255.255.2540.0.0.1Point-to-point links
/30255.255.255.2520.0.0.3Small routed networks
/29255.255.255.2480.0.0.7Device groups
/28255.255.255.2400.0.0.15Small subnets
/27255.255.255.2240.0.0.31Department networks
/26255.255.255.1920.0.0.63Medium subnets
/25255.255.255.1280.0.0.127Large subnets
/24255.255.255.00.0.0.255Common LAN networks
/16255.255.0.00.0.255.255Broad network ranges

How to use this table

  • Wildcard masks are the inverse of subnet masks.
  • They define which bits must match and which bits can vary.
  • This is useful when writing or reviewing ACLs and firewall rules.
  • Vendor-specific syntax varies, but the wildcard logic stays the same.

Binary subnet mask reference table

This table shows where the network boundary sits by breaking subnet masks into binary. It’s mainly useful for manual subnetting and exams.

CIDR prefixSubnet mask (decimal)Subnet mask (binary)
/32255.255.255.25511111111.11111111.11111111.11111111
/30255.255.255.25211111111.11111111.11111111.11111100
/29255.255.255.24811111111.11111111.11111111.11111000
/28255.255.255.24011111111.11111111.11111111.11110000
/27255.255.255.22411111111.11111111.11111111.11100000
/26255.255.255.19211111111.11111111.11111111.11000000
/25255.255.255.12811111111.11111111.11111111.10000000
/24255.255.255.011111111.11111111.11111111.00000000
/23255.255.254.011111111.11111111.11111110.00000000
/22255.255.252.011111111.11111111.11111100.00000000
/21255.255.248.011111111.11111111.11111000.00000000
/20255.255.240.011111111.11111111.11110000.00000000
/16255.255.0.011111111.11111111.00000000.00000000

How to use this table

  • The 1 bits represent the network portion.
  • The 0 bits represent the host portion.
  • The transition point shows where subnets split.
  • This is especially useful for manual calculations and certification exams.

The tables above cover everything you need for day-to-day subnetting reference.

If you’re just here to look something up, you can stop there. The sections below are optional and focus on using the cheat sheet correctly and avoiding common mistakes.

How to use a subnet cheat sheet correctly

  1. Start with the number of hosts you actually need.
  2. Pick the smallest subnet that comfortably fits that number, not the closest round number. This avoids wasting address space and makes future changes easier.
  3. Use the block size to find subnet boundaries.
  4. The block size tells you how much the network increments. For example, a /26 subnet increments by 64, so valid networks start at .0, .64, .128, and .192.
  5. Identify the network and broadcast addresses early.
  6. The first IP in a subnet is the network address. The last IP is the broadcast address. Everything in between is usable in most cases.
  7. When in doubt, validate your result.

Cheat sheets are great for speed, but if you’re configuring production systems, double-check with a subnet calculator or test environment.

Understanding usable hosts vs total IP addresses

Most IPv4 subnets reserve two addresses.

One address is used for the network, and one is used for broadcast. That’s why a subnet with 256 total IPs, like a /24, ends up with 254 usable hosts.

This rule applies to most common subnets.

It does not apply to /31 and /32.

  • /31 is typically used for point-to-point links, where both IPs are usable.
  • /32 represents a single host, often used for loopbacks or host routes.

In real networks, this distinction matters.

If you size a subnet based on total IPs instead of usable hosts, you can easily end up short on addresses. That usually shows up later, when devices fail to connect or monitoring targets can’t be added.

IPv4 vs. IPv6 subnetting differences

IPv4 subnetting is constrained by address scarcity.

You spend time calculating usable hosts, avoiding waste, and splitting networks carefully to make everything fit.

IPv6 flips that model. The address space is vast, so subnetting is based on standard prefixes, not host counts. You don’t size an IPv6 subnet based on how many devices you have.

There is no broadcast address in IPv6. That simplifies network behavior and removes the need to reserve addresses the way IPv4 does.

The /64 prefix is standard for most IPv6 subnets.

Even if a network only needs a handful of addresses, /64 is still used. This keeps addressing consistent and compatible with IPv6 features like SLAAC.

IPv6 planning is simpler, but more rigid.

You gain flexibility from the large address space, but you’re expected to follow conventions more closely than in IPv4.

Common subnetting mistakes to avoid

These are issues that show up again and again in real networks, especially when subnetting is done quickly or under pressure.

Miscounting usable hosts

This is the most common problem. Planning around total IP addresses instead of usable hosts often leads to subnets that look correct but run out of space once devices are added.

Using the wrong wildcard mask

Wildcard masks are easy to get backwards, especially when switching between subnet masks and ACL rules. One incorrect bit can dramatically change what traffic is allowed or blocked.

Mixing CIDR and classful assumptions

CIDR is classless, but classful thinking still sneaks in. Assuming boundaries based on old class A, B, or C rules causes confusion when working with prefixes like /21 or /27.

Over-subnetting without VLSM planning

Equal-sized subnets are easy to design, but they often waste address space or make future expansion harder if VLSM isn’t considered.

Skipping validation

Even experienced engineers make quick subnetting mistakes. A fast check with a calculator or test environment can prevent unnecessary troubleshooting later.

When to use a subnet calculator instead

Subnet cheat sheets are best for speed.

They’re ideal when you already know what you’re looking for and just need to confirm a prefix, mask, block size, or usable host count.

Subnet calculators are better for validation and planning.

Use a calculator when:

  • You need to confirm network and broadcast addresses.
  • You’re working with unfamiliar or irregular subnet sizes.
  • You’re planning multiple subnets and want to avoid overlap.
  • You’re documenting or automating configurations.

In practice, both tools are useful. Cheat sheets help you move quickly, and calculators help you double-check your work before changes go live.

If you need to validate your work quickly, Uptime Robot offers a free IPv4 subnet calculator and a free IPv6 subnet calculator that lets you check CIDR ranges, usable hosts, and subnet details in seconds.

FAQ's

  • The /24 subnet is still the most common in IPv4 networks. It provides 254 usable hosts and is easy to recognize, document, and troubleshoot.

  • A /24 subnet has 256 total IP addresses. Two are reserved: one for the network address and one for the broadcast address. That leaves 254 usable hosts.

  • No practical limits. IPv6 subnets are not sized based on host counts, and address exhaustion is not a concern. Subnetting focuses on standard prefixes instead.

  • Wildcard masks are mainly used in ACLs, firewall rules, and routing filters. They specify which bits must match and which bits can vary when matching IP addresses.

  • Yes. CIDR is the standard way IP networks are designed, documented, and routed. It applies to both IPv4 and IPv6 and replaces classful addressing entirely.

Start using UptimeRobot today.

Join more than 2M+ users and companies!

  • Get 50 monitors for free - forever!
  • Monitor your website, server, SSL certificates, domains, and more.
  • Create customizable status pages.
Laura Clayton

Written by

Laura Clayton

Copywriter |

Laura Clayton has over a decade of experience in the tech industry, she brings a wealth of knowledge and insights to her articles, helping businesses maintain optimal online performance. Laura's passion for technology drives her to explore the latest in monitoring tools and techniques, making her a trusted voice in the field.

Expert on: Cron Monitoring, DevOps

🎖️

Our content is peer-reviewed by our expert team to maximize accuracy and prevent miss-information.

Alex Ioannides

Content verified by

Alex Ioannides

Head of DevOps |

Prior to his tenure at itrinity, Alex founded FocusNet Group and served as its CTO. The company specializes in providing managed web hosting services for a wide spectrum of high-traffic websites and applications. One of Alex's notable contributions to the open-source community is his involvement as an early founder of HestiaCP, an open-source Linux Web Server Control Panel. At the core of Alex's work lies his passion for Infrastructure as Code. He firmly believes in the principles of GitOps and lives by the mantra of "automate everything". This approach has consistently proven effective in enhancing the efficiency and reliability of the systems he manages. Beyond his professional endeavors, Alex has a broad range of interests. He enjoys traveling, is a football enthusiast, and maintains an active interest in politics.

Recent Articles

Subnet Cheat Sheet

Subnet Cheat Sheet

We’ve put together a quick-reference subnet cheat sheet for IPv4 and IPv6 designed for fast lookups.  If you already work…