← Back to Blog
cidrsubnetnetworkingip-address

CIDR Cheat Sheet: Every Prefix From /0 to /32

Published 8 min readOutline Technologies
Glowing cyan blocks splitting into halves and quarters like nested network ranges

The short answer

A CIDR prefix like /24 says how many of the 32 bits in an IPv4 address are the network part. Each step down doubles the size: a /24 holds 256 addresses with 254 usable hosts, a /23 holds 512, a /16 holds 65,536. The full table below lists every prefix from /0 to /32 with its subnet mask, wildcard mask and usable host count.

/24

the most common IPv4 block in the registry files, 30.4% of 262,321 entries

256

addresses in a /24, with 254 usable for hosts

5

addresses AWS and Azure reserve in every subnet (Google Cloud reserves 4)

You will look up the same handful of numbers over and over when you work with networks: how many hosts in a /27, what mask goes with /22, is a /29 big enough. This page is the answer sheet. Bookmark it, or use our subnet calculator when you need the exact range for a specific address.

How to read a prefix in ten seconds

An IPv4 address has 32 bits. The number after the slash says how many of those bits belong to the network. The rest belong to the hosts on it.

  • Bigger number, smaller network. A /30 is tiny, a /8 is enormous.
  • Each step doubles or halves the size. A /23 is two /24s. A /25 is half a /24.
  • Usable hosts are total minus two for every prefix up to /30, because the first address names the network and the last is the broadcast address.

That is genuinely all there is to it. For the slower, plain English walk through, see subnet mask explained.

The full table: /0 to /32

PrefixSubnet maskWildcard maskTotal addressesUsable hosts
/00.0.0.0255.255.255.2554,294,967,2964,294,967,294
/1128.0.0.0127.255.255.2552,147,483,6482,147,483,646
/2192.0.0.063.255.255.2551,073,741,8241,073,741,822
/3224.0.0.031.255.255.255536,870,912536,870,910
/4240.0.0.015.255.255.255268,435,456268,435,454
/5248.0.0.07.255.255.255134,217,728134,217,726
/6252.0.0.03.255.255.25567,108,86467,108,862
/7254.0.0.01.255.255.25533,554,43233,554,430
/8255.0.0.00.255.255.25516,777,21616,777,214
/9255.128.0.00.127.255.2558,388,6088,388,606
/10255.192.0.00.63.255.2554,194,3044,194,302
/11255.224.0.00.31.255.2552,097,1522,097,150
/12255.240.0.00.15.255.2551,048,5761,048,574
/13255.248.0.00.7.255.255524,288524,286
/14255.252.0.00.3.255.255262,144262,142
/15255.254.0.00.1.255.255131,072131,070
/16255.255.0.00.0.255.25565,53665,534
/17255.255.128.00.0.127.25532,76832,766
/18255.255.192.00.0.63.25516,38416,382
/19255.255.224.00.0.31.2558,1928,190
/20255.255.240.00.0.15.2554,0964,094
/21255.255.248.00.0.7.2552,0482,046
/22255.255.252.00.0.3.2551,0241,022
/23255.255.254.00.0.1.255512510
/24255.255.255.00.0.0.255256254
/25255.255.255.1280.0.0.127128126
/26255.255.255.1920.0.0.636462
/27255.255.255.2240.0.0.313230
/28255.255.255.2400.0.0.151614
/29255.255.255.2480.0.0.786
/30255.255.255.2520.0.0.342
/31255.255.255.2540.0.0.122 (point to point)
/32255.255.255.2550.0.0.011 (single host)

The rows you will actually use day to day are /16 to /30. Two shortcuts make them easy to remember: a /24 is 256 addresses, and every step away from /24 doubles or halves it. So a /26 is 64, a /27 is 32, a /28 is 16, and a /22 is 1,024.

Quick picks: which size for which job

You need room forUseUsable hosts
A link between two routers/31 or /302
A handful of servers or a small VLAN/296
A small office/2730
A typical home or floor of an office/24254
A large office or campus building/221,022
A whole cloud VPC with room to grow/1665,534

In the cloud, subtract the provider's reserved addresses too. A /28 in AWS has 16 addresses, minus 5 reserved, which leaves 11 for your instances.

Cloud subnet rules

ProviderSmallest subnetLargest VPC or VNet rangeReserved per subnet
AWS/28/165 (first four and last one)
Azure/29No fixed limit, set per VNet5 (first four and last one)
Google Cloud/29Set per subnet range4 (network, gateway, second to last, broadcast)

AWS's default VPC in every region uses 172.31.0.0/16. If you plan to connect cloud networks to your office over a VPN, pick ranges that do not overlap with your office network or with each other. Overlapping private ranges are the single most common reason site to site VPNs refuse to route.

Ranges that are reserved for something

RangeSizeWhat it is for
10.0.0.0/816,777,216Private networks (RFC 1918)
172.16.0.0/121,048,576Private networks (RFC 1918). Docker's default bridge is 172.17.0.0/16 inside it
192.168.0.0/1665,536Private networks (RFC 1918). Most home routers use 192.168.0.0/24 or 192.168.1.0/24
100.64.0.0/104,194,304Carrier grade NAT shared space (RFC 6598). If your router's WAN address starts with 100.64 to 100.127, your ISP is sharing one public IP between many customers
127.0.0.0/816,777,216Loopback. 127.0.0.1 is your own machine
169.254.0.0/1665,536Link local. A device gives itself one of these when it cannot reach a DHCP server
192.0.2.0/24, 198.51.100.0/24, 203.0.113.0/24256 eachDocumentation and examples only
224.0.0.0/4268,435,456Multicast
240.0.0.0/4268,435,456Reserved for future use

