Skip to content
ProfitTool
Back to all articles
Developer Tools
1 min read

CIDR Notation Explained: How IP Ranges and Subnets Work

CIDR notation writes an IP range as a prefix length. What /24 and /16 actually mean, how they map to subnet masks, and how to count the addresses in a block.

ProfitTool Team

Security & Dev

What CIDR Stands For

CIDR — Classless Inter-Domain Routing — is a method for representing a block of IP addresses using a base address and a prefix length. It replaced the older classful addressing system (Class A/B/C) in 1993, enabling much more efficient IP address allocation.

The Notation

192.168.1.0/24

The number after the slash is the prefix length — how many bits of the 32-bit IPv4 address are fixed (the network portion). The remaining bits identify individual hosts.

CIDRHostsSubnet MaskExample Range
/321 (single host)255.255.255.255192.168.1.100 only
/312 (point-to-point)255.255.255.254192.168.1.0–1
/304 (2 usable)255.255.255.252192.168.1.0–3
/298 (6 usable)255.255.255.248192.168.1.0–7
/2816 (14 usable)255.255.255.240192.168.1.0–15
/24256 (254 usable)255.255.255.0192.168.1.0–255
/1665,536 (65,534 usable)255.255.0.0192.168.0.0–255.255
/816,777,216255.0.0.010.0.0.0–10.255.255.255

Usable Hosts

In a standard subnet, two addresses are reserved:

  • Network address: the first address (all host bits 0) — e.g. 192.168.1.0
  • Broadcast address: the last address (all host bits 1) — e.g. 192.168.1.255

So a /24 has 256 total addresses but only 254 usable host addresses.

Private Ranges (RFC 1918)

These ranges are reserved for private networks and are not routable on the public internet:

  • 10.0.0.0/8 — Class A private
  • 172.16.0.0/12 — Class B private
  • 192.168.0.0/16 — Class C private

Aggregating Routes (Supernetting)

CIDR allows multiple contiguous networks to be expressed as a single, larger block. For example:

192.168.0.0/24
192.168.1.0/24
192.168.2.0/24
192.168.3.0/24

Can be aggregated as: 192.168.0.0/22

Use our CIDR / Subnet Calculator to compute network ranges, host counts and subnet masks instantly.

Tags:#cidr#subnetting#networking#ip addresses#subnet mask

ProfitTool Team

Security & Dev

Written and maintained by the ProfitTool team. Where an article references a ProfitTool utility, the behaviour described is the behaviour of the tool on this site — you can open it and check the output yourself.