Ad slot — header (728x90)

CIDR Notation Explained

Last reviewed: May 2026

CIDR notation (pronounced "cider") is the standard way to write an IP address with its network size. You've seen it everywhere: 192.168.1.0/24, 10.0.0.0/8, 172.16.0.0/12. This guide explains exactly what the slash number means, how it relates to subnet masks, and why the entire internet depends on it.

Calculate any CIDR block instantly →

What Does the Slash Number Mean?

An IPv4 address is 32 bits long. The slash number — the prefix length — tells you how many of those 32 bits identify the network. The remaining bits identify individual hosts within that network.

11111111.11111111.11111111.00000000 ← /24 (24 network bits, 8 host bits)
11111111.11111111.00000000.00000000 ← /16 (16 network bits, 16 host bits)
11111111.00000000.00000000.00000000 ← /8 (8 network bits, 24 host bits)
Network bits (fixed — same for all hosts in the subnet) Host bits (variable — each host gets a unique value)

The number of host addresses is 2(32 − prefix). For a /24: 2(32−24) = 28 = 256 addresses. Two are always reserved (network + broadcast), leaving 254 usable.

Interactive CIDR Prefix Explorer

/24

CIDR vs Subnet Mask — Two Ways to Say the Same Thing

CIDR prefix length and dotted-decimal subnet mask are equivalent representations. The subnet mask is formed by setting the first N bits to 1 and the rest to 0, then converting each 8-bit group to a decimal number.

CIDR PrefixSubnet MaskTotal IPsUsable Hosts
/8255.0.0.016,777,21616,777,214
/16255.255.0.065,53665,534
/20255.255.240.04,0964,094
/24255.255.255.0256254
/26255.255.255.1926462
/28255.255.255.2401614
/30255.255.255.25242
/32255.255.255.25511 (host route)

How CIDR Replaced Classful Networking

Before 1993, IPv4 used classful networking: addresses were divided into Class A (/8), Class B (/16), and Class C (/24) based on the first octet. This was wasteful — a company needing 500 hosts had to get an entire Class B (65,534 hosts), wasting 65,000+ addresses.

ClassFirst Octet RangePrefixAddressesProblem
A1–126/816,777,214Massively over-sized for most orgs
B128–191/1665,534Over-sized; wasted millions of IPs
C192–223/24254Too small for many organisations
CIDR solved the "Class B Problem"

With CIDR (RFC 1519, 1993), any prefix length from /0 to /32 is valid. A company needing 500 hosts gets a /23 (510 usable hosts) instead of a /16. This drastically slowed IPv4 exhaustion and enabled the modern internet's routing table to be manageable.

Reading a CIDR Block: Step by Step

Take 192.168.10.0/24 as an example:

  1. 192.168.10.0 — the network address (first address in the block)
  2. /24 — 24 bits are the network; 8 bits are for hosts
  3. Host range — .1 through .254 (usable hosts)
  4. Broadcast — 192.168.10.255 (last address; not assignable)
  5. Subnet mask — 255.255.255.0 (24 ones followed by 8 zeros)

CIDR Aggregation (Supernetting)

CIDR also allows you to aggregate multiple contiguous subnets into a single, shorter-prefix route — called a supernet or summary route. This is essential for keeping BGP routing tables small.

192.168.0.0/24 → 11000000.10101000.00000000.00000000 192.168.1.0/24 → 11000000.10101000.00000001.00000000
Both share 23 common prefix bits → summarise as 192.168.0.0/23

RFC 1918 — The Private CIDR Blocks

Three CIDR ranges are reserved for private use and will never appear on the public internet (defined in RFC 1918):

BlockRangeTotal AddressesCommon Use
10.0.0.0/810.0.0.0 – 10.255.255.25516,777,216Large enterprises, cloud VPCs
172.16.0.0/12172.16.0.0 – 172.31.255.2551,048,576Corporate networks, Docker defaults
192.168.0.0/16192.168.0.0 – 192.168.255.25565,536Home routers, small office networks

CIDR in Cloud Networking

Explore any CIDR block in SubnetSolver →

Related Guides

Ad slot — footer (728x90)