← Back to Main Calculator

CIDR Chart — Subnet Mask Table (/0 to /32)

Every IPv4 prefix with mask, wildcard, block size, total addresses, and usable hosts.

Last updated October 2026

Short answer: This CIDR chart maps every IPv4 prefix from /0 to /32 to its dotted-decimal subnet mask, wildcard mask, block size, total addresses and usable hosts. The wildcard mask is the bitwise inverse of the subnet mask in every row, so /24 is mask 255.255.255.0 and wildcard 0.0.0.255.

Common CIDR prefixes with mask, wildcard and usable hosts
PrefixMaskWildcardUsable hosts
/24255.255.255.00.0.0.255254
/28255.255.255.2400.0.0.1514
/30255.255.255.2520.0.0.32
/31255.255.255.2540.0.0.12 (RFC 3021)
/32255.255.255.2550.0.0.01

Full CIDR Chart /0–/32

CIDRSubnet MaskBlock SizeUsable Hosts
/0 0.0.0.0 4,294,967,296 4,294,967,294
/1 128.0.0.0 2,147,483,648 2,147,483,646
/2 192.0.0.0 1,073,741,824 1,073,741,822
/3 224.0.0.0 536,870,912 536,870,910
/4 240.0.0.0 268,435,456 268,435,454
/5 248.0.0.0 134,217,728 134,217,726
/6 252.0.0.0 67,108,864 67,108,862
/7 254.0.0.0 33,554,432 33,554,430
/8 255.0.0.0 16,777,216 16,777,214
/9 255.128.0.0 8,388,608 8,388,606
/10 255.192.0.0 4,194,304 4,194,302
/11 255.224.0.0 2,097,152 2,097,150
/12 255.240.0.0 1,048,576 1,048,574
/13 255.248.0.0 524,288 524,286
/14 255.252.0.0 262,144 262,142
/15 255.254.0.0 131,072 131,070
/16 255.255.0.0 65,536 65,534
/17 255.255.128.0 32,768 32,766
/18 255.255.192.0 16,384 16,382
/19 255.255.224.0 8,192 8,190
/20 255.255.240.0 4,096 4,094
/21 255.255.248.0 2,048 2,046
/22 255.255.252.0 1,024 1,022
/23 255.255.254.0 512 510
/24 255.255.255.0 256 254
/25 255.255.255.128 128 126
/26 255.255.255.192 64 62
/27 255.255.255.224 32 30
/28 255.255.255.240 16 14
/29 255.255.255.248 8 6
/30 255.255.255.252 4 2
/31 255.255.255.254 2 2
/32 255.255.255.255 1 1

Rows shown with a soft background are the prefixes most commonly used in LAN, VLAN and point-to-point design. Every wildcard value is the bitwise complement of the mask in the same row.

Usable-Host Convention: /31 and /32

This chart counts a /31 as 2 usable hosts under RFC 3021, where both addresses on a point-to-point link are assignable, and a /32 as 1 usable host — the single address itself. Some vendor tables and older textbooks subtract two addresses for every prefix and therefore show 0 usable hosts for both /31 and /32. Both conventions appear in the field; the RFC 3021 form is the one used by modern router configuration and by the calculators on this site.

How to Read This CIDR Chart

Each row shows a CIDR prefix length from /0 (the entire IPv4 address space) to /32 (a single host address). The subnet mask column gives the dotted-decimal network mask, the wildcard mask is its bitwise inverse as used in ACLs, OSPF network statements and route-maps. The block size is the stride between consecutive network addresses of that prefix — 2 raised to the number of host bits. Total addresses is the size of the block, and usable hosts subtracts the network and broadcast addresses (except /31 and /32, see the convention above).

Common prefixes in practice: /24 is the standard for most local networks (254 hosts), /16 for large organisations (65,534 hosts), /29–/28 for small VLANs and sub-allocations, and /30 or /31 for point-to-point links between routers.

Classic Last-Octet Block Sizes (/24–/32)

When you subnet within a /24, the block sizes that matter are the familiar last-octet increments. Memorising these nine numbers covers most day-to-day subnetting conversations:

CIDRSubnet MaskLast-Octet Block SizeUsable HostsValid Last-Octet Starts
/24255.255.255.02562540
/25255.255.255.1281281260, 128, 256, …
/26255.255.255.19264620, 64, 128, …
/27255.255.255.22432300, 32, 64, …
/28255.255.255.24016140, 16, 32, …
/29255.255.255.248860, 8, 16, …
/30255.255.255.252420, 4, 8, …
/31255.255.255.254220, 2, 4, …
/32255.255.255.25511the address itself

A /31 row shows "2 usable, block size 2" because under RFC 3021 both addresses on the point-to-point link are assignable — there is no network or broadcast to subtract. This is the one place where the usable-host pattern (block − 2) does not apply.

Choosing the Right Prefix

The /24 subnet is the most widely used in office and home networks because it provides 254 usable host addresses — enough for most LANs while keeping broadcast domains manageable. For cloud VPCs, AWS and Azure default to /16 for the VPC and /24 or smaller for subnets, with AWS reserving 5 addresses per subnet and Azure reserving 5 as well — see our IP range calculator and subnet calculator for the exact reserved layouts.

For data-centre designs with many VLANs, you might split a /24 into four /26 subnets (62 hosts each) or two /25 subnets (126 hosts each) depending on rack density. If you are sizing networks from a host count, the host-requirement mode of the calculator picks the smallest prefix that fits; worked numbers like 62 hosts → /26 and 2 hosts → /30 are in the subnetting quiz library. For a printable version of the key rows plus private IP ranges, see the CIDR cheat sheet.


Frequently Asked Questions

What does the Block Size column in the CIDR chart mean?

Block size is the increment between consecutive network addresses of that prefix — the stride. It is calculated as 2^(32 − n). For example, /26 has a block size of 64, so subnets start at .0, .64, .128 and .192 in the last octet. For /25 through /32 the block size equals the classic last-octet block size; for shorter prefixes the same stride applies to whichever octet the mask boundary falls in.

Why do Block Size and Total Addresses show the same number?

In CIDR, every subnet of a given prefix is aligned to its own stride, and the stride is exactly the number of addresses in the block: 2 raised to the number of host bits. A /26 block contains 64 addresses and consecutive /26 blocks start every 64 addresses, so the two columns coincide by definition. This is why knowing the block size tells you both the subnet size and the valid starting points.

How many usable hosts are in a /31 and a /32?

A /31 has 2 usable addresses under RFC 3021: on point-to-point links no network or broadcast address is reserved, so both addresses are assignable to the two interfaces. A /32 is a single host route with 1 usable address — the address itself. Some vendor tables instead show 0 usable hosts for /31 and /32; this chart follows the RFC 3021 convention for /31 and counts the /32 address itself as usable.

Which CIDR prefix should I use for point-to-point links?

Use /31 where the platform supports RFC 3021 (modern Cisco IOS, Junos and most routers) — it doubles the density of point-to-point links compared with /30. Use /30 where compatibility with older equipment matters. Both fit entirely inside a single /29 or larger block allocated from your addressing plan.

What is a wildcard mask and how do I read it here?

The wildcard mask is the bitwise inverse of the subnet mask: 0 bits must match exactly, 1 bits are ignored. The /24 row shows mask 255.255.255.0 and wildcard 0.0.0.255. Wildcards appear in ACLs, OSPF network statements and route-maps; every row of this chart lists the wildcard equivalent beside the mask.

References: RFC 4632, RFC 3021, RFC 1918.