Guide
CIDR Notation Explained
CIDR notation describes an IP network by combining a starting address with a prefix length, such as 8.8.8.0/24.
Last reviewed: June 12, 2026
Quick reference
Common prefixes
- IPv4 /32
- One IPv4 address.
- IPv4 /24
- 256 IPv4 addresses, commonly written with netmask 255.255.255.0.
- IPv4 /16
- 65,536 IPv4 addresses.
- IPv6 /128
- One IPv6 address.
- IPv6 /64
- Common size for a single IPv6 LAN or subnet.
- IPv6 /48
- Common site-level IPv6 allocation size in many designs.
Advertisement
Guide
More prefix bits mean fewer addresses
The number after the slash is the prefix length. It says how many leading bits belong to the network part of the address.
Fixing more network bits leaves fewer bits available for addresses within the block. That is why increasing the prefix length makes the range smaller.
Guide
Why 8.8.8.8/24 becomes 8.8.8.0/24
People often type a host address with a network prefix, for example 8.8.8.8/24. The canonical network is 8.8.8.0/24 because the host bits are cleared.
ShowIP accepts host-prefix input and normalizes it before calculating first address, last address, netmask, broadcast, and total address count.
Reference
Key terms
- CIDR
- Classless Inter-Domain Routing
- Prefix length
- Number of fixed leading network bits
- Host bits
- Remaining address bits inside the network
In practice
Examples
IPv4 network
8.8.8.0/24
256 IPv4 addresses from 8.8.8.0 to 8.8.8.255.
Calculate this network
Single IPv4 address
8.8.8.8/32
Exactly one IPv4 address.
Calculate this single-address range
IPv6 documentation prefix
2001:db8::/32
A reserved IPv6 documentation range used in examples.
Calculate this IPv6 prefix
Next steps
Related guides and tools
Questions
Common questions
Is 8.8.8.8/24 the same as 8.8.8.0/24?
For network calculations, yes. 8.8.8.8/24 is host-prefix input that normalizes to the canonical network 8.8.8.0/24.
Does IPv6 use netmasks and broadcast addresses?
IPv6 uses prefix lengths, but IPv4-style netmasks and broadcast addresses are not used in the same way.
Sources