We believe math and science education should be free and accessible to everyone. Why education matters >

CIDR Calculator

Enter an IP address and CIDR prefix length to see the full network breakdown: network and broadcast addresses, usable host range, subnet mask, wildcard mask, and IP class. Perfect for network engineers, sysadmins, and anyone configuring firewalls or VPCs.

CIDR (Classless Inter-Domain Routing) replaced the old class-based addressing system in 1993. Instead of fixed Class A/B/C boundaries, CIDR lets you define any prefix length from /0 to /32.

Quick reference for common prefix lengths:

  • /8 -- 16,777,216 addresses (old Class A)
  • /16 -- 65,536 addresses (old Class B)
  • /24 -- 256 addresses (old Class C, most common LAN)
  • /28 -- 16 addresses (small subnet, 14 usable hosts)
  • /30 -- 4 addresses (point-to-point link, 2 usable)
  • /31 -- 2 addresses (RFC 3021 point-to-point)
  • /32 -- 1 address (single host route)

Private address ranges (RFC 1918):

  • 10.0.0.0/8 -- 10.0.0.0 to 10.255.255.255
  • 172.16.0.0/12 -- 172.16.0.0 to 172.31.255.255
  • 192.168.0.0/16 -- 192.168.0.0 to 192.168.255.255

Did this solve your problem?

Frequently Asked Questions

Search Calculators

Search across all calculator categories