All guides

CIDR Notation Explained: What the Slash Number Means

The slash is a bit count

CIDR, pronounced like cider, stands for Classless Inter Domain Routing, and its notation is the slash plus a number after an address, such as 192.168.1.0/24. The number counts the leading bits that belong to the network part of the address, the prefix. A /24 keeps the first 24 bits fixed and leaves 8 bits, one byte, free for devices, so 256 addresses. A /16 leaves 16 bits free and holds 65,536 addresses. Every step up in prefix length halves the network, every step down doubles it. The older dotted mask says the same thing in longhand: /24 is 255.255.255.0, /25 is 255.255.255.128, and the table between them is worth learning to read fluently.

The landmarks worth memorising

A handful of prefixes cover most real networks. /32 is a single address, used for naming one host. /30 gives two usable hosts and fits a link between two routers. /24 is the default home and small office size with 254 hosts. /16 is a large private campus range. At the internet scale, providers hold blocks like /12 or /8. On the private side, the three famous ranges are 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16. Notice how the prefix decides the block size before any specific address is chosen: saying a network is a /26 is saying it has 64 addresses and 62 usable hosts, wherever it lives.

Why classless replaced classes

Before CIDR, addresses came in rigid classes with fixed split points, and the waste was enormous: a company needing 300 addresses had to take a class B block of 65,536, because a class C of 254 was too small. CIDR let allocations be cut at any bit boundary, so a need for 300 addresses becomes a /23 with 510 usable hosts. The same idea lets providers aggregate routes, announcing one prefix that summarises thousands of customer networks, which keeps the internet's routing tables manageable. When you enter a prefix into the subnet calculator here, you are using the system that quietly reorganised the whole internet's addressing in the 1990s and postponed its address exhaustion by decades. CIDR also explains a sight familiar from router settings: a range written as 192.168.1.0/24 on one screen and a mask of 255.255.255.0 on another. They are the same instruction in two dialects, and equipment mixes them freely. When you meet a mask in the wild, count its bits by converting each 255 to eight ones and the partial number, 128, 192, 224 and so on, to its bit count. Or skip the drill: the calculator translates any prefix into its mask instantly.

Try the calculator

The free tool that goes with this guide:

Calculate a subnet