If you see one of the private ranges as your address on a device, that is your local address, not the one the internet sees. Our home page shows your public one.

What sizes do registries actually hand out?

We counted every allocated or assigned block in the files that the five regional internet registries (AFRINIC, APNIC, ARIN, LACNIC and RIPE NCC) publish, dated 22 and 23 October 2026.

IPv4 block sizeEntriesShare of all IPv4 entries
/2479,83730.4%
/2271,30727.2%
/2334,84313.3%
/2117,9516.8%
/2017,0406.5%
/1912,8954.9%
/1612,4244.7%

There are 262,321 IPv4 entries in total. The /22 is so common because that was the size RIPE NCC and APNIC handed out from their final pools as IPv4 ran out. The /24 matters for another reason: it is the smallest block most networks will accept in internet routing, so anything smaller than a /24 cannot be announced on its own.

On the IPv6 side, out of 70,981 entries, 46.2% are a /32, 23.2% a /29 and 21.5% a /48. A /32 is the standard first allocation for an ISP, and a /48 is the usual size for a single organisation or site.

IPv6 prefixes in one table

PrefixTypical useNumber of /64 networks inside
/32Standard ISP allocation from a registry4,294,967,296
/48One organisation or site65,536
/56A home connection from many ISPs256
/64A single network (LAN or VLAN)1
/128A single addressNot applicable

The rule that trips people up: always give a LAN a full /64, even if it only has three devices. IPv6 address autoconfiguration (SLAAC) expects 64 bits for the host part and breaks on anything smaller. Want to see whether you even have IPv6 right now? Run our IPv6 test, and see how your country compares in our IPv6 adoption by country data.

The bottom line

A /24 is 256 addresses and 254 hosts, and every step away from it doubles or halves that. Keep the full table above for everything else. Add the cloud rule (AWS and Azure take 5 addresses per subnet, Google Cloud takes 4), keep private ranges from overlapping, and give every IPv6 LAN a /64. For a specific address, our subnet calculator gives you the network, broadcast and host range instantly.

Frequently asked questions

How many usable hosts are in a /24?

254. A /24 has 256 addresses. The first is the network address and the last is the broadcast address, which leaves 254 for devices.

What is the subnet mask for /24?

255.255.255.0. The wildcard mask, used in Cisco access lists and OSPF, is the inverse: 0.0.0.255.

How do I work out the number of hosts for any prefix?

Subtract the prefix from 32, raise 2 to that power, then subtract 2. For /27 that is 2 to the power of 5, which is 32, minus 2, giving 30 usable hosts. The two exceptions are /31, which gives 2 usable addresses on point to point links, and /32, which is a single address.

What is the difference between /31 and /30?

A /30 has 4 addresses and 2 usable hosts, the classic size for a link between two routers. A /31 has 2 addresses and, under RFC 3021, both can be used on a point to point link because no broadcast address is needed. That saves half the addresses.

What is the smallest subnet in AWS, Azure and Google Cloud?

AWS allows subnets from /16 down to /28. Azure and Google Cloud both go down to /29. Remember that AWS and Azure reserve 5 addresses in every subnet and Google Cloud reserves 4, so a /28 in AWS gives you 11 usable addresses, not 14.

What CIDR is 10.0.0.0/8?

It is one of the three private ranges from RFC 1918: every address from 10.0.0.0 to 10.255.255.255, 16,777,216 in total. The other two are 172.16.0.0/12 and 192.168.0.0/16.

What does /64 mean in IPv6?

It is the standard size of a single IPv6 network. The first 64 bits identify the network and the last 64 identify the device, which gives every subnet about 18.4 quintillion addresses. Home connections usually receive a /56 or /48, which they split into many /64s.

Sources

  1. RFC 4632: Classless Inter-domain Routing (CIDR), IETF
  2. RFC 1918: Address Allocation for Private Internets, IETF
  3. RFC 3021: Using 31-Bit Prefixes on IPv4 Point-to-Point Links, IETF
  4. RFC 6598: IANA-Reserved IPv4 Prefix for Shared Address Space, IETF
  5. Subnet CIDR blocks, Amazon Web Services
  6. Azure Virtual Network FAQ, Microsoft
  7. Subnets: valid IPv4 ranges and reserved addresses, Google Cloud
  8. RIR delegated extended statistics, Number Resource Organization, files dated 22 and 23 October 2026

Cite this article

“A /24 holds 256 IPv4 addresses with 254 usable hosts and is the most common block size in the regional internet registry files, 30.4% of 262,321 allocated or assigned IPv4 entries in October 2026.”

Outline Technologies, “CIDR Cheat Sheet: Every Prefix From /0 to /32”, whatismyip.technology, October 23, 2026. https://whatismyip.technology/blog/cidr-cheat-sheet

Free Tools

Test your network now

Everything discussed in this post can be tested for free. No account required.

Published by Outline Technologies · whatismyip.technology