Saved

Utilix knowledge base

What Is CIDR? IP Address Notation Explained

Published Jun 1, 2026

What Is CIDR?

CIDR (Classless Inter-Domain Routing) is the modern way to describe IP address ranges. Instead of legacy "Class A/B/C" networks, CIDR uses a prefix length — the number of leading bits that identify the network.

Written as network/prefix, for example:

192.168.1.0/24
10.0.0.0/8
172.16.0.0/12

The number after the slash tells you how many bits belong to the network portion. Everything after that is available for hosts.

CIDR vs subnet mask

CIDR and subnet masks express the same boundary in different formats:

CIDRSubnet maskHost bitsUsable hosts
/8255.0.0.02416 777 214
/16255.255.0.01665 534
/24255.255.255.08254
/26255.255.255.192662
/30255.255.255.25222 (point-to-point)
/32255.255.255.25501 (single host)

A /24 means the first 24 bits are fixed (the network) and the last 8 bits vary (hosts). That gives 2⁸ = 256 addresses, minus network and broadcast = 254 usable hosts.

How prefix length works

Each IPv4 address is 32 bits. The prefix length counts network bits from the left:

192.168.1.100/24

192  = 11000000  ← network bits (24 total)
168  = 10101000  ← network bits
1    = 00000001  ← network bits
100  = 01100100  ← host bits (last 8)

The network address zeroes out all host bits: 192.168.1.0. The broadcast address sets all host bits to 1: 192.168.1.255.

Use the Subnet / CIDR Calculator to compute these instantly from any IP and prefix.

Why CIDR replaced classful addressing

Before CIDR (pre-1993), IP addresses were divided into fixed classes:

ClassFirst octetDefault maskProblem
A0–127/8Wasted millions of addresses per network
B128–191/16Too large for most orgs
C192–223/24Too small for many orgs

CIDR allows any prefix length, so you can allocate exactly the block size you need — a /27 for 30 hosts, a /22 for 1 022 hosts, and so on.

Common CIDR blocks in practice

Private RFC 1918 ranges (not routable on the public internet):

  • 10.0.0.0/8 — one large block (16 M addresses)
  • 172.16.0.0/12 — 16 contiguous /16 blocks
  • 192.168.0.0/16 — the familiar home/office range

Cloud VPC defaults:

  • AWS default VPC: often 172.31.0.0/16
  • Azure VNet: commonly 10.0.0.0/16 or /24 subnets inside
  • GCP VPC: 10.128.0.0/9 auto mode range

Loopback and special:

  • 127.0.0.0/8 — localhost
  • 169.254.0.0/16 — link-local (APIPA)

Subnetting with CIDR

To split a larger block into smaller subnets, increase the prefix length:

Parent:  192.168.0.0/16  (65 534 hosts)
Split:   192.168.0.0/24  (254 hosts each)
         192.168.1.0/24
         …
         192.168.255.0/24

Each step of +1 on the prefix halves the address space. Going from /16 to /24 adds 8 bits → 2⁸ = 256 subnets.

Use the CIDR Subnet Splitter to generate the full table of child subnets.

Wildcard masks

In Cisco ACLs and some firewall rules, the wildcard mask is the inverse of the subnet mask:

Subnet maskWildcard mask
255.255.255.00.0.0.255
255.255.255.1920.0.0.63
255.255.0.00.0.255.255

Wildcard 0 means "must match"; 1 means "don't care."

Quick reference: hosts per prefix

PrefixTotal addressesUsable hosts
/3042
/2986
/281614
/273230
/266462
/25128126
/24256254
/23512510
/221 0241 022

Related tools