Krill KitsKrill Kits// A swarm of small, sharp tools for letters, numbers, and units.
§ 01 / ARTICLE

CIDR Notation. The Slash Explained.

CATEGORY NETWORKREAD 5 MINPUBLISHED APR 21, 2026

192.168.1.0/24. The slash and number tell you the size and shape of the subnet — how many addresses it holds, where the network ends and hosts begin, and what mask to plug into a router. One number, all the math.

The slash is a bit count

IPv4 addresses are 32 bits long. The number after the slash — the prefix — tells you how many of those bits identify the network. Whatever’s left identifies individual hosts. So /24 = 24 network bits + 8 host bits. /16= 16 + 16. /30 = 30 + 2.

Host count is 2^(32 − prefix)

  • /8 — 16,777,216 total / 16,777,214 usable (Class A size)
  • /16 — 65,536 / 65,534 (Class B)
  • /24 — 256 / 254 (typical home network)
  • /27 — 32 / 30
  • /28 — 16 / 14
  • /29 — 8 / 6
  • /30 — 4 / 2 (point-to-point links)
  • /31 — 2 / 2 (RFC 3021 point-to-point, no broadcast)
  • /32 — 1 / 1 (a single host)

Subtract two from total because the first address is the network ID and the last is the broadcast. Both are reserved; you can’t assign either to a host.

The mask is the same info, longer

A subnet mask like 255.255.255.0 is just /24 written as four dotted octets. The 1-bits cover the network portion; the 0-bits cover the host portion. Most modern tools accept either notation. CIDR is shorter, so newer docs prefer it.

// TRY THE TOOL
RUN THE NUMBERS.

Network address, broadcast, mask, wildcard, and host range — with a binary view that shows exactly which bits are which.

OPEN →

Why CIDR replaced classes

Before 1993, IPv4 was “classful” — every address fell into Class A (/8), Class B (/16), or Class C (/24). If your org needed 500 hosts, your only choice was a full Class B with 65,000 addresses, wasting 64,500 of them. CIDR let registries hand out arbitrary prefixes (“here’s a /22, that’s 1,022 hosts”) which slowed the IPv4 exhaustion crisis by years.

Reading a CIDR fast

Two shortcuts: (1) the smaller the slash number, the bigger the subnet (yes, backwards from intuition); (2) every step up in prefix halves the size — /24 has 256, /25 has 128, /26 has 64, and so on down to /32 (just one).

§ 02 / FAQ

Questions. Answered.

What does the slash mean?+
The slash is the prefix length — the number of leading bits in the address that identify the network. The remaining bits identify hosts within it. /24 means the first 24 bits are network, last 8 are hosts.
How many hosts in a /24?+
256 total addresses (2^8). Two are reserved — the first is the network address, the last is the broadcast. So 254 usable hosts. Same logic for any prefix: 2^(32-prefix) total, minus 2 for usable.
Why are /31 and /32 special?+
A /31 has 2 addresses; RFC 3021 lets you use both (point-to-point links don’t need a broadcast). A /32 has 1 address — used to identify a single host, common in route tables.
What replaced the old "Class C" terminology?+
CIDR (Classless Inter-Domain Routing), introduced in 1993. Before that, networks came in fixed sizes (Class A=/8, B=/16, C=/24). CIDR lets ISPs allocate any prefix, which is far more efficient. The class names live on as informal shorthand.
§ 03 / TOOLS

Related calculators.

§ 04 / READING

Keep reading.