Skip to content

CIDR Reference

All IPv4 prefixes from /0 to /32, masks and address counts.

By ToolzHive · Updated

Total addresses equal 2^(32−prefix). The host column uses conventional broadcast-subnet counting, with explicit /31 and /32 exceptions.

Download reference CSV

Reference table

CIDR Reference
PrefixMaskTotal addressesConventional hosts / exception
/00.0.0.042949672964294967294
/1128.0.0.021474836482147483646
/2192.0.0.010737418241073741822
/3224.0.0.0536870912536870910
/4240.0.0.0268435456268435454
/5248.0.0.0134217728134217726
/6252.0.0.06710886467108862
/7254.0.0.03355443233554430
/8255.0.0.01677721616777214
/9255.128.0.083886088388606
/10255.192.0.041943044194302
/11255.224.0.020971522097150
/12255.240.0.010485761048574
/13255.248.0.0524288524286
/14255.252.0.0262144262142
/15255.254.0.0131072131070
/16255.255.0.06553665534
/17255.255.128.03276832766
/18255.255.192.01638416382
/19255.255.224.081928190
/20255.255.240.040964094
/21255.255.248.020482046
/22255.255.252.010241022
/23255.255.254.0512510
/24255.255.255.0256254
/25255.255.255.128128126
/26255.255.255.1926462
/27255.255.255.2243230
/28255.255.255.2401614
/29255.255.255.24886
/30255.255.255.25242
/31255.255.255.25422 on point-to-point links
/32255.255.255.25511 address / host route

Example

A /24 has 256 addresses and conventionally 254 hosts after reserving network and broadcast addresses.

IPv6

IPv6 uses 128 bits and no IPv4-style broadcast subtraction. This table covers IPv4; use the IPv6 tool for IPv6 ranges.

Try the related tools

  • IPv4 Subnet Calculator — Calculate network, broadcast, host range and mask for any IPv4 subnet, and split it.
  • IPv6 Subnet Calculator — Calculate IPv6 prefixes, address ranges and subnets, and expand or compress addresses.

Sources

Related references

Browse all free resources

Accessibility Menu

Personalize your experience. Open with Ctrl+U (Option+U on Mac). Preferences stay in this browser when storage is available.

Move / Hide Widget

Restore at any time with Ctrl+U (Option+U on Mac).

Accessibility statement and help